From 558e1ca9a8b80a9f6785ca0aedc26b6a03f4f3d8 Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sun, 17 Jan 2021 15:09:28 +0800 Subject: smoketest: bridge: T3226: Repair bridge smoke test damage --- smoketest/scripts/cli/test_interfaces_bridge.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'smoketest/scripts/cli') diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py index 30364ca37..a6b96c9bd 100755 --- a/smoketest/scripts/cli/test_interfaces_bridge.py +++ b/smoketest/scripts/cli/test_interfaces_bridge.py @@ -202,6 +202,13 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): # remove VLAN interfaces for vif in vifs: self.session.delete(['interfaces', 'ethernet', member, 'vif', vif]) + + # delete all members + for interface in self._interfaces: + for member in self._members: + for vif in vifs: + self.session.delete(['interfaces', 'ethernet', member, 'vif', vif]) + self.session.delete(['interfaces', 'bridge', interface, 'member', 'interface', f'{member}.{vif}']) if __name__ == '__main__': unittest.main(verbosity=2) -- cgit v1.2.3