summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback/node.def
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:56:26 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:56:26 -0800
commitcc053cd4a6ba9bbe1842ae9d43c8a332598df2f9 (patch)
tree7b15cc7b0fd08ef2c445ef184e6db2318968e654 /templates/interfaces/loopback/node.def
parentb55f0e0cad3152fadcc4b51fe2db7f4ca20a8b99 (diff)
downloadvyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.tar.gz
vyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.zip
convert templates to new syntax
Diffstat (limited to 'templates/interfaces/loopback/node.def')
-rw-r--r--templates/interfaces/loopback/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def
index abc3203..72888fc 100644
--- a/templates/interfaces/loopback/node.def
+++ b/templates/interfaces/loopback/node.def
@@ -1,9 +1,9 @@
tag:
type: txt
-help: "Loopback interface name"
-syntax: exec " \
- if [ -z \"`ip addr | grep $(@) `\" ]; then \
- echo loopback interface $(@) doesn\\'t exist on this system ; \
+help: Loopback interface name
+syntax:expression: exec " \
+ if [ -z \"`ip addr | grep $VAR(@) `\" ]; then \
+ echo loopback interface $VAR(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
-update: "sudo ip link set $(@) up"
+update:expression: "sudo ip link set $VAR(@) up"