summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Mohan <saurabh.mohan@vyatta.com>2012-12-26 14:15:22 -0800
committerSaurabh Mohan <saurabh.mohan@vyatta.com>2012-12-26 14:15:22 -0800
commit4e3bc226c81a3a420e894d25ab9b2a971717a451 (patch)
treec9bf13521e575bd959e06ae3618a313991267b42
parentd0ff37ea2546af6b22827b25c2ecec0ea59835be (diff)
downloadvyatta-op-vpn-4e3bc226c81a3a420e894d25ab9b2a971717a451.tar.gz
vyatta-op-vpn-4e3bc226c81a3a420e894d25ab9b2a971717a451.zip
Support for dmvpn-ipsec connections in op-vpn.
-rw-r--r--lib/OPMode.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index de39f71..5ed7226 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -177,6 +177,9 @@ sub process_tunnels{
foreach my $line (@ipsecstatus) {
if (($line =~ /\"(peer-.*-tunnel-.*?)\"/)){
my $connectid = $1;
+ if (($line =~ /\"(peer-.*-tunnel-.*?)\"(\[\d*\])/)){
+ $connectid .= $2;
+ }
$connectid =~ /peer-(.*)-tunnel-(.*)/;
my $peer = $1;
my $tunid = $2;