Skip to content

Commit

Permalink
bgpd: Note when receiving but not understanding a route notification
Browse files Browse the repository at this point in the history
When BGP has been asked to wait for FIB installation, on route
removal a return call is likely to not have the dest since BGP
will have cleaned up the node, entirely.  Let's just note that
the prefix cannot be found if debugs are turned on and move on.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Mar 28, 2024
1 parent d5f17cd commit 7c60314
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2749,8 +2749,12 @@ static int bgp_zebra_route_notify_owner(int command, struct zclient *zclient,
/* Find the bgp route node */
dest = bgp_safi_node_lookup(bgp->rib[afi][safi], safi, &p,
&bgp->vrf_prd);
if (!dest)
if (!dest) {
if (BGP_DEBUG(zebra, ZEBRA))
zlog_debug("%s: %pFX does not exist in the BGP table, nothing to do for %u",
__func__, &p, note);
return -1;
}

switch (note) {
case ZAPI_ROUTE_INSTALLED:
Expand Down

0 comments on commit 7c60314

Please sign in to comment.