summaryrefslogtreecommitdiff
path: root/src/op_mode/vpn_ipsec.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-28 20:14:45 +0200
committerGitHub <noreply@github.com>2021-10-28 20:14:45 +0200
commitf54a877b93fb2a72c956d934938baa15f48e087c (patch)
tree6e80eb99ed16a6811cf498eef1c128b1db6cec3e /src/op_mode/vpn_ipsec.py
parentdf02d40fe93cd1ca9f7248a30ccc2f78c0527a44 (diff)
parent6f26e2694c14fb62d83840c33e39ef61966e0a77 (diff)
downloadvyos-1x-f54a877b93fb2a72c956d934938baa15f48e087c.tar.gz
vyos-1x-f54a877b93fb2a72c956d934938baa15f48e087c.zip
Merge pull request #1048 from sever-sever/T3951
op-mode: T3951: Fix for reset IPSec tunnels
Diffstat (limited to 'src/op_mode/vpn_ipsec.py')
-rwxr-xr-xsrc/op_mode/vpn_ipsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/vpn_ipsec.py b/src/op_mode/vpn_ipsec.py
index 06e227ccf..40854fa8f 100755
--- a/src/op_mode/vpn_ipsec.py
+++ b/src/op_mode/vpn_ipsec.py
@@ -48,7 +48,7 @@ def reset_peer(peer, tunnel):
result = True
for conn in conns:
try:
- call(f'sudo /usr/sbin/ipsec down {conn}', timeout = 10)
+ call(f'sudo /usr/sbin/ipsec down {conn}{{*}}', timeout = 10)
call(f'sudo /usr/sbin/ipsec up {conn}', timeout = 10)
except TimeoutExpired as e:
print(f'Timed out while resetting {conn}')