diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-10-28 13:10:14 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-10-28 13:10:41 +0000 |
commit | 6f26e2694c14fb62d83840c33e39ef61966e0a77 (patch) | |
tree | df6af8216b33d6c05310c23b3686c55414d93658 | |
parent | 2c82c9acbde2ccca9c7bb5e646a45fd646463afe (diff) | |
download | vyos-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
-rwxr-xr-x | src/op_mode/vpn_ipsec.py | 2 |
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}') |