summaryrefslogtreecommitdiff
path: root/templates/zone-policy
diff options
context:
space:
mode:
Diffstat (limited to 'templates/zone-policy')
-rw-r--r--templates/zone-policy/zone/node.tag/from/node.def4
-rw-r--r--templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def4
-rw-r--r--templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def4
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 \