From 601c07dc8d6ca7387880ef5d62191e24106d0e9c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 5 Feb 2009 14:29:03 -0800 Subject: Fix vyatta config name change VyattaConfig is now Vyatta::Config --- lib/Vyatta/Qos/NetworkEmulator.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Vyatta/Qos/NetworkEmulator.pm b/lib/Vyatta/Qos/NetworkEmulator.pm index 71f347f..47b0174 100644 --- a/lib/Vyatta/Qos/NetworkEmulator.pm +++ b/lib/Vyatta/Qos/NetworkEmulator.pm @@ -20,7 +20,7 @@ package Vyatta::Qos::NetworkEmulator; use strict; use warnings; -require VyattaConfig; +require Vyatta::Config; use Vyatta::Qos::Util; my %fields = ( @@ -87,14 +87,14 @@ sub commands { sub isChanged { my ( $self, $name ) = @_; - my $config = new VyattaConfig; + my $config = new Vyatta::Config; $config->setLevel("qos-policy network-emulator $name"); foreach my $attr ( "bandwidth", "burst", "queue-limit", "network-delay", "packet-loss", "packet-corruption", "packet-reordering", ) { return $attr if ( $config->isChanged($attr) ); } - return undef; # false + return; } 1; -- cgit v1.2.3