From 31a8ab66f49ad26b376d552ec468b21e15835daf Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 7 Jun 2010 10:46:43 -0700 Subject: 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. --- templates/traffic-policy/fair-queue/node.def | 8 ++++++++ templates/traffic-policy/fair-queue/node.tag/description/node.def | 2 ++ .../traffic-policy/fair-queue/node.tag/hash-interval/node.def | 2 ++ templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def | 3 +++ 4 files changed, 15 insertions(+) create mode 100644 templates/traffic-policy/fair-queue/node.def create mode 100644 templates/traffic-policy/fair-queue/node.tag/description/node.def create mode 100644 templates/traffic-policy/fair-queue/node.tag/hash-interval/node.def create mode 100644 templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def (limited to 'templates/traffic-policy/fair-queue') diff --git a/templates/traffic-policy/fair-queue/node.def b/templates/traffic-policy/fair-queue/node.def new file mode 100644 index 0000000..1966ab6 --- /dev/null +++ b/templates/traffic-policy/fair-queue/node.def @@ -0,0 +1,8 @@ +tag: +type: txt +help: Set fair queueing 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/traffic-policy/fair-queue/node.tag/description/node.def b/templates/traffic-policy/fair-queue/node.tag/description/node.def new file mode 100644 index 0000000..1e8e64f --- /dev/null +++ b/templates/traffic-policy/fair-queue/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: Set description for this queuing policy diff --git a/templates/traffic-policy/fair-queue/node.tag/hash-interval/node.def b/templates/traffic-policy/fair-queue/node.tag/hash-interval/node.def new file mode 100644 index 0000000..f670274 --- /dev/null +++ b/templates/traffic-policy/fair-queue/node.tag/hash-interval/node.def @@ -0,0 +1,2 @@ +type: u32 +help: Set rehash interval (seconds) 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 new file mode 100644 index 0000000..471bd5b --- /dev/null +++ b/templates/traffic-policy/fair-queue/node.tag/queue-limit/node.def @@ -0,0 +1,3 @@ +type: u32 +syntax:expression: $VAR(@) > 1 ; "Queue limit must greater than 1" +help: Set maximum queue size (packets) -- cgit v1.2.3