summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel/node.def
blob: 8d8cc02938239e1d7e1cef76c122f00abacfa9bc (plain)
1
2
3
4
5
6
7
8
9
10
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)"