diff options
| -rw-r--r-- | bgpd/bgpd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 6a56eb4598..0f31719daf 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -4199,6 +4199,10 @@ int bgp_delete(struct bgp *bgp) while (listcount(bgp->peer)) { peer = listnode_head(bgp->peer); + if (peer->ifp || CHECK_FLAG(peer->flags, PEER_FLAG_CAPABILITY_ENHE)) + bgp_zebra_terminate_radv(peer->bgp, peer); + + peer_notify_unconfig(peer->connection); peer_delete(peer); } |
