summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/OPMode.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index 8f17a7a..1d61800 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -561,6 +561,17 @@ sub get_connection_status
}
}
}
+sub get_peer_ike_status
+{
+ my ($peerid) = @_;
+ my %th = get_tunnel_info_peer($peerid);
+ for my $peer ( keys %th ) {
+ if (%{$th{$peer}}->{_ikestate} eq 'up'){
+ return 'up';
+ }
+ }
+ return 'down';
+}
sub show_ipsec_sa_natt
{