summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-03-03 20:16:57 +0700
committerGitHub <noreply@github.com>2021-03-03 20:16:57 +0700
commit06522e435baff270c794da4aba21ff1e9ba72216 (patch)
tree7c01bb4ae282399008a832447d40a83e1f913070
parent6f591c7b909cac87e1914fa644b3f3f3bd7ed763 (diff)
parent8c879a23f9438f1d0d2acf56134be816ece69e05 (diff)
downloadvyatta-op-vpn-06522e435baff270c794da4aba21ff1e9ba72216.tar.gz
vyatta-op-vpn-06522e435baff270c794da4aba21ff1e9ba72216.zip
Merge pull request #26 from lsenecaux/patch-1
T3380: fix show vpn ike sa with IPv6 Peers
-rw-r--r--lib/OPMode.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index 013e896..4d41a91 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -33,7 +33,7 @@ sub conv_id {
my $peer = pop(@_);
if ( $peer =~ /\d+\.\d+\.\d+\.\d+/ ){
$peer = $peer;
- } elsif ($peer =~ /\d+\:\d+\:\d+\:\d+\:\d+\:\d+\:\d+\:\d+/){
+ } elsif ($peer =~ /([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:([A-Fa-f0-9]+)\:/){
$peer = $peer;
} elsif ($peer =~ /\%any/){
$peer = "any";