diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:56:26 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:56:26 -0800 |
commit | cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9 (patch) | |
tree | 7b15cc7b0fd08ef2c445ef184e6db2318968e654 /templates/interfaces/loopback | |
parent | b55f0e0cad3152fadcc4b51fe2db7f4ca20a8b99 (diff) | |
download | vyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.tar.gz vyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.zip |
convert templates to new syntax
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r-- | templates/interfaces/loopback/node.def | 10 | ||||
-rw-r--r-- | templates/interfaces/loopback/node.tag/address/node.def | 14 | ||||
-rw-r--r-- | templates/interfaces/loopback/node.tag/description/node.def | 2 |
3 files changed, 13 insertions, 13 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" diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def index af19867..410c072 100644 --- a/templates/interfaces/loopback/node.tag/address/node.def +++ b/templates/interfaces/loopback/node.tag/address/node.def @@ -1,10 +1,10 @@ multi: type: txt -help: "Configure an IP address for this interface" -syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)"; "Invalid IP address/prefix [$(@)] for interface $(../@)" -update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on interface $(../@)" -delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on interface $(../@)" -#comp_help:Possible completions: -# <IP address>/<prefix length>\tSet the IP address and prefix length -# dhcp\t\t\t\tSet the IP address and prefix length via DHCP +help: Configure an IP address for this interface +syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)" +update:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; "Error setting address $VAR(@) on interface $VAR(../@)" +delete:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)"; "Error deleting address $VAR(@) on interface $VAR(../@)" +comp_help:Possible completions: + <IP address>/<prefix length>\tSet the IP address and prefix length + dhcp\t\t\t\tSet the IP address and prefix length via DHCP diff --git a/templates/interfaces/loopback/node.tag/description/node.def b/templates/interfaces/loopback/node.tag/description/node.def index d457185..835ad40 100644 --- a/templates/interfaces/loopback/node.tag/description/node.def +++ b/templates/interfaces/loopback/node.tag/description/node.def @@ -1,2 +1,2 @@ type: txt -help: "Description for this interface" +help: Description for this interface |