diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-05 16:54:48 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-05 16:54:48 -0800 |
commit | 0b8d73903c3a1245c95d3ed92756fe3df649bbed (patch) | |
tree | 67e0342479bc718d35c04e657357b3036419e9cb /scripts/VyattaQosTrafficShaper.pm | |
parent | 24b46144a00f1346b0c983884e3f11b91b0c4379 (diff) | |
download | vyatta-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.pm | 3 |
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"); |