mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 02:46:37 +00:00
zebra: Loosen ONLINK restrictions a tiny bit
Loosen the ONLINK restrictions such that when an upper level protocol sends us a nexthop with an ONLINK attribute just ensure that interface is up and usable. ONLINK effectively means we know what we are doing to the kernel. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
6f2f2e6172
commit
5cfaa2d92b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user