summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-28 13:10:14 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-28 13:10:41 +0000
commit6f26e2694c14fb62d83840c33e39ef61966e0a77 (patch)
treedf6af8216b33d6c05310c23b3686c55414d93658 /src/op_mode
parent2c82c9acbde2ccca9c7bb5e646a45fd646463afe (diff)
downloadvyos-1x-6f26e2694c14fb62d83840c33e39ef61966e0a77.tar.gz
vyos-1x-6f26e2694c14fb62d83840c33e39ef61966e0a77.zip
op-mode: T3951: Fix for reset IPSec tunnels
Fix for correct resetting all child SA's of the tunnel
Diffstat (limited to 'src/op_mode')
-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}')