bts: Add second VTY connection to BSC

Change-Id: If4b5a906a0841c0a8c3d7c4e9e5a3d1208ecf16a
This commit is contained in:
Harald Welte 2018-09-10 10:27:56 +02:00
parent a266325929
commit f50e3ae532
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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]

View File

@ -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) {