summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-17 14:45:47 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-17 14:45:47 -0700
commit699404b2b18ae03da9fcf6fe45eee33471c5624e (patch)
treec53085ac025dc9a5f387385a14d58df0611b7b71 /scripts
parent81b51bb9270e77289604493761a2f7cb047bd3ea (diff)
downloadvyatta-cfg-qos-699404b2b18ae03da9fcf6fe45eee33471c5624e.tar.gz
vyatta-cfg-qos-699404b2b18ae03da9fcf6fe45eee33471c5624e.zip
Don't get classes confused and cause internal error
When validating the class rates, need to leave the array of classes in original form for later command processing. Bugfix 3458
Diffstat (limited to 'scripts')
-rw-r--r--scripts/VyattaQosTrafficShaper.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm
index 325c02e..e282533 100644
--- a/scripts/VyattaQosTrafficShaper.pm
+++ b/scripts/VyattaQosTrafficShaper.pm
@@ -271,6 +271,7 @@ sub _validate {
foreach my $class (@$classes) {
$class->rateCheck($rate, "$self->{_level} class $class->{id}");
}
+ unshift @$classes, $default
}
}