From: G. Paul Ziemba Date: Thu, 2 Feb 2017 00:13:33 +0000 (-0800) Subject: bgpd rfapi: RR replated (Issue #91) treat filtered update X-Git-Tag: frr-3.0-branchpoint~56^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=97736e321bccd969cfe908c2131e93db03307bd0;p=matthieu%2Ffrr.git bgpd rfapi: RR replated (Issue #91) treat filtered update as implicit withdraw for rfapi Signed-off-by: G. Paul Ziemba --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index a8217bca1e..403bdb653c 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2832,6 +2832,17 @@ bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id, bgp_unlock_node (rn); +#if ENABLE_BGP_VNC + /* + * Filtered update is treated as an implicit withdrawal (see bgp_rib_remove() + * a few lines above) + */ + if ((SAFI_MPLS_VPN == safi) || (SAFI_ENCAP == safi)) + { + rfapiProcessWithdraw(peer, NULL, p, prd, NULL, afi, safi, type, 0); + } +#endif + return 0; }