summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-06 16:55:22 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-06 16:55:22 -0800
commit4468c4cca32f0cc968bb04b43cd0890bee37867a (patch)
treea28399ca380eff4ac78b2420183fd91940506ee4 /gen-interface-templates.pl
parent097898aae93091ff802f17572b2e2bf1520d0d26 (diff)
downloadvyatta-cfg-firewall-4468c4cca32f0cc968bb04b43cd0890bee37867a.tar.gz
vyatta-cfg-firewall-4468c4cca32f0cc968bb04b43cd0890bee37867a.zip
Fix help text for firewall interface rules
Bug 6111 Don't use "Set inbound" instead use "Inbound"
Diffstat (limited to 'gen-interface-templates.pl')
-rwxr-xr-xgen-interface-templates.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index a27d834..3d9a5b0 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -178,9 +178,10 @@ sub gen_template {
open my $tp, '>', "${template_dir}/${node_file}"
or die "Can't open ${template_dir}/${node_file}:$!";
+ my $action = ucfirst($direction_term_hash{$direction});
print $tp <<EOF;
type: txt
-help: Set $direction_term_hash{$direction} $table_help_hash{$table} ruleset name for interface
+help: $action $table_help_hash{$table} ruleset name for interface
allowed: local -a params
eval "params=(\$(cli-shell-api listActiveNodes firewall $table))"
echo -n "\${params[@]}"