From de6dd336243b90a79023d7c84645cd75b5798f41 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 17 Sep 2020 21:29:52 +0200 Subject: 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! --- smoketest/scripts/cli/test_interfaces_bonding.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'smoketest') 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 """ -- cgit v1.2.3