]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Use correct data size
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 00:45:32 +0000 (20:45 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 00:45:32 +0000 (20:45 -0400)
a vni_t is 32 bit, so we only need to use a normal
integer for json commands.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c

index cd925f9bb4c4040b356585b57fbc81639b5c82ed..b3edfed5a492f204c056552547bb1b2a088624ac 100644 (file)
@@ -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);
        }