diff options
-rw-r--r-- | scripts/VyattaQosTrafficLimiter.pm | 4 | ||||
-rw-r--r-- | scripts/VyattaQosTrafficShaper.pm | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/VyattaQosTrafficLimiter.pm b/scripts/VyattaQosTrafficLimiter.pm index 649fb17..86d8a98 100644 --- a/scripts/VyattaQosTrafficLimiter.pm +++ b/scripts/VyattaQosTrafficLimiter.pm @@ -107,8 +107,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/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index 5f9fe75..381bf23 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -310,6 +310,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"; } } |