summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 18:32:24 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 18:32:24 -0700
commit48d12c6e4d2089e15662f1e693cbf6e68ed5db37 (patch)
tree1b7f63545da2ad20c9fca7b1d054d668f1b96564 /gen-interface-templates.pl
parentd72e140c2a159facaf378f0e644398f0dc4db3e9 (diff)
downloadvyatta-cfg-firewall-48d12c6e4d2089e15662f1e693cbf6e68ed5db37.tar.gz
vyatta-cfg-firewall-48d12c6e4d2089e15662f1e693cbf6e68ed5db37.zip
remove low-level config dir usage
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