summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_interfaces_test.py
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:21:08 +0100
commitab111d56410753929979b06899912ea036819405 (patch)
tree7e9ccc569fcc07c7a010d90e96db944bff7413ce /smoketest/scripts/cli/base_interfaces_test.py
parentb3be36586c85005538d5cc994c7c9694b9907d81 (diff)
downloadvyos-1x-ab111d56410753929979b06899912ea036819405.tar.gz
vyos-1x-ab111d56410753929979b06899912ea036819405.zip
smoketest: T3972: test removal of vif-c interfaces
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-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 90c534796..340ec4edd 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -493,6 +493,16 @@ class BasicInterfaceTest:
tmp = get_interface_config(vif)
self.assertEqual(tmp['mtu'], int(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_vif_s_protocol_change(self):
# XXX: This testcase is not allowed to run as first testcase, reason
# is the Wireless test will first load the wifi kernel hwsim module