diff options
-rw-r--r-- | lib/Vyatta/Qos/Priority.pm | 2 | ||||
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Qos/Priority.pm b/lib/Vyatta/Qos/Priority.pm index 4b7654d..9fb5bce 100644 --- a/lib/Vyatta/Qos/Priority.pm +++ b/lib/Vyatta/Qos/Priority.pm @@ -104,9 +104,9 @@ sub commands { $def_prio, $def_prio, $def_prio; # prio is not really classful! + my $prio = 1; foreach my $class (@$classes) { $class->gen_leaf( $dev, $parent ); - my $prio = 1; foreach my $match ( $class->matchRules() ) { $match->filter( $dev, $parent, $class->{id}, $prio++ ); } diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 5e365c5..672471e 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -200,11 +200,11 @@ sub commands { printf "class add dev %s parent %x: classid %x:1 htb rate %s\n", $dev, $parent, $parent, $rate; + my $prio = 1; foreach my $class (@$classes) { $class->gen_class( $dev, 'htb', $parent, $rate, $r2q ); $class->gen_leaf( $dev, $parent, $rate ); - my $prio = 1; foreach my $match ( $class->matchRules() ) { $match->filter( $dev, $parent, $class->{id}, $prio++, $class->{dsmark} ); |