Merge pull request #17511 from FRRouting/mergify/bp/stable/10.2/pr-17506

bgpd: fix version attribute is an int, not a string (backport #17506)
This commit is contained in:
Russ White 2024-11-26 11:37:44 -05:00 committed by GitHub
commit e3048179b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12315,8 +12315,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 "\",",
dest->version);
vty_out(vty, "\"version\": %" PRIu64 ",", dest->version);
} else {
json_object_string_addf(json, "prefix", "%pFX",
p);