summaryrefslogtreecommitdiff
path: root/gen-interface-templates.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-03 13:46:51 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-03 13:46:51 -0800
commit7d424b77a5eaa6f638519acb089997bbaa18116e (patch)
treea4ae6a0cda7511a0b2e1aef7d31c69d663e2e4da /gen-interface-templates.pl
parentf00323f17f09109ee4f5d1d436667aad1b3efa8e (diff)
downloadvyatta-cfg-firewall-7d424b77a5eaa6f638519acb089997bbaa18116e.tar.gz
vyatta-cfg-firewall-7d424b77a5eaa6f638519acb089997bbaa18116e.zip
Fix help text in generated templates
Do not use verb (Set) in help text. Do not put date on generated templates (no useful value).
Diffstat (limited to 'gen-interface-templates.pl')
-rwxr-xr-xgen-interface-templates.pl9
1 files changed, 2 insertions, 7 deletions
diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl
index 10314f1..a27d834 100755
--- a/gen-interface-templates.pl
+++ b/gen-interface-templates.pl
@@ -102,8 +102,7 @@ sub gen_firewall_template {
open my $tp, '>', "$path/$node_file"
or die "Can't create $path/$node_file: $!";
- my $date = `date`;
- print $tp "# Template generated at: $date\nhelp: Set firewall options\n";
+ print $tp "help: Firewall options\n";
close $tp
or die "Can't write $path/$node_file: $!";
}
@@ -131,9 +130,7 @@ sub gen_direction_template {
open my $tp, '>', "$path/$node_file"
or die "Can't open $path/$node_file: $!";
- my $date = `date`;
- print $tp "# Template generated at: $date\n";
- print $tp "help: Set ruleset for $direction_help_hash{$direction}\n";
+ print $tp "help: Ruleset for $direction_help_hash{$direction}\n";
close $tp
or die "Can't write $path/$node_file: $!";
}
@@ -181,9 +178,7 @@ sub gen_template {
open my $tp, '>', "${template_dir}/${node_file}"
or die "Can't open ${template_dir}/${node_file}:$!";
- my $date = `date`;
print $tp <<EOF;
-# Template generated at: $date
type: txt
help: Set $direction_term_hash{$direction} $table_help_hash{$table} ruleset name for interface
allowed: local -a params