From: Tuetuopay Date: Wed, 6 Mar 2019 18:21:32 +0000 (+0100) Subject: zebra/vxlan: Associate L3VNIs to EVPN VRF X-Git-Tag: 7.1_pulled~111^2~10 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2118e6a9b4e875214fed275f628d4fa410d6f784;p=matthieu%2Ffrr.git zebra/vxlan: Associate L3VNIs to EVPN VRF 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 Sponsored-by: Scaleway --- diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index d4bae6d133..bf12422466 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -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;