summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-01-15 12:05:56 +0800
committerjack9603301 <jack9603301@163.com>2021-01-15 16:26:34 +0800
commitac41073bffb8a9080beeb6f164307a8cce5ee1d8 (patch)
tree1b4f6033a05c049ab3f2f339a2c45c363e892c4c /smoketest/scripts/cli
parent8623a8bf6d394050a671c00ce400d13f4a6b4043 (diff)
downloadvyos-1x-ac41073bffb8a9080beeb6f164307a8cce5ee1d8.tar.gz
vyos-1x-ac41073bffb8a9080beeb6f164307a8cce5ee1d8.zip
smoketest: bridge: T3137: Optimize smoketest
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bridge.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bridge.py b/smoketest/scripts/cli/test_interfaces_bridge.py
index c1e98cc67..3367cca5c 100755
--- a/smoketest/scripts/cli/test_interfaces_bridge.py
+++ b/smoketest/scripts/cli/test_interfaces_bridge.py
@@ -32,6 +32,7 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
self._test_ip = True
self._test_ipv6 = True
self._test_ipv6_pd = True
+ self._test_vlan = True
self._base_path = ['interfaces', 'bridge']
self._mirror_interfaces = ['dum21354']
self._members = []
@@ -91,6 +92,12 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
self.session.delete(self._base_path + [interface, 'member'])
self.session.commit()
+
+ def test_8021q_vlan_interfaces(self):
+ for interface in self._interfaces:
+ base = self._base_path + [interface]
+ self.session.set(base + ['enable-vlan'])
+ super().test_8021q_vlan_interfaces()
def test_bridge_vlan_filter(self):
@@ -169,12 +176,6 @@ class BridgeInterfaceTest(BasicInterfaceTest.BaseTest):
for member in self._members:
self.assertIn(member, bridge_members)
- # Check VLAN sub interface
- for intf in self._interfaces:
- vif = f'{intf}.{vif_vlan}'
- tmp = read_file(f'/sys/class/net/{vif}/mtu')
- self.assertEqual(tmp, self._mtu)
-
# delete all members
for interface in self._interfaces:
self.session.delete(self._base_path + [interface, 'member'])