Change in osmo-ttcn3-hacks[master]: BSC_ConnectionHandler: make VTY interface available

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Nov 9 10:33:00 UTC 2018


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/11701


Change subject: BSC_ConnectionHandler: make VTY interface available
......................................................................

BSC_ConnectionHandler: make VTY interface available

The BSC_ConnectionHandler currently has no access to the VTY interface.
Lets make it available so that upcoming tests can use the VTY interface
to trigger actions (e.g. Paging)

Change-Id: I684f0a3a435924d81bc5a793cb7b43a3ab9ef842
Related: OS#3615
---
M msc/BSC_ConnectionHandler.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/01/11701/1

diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index ea09f82..e22d507 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -36,10 +36,15 @@
 import from Osmocom_CTRL_Types all;
 import from Osmocom_CTRL_Adapter all;
 
+import from TELNETasp_PortType all;
+import from Osmocom_VTY_Functions all;
+
 /* this component represents a single subscriber connection */
 type component BSC_ConnHdlr extends BSSAP_ConnHdlr, MNCC_ConnHdlr, GSUP_ConnHdlr, MGCP_ConnHdlr, SMPP_ConnHdlr, CTRL_Adapter_CT {
 	var BSC_ConnHdlrPars g_pars;
 	timer g_Tguard := 60.0;
+	port TELNETasp_PT MSCVTY;
+	var boolean g_vty_initialized := false;
 }
 
 type record BSC_ConnHdlrNetworkPars {
@@ -131,6 +136,13 @@
 	f_create_smpp_expect(hex2str(pars.msisdn));
 
 	f_ipa_ctrl_start(g_pars.ipa_ctrl_ip, g_pars.ipa_ctrl_port);
+
+	if (not g_vty_initialized) {
+		map(self:MSCVTY, system:MSCVTY);
+		f_vty_set_prompts(MSCVTY);
+		f_vty_transceive(MSCVTY, "enable");
+		g_vty_initialized := true;
+	}
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/11701
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I684f0a3a435924d81bc5a793cb7b43a3ab9ef842
Gerrit-Change-Number: 11701
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181109/6035c8ca/attachment.htm>


More information about the gerrit-log mailing list