summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-03-03 16:30:27 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-09-14 11:31:18 +0200
commit4b731de0560a10f0aaddf86ea282d5f2d4a375bc (patch)
tree4a1e0b8a1fea9a5f275c5b7ddf909ee61cadd7c0
parent7fefceea711acd54cd3806aeaeed609d3222a528 (diff)
ggsn: Allow running without VTYpespin/ergw
-rw-r--r--ggsn_tests/GGSN_Tests.ttcn11
1 files changed, 8 insertions, 3 deletions
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index be0e565..54064db 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -46,6 +46,9 @@ module GGSN_Tests {
charstring m_ggsn_ip_gtpc := "127.0.0.6";
charstring m_ggsn_ip_gtpu := "127.0.0.6";
+ /* Does the GGSN support a VTY? */
+ boolean m_have_vty := true;
+
/*
* Our tests expect to see these DNS servers in 'Create PDP context responses' sent by the GGSN.
* These addresses must therefore match 'ip[v6] dns' options configured in osmo-ggsn.conf.
@@ -195,9 +198,11 @@ module GGSN_Tests {
g_c_seq_nr := f_rnd_int(65535);
g_d_seq_nr := f_rnd_int(65535);
- f_init_vty();
- f_vty_set_gpdu_txseq(use_gtpu_txseq);
- f_vty_enable_echo_interval(g_use_echo);
+ if (m_have_vty) {
+ f_init_vty();
+ f_vty_set_gpdu_txseq(use_gtpu_txseq);
+ f_vty_enable_echo_interval(g_use_echo);
+ }
}
/* Altstep implementing responses to any incoming echo requests */