From 8ff36fa268f852acde5f2cb29bbeca31bf5212c4 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 24 May 2021 09:38:43 +0200 Subject: 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) --- smoketest/scripts/cli/base_interfaces_test.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'smoketest') 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] -- cgit v1.2.3