summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_interfaces_test.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 09:38:43 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 09:38:43 +0200
commit06dae2734aee09885e34aec0df397985c2a36961 (patch)
treec83101d869ac337a7107b50b1c582d078431ec18 /smoketest/scripts/cli/base_interfaces_test.py
parentacc701bac3483a3242c77a2e00c076890e27eea9 (diff)
downloadvyos-1x-06dae2734aee09885e34aec0df397985c2a36961.tar.gz
vyos-1x-06dae2734aee09885e34aec0df397985c2a36961.zip
smoketest: vif: T3570: fix vlan interface MTU test for pseudo-ethernet interfaces
The MTU size of the source-interface must be greater or equal to the MTU of the pseudo ethernet interface.
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 44f99ffab..7f69b8444 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -323,6 +323,10 @@ class BasicInterfaceTest:
self.cli_set(base + ['mtu', mtu_1500])
for option in self._options.get(interface, []):
self.cli_set(base + option.split())
+ if 'source-interface' in option:
+ iface = option.split()[-1]
+ iface_type = Section.section(iface)
+ self.cli_set(['interfaces', iface_type, iface, 'mtu', mtu_9000])
for vlan in self._vlan_range:
base = self._base_path + [interface, 'vif', vlan]
@@ -350,7 +354,7 @@ class BasicInterfaceTest:
self.assertEqual(tmp['mtu'], int(mtu_9000))
- def test_vif_qos_change(self):
+ def test_vif_8021q_qos_change(self):
# XXX: This testcase is not allowed to run as first testcase, reason
# is the Wireless test will first load the wifi kernel hwsim module
# which creates a wlan0 and wlan1 interface which will fail the