mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
bgpd: fix version attribute is an int, not a string
The json display of the version attribute is originally an
integer. It has changed, most probably mistakenly.
> {
> "vrfId": 7,
> "vrfName": "vrf1",
> "tableVersion": 3,
> "routerId": "192.0.2.1",
> "defaultLocPrf": 100,
> "localAS": 65500,
> "routes": {
> "172.31.0.1/32": {
> "prefix": "172.31.0.1/32",
> "version": "1", <--- int or string ??
Let us fix it, by using the integer display instead.
Fixes: f9f2d188e3
("bgpd: fix 'json detail' output structure")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
0bacbc6493
commit
c5d7815ccc
@ -12318,8 +12318,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 "\",",
|
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",
|
||||||
p);
|
p);
|
||||||
|
Loading…
Reference in New Issue
Block a user