summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel/node.def
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-12-22 19:20:54 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-12-22 19:20:54 -0800
commitfa71dcd232351c123ac34dcd6622449f9193b0c5 (patch)
tree73940dbb1eddb3db872a58da85312ed516a79c56 /templates/interfaces/tunnel/node.def
parentcf3cabae0a7b8b4900687f2bcad927180abace4d (diff)
downloadvyatta-cfg-system-fa71dcd232351c123ac34dcd6622449f9193b0c5.tar.gz
vyatta-cfg-system-fa71dcd232351c123ac34dcd6622449f9193b0c5.zip
Add tunnel interface.
Diffstat (limited to 'templates/interfaces/tunnel/node.def')
-rw-r--r--templates/interfaces/tunnel/node.def11
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)"