diff options
Diffstat (limited to 'templates/clear/firewall/ipv6-modify')
-rw-r--r-- | templates/clear/firewall/ipv6-modify/node.tag/node.def | 4 | ||||
-rw-r--r-- | templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/clear/firewall/ipv6-modify/node.tag/node.def b/templates/clear/firewall/ipv6-modify/node.tag/node.def index 521953c..693c0ae 100644 --- a/templates/clear/firewall/ipv6-modify/node.tag/node.def +++ b/templates/clear/firewall/ipv6-modify/node.tag/node.def @@ -1,2 +1,4 @@ help: Clear firewall rules for a given chain -allowed: ls /opt/vyatta/config/active/firewall/ipv6-modify/ 2>/dev/null +allowed: local -a vals + eval "vals=($(cli-shell-api listActiveNodes firewall ipv6-modify))" + echo -n ${vals[@]} diff --git a/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def index dc954f5..f777438 100644 --- a/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def +++ b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def @@ -1,2 +1,5 @@ help: Clear firewall statistics for given rule -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[@]} |