diff options
author | Mark O'Brien <mobrien@vyatta.com> | 2008-02-27 12:51:08 -0800 |
---|---|---|
committer | Mark O'Brien <mobrien@vyatta.com> | 2008-02-27 12:51:08 -0800 |
commit | b66b819ab898e92a640d4be0c7e47fe65c2a2a44 (patch) | |
tree | ea532fd69aa1159193ca099c31761f5c3702d7d0 | |
parent | 49ef23d4c3a9ed740b68f9a48559a5da42842c73 (diff) | |
parent | 84b6331ed5a7b16af0af21dbd6f9670e7b72876b (diff) | |
download | vyatta-op-vpn-b66b819ab898e92a640d4be0c7e47fe65c2a2a44.tar.gz vyatta-op-vpn-b66b819ab898e92a640d4be0c7e47fe65c2a2a44.zip |
Merge branch 'glendale' of git:/git/vyatta-op-vpn into glendale
-rwxr-xr-x | scripts/vyatta-show-vpn.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-show-vpn.pl b/scripts/vyatta-show-vpn.pl index bad76b5..b5fccee 100755 --- a/scripts/vyatta-show-vpn.pl +++ b/scripts/vyatta-show-vpn.pl @@ -73,12 +73,12 @@ if ($arg0 eq 'rsa-keys') { my $vc = new VyattaConfig(); $vc->setLevel('vpn'); - my @peers = $vc->listNodes('ipsec site-to-site peer'); + my @peers = $vc->listOrigNodes('ipsec site-to-site peer'); foreach my $peer (@peers) { - my $mode = $vc->returnValue("ipsec site-to-site peer $peer authentication mode"); + my $mode = $vc->returnOrigValue("ipsec site-to-site peer $peer authentication mode"); if ($mode eq 'rsa') { - my $rsa_key_name = $vc->returnValue("ipsec site-to-site peer $peer authentication rsa-key-name"); - my $remote_key = $vc->returnValue("rsa-keys rsa-key-name $rsa_key_name rsa-key"); + my $rsa_key_name = $vc->returnOrigValue("ipsec site-to-site peer $peer authentication rsa-key-name"); + my $remote_key = $vc->returnOrigValue("rsa-keys rsa-key-name $rsa_key_name rsa-key"); print "=" x 80, "\n"; print "Peer IP: $peer"; if (defined($rsa_key_name)) { |