diff options
| author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-03 16:45:55 -0700 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 10:57:08 -0800 |
| commit | 4992b4aee251015a2c6b4017cd692cc382bd2ade (patch) | |
| tree | 07b65371544605d65561aee5143996ff5e433721 | |
| parent | 06d2e8f3baf1ee648fec53116e405334ae25a117 (diff) | |
bgpd: update type-5 routes upon vrf export-rt change
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_evpn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 535cd00efa..4724f40260 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -3035,6 +3035,10 @@ static void bgp_evpn_handle_export_rt_change_for_vrf(struct bgp *bgp_vrf) if (!bgp_def) return; + /* update all type-5 routes */ + update_advertise_vrf_routes(bgp_vrf); + + /* update all type-2 routes */ for (ALL_LIST_ELEMENTS_RO(bgp_vrf->l2vnis, node, vpn)) update_routes_for_vni(bgp_def, vpn); } |
