Skip to content

Commit

Permalink
Merge pull request #18120 from louis-6wind/fix-bgp-rd-json-show
Browse files Browse the repository at this point in the history
bgpd: fix incorrect JSON in bgp_show_table_rd
  • Loading branch information
ton31337 authored Feb 12, 2025
2 parents 4d4e85a + cf02696 commit 007243d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -12436,10 +12436,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;
}
Expand Down

0 comments on commit 007243d

Please sign in to comment.