summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-03-17 16:06:45 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-03-17 16:06:45 -0700
commit16449e27476cc049e22122a26b8482343b37d30b (patch)
treedc1938385adeca883e1ded60c1615b8b44c2817b /templates
parent755403c24d59647b7dcfa10268fe8b7bdf0906f5 (diff)
downloadvyatta-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.def11
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