diff options
| author | Russ White <russ@riw.us> | 2024-04-16 10:15:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-16 10:15:20 -0400 |
| commit | 0719f6f51382146c12ab53b4963f5c7e7e64a60c (patch) | |
| tree | f18dfc2ce3905142dd1439cb5ccb7e1d416c435c | |
| parent | ee77989ffa168be7325e0c381ecf015d025345ff (diff) | |
| parent | 1dc28e1d735614715bab5d438bddcb2def6c8f3c (diff) | |
Merge pull request #15733 from opensourcerouting/fix/json_output_for_show_bgp_ipv4_unicast_json_detail
bgpd: Drop newline in JSON output for `show bgp afi safi json detail`
| -rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 77f2f2b84a..848e8ffd8d 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12187,7 +12187,7 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp, } else { if (incremental_print) { vty_out(vty, "\"prefix\": \"%pFX\",\n", p); - vty_out(vty, "\"version\": \"%" PRIu64 "\",\n", + vty_out(vty, "\"version\": \"%" PRIu64 "\",", dest->version); } else { json_object_string_addf(json, "prefix", "%pFX", |
