mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
Merge pull request #16271 from lsang6WIND/avoid-loop
bgpd: avoid clearing routes for peers that were never established
This commit is contained in:
commit
40f79260a5
@ -1241,7 +1241,7 @@ void bgp_fsm_change_status(struct peer_connection *connection,
|
||||
/* Transition into Clearing or Deleted must /always/ clear all routes..
|
||||
* (and must do so before actually changing into Deleted..
|
||||
*/
|
||||
if (status >= Clearing) {
|
||||
if (status >= Clearing && (peer->established || peer == bgp->peer_self)) {
|
||||
bgp_clear_route_all(peer);
|
||||
|
||||
/* If no route was queued for the clear-node processing,
|
||||
|
Loading…
Reference in New Issue
Block a user