diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-11-26 15:28:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 15:28:51 +0200 |
| commit | bd37658018404f1ad90c39c0ffad697278300085 (patch) | |
| tree | cd7719da6294836e26688dc24ee066a747086587 | |
| parent | c15188f4eb022a03745d4840282e2f9bcb972a03 (diff) | |
| parent | c5d7815cccb92c192ca6b752843b8b827a607b53 (diff) | |
Merge pull request #17506 from pguibert6WIND/int_versus_string
bgpd: fix version attribute is an int, not a string
| -rw-r--r-- | bgpd/bgp_route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 72e798a7e2..5feda71837 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12318,8 +12318,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); |
