ggsn: Add module parameter to run tests against open5gs

Change-Id: I4ebb3ed73f0f9a20c14d73891ba8b8051f823ab8
This commit is contained in:
Pau Espin 2022-01-19 18:10:30 +01:00
parent 284c68e735
commit c1b1ddff61
1 changed files with 12 additions and 3 deletions

View File

@ -35,6 +35,11 @@ module GGSN_Tests {
const integer GTP1C_PORT := 2123;
const integer GTP1U_PORT := 2152;
type enumerated GGSN_Impl {
GGSN_IMPL_OSMOCOM,
GGSN_IMPL_OPEN5GS
};
modulepar {
/* Default IP addresses. May be overridden by GGSN_Tests configuration files. */
@ -65,6 +70,8 @@ module GGSN_Tests {
* The tests expect to be able to send ping packets between any two simulated MS within the same
* address range. This requires IP forwarding to be enabled on the corresponding tun interfaces.
*/
GGSN_Impl m_ggsn_impl := GGSN_IMPL_OSMOCOM;
}
type set PdpContext {
@ -197,9 +204,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_ggsn_impl == GGSN_IMPL_OSMOCOM) {
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 */