From 8c2895f17e573cd1a4c08bd4682555e41c115931 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 9 Apr 2009 17:48:24 -0700 Subject: Split class and sub qdisc generation Newer features will have non-hierarchal queue disc where there are no classes just sub-queues. --- lib/Vyatta/Qos/TrafficShaper.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Vyatta/Qos/TrafficShaper.pm') diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 8295764..2ea710b 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -191,7 +191,8 @@ sub commands { $dev, $parent, $parent, $rate; foreach my $class (@$classes) { - $class->htbClass( $dev, $parent, $rate ); + $class->gen_class( $dev, 'htb', $parent, $rate ); + $class->gen_leaf( $dev, $parent, $rate ); foreach my $match ( $class->matchRules() ) { $match->filter( $dev, $parent, 1, $class->{dsmark} ); -- cgit v1.2.3