summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_bridge.py
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-11-14 15:44:12 +0800
committerjack9603301 <jack9603301@163.com>2020-11-14 15:44:12 +0800
commit68b7cbe11dbe14109d9b4c564f2499b574309665 (patch)
tree1a1e7476cc77f54f2df34686f13a4f3b39b05b06 /smoketest/scripts/cli/test_interfaces_bridge.py
parent7106e90daf7c15f167f38f7715facef37c141f4f (diff)
downloadvyos-1x-68b7cbe11dbe14109d9b4c564f2499b574309665.tar.gz
vyos-1x-68b7cbe11dbe14109d9b4c564f2499b574309665.zip
bridge: T3042: Better fix implementation errors
In #601, I provided a basic patch. Under this patch, I rely on vif to detect the vlan id range that the bridge should flow through, which may lead to greater redundancy in the configuration, so I am considering detecting effective vlan filters In setting the range of vlan id that is required to flow through the bridge, I use set() to complete the deduplication of this vlan id and set it to the bridge uniformly (at the same time, I slightly modified the smoke test script)
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_bridge.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bridge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py
index 3b7f1bc9a..3742491e8 100755
--- a/smoketest/scripts/cli/test_interfaces_bridge.py
+++ b/smoketest/scripts/cli/test_interfaces_bridge.py
@@ -87,7 +87,7 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
""" Add member interface to bridge and set VLAN filter """
for interface in self._interfaces:
base = self._base_path + [interface]
- self.session.set(base + ['address', '192.0.2.1/24'])
+ self.session.set(base + ['vif', '1','address', '192.0.2.1/24'])
self.session.set(base + ['vif', '2','address','192.0.3.1/24'])
vlan_id = 101