]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Note when receiving but not understanding a route notification
authorDonald Sharp <sharpd@nvidia.com>
Thu, 28 Mar 2024 16:25:05 +0000 (12:25 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 28 Mar 2024 16:25:05 +0000 (12:25 -0400)
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 <sharpd@nvidia.com>
bgpd/bgp_zebra.c

index 04d520a9233e359392974d94f7c187a7607713d9..fda92270a8672cab9ca7c142780ba86d7790b2a0 100644 (file)
@@ -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: