diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-16 18:51:35 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-16 18:51:35 -0700 |
commit | d884817a4643d15d3a7a7c9b3a814cec49b373f1 (patch) | |
tree | 9dab4446e5b53586ffb795a6ce9acc60679c0cf9 /templates/zone-policy/zone | |
parent | a6ec2ff6532ce855c1593bf28bef7df188701688 (diff) | |
download | vyatta-cfg-system-d884817a4643d15d3a7a7c9b3a814cec49b373f1.tar.gz vyatta-cfg-system-d884817a4643d15d3a7a7c9b3a814cec49b373f1.zip |
remove more low-level config dir usages
Diffstat (limited to 'templates/zone-policy/zone')
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/zone-policy/zone/node.tag/from/node.def b/templates/zone-policy/zone/node.tag/from/node.def index 3ce5a328..4aeb199d 100644 --- a/templates/zone-policy/zone/node.tag/from/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.def @@ -5,8 +5,8 @@ help: Zone from which to filter traffic allowed: local -a zones ; - zones=( /opt/vyatta/config/active/zone-policy/zone/* ) - echo -n ${zones[@]##*/} + eval "zones=($(cli-shell-api listActiveNodes zone-policy zone))" + echo -n "${zones[@]}" begin: if ! /opt/vyatta/sbin/vyatta-zone.pl --action=validity-checks --zone-name=none --silent-validate=true; then diff --git a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def index dd098ba2..391a66bc 100644 --- a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def @@ -3,8 +3,8 @@ help: IPv6 firewall ruleset allowed: local -a params ; - params=( /opt/vyatta/config/active/firewall/ipv6-name/* ) - echo -n ${params[@]##*/} + eval "params=($(cli-shell-api listActiveNodes firewall ipv6-name))" + echo -n "${params[@]}" create: if ! /opt/vyatta/sbin/vyatta-zone.pl \ diff --git a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def index b1833f3c..605add4b 100644 --- a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def @@ -3,8 +3,8 @@ help: IPv4 firewall ruleset allowed: local -a params ; - params=( /opt/vyatta/config/active/firewall/name/* ) - echo -n ${params[@]##*/} + eval "params=($(cli-shell-api listActiveNodes firewall name))" + echo -n "${params[@]}" create: if ! /opt/vyatta/sbin/vyatta-zone.pl \ |