summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosTrafficShaper.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/VyattaQosTrafficShaper.pm')
-rw-r--r--scripts/VyattaQosTrafficShaper.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm
index 2b95a05..16c1fef 100644
--- a/scripts/VyattaQosTrafficShaper.pm
+++ b/scripts/VyattaQosTrafficShaper.pm
@@ -34,10 +34,11 @@
my $level = $config->setLevel();
my @matches = ();
+ $self->{_rate} = $config->returnValue("rate");
+ defined $self->{_rate} or die "Rate not defined for class $id\n";
$self->{_id} = sprintf "%04x", $id;
$self->{_priority} = $config->returnValue("priority");
- $self->{_rate} = $config->returnValue("rate");
$self->{_ceiling} = $config->returnValue("ceiling");
$self->{_burst} = $config->returnValue("burst");