summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-11-09 11:21:08 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2018-12-18 17:14:19 +0100
commitc39a9d89e016b522bab2fcffd24d55c3dc0bb0f8 (patch)
treefa6aa20fef0002a64f3830ad9aac92bc188cd60d
parentaeb29a8a4fc5781a6692966019bd07bd54d64ded (diff)
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, see also Change Id: 6a1a6bd6da1bf46d6d703be495795d3610ca431) Change-Id: I684f0a3a435924d81bc5a793cb7b43a3ab9ef842 Related: OS#3615
-rw-r--r--msc/BSC_ConnectionHandler.ttcn8
1 files changed, 8 insertions, 0 deletions
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index e97b97d..1b31f75 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -36,10 +36,14 @@ import from Osmocom_CTRL_Functions all;
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;
}
type record BSC_ConnHdlrNetworkPars {
@@ -134,6 +138,10 @@ function f_init_handler(BSC_ConnHdlrPars pars, float t_guard := 60.0) runs on BS
if (g_pars.ipa_ctrl_enable == true) {
f_ipa_ctrl_start(g_pars.ipa_ctrl_ip, g_pars.ipa_ctrl_port);
}
+
+ map(self:MSCVTY, system:MSCVTY);
+ f_vty_set_prompts(MSCVTY);
+ f_vty_transceive(MSCVTY, "enable");
}