From bb78be860c22628305fcf8445000de9dedd0a240 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 15 Jul 2010 13:13:02 -0700 Subject: Fix problems when combining match rules Can't have 2 filters at same priority level, need to cascade them. --- lib/Vyatta/Qos/RoundRobin.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Vyatta/Qos/RoundRobin.pm') diff --git a/lib/Vyatta/Qos/RoundRobin.pm b/lib/Vyatta/Qos/RoundRobin.pm index a1d7787..b7d72b2 100644 --- a/lib/Vyatta/Qos/RoundRobin.pm +++ b/lib/Vyatta/Qos/RoundRobin.pm @@ -67,8 +67,10 @@ sub commands { foreach my $class (@$classes) { $class->gen_class( $dev, 'drr', $parent ); $class->gen_leaf( $dev, $parent ); + my $prio = 1; + foreach my $match ( $class->matchRules() ) { - $match->filter( $dev, $parent, $class->{id}, 1); + $match->filter( $dev, $parent, $class->{id}, $prio++); } } } -- cgit v1.2.3