summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-09-10 10:27:56 +0200
committerHarald Welte <laforge@gnumonks.org>2018-09-16 12:41:11 +0200
commitf50e3ae53288095ed02e6cb55ea2bea2c34bfdd9 (patch)
treeafb4bc786d307b53d8a8abe7d4721ddf4206fd26
parenta2663259295a3326695cbaca65958b73aacb6b72 (diff)
bts: Add second VTY connection to BSC
-rw-r--r--bts/BTS_Tests.cfg1
-rw-r--r--bts/BTS_Tests.default11
-rw-r--r--bts/BTS_Tests.ttcn8
3 files changed, 20 insertions, 0 deletions
diff --git a/bts/BTS_Tests.cfg b/bts/BTS_Tests.cfg
index 58eed2c..d365a06 100644
--- a/bts/BTS_Tests.cfg
+++ b/bts/BTS_Tests.cfg
@@ -13,6 +13,7 @@
#*.BTSVTY.CTRL_HOSTNAME := "10.9.1.162" # sysmoBTS Pau
#*.BTSVTY.CTRL_HOSTNAME := "192.168.100.130" # sysmoBTS home
*.BTSVTY.CTRL_HOSTNAME := "127.0.0.1" # osmo-bts-trx
+*.BSCVTY.CTRL_HOSTNAME := "127.0.0.1" # osmo-bsc
[MODULE_PARAMETERS]
#BTS_Tests.mp_rsl_ip := "10.9.1.2" # office
diff --git a/bts/BTS_Tests.default b/bts/BTS_Tests.default
index f254993..920f5d0 100644
--- a/bts/BTS_Tests.default
+++ b/bts/BTS_Tests.default
@@ -14,6 +14,17 @@ mtc.FileMask := LOG_ALL | TTCN_DEBUG | TTCN_MATCHING | DEBUG_ENCDEC;
*.BTSVTY.CTRL_CLIENT_CLEANUP_LINEFEED := "yes"
*.BTSVTY.CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT := "yes"
*.BTSVTY.PROMPT1 := "OsmoBTS> "
+
+*.BSCVTY.CTRL_MODE := "client"
+*.BSCVTY.CTRL_HOSTNAME := "127.0.0.1"
+*.BSCVTY.CTRL_PORTNUM := "4242"
+*.BSCVTY.CTRL_LOGIN_SKIPPED := "yes"
+*.BSCVTY.CTRL_DETECT_SERVER_DISCONNECTED := "yes"
+*.BSCVTY.CTRL_READMODE := "buffered"
+*.BSCVTY.CTRL_CLIENT_CLEANUP_LINEFEED := "yes"
+*.BSCVTY.CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT := "yes"
+*.BSCVTY.PROMPT1 := "OsmoBSC> "
+
*.PCU.socket_type := "SEQPACKET"
[MODULE_PARAMETERS]
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 963a38d..aa402d1 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -75,7 +75,9 @@ type component test_CT extends CTRL_Adapter_CT {
port TRXC_CODEC_PT BB_TRXC;
var integer g_bb_trxc_conn_id;
+ /* VTY connections to both BTS and BSC */
port TELNETasp_PT BTSVTY;
+ port TELNETasp_PT BSCVTY;
/* PCU Interface of BTS */
port PCUIF_CODEC_PT PCU;
@@ -248,6 +250,12 @@ private function f_init_vty(charstring id) runs on test_CT {
f_vty_transceive(BTSVTY, "enable");
}
+private function f_init_vty_bsc() runs on test_CT {
+ map(self:BSCVTY, system:BSCVTY);
+ f_vty_set_prompts(BSCVTY, "OsmoBSC");
+ f_vty_transceive(BSCVTY, "enable");
+}
+
/* PCU socket may at any time receive a new INFO.ind */
private altstep as_pcu_info_ind(PCUIF_CODEC_PT pt, integer pcu_conn_id,
out PCUIF_Message pcu_last_info) {