Skip to content

Commit

Permalink
Merge pull request #15733 from opensourcerouting/fix/json_output_for_…
Browse files Browse the repository at this point in the history
…show_bgp_ipv4_unicast_json_detail

bgpd: Drop newline in JSON output for `show bgp afi safi json detail`
  • Loading branch information
riw777 authored Apr 16, 2024
2 parents ee77989 + 1dc28e1 commit 0719f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0719f6f

Please sign in to comment.