Merge pull request #15763 from FRRouting/mergify/bp/stable/10.0/pr-15733

bgpd: Drop newline in JSON output for `show bgp afi safi json detail` (backport #15733)
This commit is contained in:
Jafar Al-Gharaibeh 2024-04-18 01:33:55 -05:00 committed by GitHub
commit a4cea5cf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11875,7 +11875,7 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
} else { } else {
if (incremental_print) { if (incremental_print) {
vty_out(vty, "\"prefix\": \"%pFX\",\n", p); vty_out(vty, "\"prefix\": \"%pFX\",\n", p);
vty_out(vty, "\"version\": \"%" PRIu64 "\",\n", vty_out(vty, "\"version\": \"%" PRIu64 "\",",
dest->version); dest->version);
} else { } else {
json_object_string_addf(json, "prefix", "%pFX", json_object_string_addf(json, "prefix", "%pFX",