mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 11:28:06 +00:00
Merge pull request #17881 from opensourcerouting/fix/last_reset_reason
bgpd: last reset SNAFU
This commit is contained in:
commit
cec2e9b159
@ -2163,6 +2163,9 @@ bgp_establish(struct peer_connection *connection)
|
||||
peer->established++;
|
||||
bgp_fsm_change_status(connection, Established);
|
||||
|
||||
if (peer->last_reset == PEER_DOWN_WAITING_OPEN)
|
||||
peer->last_reset = 0;
|
||||
|
||||
/* bgp log-neighbor-changes of neighbor Up */
|
||||
if (CHECK_FLAG(peer->bgp->flags, BGP_FLAG_LOG_NEIGHBOR_CHANGES)) {
|
||||
struct vrf *vrf = vrf_lookup_by_id(peer->bgp->vrf_id);
|
||||
|
@ -2026,8 +2026,11 @@ struct peer *peer_create(union sockunion *su, const char *conf_if,
|
||||
if (bgp->autoshutdown)
|
||||
peer_flag_set(peer, PEER_FLAG_SHUTDOWN);
|
||||
/* Set up peer's events and timers. */
|
||||
else if (!active && peer_active(peer->connection))
|
||||
else if (!active && peer_active(peer->connection)) {
|
||||
if (peer->last_reset == PEER_DOWN_NOAFI_ACTIVATED)
|
||||
peer->last_reset = 0;
|
||||
bgp_timer_set(peer->connection);
|
||||
}
|
||||
|
||||
bgp_peer_gr_flags_update(peer);
|
||||
BGP_GR_ROUTER_DETECT_AND_SEND_CAPABILITY_TO_ZEBRA(bgp, bgp->peer);
|
||||
|
Loading…
Reference in New Issue
Block a user