summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosTrafficShaper.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-05 16:54:48 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-05 16:54:48 -0800
commit0b8d73903c3a1245c95d3ed92756fe3df649bbed (patch)
tree67e0342479bc718d35c04e657357b3036419e9cb /scripts/VyattaQosTrafficShaper.pm
parent24b46144a00f1346b0c983884e3f11b91b0c4379 (diff)
downloadvyatta-cfg-qos-0b8d73903c3a1245c95d3ed92756fe3df649bbed.tar.gz
vyatta-cfg-qos-0b8d73903c3a1245c95d3ed92756fe3df649bbed.zip
add support for match based on incoming device and vlan
This is preliminary (still needs testing) but get the syntax and basic structure in place.
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");