[MERGED] osmo-ttcn3-hacks[master]: move f_vty_config() from MSC_Tests to Osmocom_VTY_Functions

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Feb 18 09:54:33 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: move f_vty_config() from MSC_Tests to Osmocom_VTY_Functions
......................................................................


move f_vty_config() from MSC_Tests to Osmocom_VTY_Functions

Change-Id: Ie7373c28b1d2b76f8d637ac6c86976fd341e3e2c
---
M library/Osmocom_VTY_Functions.ttcn
M msc/MSC_Tests.ttcn
A sgsn/SGSN_Tests.default
3 files changed, 39 insertions(+), 11 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index eb51a03..a375df6 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -109,4 +109,16 @@
 		f_vty_transceive(pt, "timeslot " & int2str(ts));
 	}
 
+function f_vty_config(TELNETasp_PT pt, charstring config_node, charstring cmd)
+{
+	/* enter config mode; enter node */
+	f_vty_enter_config(pt);
+	f_vty_transceive(pt, config_node);
+	/* execute command */
+	f_vty_transceive(pt, cmd);
+	/* leave config mode */
+	f_vty_transceive(pt, "end");
+}
+
+
 }
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index c46ec80..c9cd8d7 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -381,17 +381,6 @@
 	return vc_conn;
 }
 
-function f_vty_config(TELNETasp_PT pt, charstring config_node, charstring cmd)
-{
-	/* enter config mode; enter node */
-	f_vty_enter_config(pt);
-	f_vty_transceive(pt, config_node);
-	/* execute command */
-	f_vty_transceive(pt, cmd);
-	/* leave config mode */
-	f_vty_transceive(pt, "end");
-}
-
 private function f_tc_lu_imsi_noauth_tmsi(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr {
 	f_init_handler(pars);
 	f_perform_lu(true);
diff --git a/sgsn/SGSN_Tests.default b/sgsn/SGSN_Tests.default
new file mode 100644
index 0000000..6d8822b
--- /dev/null
+++ b/sgsn/SGSN_Tests.default
@@ -0,0 +1,27 @@
+[LOGGING]
+"IPA-CTRL-IPA".FileMask := ERROR | WARNING;
+
+[TESTPORT_PARAMETERS]
+*.SGSNVTY.CTRL_MODE := "client"
+*.SGSNVTY.CTRL_HOSTNAME := "127.0.0.1"
+*.SGSNVTY.CTRL_PORTNUM := "4254"
+*.SGSNVTY.CTRL_LOGIN_SKIPPED := "yes"
+*.SGSNVTY.CTRL_DETECT_SERVER_DISCONNECTED := "yes"
+*.SGSNVTY.CTRL_READMODE := "buffered"
+*.SGSNVTY.CTRL_CLIENT_CLEANUP_LINEFEED := "yes"
+*.SGSNVTY.PROMPT1 := "OsmoSGSN> "
+
+
+[MODULE_PARAMETERS]
+#NS_Emulation.mp_local_ip := "192.168.100.239"
+NS_Emulation.mp_local_udp_port := 21000
+#NS_Emulation.mp_remote_ip := "192.168.100.196"
+NS_Emulation.mp_remote_udp_port := 23000
+NS_Emulation.mp_nsvci := 97
+NS_Emulation.mp_nsei := 96
+Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoSGSN";
+
+[MAIN_CONTROLLER]
+
+[EXECUTE]
+SGSN_Tests.control

-- 
To view, visit https://gerrit.osmocom.org/6551
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7373c28b1d2b76f8d637ac6c86976fd341e3e2c
Gerrit-PatchSet: 2
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder


More information about the gerrit-log mailing list