diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-03-17 16:06:45 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-03-17 16:06:45 -0700 |
commit | 16449e27476cc049e22122a26b8482343b37d30b (patch) | |
tree | dc1938385adeca883e1ded60c1615b8b44c2817b /templates | |
parent | 755403c24d59647b7dcfa10268fe8b7bdf0906f5 (diff) | |
download | vyatta-op-vpn-16449e27476cc049e22122a26b8482343b37d30b.tar.gz vyatta-op-vpn-16449e27476cc049e22122a26b8482343b37d30b.zip |
Fix Bug 5464 "show vpn ipsec status" returns no interface and active tunnel number
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/vpn/ipsec/status/node.def | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/show/vpn/ipsec/status/node.def b/templates/show/vpn/ipsec/status/node.def index 4611fdd..bf4ebf7 100644 --- a/templates/show/vpn/ipsec/status/node.def +++ b/templates/show/vpn/ipsec/status/node.def @@ -1,7 +1,6 @@ help: Show status of IPsec process -run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_status.xsl - if pgrep pluto >&/dev/null; then - active_tunnels=`ipsec status 2> /dev/null | grep -i "ipsec sa established" | wc -l | sed s/\ //g` - echo "$active_tunnels Active IPsec Tunnels" - echo - fi +run: if pgrep pluto >&/dev/null; then + /opt/vyatta/bin/sudo-users/vyatta-show-ipsec-status.pl + else + echo -e "IPSec Process NOT Running\n" + fi |