summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-06-25 15:53:24 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-06-25 15:53:24 -0700
commitfc7a54a4043ea56ad615d177ee4e8bec14932481 (patch)
treedd532924f771afa5305b83e2803da78ceab3fc7a /templates
parent03f80363921a3fdb080414f0ba52dc10797fbb3a (diff)
downloadvyatta-cfg-system-fc7a54a4043ea56ad615d177ee4e8bec14932481.tar.gz
vyatta-cfg-system-fc7a54a4043ea56ad615d177ee4e8bec14932481.zip
Fix 3379: tunnel interfaces are artificially limited to tun0-tun9
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/tunnel/node.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index aefd5935..d152dbe5 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -1,7 +1,8 @@
tag:
type: txt
help: Set tunnel interface
-syntax:expression: $VAR(@) in "tun0", "tun1", "tun2", "tun3", "tun4", "tun5", "tun6", "tun7", "tun8", "tun9" ; "Must be (tun0 - tun9)"
+
+syntax:expression: exec "echo $VAR(@) | grep \"tun[0-9][0-9]\\{0,2\\}\$\" > /dev/null "; "tunnel must be (tun0-tun999)"
commit:expression: $VAR(./local-ip/) != "" ; \
"Must configure the tunnel local-ip for $VAR(@)"
@@ -21,4 +22,4 @@ create:expression: "\
delete:expression: "sudo ip tunnel del $VAR(@)" ; "Error deleting $VAR(@)"
-comp_help: "Enter tunnel interface name (tun0 - tun9)"
+comp_help: Enter tunnel interface name (tun0 - tun999)