From 63f6bb813fa9d4dd6b149623c5d8436282ce3300 Mon Sep 17 00:00:00 2001 From: "G. Paul Ziemba" Date: Wed, 1 Feb 2017 16:13:33 -0800 Subject: [PATCH] bgpd rfapi: RR replated (Issue #91) treat filtered update as implicit withdraw for rfapi Signed-off-by: G. Paul Ziemba --- bgpd/bgp_route.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 1db68e719..29953cae0 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2835,6 +2835,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; } -- 2.39.2