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/ethernet/node.def | |
parent | b55f0e0cad3152fadcc4b51fe2db7f4ca20a8b99 (diff) | |
download | vyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.tar.gz vyatta-cfg-cc053cd4a6ba9bbe1842ae9d43c8a332598df2f9.zip |
convert templates to new syntax
Diffstat (limited to 'templates/interfaces/ethernet/node.def')
-rw-r--r-- | templates/interfaces/ethernet/node.def | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index cfaf798..b42e488 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -1,15 +1,15 @@ tag: type: txt -help: "Ethernet interface name" -syntax: exec " \ - if [ -z \"`ip link | egrep -v 'eth[0-9]+[.]' | grep $(@)`\" ]; then \ - echo Invalid ethernet interface [$(@)]; \ +help: Ethernet interface name +syntax:expression: exec " \ + if [ -z \"`ip link | egrep -v 'eth[0-9]+[.]' | grep $VAR(@)`\" ]; then \ + echo Invalid ethernet interface [$VAR(@)]; \ exit 1 ; \ fi ; " -update: "sudo ip link set $(@) up" ; "Error enabling dev $(@)" -update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(@)\" \ +update:expression: "sudo ip link set $VAR(@) up" ; "Error enabling dev $VAR(@)" +update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(@)\" \ -c \"link-detect\"; " -delete: "sudo ip link set $(@) down" ; "Error disabling dev $(@)" -#allowed: local -a array ; -# array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ; -# echo -n ${array[@]##*/} +delete:expression: "sudo ip link set $VAR(@) down" ; "Error disabling dev $VAR(@)" +allowed: local -a array ; + array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ; + echo -n ${array[@]##*/} |