diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-08 14:03:06 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-08 14:03:31 -0800 |
commit | aac37449cc9462ff161b1e6ac837f47fbadcc10a (patch) | |
tree | 3050446b7e5fcaee683832f15a1fc40e56d6ae81 | |
parent | 558d4ea690986418bf3142fd69faa287ddf35c40 (diff) | |
download | vyatta-cfg-qos-aac37449cc9462ff161b1e6ac837f47fbadcc10a.tar.gz vyatta-cfg-qos-aac37449cc9462ff161b1e6ac837f47fbadcc10a.zip |
fix priority generation bug in traffic-policy for vrrp interfaces
-rwxr-xr-x | gen-interface-templates.pl | 4 |
1 files changed, 3 insertions, 1 deletions
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; |