summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-09 16:38:30 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-09 16:38:30 -0700
commitb489e5dd2d18c1fb94165be38a475dd18a9007b2 (patch)
treedb994fca7cd2c7b96d17d7d03d3094cb3149f0fb /lib
parent6dca7f847c69ff078010e5beecbf832dae210804 (diff)
downloadvyatta-cfg-qos-b489e5dd2d18c1fb94165be38a475dd18a9007b2.tar.gz
vyatta-cfg-qos-b489e5dd2d18c1fb94165be38a475dd18a9007b2.zip
Remove traffic-limiter outbound
It won't work because of how classifiers interact with policing. See: http://ace-host.stuart.id.au/russell/files/tc/doc/police.txt
Diffstat (limited to 'lib')
-rw-r--r--lib/Vyatta/Qos/TrafficLimiter.pm12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm
index 0a5809f..665f784 100644
--- a/lib/Vyatta/Qos/TrafficLimiter.pm
+++ b/lib/Vyatta/Qos/TrafficLimiter.pm
@@ -85,13 +85,11 @@ sub commands {
my $classes = $self->{_classes};
my $parent;
- if ($direction eq 'in') {
- $parent = 0xffff;
- printf "qdisc add dev %s handle %x: ingress\n", $dev, $parent;
- } else {
- $parent = 1;
- printf "qdisc add dev %s handle %x: prio\n", $dev, $parent;
- }
+ die "traffic-policy limiter only applies for incoming traffic\n"
+ unless ($direction eq 'in');
+
+ $parent = 0xffff;
+ printf "qdisc add dev %s handle %x: ingress\n", $dev, $parent;
# find largest class id (to use for default)
my $maxid = 0;