mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
The retry of BGP connection after expiry of connect retry timer was
broken by some earlier patches. Instead of staying in Connect state after reattempting the connection, the state used to go back to Idle and then try to connect. This patch fixes this error.
This commit is contained in:
parent
a50b580a0f
commit
fb98973a0c
@ -1351,14 +1351,11 @@ bgp_start (struct peer *peer)
|
||||
static int
|
||||
bgp_reconnect (struct peer *peer)
|
||||
{
|
||||
int ret = 0;
|
||||
if (bgp_stop (peer) < 0)
|
||||
return -1;
|
||||
|
||||
if (bgp_stop (peer) > 0)
|
||||
bgp_start (peer);
|
||||
else
|
||||
ret = -1;
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user