diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-17 18:23:45 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-17 18:23:45 -0700 |
commit | fb51829bb0331dff762fd558d75ddc08154b010d (patch) | |
tree | 93d3f54e335661b573fe0a71e512034bcd3749c7 /templates/clear/firewall/ipv6-name | |
parent | 89e458ec902617b04898be427d2b6546e91de460 (diff) | |
download | vyatta-op-firewall-fb51829bb0331dff762fd558d75ddc08154b010d.tar.gz vyatta-op-firewall-fb51829bb0331dff762fd558d75ddc08154b010d.zip |
remove low-level config dir usage
Diffstat (limited to 'templates/clear/firewall/ipv6-name')
-rw-r--r-- | templates/clear/firewall/ipv6-name/node.tag/node.def | 4 | ||||
-rw-r--r-- | templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/clear/firewall/ipv6-name/node.tag/node.def b/templates/clear/firewall/ipv6-name/node.tag/node.def index b35fe00..1019010 100644 --- a/templates/clear/firewall/ipv6-name/node.tag/node.def +++ b/templates/clear/firewall/ipv6-name/node.tag/node.def @@ -1,2 +1,4 @@ help: Clear firewall rules for a given chain -allowed: ls /opt/vyatta/config/active/firewall/ipv6-name/ 2>/dev/null +allowed: local -a vals + eval "vals=($(cli-shell-api listActiveNodes firewall ipv6-name))" + echo -n ${vals[@]} diff --git a/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def b/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def index f740f57..2798002 100644 --- a/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def +++ b/templates/clear/firewall/ipv6-name/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-name/${COMP_WORDS[COMP_CWORD-2]}/rule/ 2>/dev/null +allowed: local -a vals + eval "vals=($(cli-shell-api listActiveNodes \ + firewall ipv6-name ${COMP_WORDS[COMP_CWORD-2]} rule))" + echo -n ${vals[@]} |