pespin submitted this change.
ggsn: Request osmo-ggsn to apply the MTU on the tundev
Depends: osmo-ggsn.git Change-Id Ifae556169d895860812c9ea5633292d7e3fab338
Related: OS#6298
Related: SYS#7122
Change-Id: Ie55c8b41f5a4a128f999474c3fad1926099b3624
---
M ggsn_tests/GGSN_Tests.ttcn
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index 8b1a6e7..e6c6be0 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -234,13 +234,19 @@
}
/* -1 = osmo-ggsn default mtu */
- private function f_vty_set_mtu(integer mtu) runs on GT_CT {
+ private function f_vty_set_mtu(integer mtu, boolean do_apply := true) runs on GT_CT {
+ var charstring val_str;
+ var charstring apply_str := "";
var charstring mtu_cmd;
if (mtu >= 0) {
- mtu_cmd := "mtu " & int2str(mtu);
+ val_str := int2str(mtu);
} else {
- mtu_cmd := "mtu default";
+ val_str := "default";
}
+ if (do_apply) {
+ apply_str := " apply"
+ }
+ mtu_cmd := "mtu " & val_str & apply_str;
f_vty_enter_config(GGSNVTY);
f_vty_transceive(GGSNVTY, "ggsn ggsn0");
To view, visit change 38495. To unsubscribe, or for help writing mail filters, visit settings.