diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-06 10:29:43 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-06 10:29:43 -0800 |
commit | b67e379379ca5be816c7d6d9cdcec99395556733 (patch) | |
tree | 4b1ed37060b4be7c819d899ddacef524b9d3dd59 /scripts/VyattaQosTrafficShaper.pm | |
parent | 0b8d73903c3a1245c95d3ed92756fe3df649bbed (diff) | |
download | vyatta-cfg-qos-b67e379379ca5be816c7d6d9cdcec99395556733.tar.gz vyatta-cfg-qos-b67e379379ca5be816c7d6d9cdcec99395556733.zip |
rename rate to bandwidth
Make qos syntax more familar to IOS users.
Diffstat (limited to 'scripts/VyattaQosTrafficShaper.pm')
-rw-r--r-- | scripts/VyattaQosTrafficShaper.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index 16c1fef..e051542 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -34,8 +34,8 @@ my $level = $config->setLevel(); my @matches = (); - $self->{_rate} = $config->returnValue("rate"); - defined $self->{_rate} or die "Rate not defined for class $id\n"; + $self->{_rate} = $config->returnValue("bandwidth"); + defined $self->{_rate} or die "Bandwidth not defined for class $id\n"; $self->{_id} = sprintf "%04x", $id; $self->{_priority} = $config->returnValue("priority"); @@ -79,14 +79,14 @@ my $matches = $self->{_match}; $rate <= $speed or - die "Rate for class $id ($rate) must be less than overall rate ($speed)\n"; + die "Bandwidth for class $id ($rate) must be less than overall bandwidth ($speed)\n"; # create the class my $cmd ="class add dev $dev parent 1:1 classid 1:$id htb rate $rate"; if ( defined $ceil) { $ceil >= $rate or - die "Rate ceiling ($ceil) must be greater than base rate ($rate)\n"; + die "Ceiling ($ceil) must be greater than bandwith ($rate)\n"; $cmd .= " ceil $ceil"; } |