diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:57:35 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:57:35 -0800 |
commit | 452e464e0685427cf8ebba908f169857416651f1 (patch) | |
tree | 85dde8bf5361c10d028448416ce5d522c15ff212 /templates/firewall/log-martians | |
parent | 7a12fbdf94d9a0a92d39801c57a783c536d94034 (diff) | |
download | vyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.tar.gz vyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.zip |
convert templates to new syntax
Diffstat (limited to 'templates/firewall/log-martians')
-rw-r--r-- | templates/firewall/log-martians/node.def | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/log-martians/node.def b/templates/firewall/log-martians/node.def index f6a7114..0c107f4 100644 --- a/templates/firewall/log-martians/node.def +++ b/templates/firewall/log-martians/node.def @@ -1,11 +1,11 @@ type: txt -help: "Allow syslog logging of packets with impossible addresses" +help: Allow syslog logging of packets with impossible addresses default: "enable" -syntax: $(@) in "enable", "disable"; "log-martians must be enable or disable" -create: "if [ x$(@) == xenable ]; \ +syntax:expression: $VAR(@) in "enable", "disable"; "log-martians must be enable or disable" +create:expression: "if [ x$VAR(@) == xenable ]; \ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"; \ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/log_martians\"; fi" -update: "if [ x$(@) == xenable ]; \ +update:expression: "if [ x$VAR(@) == xenable ]; \ then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"; \ else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/log_martians\"; fi" -delete: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"" +delete:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/log_martians\"" |