diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-29 17:22:54 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-17 17:04:12 -0700 |
commit | c7ee5c9e13920eb42422e474f08c7f3d8a8ec324 (patch) | |
tree | 01dc1da02560b60850b7f13d200f279d10a35835 /lib/Vyatta/Qos/Match.pm | |
parent | b76b37c0752c6f4845ddb4e780f6933a711ee0ac (diff) | |
download | vyatta-cfg-qos-c7ee5c9e13920eb42422e474f08c7f3d8a8ec324.tar.gz vyatta-cfg-qos-c7ee5c9e13920eb42422e474f08c7f3d8a8ec324.zip |
Fix round-robin filter and class generation
This resolves problems with filter and classes for round-robin
policy.
Bug 5950 and 5952
(cherry picked from commit cb9532549c0eb2390cbd7d3eba1b5254bc7cb734)
Diffstat (limited to 'lib/Vyatta/Qos/Match.pm')
-rw-r--r-- | lib/Vyatta/Qos/Match.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm index 50e20f1..dc6f2db 100644 --- a/lib/Vyatta/Qos/Match.pm +++ b/lib/Vyatta/Qos/Match.pm @@ -45,6 +45,12 @@ sub new { bless $self, $class; + # special case for match all + unless ($config) { + $self->{'ether'} = { protocol => 'all' }; + return $self; + } + foreach my $af (qw(ip ipv6 ether)) { next unless $config->exists($af); |