bgpd: update all routes when vrf changes on a VNI

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
Mitesh Kanjariya 2017-10-18 18:08:28 -07:00
parent 5e06422cb1
commit e92bd2a28b

View File

@ -3795,6 +3795,9 @@ int bgp_evpn_local_vni_add(struct bgp *bgp, vni_t vni,
bgpevpn_unlink_from_l3vni(vpn);
vpn->tenant_vrf_id = tenant_vrf_id;
bgpevpn_link_to_l3vni(vpn);
/* update all routes with new export RT for VRFs */
update_routes_for_vni(bgp, vpn);
}
if (is_vni_live(vpn)