summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-31 13:02:12 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-31 13:06:22 +0000
commitc273b7db78542fdd707b53ae8face50daaf95588 (patch)
tree68ecc080ff3c88b7e9c7f97334fc68b8d82464ca
parenta9c2f95211a4b992a75adbdd8c404bdda96caf15 (diff)
downloadvyatta-op-vpn-c273b7db78542fdd707b53ae8face50daaf95588.tar.gz
vyatta-op-vpn-c273b7db78542fdd707b53ae8face50daaf95588.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 resetting (if one peer have a several tunnels) This commit fixes such behavior 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`;
}