pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38495?usp=email )

Change subject: ggsn: Request osmo-ggsn to apply the MTU on the tundev
......................................................................

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(-)

Approvals:
  osmith: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




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 https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38495?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie55c8b41f5a4a128f999474c3fad1926099b3624
Gerrit-Change-Number: 38495
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to