summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-02-02 13:48:45 +0100
committerGitHub <noreply@github.com>2017-02-02 13:48:45 +0100
commit56041a77064fe6924ca55dd4e394777b7a5900d0 (patch)
tree9d3b524ae317d4b8670cf7b434a9a72f0b7dbcf7
parentMerge pull request #143 from LabNConsulting/working/2.0/patch/mpls-tt (diff)
parentbgpd rfapi: RR replated (Issue #91) treat filtered update (diff)
downloadfrr-56041a77064fe6924ca55dd4e394777b7a5900d0.tar.xz
frr-56041a77064fe6924ca55dd4e394777b7a5900d0.zip
Merge pull request #153 from LabNConsulting/working/2.0/patch-set/rr-part2
2.0: complete Issue#91 fix (regression now clean)
-rw-r--r--bgpd/bgp_route.c11
1 files changed, 11 insertions, 0 deletions
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;
}