summaryrefslogtreecommitdiff
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 10:43:01 +0200
commit8ff36fa268f852acde5f2cb29bbeca31bf5212c4 (patch)
tree196eec75a4609b15914630928ec9696ec0624fc3
parenta43511a45896b82ca9a3fc189f7d737f17693fdb (diff)
downloadvyos-1x-8ff36fa268f852acde5f2cb29bbeca31bf5212c4.tar.gz
vyos-1x-8ff36fa268f852acde5f2cb29bbeca31bf5212c4.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. (cherry picked from commit 06dae2734aee09885e34aec0df397985c2a36961)
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 27435f256..ef10b5348 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -309,6 +309,10 @@ class BasicInterfaceTest:
self.session.set(base + ['mtu', mtu_1500])
for option in self._options.get(interface, []):
self.session.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]