]> git.puffer.fish Git - mirror/frr.git/commitdiff
Send CEASE NOTIFICATIONS to all peers on "no router bgp"
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:47:26 +0000 (17:47 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:47:26 +0000 (17:47 -0700)
bgpd/bgpd.c

index ec7bd3497355c61cf02e24f15a41801a1960fbd7..77cb5d1fe63008482b35303a5272f5dec4b96408 100644 (file)
@@ -2362,6 +2362,17 @@ bgp_delete (struct bgp *bgp)
   afi_t afi;
   int i;
 
+  for (ALL_LIST_ELEMENTS (bgp->peer, node, next, peer))
+    {
+      if (peer->status == Established ||
+          peer->status == OpenSent ||
+          peer->status == OpenConfirm)
+        {
+            bgp_notify_send (peer, BGP_NOTIFY_CEASE,
+                             BGP_NOTIFY_CEASE_PEER_UNCONFIG);
+        }
+    }
+
   if (bgp->t_rmap_update)
     BGP_TIMER_OFF(bgp->t_rmap_update);