diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2008-01-03 18:11:50 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2008-01-03 18:11:50 -0800 |
commit | ad7513053936b4712677ee547a13f2b07b49fbef (patch) | |
tree | b4fd18fd6349b798c9741dd8d83a70d5d637000c /templates/interfaces/tunnel/node.def | |
parent | 54a57f5ffc98df1097d4d3b7b3e4e0cffe27eb12 (diff) | |
parent | ea4c396e33bf34cb8272daa2e1b2177a962cffb1 (diff) | |
download | vyatta-cfg-system-ad7513053936b4712677ee547a13f2b07b49fbef.tar.gz vyatta-cfg-system-ad7513053936b4712677ee547a13f2b07b49fbef.zip |
Merge branch 'glendale' of http://suva.vyatta.com/vyatta-cfg-system into glendale
Diffstat (limited to 'templates/interfaces/tunnel/node.def')
-rw-r--r-- | templates/interfaces/tunnel/node.def | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def new file mode 100644 index 00000000..8d8cc029 --- /dev/null +++ b/templates/interfaces/tunnel/node.def @@ -0,0 +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)" |