summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-05 21:21:08 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-05 21:30:48 +0100
commitcc78c3c41035842063aea7a863cdc8e56a96b48a (patch)
tree5af7d8b0cd6870a896001235805637514472b935 /smoketest
parentf8b36a74e6530c0f94ce7df6a980a50ead1f409f (diff)
downloadvyos-1x-cc78c3c41035842063aea7a863cdc8e56a96b48a.tar.gz
vyos-1x-cc78c3c41035842063aea7a863cdc8e56a96b48a.zip
smoketest: T3972: test removal of vif-c interfaces
(cherry picked from commit ab111d56410753929979b06899912ea036819405)
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index a508404de..60cad32bb 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -419,6 +419,16 @@ class BasicInterfaceTest:
tmp = read_file(f'/sys/class/net/{vif}/mtu')
self.assertEqual(tmp, self._mtu)
+ # T3972: remove vif-c interfaces from vif-s
+ for interface in self._interfaces:
+ base = self._base_path + [interface]
+ for vif_s in self._qinq_range:
+ base = self._base_path + [interface, 'vif-s', vif_s, 'vif-c']
+ self.cli_delete(base)
+
+ self.cli_commit()
+
+
def test_interface_ip_options(self):
if not self._test_ip:
self.skipTest('not supported')