From cd92e54816f0f461d62344841e8120936c770543 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 17:47:26 -0700 Subject: [PATCH] Send CEASE NOTIFICATIONS to all peers on "no router bgp" --- bgpd/bgpd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- 2.39.5