summaryrefslogtreecommitdiff
path: root/templates/firewall/broadcast-ping
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:57:35 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:57:35 -0800
commit452e464e0685427cf8ebba908f169857416651f1 (patch)
tree85dde8bf5361c10d028448416ce5d522c15ff212 /templates/firewall/broadcast-ping
parent7a12fbdf94d9a0a92d39801c57a783c536d94034 (diff)
downloadvyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.tar.gz
vyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.zip
convert templates to new syntax
Diffstat (limited to 'templates/firewall/broadcast-ping')
-rw-r--r--templates/firewall/broadcast-ping/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/broadcast-ping/node.def b/templates/firewall/broadcast-ping/node.def
index 5b2dbd5..0a15914 100644
--- a/templates/firewall/broadcast-ping/node.def
+++ b/templates/firewall/broadcast-ping/node.def
@@ -1,11 +1,11 @@
type: txt
-help: "ignore all ICMP ECHO and TIMESTAMP requests sent via broadcast/multicast"
+help: ignore all ICMP ECHO and TIMESTAMP requests sent via broadcast/multicast
default: "disable"
-syntax: $(@) in "enable", "disable"; "broadcast-ping must be enable or disable"
-create: "if [ x$(@) == xenable ]; \
+syntax:expression: $VAR(@) in "enable", "disable"; "broadcast-ping must be enable or disable"
+create:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; fi"
-update: "if [ x$(@) == xenable ]; \
+update:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\"; fi"
-delete: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\""
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts\""