diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-12-28 13:15:49 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-12-28 13:15:49 +0000 |
commit | 1dff71494b3ddea72de3df2d08105fe9d8a90c95 (patch) | |
tree | f9df934b7b4f503ee9a5a8e45db3e478c040a00a | |
parent | f86112e1f028df6e7dc9c13efcc2973860cc3723 (diff) | |
download | vyatta-op-vpn-1dff71494b3ddea72de3df2d08105fe9d8a90c95.tar.gz vyatta-op-vpn-1dff71494b3ddea72de3df2d08105fe9d8a90c95.zip |
vpn: T3380: Fix for op-mode regex for IPv6 IPSec IKE sa
Set correct regex to detect IKE statuses for IPv6 IPSec peers
-rw-r--r-- | lib/OPMode.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index 4c34f1e..cb5e744 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-f0-9\:]+\:+)+[a-f0-9]+/){ $peer = $peer; } elsif ($peer =~ /\%any/){ $peer = "any"; |