summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-12 22:25:55 -0600
committerGitHub <noreply@github.com>2025-02-12 22:25:55 -0600
commit98b774ada1df9b84f9d97a9935145c9829282cf3 (patch)
treeae547239bcbe1874e181ba230067ad4fd36b17a5
parent45e7fc0bedd01bbe4b784d37a90ef28ac4569f2f (diff)
parent83b859bf469620f116c973e9f38845ba13843b94 (diff)
Merge pull request #18133 from FRRouting/mergify/bp/dev/10.3/pr-18120
bgpd: fix incorrect JSON in bgp_show_table_rd (backport #18120)
-rw-r--r--bgpd/bgp_route.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 84f565b4de..1b30487bc3 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -12403,10 +12403,9 @@ int bgp_show_table_rd(struct vty *vty, struct bgp *bgp, afi_t afi, safi_t safi,
memcpy(&prd, dest_p, sizeof(struct prefix_rd));
prefix_rd2str(&prd, rd, sizeof(rd), bgp->asnotation);
- bgp_show_table(vty, bgp, afi, safi, itable, type, output_arg,
- rd, next == NULL, &output_cum,
- &total_cum, &json_header_depth,
- show_flags, RPKI_NOT_BEING_USED);
+ bgp_show_table(vty, bgp, afi, safi, itable, type, output_arg, rd,
+ !bgp_dest_get_bgp_table_info(next), &output_cum, &total_cum,
+ &json_header_depth, show_flags, RPKI_NOT_BEING_USED);
if (next == NULL)
show_msg = false;
}