diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-02-25 18:38:04 -0600 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-02-25 18:38:04 -0600 |
commit | 0ad2057f21bbe47996f028c8f696047b80a6159a (patch) | |
tree | 51b40ebc87851802e4990355dbc7e021b636cc03 | |
parent | 50c9069691a190494a6135a56bfad7713cf92310 (diff) | |
download | vyatta-op-vpn-0ad2057f21bbe47996f028c8f696047b80a6159a.tar.gz vyatta-op-vpn-0ad2057f21bbe47996f028c8f696047b80a6159a.zip |
add a function to get the ike state of a peer
-rw-r--r-- | lib/OPMode.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index 1d61800..17499ce 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -569,6 +569,9 @@ sub get_peer_ike_status if (%{$th{$peer}}->{_ikestate} eq 'up'){ return 'up'; } + if (%{$th{$peer}}->{_ikestate} eq 'init'){ + return 'init'; + } } return 'down'; } |