summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-29 13:54:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-29 13:54:38 -0700
commitdae88a60a1b40555db65f19a417b0600055a4b51 (patch)
tree973f1d267eb3bb4263e95b70e35fc4350a677904 /scripts/vyatta-qos.pl
parent8b94b543ac693865f2a52bcde4f53fe1e0926f75 (diff)
downloadvyatta-cfg-qos-dae88a60a1b40555db65f19a417b0600055a4b51.tar.gz
vyatta-cfg-qos-dae88a60a1b40555db65f19a417b0600055a4b51.zip
Add drop-tail (aka FIFO) QoS policy
Add new configuration support for plain fifo queueing. Better code for the table in perl script that loads queue objects.
Diffstat (limited to 'scripts/vyatta-qos.pl')
-rwxr-xr-xscripts/vyatta-qos.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 3d8e58b..690894d 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -46,10 +46,8 @@ my %policies = (
'traffic-shaper' => "VyattaQosTrafficShaper",
'fair-queue' => "VyattaQosFairQueue",
'rate-limit' => "VyattaQosRateLimiter",
+ 'drop-tail' => "VyattaQosDropTail",
);
-use VyattaQosTrafficShaper;
-use VyattaQosFairQueue;
-use VyattaQosRateLimiter;
sub make_policy {
my ($config, $type, $name) = @_;
@@ -58,8 +56,10 @@ sub make_policy {
# This means template exists but we don't know what it is.
defined $class or die "Unknown policy type $type";
- $config->setLevel("qos-policy $type $name");
+ my $location = "$class.pm";
+ require $location;
+ $config->setLevel("qos-policy $type $name");
return $class->new($config, $name);
}