diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-13 11:19:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 11:19:11 -0500 |
| commit | b54519d027a0535bbe0d3fd0a8bf27873e866009 (patch) | |
| tree | caa97f9b054b7ecfdd6b1e26ea77b67a7f04de56 | |
| parent | 92046523bfebd67bfa0ec4cc97901c72e53f0815 (diff) | |
| parent | 7fce0f557dc630e150b03bcb9fb8ee4a58d32ae0 (diff) | |
Merge pull request #18135 from FRRouting/mergify/bp/stable/10.1/pr-18120
bgpd: fix incorrect JSON in bgp_show_table_rd (backport #18120)
| -rw-r--r-- | bgpd/bgp_route.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index e70ebabc35..9adf6ea65b 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -11993,10 +11993,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; } |
