summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgpd.c11
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);