]> git.puffer.fish Git - matthieu/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:17:33 +0000 (22:17 -0500)
     as implicit withdraw for rfapi

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

index a8217bca1e8d2065556de4794c622a52836d8cd7..403bdb653c37ffeffc62367474b26d7b0a0cc70e 100644 (file)
@@ -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;
 }