summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-12 21:44:37 +0100
committerGitHub <noreply@github.com>2020-12-12 21:44:37 +0100
commit505c5efaf1e852a3e90276baacdb235c4c3e41b2 (patch)
tree1eb2ee75b5b4343df2152a9b85cbb303aa41ce4f /smoketest/scripts
parente6e87c839f8dc458dcf2962ea936329e972fbafc (diff)
parentd03176d70e6390f42c4e46451770dc5f86864bac (diff)
downloadvyos-1x-505c5efaf1e852a3e90276baacdb235c4c3e41b2.tar.gz
vyos-1x-505c5efaf1e852a3e90276baacdb235c4c3e41b2.zip
Merge pull request #638 from jack9603301/T3114
interfaces: T3114: Fix VLAN-aware bridge setting failure
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bridge.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py
index 9bddede31..6c1efaf75 100755
--- a/smoketest/scripts/cli/test_interfaces_bridge.py
+++ b/smoketest/scripts/cli/test_interfaces_bridge.py
@@ -45,10 +45,21 @@ 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.set(['interfaces','bonding','bond1','member','interface','dum0'])
+ self.session.set(['interfaces','bonding','bond1','member','interface','dum1'])
+ self._members.append('bond1')
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 """