From: Donald Sharp Date: Fri, 29 Jun 2018 00:45:32 +0000 (-0400) Subject: bgpd: Use correct data size X-Git-Tag: frr-6.1-dev~214^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f00ba6996313701defd40e0c6e1a20c6da612e03;p=matthieu%2Ffrr.git bgpd: Use correct data size a vni_t is 32 bit, so we only need to use a normal integer for json commands. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index cd925f9bb4..b3edfed5a4 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -244,7 +244,7 @@ static void display_import_rt(struct vty *vty, struct irt_node *irt, for (ALL_LIST_ELEMENTS(irt->vnis, node, nnode, tmp_vpn)) { if (json) json_object_array_add( - json_vnis, json_object_new_int64(tmp_vpn->vni)); + json_vnis, json_object_new_int(tmp_vpn->vni)); else vty_out(vty, " %u\n", tmp_vpn->vni); }