summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-22 14:07:09 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-22 14:07:09 -0700
commit29916bd39344088c84221a4ec2da387b28029097 (patch)
tree791025910c8a219bacfe7ff8cb0ae2c4fc71ef35
parent3e1bdbdad99e5c019b4797bb906e89858e504b95 (diff)
downloadvyatta-cfg-quagga-29916bd39344088c84221a4ec2da387b28029097.tar.gz
vyatta-cfg-quagga-29916bd39344088c84221a4ec2da387b28029097.zip
Allow any number of tunnel devices
The CLI should not be enforcing arbitrary restrictions on the number of devices. The limit should be based on the resources of the system and only the kernel would know that. So let the user try and make 10000 tunnel devices, maybe its on a 2000 core machine with 64G of memory. Any failure will show up when the attempt is made to create the tunnel device.
-rw-r--r--templates/interfaces/tunnel/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index d152dbe5..89ee200c 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -2,7 +2,8 @@ tag:
type: txt
help: Set tunnel interface
-syntax:expression: exec "echo $VAR(@) | grep \"tun[0-9][0-9]\\{0,2\\}\$\" > /dev/null "; "tunnel must be (tun0-tun999)"
+syntax:expression: pattern $VAR(@) "^tun[0-9]+$" \
+ ; "tunnel must be (tun0-tun999)"
commit:expression: $VAR(./local-ip/) != "" ; \
"Must configure the tunnel local-ip for $VAR(@)"