diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-11 17:18:12 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-11 17:18:12 -0700 |
commit | 567e9672429a000843e53125fdff42555df42aa8 (patch) | |
tree | e7cf4d5a844902d21054d1e4bbdbbbe15140bc8e /templates/show | |
parent | 3ca6767991234b41db083d311eeffcc3de50a576 (diff) | |
download | vyatta-op-vpn-567e9672429a000843e53125fdff42555df42aa8.tar.gz vyatta-op-vpn-567e9672429a000843e53125fdff42555df42aa8.zip |
remove CLI backend env variables usage
* use the new cli-shell-api instead.
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/vpn/debug/detail/node.def | 3 | ||||
-rw-r--r-- | templates/show/vpn/debug/node.def | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/show/vpn/debug/detail/node.def b/templates/show/vpn/debug/detail/node.def index 3ee980c..ee3604d 100644 --- a/templates/show/vpn/debug/detail/node.def +++ b/templates/show/vpn/debug/detail/node.def @@ -1,5 +1,6 @@ help: Show detailed VPN debugging information -run: if [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/ipsec-interfaces/interface 2>/dev/null`" ] ; then +run: if [ -n "$(cli-shell-api returnActiveValues \ + vpn ipsec ipsec-interfaces interface)" ]; then if pgrep pluto > /dev/null then /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=show-vpn-debug-detail diff --git a/templates/show/vpn/debug/node.def b/templates/show/vpn/debug/node.def index b5848c6..7a33888 100644 --- a/templates/show/vpn/debug/node.def +++ b/templates/show/vpn/debug/node.def @@ -1,5 +1,6 @@ help: Show VPN debugging information -run: if [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/ipsec-interfaces/interface 2>/dev/null`" ] ; then +run: if [ -n "$(cli-shell-api returnActiveValues \ + vpn ipsec ipsec-interfaces interface)" ]; then if pgrep pluto > /dev/null then /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=show-vpn-debug |