New approach to copying blackhole routes to secondary routing tables.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-06 20:02:48 -08:00
parent 06e7f297f7
commit 5e0749da3c

View File

@ -252,6 +252,9 @@ sub copy_and_edit_table( $$$$ ) {
emit ( ' case $net in',
' default)',
' ;;',
' blackhole)',
" run_ip route add table $number blackhole \$route $realm",
' ;;',
' *)',
' case $(find_device $route) in',
" $copy)" );
@ -269,9 +272,6 @@ sub copy_and_edit_table( $$$$ ) {
}
emit ( ' ;;',
' *)',
" [ \$net = blackhole ] && run_ip route add table $number \$net \$route $realm",
' ;;',
' esac',
' ;;',
' esac',