diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-23 12:16:26 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-28 09:51:24 -0700 |
commit | 27260c0aa370f242c822226c2204314bd178ec3b (patch) | |
tree | 7a8ed43afafaeea24c14e0f6b12d077ccd622034 /templates/interfaces | |
parent | 87040849155652b3be924b3c205f59177010019c (diff) | |
download | vyatta-cfg-system-27260c0aa370f242c822226c2204314bd178ec3b.tar.gz vyatta-cfg-system-27260c0aa370f242c822226c2204314bd178ec3b.zip |
Change ranges for bridge parameters
Bug 5901
(cherry picked from commit 47014cdc10a429725d1620fc5326fd9995469c09)
Diffstat (limited to 'templates/interfaces')
4 files changed, 11 insertions, 7 deletions
diff --git a/templates/interfaces/bridge/node.tag/aging/node.def b/templates/interfaces/bridge/node.tag/aging/node.def index c2d9b12f..c3ee5964 100644 --- a/templates/interfaces/bridge/node.tag/aging/node.def +++ b/templates/interfaces/bridge/node.tag/aging/node.def @@ -1,8 +1,10 @@ type: u32 help: Interval addresses are retained default: 300 -syntax:expression:$VAR(@) <= 60; "Bridge aging time must be between 0 and 60" -val_help: u32:0-60; Address aging time for bridge (seconds) +syntax:expression: $VAR(@) == 0 || ( $VAR >= 10 && $VAR(@) < 1000000 ) ; + "Bridge aging time must be between 10 and 1000000 or zero" +val_help: 0; Disable retaining address in bridge (always flood) +val_help: u32:10-1000000; Address aging time for bridge seconds (default 300) update: /usr/sbin/brctl setageing $VAR(../@) $VAR(@) delete: /usr/sbin/brctl setageing $VAR(../@) 300 diff --git a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def index ae9d8390..21de2454 100644 --- a/templates/interfaces/bridge/node.tag/forwarding-delay/node.def +++ b/templates/interfaces/bridge/node.tag/forwarding-delay/node.def @@ -1,5 +1,5 @@ type: u32 help: Forwarding delay -syntax:expression:$VAR(@) <= 60; "Forwarding delay must be between 0 and 60" -val_help: u32:0-60; Spanning Tree Protocol forwarding delay in seconds (default 15) +syntax:expression:$VAR(@) <= 200; "Forwarding delay must be between 0 and 200" +val_help: u32:0-200; Spanning Tree Protocol forwarding delay in seconds (default 15) update: /usr/sbin/brctl setfd $VAR(../@) $VAR(@) diff --git a/templates/interfaces/bridge/node.tag/hello-time/node.def b/templates/interfaces/bridge/node.tag/hello-time/node.def index beb6e385..8f48b8be 100644 --- a/templates/interfaces/bridge/node.tag/hello-time/node.def +++ b/templates/interfaces/bridge/node.tag/hello-time/node.def @@ -1,7 +1,7 @@ type: u32 default: 2 help: Hello packet advertisment interval -syntax:expression:$VAR(@) <= 30; "Bridge Hello interval must be between 0 and 30 seconds" +syntax:expression: $VAR(@) <= 30; "Bridge Hello interval must be between 0 and 30 seconds" val_help: u32:0-30; Spanning Tree Protocol hello advertisement interval (default 2) update: /usr/sbin/brctl sethello $VAR(../@) $VAR(@) delete: /usr/sbin/brctl sethello $VAR(../@) 2 diff --git a/templates/interfaces/bridge/node.tag/max-age/node.def b/templates/interfaces/bridge/node.tag/max-age/node.def index 72b3b902..b30e5e9e 100644 --- a/templates/interfaces/bridge/node.tag/max-age/node.def +++ b/templates/interfaces/bridge/node.tag/max-age/node.def @@ -1,8 +1,10 @@ type: u32 help: Interval at which neighbor bridges are removed default: 20 -syntax:expression:$VAR(@) <= 60; "Bridge max aging value must be between 0 and 60" -val_help: u32:0-60; Bridge maximum aging time value (default 20) +syntax:expression: $VAR(@) >= 6 && $VAR(@) <= 200 ; + "Bridge max aging value must be between 6 and 200" +val_help: u32:6-200; Bridge maximum aging time value (default 20) + update: /usr/sbin/brctl setmaxage $VAR(../@) $VAR(@) delete: /usr/sbin/brctl setmaxage $VAR(../@) 20 |