mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +02:00
Remove interface weight file if not balance or default.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e59bb25225
commit
fe9df4dfd1
@ -633,6 +633,8 @@ sub add_a_provider( $$ ) {
|
|||||||
emit qq(add_gateway "nexthop dev $physical weight $weight $realm" ) . $tbl;
|
emit qq(add_gateway "nexthop dev $physical weight $weight $realm" ) . $tbl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$weight = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
emit( "setup_${dev}_tc" ) if $tcdevices->{$interface};
|
emit( "setup_${dev}_tc" ) if $tcdevices->{$interface};
|
||||||
@ -641,9 +643,15 @@ sub add_a_provider( $$ ) {
|
|||||||
|
|
||||||
pop_indent;
|
pop_indent;
|
||||||
|
|
||||||
emit( 'else',
|
emit( 'else' );
|
||||||
qq( echo $weight > \${VARDIR}/${physical}_weight),
|
|
||||||
qq( progress_message " Provider $table ($number) Started"),
|
if ( $optional ) {
|
||||||
|
emit " echo $weight > \${VARDIR}/${physical}_weight";
|
||||||
|
} else {
|
||||||
|
emit " rm -f \${VARDIR}/${physical}_weight";
|
||||||
|
}
|
||||||
|
|
||||||
|
emit( " progress_message " Provider $table ($number) Started"",
|
||||||
"fi\n"
|
"fi\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user