summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-11-26 11:49:27 -0500
committerGitHub <noreply@github.com>2024-11-26 11:49:27 -0500
commit61bcff83b67a6fbbb123d59de47725339b918d35 (patch)
tree226145c9e8c8d461d1a284664f0806fdbf0e907c
parent0268aef6ad215efb469b27bff30dfb43aa265f97 (diff)
parentcd238c71bb037289ade2768709e9b42d9f0a8c04 (diff)
Merge pull request #17513 from FRRouting/mergify/bp/stable/10.0/pr-17506
bgpd: fix version attribute is an int, not a string (backport #17506)
-rw-r--r--bgpd/bgp_route.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 3526d5b1d6..35c9937a06 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -11878,8 +11878,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);