summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r--lib/Vyatta/Qos/TrafficLimiter.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm
index 5c6abba..9b47be8 100644
--- a/lib/Vyatta/Qos/TrafficLimiter.pm
+++ b/lib/Vyatta/Qos/TrafficLimiter.pm
@@ -51,8 +51,8 @@
my @matches = ();
my $rate = $config->returnValue("bandwidth");
+ die "bandwidth must be defined for $level\n" unless $rate;
$self->{rate} = getRate($rate);
- defined $rate or die "bandwidth must be defined for $level\n";
$self->{burst} = $config->returnValue("burst");
defined $self->{burst} or die "burst must be defined for $level\n";