]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd rfapi: RR replated (Issue #91) treat filtered update
authorG. Paul Ziemba <paulz@labn.net>
Thu, 2 Feb 2017 00:13:33 +0000 (16:13 -0800)
committerLou Berger <lberger@labn.net>
Thu, 2 Feb 2017 03:14:40 +0000 (22:14 -0500)
     as implicit withdraw for rfapi

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
bgpd/bgp_route.c

index 1db68e7195ecfeba6eb854653acbcd97d79fd3e8..29953cae02c4f32f03cc7f8881cf4127114f9d86 100644 (file)
@@ -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;
 }