Correct delete_default_routes() in tables other than main

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-10-11 10:58:35 -07:00
parent 39a3c72057
commit 5b567f2d8b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -369,7 +369,7 @@ replace_default_route() # $1 = USE_DEFAULT_RT
delete_default_routes() # $1 = table number
{
$IP -$g_family route ls table $1 | grep -F default | grep -vF metric | while read route; do
qt $IP -$g_family route del $route
qt $IP -$g_family route del $route table $1
done
}