diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-08 15:32:40 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-08 15:32:40 -0800 |
commit | 0a0f119c4e0b98d8133d23f67d191756159f5f65 (patch) | |
tree | dcf9666222acb5e70142c3c509ca509a604a815f | |
parent | a9e9c12d8f0e87d79dc1aa09b834032424ddd5f6 (diff) | |
download | vyatta-cfg-qos-0a0f119c4e0b98d8133d23f67d191756159f5f65.tar.gz vyatta-cfg-qos-0a0f119c4e0b98d8133d23f67d191756159f5f65.zip |
Fix loading problems with sub-class modules
Need full path on new ShaperClass.
Enable warnings.
-rw-r--r-- | lib/Vyatta/Qos/TrafficLimiter.pm | 4 | ||||
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index e9deda9..5aea0f9 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -21,7 +21,7 @@ use strict; use warnings; require Vyatta::Config; -use Vyatta::Qos::LimiterClass; +require Vyatta::Qos::LimiterClass; my %fields = ( _level => undef, @@ -70,7 +70,7 @@ sub _define { foreach my $id ( $config->listNodes("class") ) { $config->setLevel("$level class $id"); - push @classes, new LimiterClass( $config, $id ); + push @classes, new Vyatta::Qos::LimiterClass( $config, $id ); } $self->{_classes} = \@classes; } diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 0cfb305..5d10be8 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -20,10 +20,11 @@ package Vyatta::Qos::TrafficShaper; use strict; +use warnings; require Vyatta::Config; +require Vyatta::Qos::ShaperClass; use Vyatta::Qos::Util qw/getRate interfaceRate/; -use Vyatta::Qos::ShaperClass; my %fields = ( @@ -114,12 +115,12 @@ sub _define { $config->setLevel("$level default"); - push @classes, new ShaperClass($config, -1); + push @classes, new Vyatta::Qos::Vyatta::Qos::ShaperClass($config, -1); $config->setLevel($level); foreach my $id ( $config->listNodes("class") ) { $config->setLevel("$level class $id"); - push @classes, new ShaperClass( $config, $id ); + push @classes, new Vyatta::Qos::ShaperClass( $config, $id ); } $self->{_classes} = \@classes; } |