diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-02-13 10:04:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-13 10:04:06 -0600 |
| commit | 3b97f50e31614a14a7c446e420f269b878f5fdf9 (patch) | |
| tree | 89d0d87515a8c6e1af428fc4fda6dbfe503586df | |
| parent | d85c28e8f11d628bcca73919c21d362bbbee5830 (diff) | |
| parent | fb006377bd2a57cf96d3e46495329f6f1d7bbebd (diff) | |
Merge pull request #18134 from FRRouting/mergify/bp/stable/10.2/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 19bd95c321..de8c5c8ab0 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12114,10 +12114,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; } |
