diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-14 11:40:18 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-14 11:40:18 -0700 |
commit | 216b27c681dfacba194c9f001eec6287008a750c (patch) | |
tree | 66a673a895ddb57ed2a73322995cdbf40f2f6b10 /templates/qos-policy/rate-limit/node.def | |
parent | 17cd83259313b16a0ef27bf94a09612be8fece96 (diff) | |
download | vyatta-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 'templates/qos-policy/rate-limit/node.def')
-rw-r--r-- | templates/qos-policy/rate-limit/node.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/qos-policy/rate-limit/node.def b/templates/qos-policy/rate-limit/node.def new file mode 100644 index 0000000..55728a7 --- /dev/null +++ b/templates/qos-policy/rate-limit/node.def @@ -0,0 +1,8 @@ +tag: +type: txt +help: Set rate limiting policy +syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" + ; "only alpha-numeric policy name allowed" +create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" +delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +update: /opt/vyatta/sbin/vyatta-qos.pl --update-policy "$VAR(.)" "$VAR(@)" |