summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-17 21:29:52 +0200
committerChristian Poessinger <christian@poessinger.com>2020-09-17 21:31:26 +0200
commitde6dd336243b90a79023d7c84645cd75b5798f41 (patch)
tree447e3ee86b6943d99bb6813644262ba827d5f743 /smoketest/scripts
parentf4b7b705297b0f6353dbe65c413109d6c136019d (diff)
downloadvyos-1x-de6dd336243b90a79023d7c84645cd75b5798f41.tar.gz
vyos-1x-de6dd336243b90a79023d7c84645cd75b5798f41.zip
smoketest: bond: T2894: vlan interfaces must not remove bond members
A regression showed that when adding a vif to a bond the bond interface will loose all its member interfaces. This is - of course - super bad!
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bonding.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bonding.py b/smoketest/scripts/cli/test_interfaces_bonding.py
index b165883b9..9ad8568ee 100755
--- a/smoketest/scripts/cli/test_interfaces_bonding.py
+++ b/smoketest/scripts/cli/test_interfaces_bonding.py
@@ -58,6 +58,14 @@ class BondingInterfaceTest(BasicInterfaceTest.BaseTest):
slaves = read_file(f'/sys/class/net/{interface}/bonding/slaves').split()
self.assertListEqual(slaves, self._members)
+ def test_8021q_vlan(self):
+ """ Testcase for 802.1q VLAN interfaces """
+ super().test_8021q_vlan()
+
+ for interface in self._interfaces:
+ slaves = read_file(f'/sys/class/net/{interface}/bonding/slaves').split()
+ self.assertListEqual(slaves, self._members)
+
def test_remove_member(self):
""" T2515: when removing a bond member the interface must be admin-up again """