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 /interface-templates/mirror/node.def | |
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 'interface-templates/mirror/node.def')
-rw-r--r-- | interface-templates/mirror/node.def | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-templates/mirror/node.def b/interface-templates/mirror/node.def new file mode 100644 index 0000000..cbb3bde --- /dev/null +++ b/interface-templates/mirror/node.def @@ -0,0 +1,15 @@ +type: txt +help: Set incoming packet mirroring destination +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --skip=$IFNAME --show=all + +syntax: /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$IFNAME --check=all + +commit:expression: $VAR(../redirect) == ""; \ + "interface $VAR(../@) : can not redirect and mirror on $IFNAME" + +commit:expression: $VAR(../traffic-policy/in) == ""; \ + "interface $VAR(../@) : can not use ingress policy and mirror on $IFNAME" + +end: /opt/vyatta/sbin/vyatta-qos.pl --update-action $IFNAME + + |