zebra_rib: Revert debug hooks.

This commit is contained in:
Everton Marques 2014-09-22 18:00:15 -03:00 committed by Donald Sharp
parent 1b428050e9
commit 8f26ef2c68

View File

@ -436,7 +436,13 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
return 1;
}
else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL))
else if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_INTERNAL) ||
match->type == ZEBRA_ROUTE_KERNEL)
/*
|| match->type == ZEBRA_ROUTE_KERNEL
This prevents zebra from marking recursive static route as inactive.
See pimd/TODO T26.
*/
{
resolved = 0;
for (newhop = match->nexthop; newhop; newhop = newhop->next)