summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-14 20:44:18 +0100
committerDaniil Baturin <daniil@baturin.org>2015-02-14 20:44:18 +0100
commitb507f731fc0bc29d295c38199d805545c85d956a (patch)
treeeca80e30cdeb6f8aafd2ebd45ab4677f37643725
parent0a467ff39b07747efa844a41f01ce0dce500b1f4 (diff)
downloadvyatta-cfg-firewall-b507f731fc0bc29d295c38199d805545c85d956a.tar.gz
vyatta-cfg-firewall-b507f731fc0bc29d295c38199d805545c85d956a.zip
Bug #487: complete names for added but not commited firewall rulesets.
-rwxr-xr-xgen-interface-policy-templates.pl2
-rwxr-xr-xgen-interface-templates.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/gen-interface-policy-templates.pl b/gen-interface-policy-templates.pl
index 8f9ee38..884dc67 100755
--- a/gen-interface-policy-templates.pl
+++ b/gen-interface-policy-templates.pl
@@ -158,7 +158,7 @@ sub gen_template {
type: txt
help: $table_help_hash{$table} ruleset for interface
allowed: local -a params
- eval "params=(\$(cli-shell-api listActiveNodes policy $table))"
+ eval "params=(\$(cli-shell-api listNodes policy $table))"
echo -n "\${params[@]}"
create: ifname=$if_name
sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-interfaces \\
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index 8531eb9..7c037b6 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -241,7 +241,7 @@ sub gen_template {
type: txt
help: $action $table_help_hash{$table} ruleset name for interface
allowed: local -a params
- eval "params=(\$(cli-shell-api listActiveNodes firewall $table))"
+ eval "params=(\$(cli-shell-api listNodes firewall $table))"
echo -n "\${params[@]}"
create: ifname=$if_name
sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-interfaces \\