From 27260c0aa370f242c822226c2204314bd178ec3b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 23 Jul 2010 12:16:26 -0700 Subject: Change ranges for bridge parameters Bug 5901 (cherry picked from commit 47014cdc10a429725d1620fc5326fd9995469c09) --- templates/interfaces/bridge/node.tag/aging/node.def | 6 ++++-- templates/interfaces/bridge/node.tag/forwarding-delay/node.def | 4 ++-- templates/interfaces/bridge/node.tag/hello-time/node.def | 2 +- templates/interfaces/bridge/node.tag/max-age/node.def | 6 ++++-- 4 files changed, 11 insertions(+), 7 deletions(-) (limited to 'templates') 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 -- cgit v1.2.3