diff options
Diffstat (limited to 'gen-interface-templates.pl')
-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; |