summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2009-03-17Use select to avoid passing output path aroundStephen Hemminger
Easier to just use 'select' in perl to avoid passing file descriptor everywhere.
2009-03-08Use hash rather than if/else for delete_interfaceStephen Hemminger
2009-03-08Print correct names for completionStephen Hemminger
Want the policy names, not the policy type.
2009-03-08Reindent qos scriptStephen Hemminger
Getting a little ragged, use perltidy.
2009-03-08Handle multiple options for list, start and deleteStephen Hemminger
Make command more friendly if ever used manually. Handle multiple values for list_policy, start_interface and delete_policy
2009-03-08Move apply from top level into policy nodesStephen Hemminger
Makes code simpler and will work better with config system. Also eliminates need for isChanged() code.
2009-03-08Change vyatta-qos.pl to handle any interface typeStephen Hemminger
Remove code that knows about serial/adsl, etc and replace with new Vyatta::Interface. Simpler and fixes potential issues with bonding, vif, etc.
2009-03-08Fold name conflict checking into policy creationStephen Hemminger
Eliminate need for begin, just check for name conflicts at create.
2009-03-07Fix problems caused by GetOptions() change.Stephen Hemminger
When using closure form of GetOptions, any call to exit only causes GetOptions error rather than exit of program. Since QoS uses die to indicate transaction error, this doesn't work well!
2009-03-07Change optionsStephen Hemminger
Script calls --apply, and typo for --start-interface.
2009-03-07Avoid possible confusion over variable name 'usage'Stephen Hemminger
Having variable and function with same name is confusing.
2009-03-07Cleanup whitespaceStephen Hemminger
Git hates trailing whitespace.
2009-01-30Fix QoS over ppp interfacesStephen Hemminger
Bug 3473 Add ppp startup script to apply QoS on start of related interfaces.
2009-01-25Enable strictStephen Hemminger
Forgot to enable strict.
2009-01-25Fix perl critic warningStephen Hemminger
Make loop variables local
2008-12-09Add support for network emulationStephen Hemminger
New QoS feature to allow emulating WAN characteristics
2008-11-24Change VyattaConfig to Vyatta::ConfigStephen Hemminger
2008-11-21Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg-qos into jennerStephen Hemminger
Conflicts: lib/Vyatta/Qos/TrafficLimiter.pm
2008-11-20Change perl module names from VyattaQosXXX to Vyatta::Qos:XXXStephen Hemminger
Use more multi-level directory hierarchy instead of having all modules at top level.
2008-11-10Change input rate limiting to use token bucketStephen Hemminger
There are two ways to input rate limit. One uses the generic rate estimator which is supposed to measure average rate, the other is to use a token bucket based packet counter. Well the generic rate estimator doesn't work correctly in current kernels (no effect), so switch to using rate and burst. Bugfix 3881
2008-10-27Fix QoS on VifStephen Hemminger
Handle Vif on serial. Can't have update and create tag.
2008-10-24Better message on missing bandwidthStephen Hemminger
Bugfix 3834 Rather than "is not a valid bandwidth", say "bandwidth must be defined for ..."
2008-10-02Fix list-policy problem with ingressStephen Hemminger
Command completeion for policy name was broken by changes to add in and out type.
2008-09-30Validate ingress bandwidth valueStephen Hemminger
The bandwidth value needs to be validated and converted if necessary.
2008-09-23Add incoming traffic limiting to QosStephen Hemminger
This adds support for Qos using incoming policing. It is accepts the syntax and processes commands, but is not fully debugged. Bugfix: 3664
2008-09-05Workaround CLI regex problemStephen Hemminger
Recent CLI changes seem to have broken working templates that do regex matching. Workaround this by doing the syntax checking all in the perl script Bugfix: 3553
2008-08-29Add drop-tail (aka FIFO) QoS policyStephen Hemminger
Add new configuration support for plain fifo queueing. Better code for the table in perl script that loads queue objects.
2008-07-23Handle auto bandwidth value betterStephen Hemminger
Need to handle the case of devices that don't know their current speed. In this case, ethtool will print "Unknown!" which the old code wasn't handling right. Move the default speed stuff down into traffic shaper code as well, so any future policies using auto can make other choices as to what to do in this case. Bugfix: 3450
2008-07-17Don't get classes confused and cause internal errorStephen Hemminger
When validating the class rates, need to leave the array of classes in original form for later command processing. Bugfix 3458
2008-07-15Look for changes in QoS after commitStephen Hemminger
Since configuration system doesn't correctly notify on addition/deletion, have to introduce this extra verbosity to have each traffic-shaper type check for changes. Bugfix for 3452
2008-07-15Merge branch 'hollywood' of suva.vyatta.com:/git/vyatta-cfg-qos into hollywoodStephen Hemminger
2008-07-11Retry to find interface speedStephen Hemminger
Bugfix 3450 If device is offline, can't find speed. So use a sensible default and try a few times.
2008-07-11Fix error message when ceiling < rateStephen Hemminger
Should say "greater or equal" not "less than" Bug 2919
2008-07-08validate traffic shaper rates at commit time if possibleStephen Hemminger
Bugfix 2919 As long as the bandwidth isn't auto, then validate at commit time.
2008-06-11Fix formatting of error messageStephen Hemminger
Add newline in right spot so words don't run together.
2008-06-10Fix error messages for misconfigurationStephen Hemminger
One more try at explaining why rates must be correct.
2008-06-09Fix speed detection on vlan interfaceStephen Hemminger
Use speed of underlying interface. Bug 3137
2008-06-06Fix mixing of set-dscp and dscp matchStephen Hemminger
Use tcindex to get original dsfield value. Fixes bug: 3033
2008-06-03Apply filters always to root.Stephen Hemminger
This might resolve issues with set-dscp and later dscp matches.
2008-05-14new qos-policy type rate-limitStephen Hemminger
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.
2008-05-14remove unused uninitialized variableStephen Hemminger
One of the parameters to TrafficShaper::_define was not being passed or used.
2008-05-08Fail on commit if ceiling is less than bandwidthStephen Hemminger
Change the existing warning into a failure. No one reads warnings, and the shaping is unstable if ceiling < bandwidth.
2008-04-12change error message when speed can not be determinedStephen Hemminger
Slightly better message for the case of using auto value for bandwidth on a device does not support it. Bug: 3104
2008-04-10fix QoS traffic shaper priority-queue setupStephen Hemminger
Yet another place where id needs to be converted to hex. Should fix bug 3078.
2008-04-10fix bug with interpretation of ceilingStephen Hemminger
This fixes problem which causes QoS not to fail on commit if ceiling is a percentage. The ceiling maybe a percentage (not fixed) value so it needs to be interpreted before passing to tc.
2008-04-09Fix match rule formattingStephen Hemminger
Internal TC commands use hex for identifiers and one place in perl script forgot to reformat. Bugfix for 3142 from Chris Smith <chris.smith@conceptcoders.com>
2008-04-02set ceiling on classStephen Hemminger
ceiling parameter was not being forwarded to kernel.
2008-03-31bandwidth problems should be nonfatalStephen Hemminger
If the customer has incorrectly assigned bandwidth and rate ceilings for QOS, the problem can not be detected until commit. At that point (possibly during boot), it is better to print a warning rather than failing. This addresses Bug 2919.
2008-03-20Fix error messages from ethtool leaking outStephen Hemminger
This reverts commit ff77155be360216289e1e73af50dc4b82383cc68.
2008-03-20Put back the bugfix for numeric inputStephen Hemminger
Revert "More unfrozen stuff" This reverts commit f1e5d5991c8fc1420d00ef51c826f77b2d8c2bbd.