summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/Osmocom_VTY_Functions.ttcn12
-rw-r--r--msc/MSC_Tests.ttcn11
-rw-r--r--sgsn/SGSN_Tests.default27
3 files changed, 39 insertions, 11 deletions
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 @@ module Osmocom_VTY_Functions {
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 @@ function f_start_handler(void_fn fn, charstring id, integer imsi_suffix) runs on
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