summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2026-01-08 15:18:01 +0000
committerGitHub <noreply@github.com>2026-01-08 15:18:01 +0000
commitfc945ea7ba90d86142984b992bc3e79ddf6b0ece (patch)
tree481667f70275d7f6daba64eb77b5d3dcfd9431fb /smoketest/scripts
parent041b990ae1662b4ac7fe2fc4b62e1f624f5d6c9a (diff)
parenta46d27d93a1370a154123ff7161429e2b5798ad2 (diff)
downloadvyos-1x-fc945ea7ba90d86142984b992bc3e79ddf6b0ece.tar.gz
vyos-1x-fc945ea7ba90d86142984b992bc3e79ddf6b0ece.zip
Merge pull request #4920 from natali-rs1985/T7098
T7098: Fix VPP MTU misconfiguration
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_vpp.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py
index 9f67b79c8..1886ac615 100755
--- a/smoketest/scripts/cli/test_vpp.py
+++ b/smoketest/scripts/cli/test_vpp.py
@@ -118,6 +118,7 @@ class TestVPP(VyOSUnitTestSHIM.TestCase):
def test_01_vpp_basic(self):
main_core = '0'
poll_sleep = '0'
+ mtu = '2500'
# Main core must be verified
# expect raise ConfigError
@@ -161,6 +162,19 @@ class TestVPP(VyOSUnitTestSHIM.TestCase):
required_str = 'lcp route-no-paths off'
self.assertIn(required_str, out)
+ # set interface MTU
+ self.cli_set(['interfaces', 'ethernet', interface, 'mtu', mtu])
+ self.cli_commit()
+
+ # check MTU for the LCP interface pair
+ _, out = rc_cmd('sudo vppctl show interface')
+ normalized_out = re.sub(r'\s+', ' ', out)
+ self.assertIn(f'tap4096 2 up {mtu}/0/0/0', normalized_out)
+
+ # delete mtu settings
+ self.cli_delete(['interfaces', 'ethernet', interface, 'mtu'])
+ self.cli_commit()
+
def test_02_vpp_vxlan(self):
vni = '23'
interface_vxlan = f'vxlan{vni}'