summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-08 14:03:06 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-08 14:03:31 -0800
commitaac37449cc9462ff161b1e6ac837f47fbadcc10a (patch)
tree3050446b7e5fcaee683832f15a1fc40e56d6ae81
parent558d4ea690986418bf3142fd69faa287ddf35c40 (diff)
downloadvyatta-cfg-qos-aac37449cc9462ff161b1e6ac837f47fbadcc10a.tar.gz
vyatta-cfg-qos-aac37449cc9462ff161b1e6ac837f47fbadcc10a.zip
fix priority generation bug in traffic-policy for vrrp interfaces
-rwxr-xr-xgen-interface-templates.pl4
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;