From aac37449cc9462ff161b1e6ac837f47fbadcc10a Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 8 Dec 2011 14:03:06 -0800 Subject: fix priority generation bug in traffic-policy for vrrp interfaces --- gen-interface-templates.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gen-interface-templates.pl') diff --git a/gen-interface-templates.pl b/gen-interface-templates.pl index c2293aa..8e435f6 100755 --- a/gen-interface-templates.pl +++ b/gen-interface-templates.pl @@ -94,7 +94,9 @@ sub gen_template { open my $inf, '<', $in or die "Can't open $in: $!"; open my $outf, '>', $out or die "Can't open $out: $!"; - print $outf "priority: 820 \# after vrrp\n" if ($iftree =~ /vrrp/); + print $outf "priority: 820 \# after vrrp\n" + if ($iftree =~ /vrrp/ && ($in =~ /\/in\// || $in =~ /\/out\//)); + while ( my $line = <$inf> ) { $line =~ s#\$IFNAME#$ifname#; print $outf $line; -- cgit v1.2.3