Merge pull request #18133 from FRRouting/mergify/bp/dev/10.3/pr-18120

bgpd: fix incorrect JSON in bgp_show_table_rd (backport #18120)
This commit is contained in:
Jafar Al-Gharaibeh 2025-02-12 22:25:55 -06:00 committed by GitHub
commit 98b774ada1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}