summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick van Staveren <trick@vanstaveren.us>2014-10-03 16:49:40 +0000
committerPatrick van Staveren <trick@vanstaveren.us>2014-10-08 07:30:41 +0000
commit2c680cf8c0a6d6f19c6f20ba2c4e96b2c6e54a56 (patch)
tree0bdda72adf2e7cd6deb872931ae5a1739f1b7e39
parentecd21575b32541890346e911a7d9db69cd312c4a (diff)
downloadvyatta-op-vpn-2c680cf8c0a6d6f19c6f20ba2c4e96b2c6e54a56.tar.gz
vyatta-op-vpn-2c680cf8c0a6d6f19c6f20ba2c4e96b2c6e54a56.zip
Fix 'show vpn ipsec status'
Look for addresses using the local-address node rather than the local-ip node. VyOS Bug #331 http://bugzilla.vyos.net/show_bug.cgi?id=331
-rw-r--r--scripts/vyatta-show-ipsec-status.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-show-ipsec-status.pl b/scripts/vyatta-show-ipsec-status.pl
index eb3f053..faa931e 100644
--- a/scripts/vyatta-show-ipsec-status.pl
+++ b/scripts/vyatta-show-ipsec-status.pl
@@ -49,7 +49,7 @@ sub get_vpn_all_localips {
my @vpn_peers = ();
@vpn_peers = $config->listOrigNodes('peer');
foreach my $peer (@vpn_peers) {
- my $local_ip = $config->returnOrigValue("peer $peer local-ip");
+ my $local_ip = $config->returnOrigValue("peer $peer local-address");
if (!defined($local_ip)){
my $dhcpif = $config->returnOrigValue("peer $peer dhcp-interface");
if (defined($dhcpif)){