summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-12 13:18:56 +0300
committerGitHub <noreply@github.com>2023-09-12 13:18:56 +0300
commit87ab93326dfd0566d2ad5aeb3878fed5756c7c87 (patch)
tree8433443fafedab8d3e19e605a6670bf3d41876b0 /smoketest/scripts
parentb47a866c2fdfd7f479342f9e89148f19a04b5903 (diff)
parentd028be894fcbe9c4f01820f3cfb838e73abff4a4 (diff)
downloadvyos-1x-87ab93326dfd0566d2ad5aeb3878fed5756c7c87.tar.gz
vyos-1x-87ab93326dfd0566d2ad5aeb3878fed5756c7c87.zip
Merge pull request #2247 from sever-sever/T5562-sag
T5562: Cleanup netns for smoketest load-balancing wan
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_load_balancing_wan.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_load_balancing_wan.py b/smoketest/scripts/cli/test_load_balancing_wan.py
index 9b2cb0fac..47ca19b27 100755
--- a/smoketest/scripts/cli/test_load_balancing_wan.py
+++ b/smoketest/scripts/cli/test_load_balancing_wan.py
@@ -124,11 +124,12 @@ class TestLoadBalancingWan(VyOSUnitTestSHIM.TestCase):
self.assertEqual(tmp, original)
# Delete veth interfaces and netns
- for iface in [iface1, iface2, iface3, container_iface1, container_iface2, container_iface3]:
+ for iface in [iface1, iface2, iface3]:
call(f'sudo ip link del dev {iface}')
delete_netns(ns1)
delete_netns(ns2)
+ delete_netns(ns3)
def test_check_chains(self):
@@ -246,11 +247,13 @@ class TestLoadBalancingWan(VyOSUnitTestSHIM.TestCase):
self.assertEqual(tmp, nat_vyos_pre_snat_hook)
# Delete veth interfaces and netns
- for iface in [iface1, iface2, iface3, container_iface1, container_iface2, container_iface3]:
+ for iface in [iface1, iface2, iface3]:
call(f'sudo ip link del dev {iface}')
delete_netns(ns1)
delete_netns(ns2)
+ delete_netns(ns3)
+
if __name__ == '__main__':
unittest.main(verbosity=2)