summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_vpn_ipsec.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-18 15:20:16 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-18 15:20:16 +0200
commit0ef9c351598d4182da267e802010aa6ce0d9c6aa (patch)
tree2a9036393a9eac80ba039f6098c4a593dbbcb983 /smoketest/scripts/cli/test_vpn_ipsec.py
parent6f3130ea5c8c3043e4a5377c972b96233f22a5fc (diff)
downloadvyos-1x-0ef9c351598d4182da267e802010aa6ce0d9c6aa.tar.gz
vyos-1x-0ef9c351598d4182da267e802010aa6ce0d9c6aa.zip
smoketest: ipsec: only delete nhrp path where it is used
Diffstat (limited to 'smoketest/scripts/cli/test_vpn_ipsec.py')
-rwxr-xr-xsmoketest/scripts/cli/test_vpn_ipsec.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_vpn_ipsec.py b/smoketest/scripts/cli/test_vpn_ipsec.py
index 71a9d5137..1747c1cfc 100755
--- a/smoketest/scripts/cli/test_vpn_ipsec.py
+++ b/smoketest/scripts/cli/test_vpn_ipsec.py
@@ -126,7 +126,6 @@ class TestVPNIPsec(VyOSUnitTestSHIM.TestCase):
self.assertTrue(process_named_running('charon'))
self.cli_delete(base_path)
- self.cli_delete(nhrp_path)
self.cli_delete(tunnel_path)
self.cli_delete(ethernet_path)
self.cli_commit()
@@ -319,6 +318,9 @@ class TestVPNIPsec(VyOSUnitTestSHIM.TestCase):
for line in swanctl_lines:
self.assertIn(line, swanctl_conf)
+ # There is only one NHRP test so no need to delete this globally in tearDown()
+ self.cli_delete(nhrp_path)
+
def test_05_x509_site2site(self):
# Enable PKI
peer_name = 'peer1'