diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 9283055d9de0..f1a13f6dfd2e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5858,8 +5858,7 @@ void bgp_clear_stale_route(struct peer *peer, afi_t afi, safi_t safi) * If this is VRF leaked route * process for withdraw. */ - if (pi->sub_type == - BGP_ROUTE_IMPORTED && + if (safi == SAFI_MPLS_VPN && peer->bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT) vpn_leak_to_vrf_withdraw(pi);