summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosUtil.pm
AgeCommit message (Collapse)Author
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-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-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-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-06-09Fix speed detection on vlan interfaceStephen Hemminger
Use speed of underlying interface. Bug 3137
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-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.
2008-03-19More unfrozen stuffStephen Hemminger
Revert "Better validation of numeric input" This reverts commit e1624917ba2ed574fe350b470762a732a9820cbd.
2008-03-19Wait for the eternal freeze to liftStephen Hemminger
Revert "silence ethtool messages when auto bandwidth used" This reverts commit c1b530e7bfa5c33a8f51f634f906d2412f187e90.
2008-03-19silence ethtool messages when auto bandwidth usedStephen Hemminger
If device doesn't support full ethtool, then ethtool error messages were leaking out to console, when QOS bandwidth was detecting interface speed.
2008-03-19Better validation of numeric inputStephen Hemminger
Fix for Bug 2763 and related problems. Need better handling of numeric inputs. Real perl programmers don't use a switch, but hash instead.
2008-03-10add license text to scriptsStephen Hemminger
2008-03-03DSCP values should be scaledStephen Hemminger
For compatiablity use DSCP values in the 0..63 range and scale in the script, rather than uses raw header values. This makes configuration more familar to IOS users.
2008-02-15default scaling for bandwidth fixStephen Hemminger
If no suffix is given, the bandwidth value should be in "bits/sec" (not bytes/sec), to be compatiable with other routers.
2008-02-14use sudo to run ethtoolStephen Hemminger
But do it in a manner safe from quoting attacks!
2008-02-13catch errors where dscp name is not definedStephen Hemminger
This enforces syntax checks on dscp values.
2008-02-06better error handling and propogation from get_numStephen Hemminger
Return undefined on bad value, so caller can print message.
2008-02-06rename rate to bandwidthStephen Hemminger
Make qos syntax more familar to IOS users.
2008-02-05add support for match based on incoming device and vlanStephen Hemminger
This is preliminary (still needs testing) but get the syntax and basic structure in place.
2008-02-05handle undefined values betterStephen Hemminger
If getprotocol or getdsfield is called with undefined value, then return undefined.
2008-02-04fix parsing of ethtool output for auto rate processingStephen Hemminger
Fix a number of perl scoping bugs that kept auto rate processing from working.
2008-02-04get auto speed correctlyStephen Hemminger
numeric comparison uses where string comparison should have been used
2008-01-30Initial version of vyatta-cfg-qosdebian/0.1Stephen Hemminger
This the initial checkin prior to integration