diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-08 15:35:15 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-08 15:35:15 -0800 |
commit | d5e1f4c2bd00570d6dabc37b8ff8704bfd71071e (patch) | |
tree | d37cac2d723327a99b366a0dfacb2aa187312854 | |
parent | 0a0f119c4e0b98d8133d23f67d191756159f5f65 (diff) | |
download | vyatta-cfg-qos-d5e1f4c2bd00570d6dabc37b8ff8704bfd71071e.tar.gz vyatta-cfg-qos-d5e1f4c2bd00570d6dabc37b8ff8704bfd71071e.zip |
Use undef rather than -1 in default class
If the class id -1 was mistakenly used it would match ingress values.
So use undef instead.
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 5d10be8..f7bfc35 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -115,7 +115,7 @@ sub _define { $config->setLevel("$level default"); - push @classes, new Vyatta::Qos::Vyatta::Qos::ShaperClass($config, -1); + push @classes, new Vyatta::Qos::Vyatta::Qos::ShaperClass($config); $config->setLevel($level); foreach my $id ( $config->listNodes("class") ) { |