summaryrefslogtreecommitdiff
path: root/scripts/vpn-config.pl
diff options
context:
space:
mode:
authorDmitriyEshenko <snooppy@mail.ua>2019-10-31 07:45:34 +0000
committerDmitriyEshenko <snooppy@mail.ua>2019-10-31 07:45:34 +0000
commit495c59a20cf35aeb5449f9166859f823c0ab08a7 (patch)
treeb43d2f4be0894f4ff41a24da4432b1b30f9188e1 /scripts/vpn-config.pl
parent2ff7343c11aad93d1d6e00c9bb8ac316d9320227 (diff)
downloadvyatta-cfg-vpn-495c59a20cf35aeb5449f9166859f823c0ab08a7.tar.gz
vyatta-cfg-vpn-495c59a20cf35aeb5449f9166859f823c0ab08a7.zip
T1780 Adding IPSec IKE close-action
Diffstat (limited to 'scripts/vpn-config.pl')
-rwxr-xr-xscripts/vpn-config.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index d68e419..369e568 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -811,6 +811,14 @@ if ($vcVPN->exists('ipsec')) {
}
#
+ # Check for closeaction
+ #
+ my $close_act = $vcVPN->returnValue("ipsec ike-group $ike_group close-action");
+ if (defined($close_act)) {
+ $genout .= "\tcloseaction=$close_act\n";
+ }
+
+ #
# Allow the user for force UDP encapsulation for the ESP
# payload.
#