summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
Diffstat (limited to 'gen-interface-templates.pl')
-rwxr-xr-xgen-interface-templates.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index 8f2f71e..10314f1 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -187,8 +187,8 @@ sub gen_template {
type: txt
help: Set $direction_term_hash{$direction} $table_help_hash{$table} ruleset name for interface
allowed: local -a params
- params=( /opt/vyatta/config/active/firewall/${table}/* )
- echo -n \${params[@]##*/}
+ eval "params=(\$(cli-shell-api listActiveNodes firewall $table))"
+ echo -n "\${params[@]}"
create: ifname=$if_name
sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-interfaces \\
update \$ifname $direction \$VAR(@) $table