diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 17:47:26 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 17:47:26 -0700 |
| commit | cd92e54816f0f461d62344841e8120936c770543 (patch) | |
| tree | 2d692697887415b852e9d83976432999418ae371 | |
| parent | 76145957957916bbb4d0ca33018084b5203528a5 (diff) | |
Send CEASE NOTIFICATIONS to all peers on "no router bgp"
| -rw-r--r-- | bgpd/bgpd.c | 11 |
1 files changed, 11 insertions, 0 deletions
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); |
