From 179380776360cecb049d74263474148e13864f92 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sat, 23 Jul 2022 08:36:08 +0000 Subject: IPsec: T4552: Fix reset vpn ipsec peer When we use IPv6 peer we need to make a replacement ":" => "-" for correct resetting as it doesn't match get_peer_connections() regex Use new format "vyos.opmode" --- op-mode-definitions/vpn-ipsec.xml.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/vpn-ipsec.xml.in b/op-mode-definitions/vpn-ipsec.xml.in index 3d997c143..f1f43755b 100644 --- a/op-mode-definitions/vpn-ipsec.xml.in +++ b/op-mode-definitions/vpn-ipsec.xml.in @@ -19,16 +19,16 @@ Reset a specific tunnel for given peer - sudo ${vyos_op_scripts_dir}/vpn_ipsec.py --action="reset-peer" --name="$4" --tunnel="$6" + sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4" --tunnel="$6" Reset the VTI tunnel for given peer - sudo ${vyos_op_scripts_dir}/vpn_ipsec.py --action="reset-peer" --name="$4" --tunnel="vti" + sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4" --tunnel="vti" - sudo ${vyos_op_scripts_dir}/vpn_ipsec.py --action="reset-peer" --name="$4" --tunnel="all" + sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4" --tunnel="all" -- cgit v1.2.3