summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/TrafficShaper.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-08 15:35:15 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-08 15:35:15 -0800
commitd5e1f4c2bd00570d6dabc37b8ff8704bfd71071e (patch)
treed37cac2d723327a99b366a0dfacb2aa187312854 /lib/Vyatta/Qos/TrafficShaper.pm
parent0a0f119c4e0b98d8133d23f67d191756159f5f65 (diff)
downloadvyatta-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.
Diffstat (limited to 'lib/Vyatta/Qos/TrafficShaper.pm')
-rw-r--r--lib/Vyatta/Qos/TrafficShaper.pm2
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") ) {