From: Donald Sharp Date: Wed, 20 May 2015 00:47:26 +0000 (-0700) Subject: Send CEASE NOTIFICATIONS to all peers on "no router bgp" X-Git-Tag: frr-2.0-rc1~1502 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=cd92e54816f0f461d62344841e8120936c770543;p=mirror%2Ffrr.git Send CEASE NOTIFICATIONS to all peers on "no router bgp" --- diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index ec7bd34973..77cb5d1fe6 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -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);