From f00ba6996313701defd40e0c6e1a20c6da612e03 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 28 Jun 2018 20:45:32 -0400 Subject: [PATCH] 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 --- bgpd/bgp_evpn_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5