Merge pull request #6358 from donaldsharp/zebra_onlink

zebra: Loosen ONLINK restrictions a tiny bit
This commit is contained in:
Jafar Al-Gharaibeh 2020-05-06 15:25:48 -05:00 committed by GitHub
commit a9b763e381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1793,23 +1793,16 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
nexthop->vrf_id);
return 0;
}
if (connected_is_unnumbered(ifp)) {
if (if_is_operative(ifp))
return 1;
if (if_is_operative(ifp))
return 1;
else {
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug(
" %s: Onlink and interface %s is not operative",
__func__, ifp->name);
return 0;
}
if (!if_is_operative(ifp)) {
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug(
" %s: Interface %s is not unnumbered",
__func__, ifp->name);
return 0;
}
}
if ((top->p.family == AF_INET && top->p.prefixlen == 32