summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Vyatta/Qos/Match.pm2
-rw-r--r--lib/Vyatta/Qos/TrafficLimiter.pm4
-rw-r--r--lib/Vyatta/Qos/TrafficShaper.pm1
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm
index 57aaed3..751473e 100644
--- a/lib/Vyatta/Qos/Match.pm
+++ b/lib/Vyatta/Qos/Match.pm
@@ -15,7 +15,7 @@
package Vyatta::Qos::Match;
require Vyatta::Config;
-use Vyatta::Qos::Util qw(getIfIndex getDSfield getProtocol);
+use Vyatta::Qos::Util qw(getIfIndex getDsfield getProtocol);
use strict;
use warnings;
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm
index e897c03..5c6abba 100644
--- a/lib/Vyatta/Qos/TrafficLimiter.pm
+++ b/lib/Vyatta/Qos/TrafficLimiter.pm
@@ -108,8 +108,8 @@ sub _define {
my %matchTypes = ();
foreach my $class ( $config->listNodes("class") ) {
foreach my $match ( $config->listNodes("class $class match") ) {
- foreach my $type ( $config->listNodes("class $class match $match") )
- {
+ foreach my $type ( $config->listNodes("class $class match $match") ) {
+ next if ($type eq 'description');
$matchTypes{$type} = "$class match $match";
}
}
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm
index 18f4898..ca0baa7 100644
--- a/lib/Vyatta/Qos/TrafficShaper.pm
+++ b/lib/Vyatta/Qos/TrafficShaper.pm
@@ -311,6 +311,7 @@ sub _define {
foreach my $class ( $config->listNodes("class")) {
foreach my $match ( $config->listNodes("class $class match") ) {
foreach my $type ( $config->listNodes("class $class match $match") ) {
+ next if ($type eq 'description');
$matchTypes{$type} = "$class match $match";
}
}