From 699404b2b18ae03da9fcf6fe45eee33471c5624e Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 17 Jul 2008 14:45:47 -0700 Subject: 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 --- scripts/VyattaQosTrafficShaper.pm | 1 + 1 file changed, 1 insertion(+) 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 } } -- cgit v1.2.3