summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-05-19 06:31:06 +0700
committerGitHub <noreply@github.com>2021-05-19 06:31:06 +0700
commiteed8b0fcaa75cbe2ca0784844febbc9a0dd27380 (patch)
treef104abfa57a5207e6c5b68a27d9a1171971e6243
parent06522e435baff270c794da4aba21ff1e9ba72216 (diff)
parent61246089c787c231639b66ae903c933a339b5b68 (diff)
downloadvyatta-op-vpn-eed8b0fcaa75cbe2ca0784844febbc9a0dd27380.tar.gz
vyatta-op-vpn-eed8b0fcaa75cbe2ca0784844febbc9a0dd27380.zip
Merge pull request #27 from sever-sever/T1995
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 4d41a91..fa1f428 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}),