diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
commit | 622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch) | |
tree | 328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/interfaces/tunnel/node.def | |
parent | c2c002021eab0adff7e4d268535170658a1b0c6c (diff) | |
download | vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip |
convert templates to new syntax
Diffstat (limited to 'templates/interfaces/tunnel/node.def')
-rw-r--r-- | templates/interfaces/tunnel/node.def | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def index 8d8cc029..73c8e572 100644 --- a/templates/interfaces/tunnel/node.def +++ b/templates/interfaces/tunnel/node.def @@ -1,11 +1,11 @@ tag: type: txt -help: "Configure a tunnel interface" -syntax: $(@) in "tun0", "tun1", "tun2", "tun3", "tun4", "tun5", "tun6", "tun7", "tun8", "tun9" ; "Must be (tun0 - tun9)" -commit: $(./local-ip/) != "" ; "Must configure the tunnel local-ip" -commit: $(./remote-ip/) != "" ; "Must configure the tunnel remote-ip" -commit: $(./encapsulation/) != "" ; "Must configure the tunnel encapsulation" -create: "sudo ip tunnel add $(@) local $(./local-ip/@) remote $(./remote-ip/@) mode $(./encapsulation/@)" -create: "sudo ip link set $(@) up" -delete: "sudo ip tunnel del $(@)" -#comp_help: "Enter tunnel interface name (tun0 - tun9)" +help: Configure a tunnel interface +syntax:expression: $VAR(@) in "tun0", "tun1", "tun2", "tun3", "tun4", "tun5", "tun6", "tun7", "tun8", "tun9" ; "Must be (tun0 - tun9)" +commit:expression: $VAR(./local-ip/) != "" ; "Must configure the tunnel local-ip" +commit:expression: $VAR(./remote-ip/) != "" ; "Must configure the tunnel remote-ip" +commit:expression: $VAR(./encapsulation/) != "" ; "Must configure the tunnel encapsulation" +create:expression: "sudo ip tunnel add $VAR(@) local $VAR(./local-ip/@) remote $VAR(./remote-ip/@) mode $VAR(./encapsulation/@)" +create:expression: "sudo ip link set $VAR(@) up" +delete:expression: "sudo ip tunnel del $VAR(@)" +comp_help: "Enter tunnel interface name (tun0 - tun9)" |