summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-05-14 15:42:49 +0000
committerDaniil Baturin <daniil@vyos.io>2021-05-27 17:43:45 +0300
commit5982a081d0cddbf61abf175f826e82d325e6ccb0 (patch)
treef31b2c2c0077be22a0302f537e6858879e376eeb
parent11c24c6758d62d6e59ce3d4315d30b1d80862b8f (diff)
downloadvyatta-op-vpn-5982a081d0cddbf61abf175f826e82d325e6ccb0.tar.gz
vyatta-op-vpn-5982a081d0cddbf61abf175f826e82d325e6ccb0.zip
vpn: T1995: Fix op-mode for ike sa
-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..4c34f1e 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -1281,7 +1281,7 @@ sub display_ike_sa_brief {
my $lip = $th{$connectid}->{_lip};
$peerid = $th{$connectid}->{_rip};
my $tunnel = "$peerid-$lip";
- #next if ($th{$connectid}->{_ikestate} eq 'down');
+ next if ($th{$connectid}->{_ikestate} eq 'down' && $th{$connectid}->{_ikever} eq 'n/a');
if (not exists $tunhash{$tunnel}) {
$tunhash{$tunnel}={
_configpeer => conv_id_rev($th{$connectid}->{_peerid}),