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`
This commit is contained in:
Russ White 2024-04-16 10:15:20 -04:00 committed by GitHub
commit 0719f6f513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",