summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/TrafficShaper.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos/TrafficShaper.pm')
-rw-r--r--lib/Vyatta/Qos/TrafficShaper.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm
index 3fd687a..5e365c5 100644
--- a/lib/Vyatta/Qos/TrafficShaper.pm
+++ b/lib/Vyatta/Qos/TrafficShaper.pm
@@ -144,7 +144,9 @@ sub commands {
$default->rateCheck( $rate, "$self->{_level} default" );
foreach my $class (@$classes) {
- $class->rateCheck( $rate, "$self->{_level} class $class->{id}" );
+ my $level = "$self->{_level} class $class->{id}";
+ $class->rateCheck( $rate, $level );
+ $class->valid_leaf( $level );
# find largest class id
if ( defined $class->{id} && $class->{id} > $maxid ) {