summaryrefslogtreecommitdiff
path: root/templates/show/firewall/ipv6-modify
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/firewall/ipv6-modify')
-rw-r--r--templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def5
-rw-r--r--templates/show/firewall/ipv6-modify/node.tag/node.def6
-rw-r--r--templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def5
3 files changed, 11 insertions, 5 deletions
diff --git a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def
index e2cf0a6..9fcb7a1 100644
--- a/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def
+++ b/templates/show/firewall/ipv6-modify/node.tag/detail/rule/node.tag/node.def
@@ -1,5 +1,8 @@
help: Show detailed information for specified IPv6 firewall modify rule
-allowed: ls /opt/vyatta/config/active/firewall/ipv6-modify/${COMP_WORDS[COMP_CWORD-3]}/rule/ 2>/dev/null
+allowed: local -a vals
+ eval "vals=($(cli-shell-api listActiveNodes \
+ firewall ipv6-modify ${COMP_WORDS[COMP_CWORD-3]} rule))"
+ echo -n ${vals[@]}
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall_detail.xsl "$7"
diff --git a/templates/show/firewall/ipv6-modify/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/node.def
index 5fea204..d184b97 100644
--- a/templates/show/firewall/ipv6-modify/node.tag/node.def
+++ b/templates/show/firewall/ipv6-modify/node.tag/node.def
@@ -1,7 +1,7 @@
help: Show rules for given IPv6 firewall modify chain
-allowed:
- l1=`ls /opt/vyatta/config/active/firewall/ipv6-modify/ 2>/dev/null`
- echo $l1
+allowed: local -a vals
+ eval "vals=($(cli-shell-api listActiveNodes firewall ipv6-modify))"
+ echo -n ${vals[@]}
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl
diff --git a/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def b/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def
index 3fff5e7..d0aa3db 100644
--- a/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def
+++ b/templates/show/firewall/ipv6-modify/node.tag/rule/node.tag/node.def
@@ -1,5 +1,8 @@
help: Show summary of IPv6 firewall modify rules
-allowed: ls /opt/vyatta/config/active/firewall/ipv6-modify/${COMP_WORDS[COMP_CWORD-2]}/rule/ 2>/dev/null
+allowed: local -a vals
+ eval "vals=($(cli-shell-api listActiveNodes \
+ firewall ipv6-modify ${COMP_WORDS[COMP_CWORD-2]} rule))"
+ echo -n ${vals[@]}
run: ${vyatta_bindir}/vyatta-show-firewall.pl "$3_$4" /opt/vyatta/share/xsl/show_firewall.xsl "$6"