From: Daniel Walton <[email protected]> Send CEASE NOTIFICATIONS to all peers on "no router bgp"
Signed-off-by: Daniel Walton <[email protected]> --- bgpd/bgpd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index b2710e9..3a64a3a 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -2424,6 +2424,17 @@ bgp_delete (struct bgp *bgp) THREAD_OFF (bgp->t_startup); + 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); -- 1.9.1 _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
