]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra/vxlan: Associate L3VNIs to EVPN VRF
authorTuetuopay <tuetuopay@me.com>
Wed, 6 Mar 2019 18:21:32 +0000 (19:21 +0100)
committerTuetuopay <tuetuopay@me.com>
Tue, 19 Mar 2019 10:56:25 +0000 (11:56 +0100)
This uses the EPVN VRF to store L3VNIs hashes, and looks up L2VNIs in
this VRF as they are stored there.

Signed-off-by: Tuetuopay <tuetuopay@me.com>
Sponsored-by: Scaleway
zebra/zebra_vxlan.c

index d4bae6d1330085c2fc0a921827009821105aa9af..bf124224669efd5048f64b0058d9ceaf161ac61e 100644 (file)
@@ -8583,7 +8583,7 @@ int zebra_vxlan_process_vrf_vni_cmd(struct zebra_vrf *zvrf, vni_t vni,
        zebra_l3vni_t *zl3vni = NULL;
        struct zebra_vrf *zvrf_default = NULL;
 
-       zvrf_default = zebra_vrf_lookup_by_id(VRF_DEFAULT);
+       zvrf_default = zebra_vrf_get_evpn();
        if (!zvrf_default)
                return -1;