summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-14 11:40:18 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-14 11:40:18 -0700
commit216b27c681dfacba194c9f001eec6287008a750c (patch)
tree66a673a895ddb57ed2a73322995cdbf40f2f6b10 /scripts/vyatta-qos.pl
parent17cd83259313b16a0ef27bf94a09612be8fece96 (diff)
downloadvyatta-cfg-qos-216b27c681dfacba194c9f001eec6287008a750c.tar.gz
vyatta-cfg-qos-216b27c681dfacba194c9f001eec6287008a750c.zip
new qos-policy type rate-limit
Add new QoS policy type "rate-limit" which is a wrapper around the the Token Bucket Filter (TBF) qdisc. Rate limit provides a simple way to do basic bandwidth limitation without the complexity of the doing multiple classes in the traffic shaper policy.
Diffstat (limited to 'scripts/vyatta-qos.pl')
-rwxr-xr-xscripts/vyatta-qos.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index e946551..ad97617 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -47,9 +47,11 @@ GetOptions(
my %policies = (
'traffic-shaper' => "VyattaQosTrafficShaper",
'fair-queue' => "VyattaQosFairQueue",
+ 'rate-limit' => "VyattaQosRateLimiter",
);
use VyattaQosTrafficShaper;
use VyattaQosFairQueue;
+use VyattaQosRateLimiter;
sub make_policy {
my ($config, $type, $name) = @_;