summaryrefslogtreecommitdiff
path: root/templates/interfaces/bridge/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-22 14:09:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-22 14:09:54 -0700
commit3d4b0dcf7e73f6a245c6c2b0a84a9fadad2ccaaf (patch)
tree9bd8f847964dde5c93387912ac9a53b4bdf2f29a /templates/interfaces/bridge/node.def
parent29916bd39344088c84221a4ec2da387b28029097 (diff)
downloadvyatta-cfg-quagga-3d4b0dcf7e73f6a245c6c2b0a84a9fadad2ccaaf.tar.gz
vyatta-cfg-quagga-3d4b0dcf7e73f6a245c6c2b0a84a9fadad2ccaaf.zip
Allow any number of bridge 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 bridge 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.
Diffstat (limited to 'templates/interfaces/bridge/node.def')
-rw-r--r--templates/interfaces/bridge/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def
index 0dc3670c..641d369d 100644
--- a/templates/interfaces/bridge/node.def
+++ b/templates/interfaces/bridge/node.def
@@ -2,7 +2,7 @@ tag:
type: txt
help: Set bridge interface
-syntax:expression: $VAR(@) in "br0", "br1", "br2", "br3", "br4", "br5", "br6", "br7", "br8", "br9" ; "Must be (br0 - br9)"
+syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
create: sudo brctl addbr $VAR(@)
@@ -13,4 +13,4 @@ delete: if [ -n "`/usr/sbin/brctl show | grep $VAR(@) | grep eth`" ]; then
sudo ip link set $VAR(@) down;
sudo brctl delbr $VAR(@);
-comp_help: "Enter bridge interface name (br0 - br9)"
+comp_help: "Enter bridge interface name (br0 - br999)"