From 261f37bd8090c60bb346be664f0bfcc9c04613f9 Mon Sep 17 00:00:00 2001 From: jack9603301 Date: Sun, 17 Jan 2021 17:48:40 +0800 Subject: smoketest: bridge: T3226: Remove redundant code In 558e1ca9, we found that the interface created by a test case was not cleaned up completely, which led to the destruction of smoke test. But in fact, the test case function retained an invalid deletion configuration code. We added a repair patch and forgot to delete the invalid code. Now we delete it --- smoketest/scripts/cli/test_interfaces_bridge.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py index a6b96c9bd..8f03290be 100755 --- a/smoketest/scripts/cli/test_interfaces_bridge.py +++ b/smoketest/scripts/cli/test_interfaces_bridge.py @@ -198,10 +198,6 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest): for vif in vifs: # member interface must be assigned to the bridge self.assertTrue(os.path.exists(f'/sys/class/net/{interface}/lower_{member}.{vif}')) - - # remove VLAN interfaces - for vif in vifs: - self.session.delete(['interfaces', 'ethernet', member, 'vif', vif]) # delete all members for interface in self._interfaces: -- cgit v1.2.3