diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-07 10:46:43 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-07 15:56:10 -0700 |
commit | 31a8ab66f49ad26b376d552ec468b21e15835daf (patch) | |
tree | 50a0d0eb271f1bb830668ce018c3b1d7027570b5 /templates/qos-policy/random-detect | |
parent | a6fc0cd96c30422732fd4006dfed22fedc4c624d (diff) | |
download | vyatta-cfg-qos-31a8ab66f49ad26b376d552ec468b21e15835daf.tar.gz vyatta-cfg-qos-31a8ab66f49ad26b376d552ec468b21e15835daf.zip |
Rearrange Qos commands for Larkspur
Current (Kenwood and earlier):
set qos-policy traffic-shaper TS { ...classes }
set qos-policy traffic-limiter TL { ...classes }
seq qos-policy network-emulator NE ...
set qos-policy random-detect RD ...
set qos-policy rate-limiter RC ...
set qos-policy round-robin RR ...
set interfaces ethernet eth0 qos-policy out TS
set interfaces ethernet eth0 qos-policy in TL
New (Larkspur and later):
set traffic-policy shaper TS { ...classes }
set traffic-policy limiter TL { ...classes }
seq traffic-policy network-emulator NE ...
set traffic-policy random-detect RD ...
set traffic-policy rate-control RC ...
set traffic-policy round-robin RR ...
set interfaces ethernet eth0 traffic-policy out TS
set interfaces ethernet eth0 traffic-policy in TL
set interfaces ethernet eth0 redirect ifb0
set interfaces ethernet eth0 mirror eth2
Note:
1. Only one of the following is allowed: "redirect", or "mirror"
2. Traffic-policy limiter is allowed with redirection/mirror and takes place
before mirror/redirect action (NEW)
3. Limiter policy may applied on output (NEW)
4. Only limiter policies can be applied on input (same as previous releases)
This does add some new functionality (#2, and #3) which are possible because
of how filter classes are implemented.
Diffstat (limited to 'templates/qos-policy/random-detect')
9 files changed, 0 insertions, 48 deletions
diff --git a/templates/qos-policy/random-detect/node.def b/templates/qos-policy/random-detect/node.def deleted file mode 100644 index 7dc1caa..0000000 --- a/templates/qos-policy/random-detect/node.def +++ /dev/null @@ -1,8 +0,0 @@ -tag: -type: txt -help: Set Weighted Random Early Detect policy -syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" - ; "only alpha-numeric policy name allowed" -create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy $VAR(.) $VAR(@) -delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy $VAR(@) -end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy $VAR(@) diff --git a/templates/qos-policy/random-detect/node.tag/bandwidth/node.def b/templates/qos-policy/random-detect/node.tag/bandwidth/node.def deleted file mode 100644 index eb0d4d9..0000000 --- a/templates/qos-policy/random-detect/node.tag/bandwidth/node.def +++ /dev/null @@ -1,11 +0,0 @@ -type: txt -help: Set the available bandwidth for this policy -default: "auto" -syntax:expression: $VAR(@) == "auto" || \ - exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)" -comp_help: Allowed values: - auto Set bandwidth based on interface speed (default) - <number> Bandwidth in Kbps - <number><suffix> Value with scaling suffix - bits per sec (kbit, mbit, gbit) - bytes per sec (kbps, mbps, gbps) diff --git a/templates/qos-policy/random-detect/node.tag/description/node.def b/templates/qos-policy/random-detect/node.tag/description/node.def deleted file mode 100644 index 1e8e64f..0000000 --- a/templates/qos-policy/random-detect/node.tag/description/node.def +++ /dev/null @@ -1,2 +0,0 @@ -type: txt -help: Set description for this queuing policy diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.def deleted file mode 100644 index ac63dd6..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.def +++ /dev/null @@ -1,6 +0,0 @@ -tag: -type: u32 -help: Set precedence values -syntax:expression: $VAR(@) >= 0 && $VAR(@) < 8; "IP precedence value must be between 0 and 7" -comp_help: possible completions - <0-7> IP precedence number diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/average-packet/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/average-packet/node.def deleted file mode 100644 index 23cdb0f..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/average-packet/node.def +++ /dev/null @@ -1,4 +0,0 @@ -type: u32 -help: Average packet size (bytes) -default: 1024 -syntax:expression: $VAR(@) >= 16 && $VAR(@) <= 10240 ; "Average packet size must be between 16 and 10240" diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def deleted file mode 100644 index 34964af..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/mark-probability/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: Set the mark probability for this precedence -syntax:expression: $VAR(@) > 0 ; "Mark probability must be greater than 0" -comp_help: Allowed values: - <number> Numeric value ( 1 / N ) diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def deleted file mode 100644 index 3032d80..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/maximum-threshold/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: Set the maximum threshold for random detection -syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4096; "Threshold must be between 0 and 4096" -comp_help: Allowed values: - <number> Threshold in packets diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def deleted file mode 100644 index fe86423..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/minimum-threshold/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: Set the minimum threshold for random detection -syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4096; "Threshold must be between 0 and 4096" -comp_help: Allowed values: - <number> Threshold in packets diff --git a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/queue-limit/node.def b/templates/qos-policy/random-detect/node.tag/precedence/node.tag/queue-limit/node.def deleted file mode 100644 index 49c47b4..0000000 --- a/templates/qos-policy/random-detect/node.tag/precedence/node.tag/queue-limit/node.def +++ /dev/null @@ -1,2 +0,0 @@ -type: u32 -help: Set maximum queue size (packets) |