From 9e2906ce7755f1723d345d36db7364df1e0b6a03 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 20 May 2009 16:12:51 -0700 Subject: Allow match rules without priority. --- lib/Vyatta/Qos/Match.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Vyatta/Qos') diff --git a/lib/Vyatta/Qos/Match.pm b/lib/Vyatta/Qos/Match.pm index 7ac9ce9..8dda94d 100644 --- a/lib/Vyatta/Qos/Match.pm +++ b/lib/Vyatta/Qos/Match.pm @@ -86,7 +86,8 @@ sub filter { my $p = $self->{$proto}; next unless $p; - printf "filter add dev %s parent %x: prio %d", $dev, $parent, $prio; + printf "filter add dev %s parent %x:", $dev, $parent; + printf " prio %d", $prio if ($prio); if ($proto ne 'ether') { print " protocol $proto u32"; print " match $proto dsfield $$p{dsfield} 0xff" if $$p{dsfield}; -- cgit v1.2.3