From 7f1494f0c8ed56bcbcb8d1cc5bab46cce09da5ad Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 Jul 2010 15:56:20 -0700 Subject: Limit queues using fair-queue to <= 127 Bug 5849 --- templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def | 3 ++- .../round-robin/node.tag/class/node.tag/queue-limit/node.def | 3 ++- .../traffic-policy/shaper/node.tag/class/node.tag/queue-limit/node.def | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def b/templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def index 92c4349..ef684e3 100644 --- a/templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def +++ b/templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def @@ -1,3 +1,4 @@ type: u32 help: Set maximum queue size (packets) -syntax:expression: $VAR(@) > 1 ; "Queue limit must greater than 1" +syntax:expression: $VAR(@) > 1 && $VAR(@) < 128;\ + "Queue limit must greater than 1 and less than 128" diff --git a/templates/traffic-policy/round-robin/node.tag/class/node.tag/queue-limit/node.def b/templates/traffic-policy/round-robin/node.tag/class/node.tag/queue-limit/node.def index bac5c2a..ef684e3 100644 --- a/templates/traffic-policy/round-robin/node.tag/class/node.tag/queue-limit/node.def +++ b/templates/traffic-policy/round-robin/node.tag/class/node.tag/queue-limit/node.def @@ -1,3 +1,4 @@ type: u32 help: Set maximum queue size (packets) -syntax:expression: $VAR(@) > 0 ; "Queue limit must greater than zero" +syntax:expression: $VAR(@) > 1 && $VAR(@) < 128;\ + "Queue limit must greater than 1 and less than 128" diff --git a/templates/traffic-policy/shaper/node.tag/class/node.tag/queue-limit/node.def b/templates/traffic-policy/shaper/node.tag/class/node.tag/queue-limit/node.def index d86b23d..ef684e3 100644 --- a/templates/traffic-policy/shaper/node.tag/class/node.tag/queue-limit/node.def +++ b/templates/traffic-policy/shaper/node.tag/class/node.tag/queue-limit/node.def @@ -1,3 +1,4 @@ type: u32 help: Set maximum queue size (packets) -syntax:expression: $VAR(@) > 0; "Queue limit must be greater than zero" +syntax:expression: $VAR(@) > 1 && $VAR(@) < 128;\ + "Queue limit must greater than 1 and less than 128" -- cgit v1.2.3