forked from extern/shorewall_code
Don't insist that route deletion succeeds
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6b38b3a515
commit
481afef2c3
@ -1515,11 +1515,12 @@ sub finish_providers() {
|
|||||||
emit ( " run_ip -4 route replace default scope global table $table \$DEFAULT_ROUTE" );
|
emit ( " run_ip -4 route replace default scope global table $table \$DEFAULT_ROUTE" );
|
||||||
} else {
|
} else {
|
||||||
emit ( " if echo \$DEFAULT_ROUTE | grep -q 'nexthop.+nexthop'; then",
|
emit ( " if echo \$DEFAULT_ROUTE | grep -q 'nexthop.+nexthop'; then",
|
||||||
" run_ip -6 route delete default scope global table $table \$DEFAULT_ROUTE",
|
" qt \$IP -6 route delete default scope global table $table \$DEFAULT_ROUTE",
|
||||||
" run_ip -6 route add default scope global table $table \$DEFAULT_ROUTE",
|
" run_ip -6 route add default scope global table $table \$DEFAULT_ROUTE",
|
||||||
' else',
|
' else',
|
||||||
" run_ip -6 route replace default scope global table $table \$DEFAULT_ROUTE",
|
" run_ip -6 route replace default scope global table $table \$DEFAULT_ROUTE",
|
||||||
' fi' );
|
' fi',
|
||||||
|
'' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $config{USE_DEFAULT_RT} ) {
|
if ( $config{USE_DEFAULT_RT} ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user