From 6f26e2694c14fb62d83840c33e39ef61966e0a77 Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Thu, 28 Oct 2021 13:10:14 +0000 Subject: op-mode: T3951: Fix for reset IPSec tunnels Fix for correct resetting all child SA's of the tunnel --- src/op_mode/vpn_ipsec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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}') -- cgit v1.2.3