]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Print tableid when sending (add/remove) routes to Zebra 16353/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 7 Jul 2024 15:49:05 +0000 (18:49 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 7 Jul 2024 15:49:53 +0000 (18:49 +0300)
In case this is used under `set table X` via route-maps, it's good to know
in debugs the table id.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_zebra.c

index 13f5337cdf9c00de872d42eb63c7a62e75c99e0a..72620de7d98e55b30b6fdab26d41ec09d71d9dd1 100644 (file)
@@ -1665,10 +1665,10 @@ bgp_zebra_announce_actual(struct bgp_dest *dest, struct bgp_path_info *info,
        }
 
        if (bgp_debug_zebra(p)) {
-               zlog_debug("Tx route add %s %pFX metric %u tag %" ROUTE_TAG_PRI
+               zlog_debug("Tx route add %s (table id %u) %pFX metric %u tag %" ROUTE_TAG_PRI
                           " count %d nhg %d",
-                          bgp->name_pretty, &api.prefix, api.metric, api.tag,
-                          api.nexthop_num, nhg_id);
+                          bgp->name_pretty, api.tableid, &api.prefix,
+                          api.metric, api.tag, api.nexthop_num, nhg_id);
                bgp_debug_zebra_nh(&api);
 
                zlog_debug("%s: %pFX: announcing to zebra (recursion %sset)",
@@ -1757,8 +1757,8 @@ enum zclient_send_status bgp_zebra_withdraw_actual(struct bgp_dest *dest,
        }
 
        if (bgp_debug_zebra(p))
-               zlog_debug("Tx route delete %s %pFX", bgp->name_pretty,
-                          &api.prefix);
+               zlog_debug("Tx route delete %s (table id %u) %pFX",
+                          bgp->name_pretty, api.tableid, &api.prefix);
 
        return zclient_route_send(ZEBRA_ROUTE_DELETE, zclient, &api);
 }