summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-08-20 10:56:12 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-08-20 10:56:12 -0700
commitcce3edda06ba475500f7efdb7f6367b69a098c3b (patch)
tree51477772e42a667bd3ce2ec32c160c6c89c06de6
parent67aa219b0922a6f84a39970044ddf438fde2b197 (diff)
downloadvyatta-cfg-vpn-cce3edda06ba475500f7efdb7f6367b69a098c3b.tar.gz
vyatta-cfg-vpn-cce3edda06ba475500f7efdb7f6367b69a098c3b.zip
added support in configuration script to support tunnel disable node.
-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 af3f432..600a7fa 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -410,6 +410,14 @@ if ($vcVPN->exists('ipsec')) {
}
foreach my $tunnel (@tunnels) {
+ #
+ # Add support for tunnel disable.
+ #
+ if ($vcVPN->exists("ipsec site-to-site peer $peer tunnel $tunnel disable")) {
+ next;
+ }
+
+
my $peer_tunnel_esp_group = $vcVPN->returnValue("ipsec site-to-site peer $peer tunnel $tunnel esp-group");
if (!defined($peer_tunnel_esp_group) || $peer_tunnel_esp_group eq '') {
$error = 1;