diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-24 15:13:45 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-24 15:13:45 -0800 |
commit | 53f0b83eac4e88d2d21d22e2db4b1b2384e58393 (patch) | |
tree | 3914c798722277b444464015fb65ba16fa4ac270 /lib | |
parent | a5a4824be584431805317dbd40a0aa1957bd54bb (diff) | |
download | vyatta-cfg-qos-53f0b83eac4e88d2d21d22e2db4b1b2384e58393.tar.gz vyatta-cfg-qos-53f0b83eac4e88d2d21d22e2db4b1b2384e58393.zip |
VyattaConfig -> Vyatta::Config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Qos/DropTail.pm | 4 | ||||
-rw-r--r-- | lib/Vyatta/Qos/FairQueue.pm | 4 | ||||
-rw-r--r-- | lib/Vyatta/Qos/Match.pm | 2 | ||||
-rw-r--r-- | lib/Vyatta/Qos/TrafficLimiter.pm | 6 | ||||
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 6 | ||||
-rw-r--r-- | lib/Vyatta/Qos/Util.pm | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/lib/Vyatta/Qos/DropTail.pm b/lib/Vyatta/Qos/DropTail.pm index b8ef0b1..09508a8 100644 --- a/lib/Vyatta/Qos/DropTail.pm +++ b/lib/Vyatta/Qos/DropTail.pm @@ -21,7 +21,7 @@ package Vyatta::Qos::DropTail; use strict; use warnings; -require VyattaConfig; +require Vyatta::Config; my %fields = ( _limit => undef, @@ -49,7 +49,7 @@ sub commands { sub isChanged { my ($self, $name) = @_; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("qos-policy drop-tail $name"); return $config->isChanged('queue-limit'); diff --git a/lib/Vyatta/Qos/FairQueue.pm b/lib/Vyatta/Qos/FairQueue.pm index 9897e29..2ef89ed 100644 --- a/lib/Vyatta/Qos/FairQueue.pm +++ b/lib/Vyatta/Qos/FairQueue.pm @@ -23,7 +23,7 @@ package Vyatta::Qos::FairQueue; use strict; use warnings; -require VyattaConfig; +require Vyatta::Config; # Fair Queue # Uses SFQ which is similar to (but not same as) WFQ @@ -54,7 +54,7 @@ sub commands { sub isChanged { my ( $self, $name ) = @_; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("qos-policy fair-queue $name"); foreach my $attr ('hash-interval', 'queue-limit') { diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm index 08a0ff4..57aaed3 100644 --- a/lib/Vyatta/Qos/Match.pm +++ b/lib/Vyatta/Qos/Match.pm @@ -14,7 +14,7 @@ # **** End License **** package Vyatta::Qos::Match; -require VyattaConfig; +require Vyatta::Config; use Vyatta::Qos::Util qw(getIfIndex getDSfield getProtocol); use strict; diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index 03b3021..e897c03 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -20,7 +20,7 @@ package LimiterClass; use strict; - require VyattaConfig; + require Vyatta::Config; use Vyatta::Qos::Match; use Vyatta::Qos::Util qw/getRate/; @@ -76,7 +76,7 @@ package Vyatta::Qos::TrafficLimiter; use strict; -require VyattaConfig; +require Vyatta::Config; my %fields = ( _level => undef, @@ -149,7 +149,7 @@ sub commands { # The configuration system should do this but doesn't do it right sub isChanged { my ( $self, $name ) = @_; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("qos-policy traffic-limiter $name"); my %classNodes = $config->listNodeStatus('class'); diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 3c8f123..18f4898 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -21,7 +21,7 @@ { package ShaperClass; use strict; - require VyattaConfig; + require Vyatta::Config; use Vyatta::Qos::Match; use Vyatta::Qos::Util qw/getDsfield getRate/; @@ -235,7 +235,7 @@ package Vyatta::Qos::TrafficShaper; use strict; -require VyattaConfig; +require Vyatta::Config; use Vyatta::Qos::Util qw/getRate interfaceRate/; @@ -413,7 +413,7 @@ sub commands { # The configuration system should do this but doesn't do it right sub isChanged { my ($self, $name) = @_; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("qos-policy traffic-shaper $name"); diff --git a/lib/Vyatta/Qos/Util.pm b/lib/Vyatta/Qos/Util.pm index 28df9f1..acfad93 100644 --- a/lib/Vyatta/Qos/Util.pm +++ b/lib/Vyatta/Qos/Util.pm @@ -245,7 +245,7 @@ sub getIfIndex { sub interfaceRate { my ($interface) = @_; my $speed; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("interfaces ethernet"); if ( $config->exists("$interface") ) { |