summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-25 12:38:37 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-25 12:38:44 +0000
commit1eb4d86d2daaf2abba4316cb4dc259a7e0a29f08 (patch)
treecf49060403d7358c98d84de6c7ef3bc0d9fed611
parent5982a081d0cddbf61abf175f826e82d325e6ccb0 (diff)
downloadvyatta-op-vpn-1eb4d86d2daaf2abba4316cb4dc259a7e0a29f08.tar.gz
vyatta-op-vpn-1eb4d86d2daaf2abba4316cb4dc259a7e0a29f08.zip
ipsec-op: T3341: Fix for resetting peer tunnel
The current resetting is affected for parent SA, in that case all child SA's are ressetting This commit fix such behaviour for correct resetting child SA's.
-rwxr-xr-xscripts/vyatta-vpn-op.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-vpn-op.pl b/scripts/vyatta-vpn-op.pl
index 6d96bec..8bf0301 100755
--- a/scripts/vyatta-vpn-op.pl
+++ b/scripts/vyatta-vpn-op.pl
@@ -48,7 +48,7 @@ sub clear_tunnel {
print "Resetting tunnel $tunnel with peer $peer...\n";
# bring down the tunnel
- `sudo /usr/sbin/ipsec down peer-$peer-tunnel-$tunnel`;
+ `sudo /usr/sbin/ipsec down peer-$peer-tunnel-$tunnel\{\*\}`;
# bring up the tunnel
`sudo /usr/sbin/ipsec up peer-$peer-tunnel-$tunnel`;
}