diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-15 13:13:02 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-15 13:13:02 -0700 |
commit | bb78be860c22628305fcf8445000de9dedd0a240 (patch) | |
tree | fc7c83cb2381cb7aef067f0636dfe5b5d8b57366 /lib/Vyatta/Qos/TrafficShaper.pm | |
parent | 381dcdcc46b8652135d59342e33535d1aa750e05 (diff) | |
download | vyatta-cfg-qos-bb78be860c22628305fcf8445000de9dedd0a240.tar.gz vyatta-cfg-qos-bb78be860c22628305fcf8445000de9dedd0a240.zip |
Fix problems when combining match rules
Can't have 2 filters at same priority level, need to cascade them.
Diffstat (limited to 'lib/Vyatta/Qos/TrafficShaper.pm')
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index f89ae60..4fa3008 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -151,8 +151,10 @@ sub commands { $class->gen_class( $dev, 'htb', $parent, $rate ); $class->gen_leaf( $dev, $parent, $rate ); + my $prio = 1; foreach my $match ( $class->matchRules() ) { - $match->filter( $dev, $parent, $class->{id}, 1, $class->{dsmark} ); + $match->filter( $dev, $parent, $class->{id}, + $prio++, $class->{dsmark} ); } } } |