summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-12-10 23:23:44 +0800
committerjack9603301 <jack9603301@163.com>2020-12-13 02:12:45 +0800
commitc4048b2047f693436b38196632cddf65beb67a86 (patch)
tree62a140416830d1c9f72636f3e72680f15279dbb3 /smoketest
parente6e87c839f8dc458dcf2962ea936329e972fbafc (diff)
downloadvyos-1x-c4048b2047f693436b38196632cddf65beb67a86.tar.gz
vyos-1x-c4048b2047f693436b38196632cddf65beb67a86.zip
interfaces: T3114: Fix VLAN-aware bridge setting failure
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bridge.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py
index 9bddede31..0072a4d3b 100755
--- a/smoketest/scripts/cli/test_interfaces_bridge.py
+++ b/smoketest/scripts/cli/test_interfaces_bridge.py
@@ -45,10 +45,25 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
for tmp in Section.interfaces("ethernet"):
if not '.' in tmp:
self._members.append(tmp)
+
+ self.session.set(['interfaces','dummy','dum0'])
+ self.session.set(['interfaces','dummy','dum1'])
+ self.session.commit()
+ self.session.set(['interfaces','bonding','bond1','member','interface','dum0'])
+ self.session.set(['interfaces','bonding','bond1','member','interface','dum1'])
+ self.session.commit()
+ for tmp in Section.interfaces("bonding"):
+ if not '.' in tmp:
+ self._members.append(tmp)
self._options['br0'] = []
for member in self._members:
self._options['br0'].append(f'member interface {member}')
+
+ def tearDown(self):
+ self.session.delete(['interfaces','bonding'])
+ self.session.delete(['interfaces','dummy'])
+ super().tearDown()
def test_add_remove_member(self):
""" Add member interfaces to bridge and set STP cost/priority """
@@ -56,6 +71,7 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
base = self._base_path + [interface]
self.session.set(base + ['stp'])
self.session.set(base + ['address', '192.0.2.1/24'])
+ self.session.commit()
cost = 1000
priority = 10