diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2019-04-23 09:10:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-23 09:10:13 -0700 |
| commit | 48db712fa5524d94c24cb32eb4fbbbcf5e5a0d1a (patch) | |
| tree | aca737c47aff0c26036dfa5df755f5a1d2279fdf | |
| parent | b85c68e31c85b3ee3cf690c467a1239616cfa002 (diff) | |
| parent | 1b7bb74761cbec1052cd425ec2c4cbdd7f2ee37c (diff) | |
Merge pull request #4163 from chiragshah6/evpn_dev2
bgpd: instance delete unimport evpn routes
| -rw-r--r-- | bgpd/bgp_route.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 31df5165ae..7850666085 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -4218,6 +4218,13 @@ static void bgp_cleanup_table(struct bgp *bgp, struct bgp_table *table, for (rn = bgp_table_top(table); rn; rn = bgp_route_next(rn)) for (pi = bgp_node_get_bgp_path_info(rn); pi; pi = next) { next = pi->next; + + /* Unimport EVPN routes from VRFs */ + if (safi == SAFI_EVPN) + bgp_evpn_unimport_route(bgp, AFI_L2VPN, + SAFI_EVPN, + &rn->p, pi); + if (CHECK_FLAG(pi->flags, BGP_PATH_SELECTED) && pi->type == ZEBRA_ROUTE_BGP && (pi->sub_type == BGP_ROUTE_NORMAL |
