summaryrefslogtreecommitdiff
path: root/templates/firewall/ip-src-route
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/ip-src-route
parent7a12fbdf94d9a0a92d39801c57a783c536d94034 (diff)
downloadvyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.tar.gz
vyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.zip
convert templates to new syntax
Diffstat (limited to 'templates/firewall/ip-src-route')
-rw-r--r--templates/firewall/ip-src-route/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/firewall/ip-src-route/node.def b/templates/firewall/ip-src-route/node.def
index 1eed14d..46ff9f4 100644
--- a/templates/firewall/ip-src-route/node.def
+++ b/templates/firewall/ip-src-route/node.def
@@ -1,11 +1,11 @@
type: txt
-help: "Accept packets with SRR option"
+help: Accept packets with SRR option
default: "disable"
-syntax: $(@) in "enable", "disable"; "ip-src-route must be enable or disable"
-create: "if [ x$(@) == xenable ]; \
+syntax:expression: $VAR(@) in "enable", "disable"; "ip-src-route must be enable or disable"
+create:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; fi"
-update: "if [ x$(@) == xenable ]; \
+update:expression: "if [ x$VAR(@) == xenable ]; \
then sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; \
else sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\"; fi"
-delete: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\""
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route\""