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:
Donald Sharp 2015-05-19 18:04:17 -07:00
parent a50b580a0f
commit fb98973a0c

View File

@ -1351,14 +1351,11 @@ bgp_start (struct peer *peer)
static int static int
bgp_reconnect (struct peer *peer) bgp_reconnect (struct peer *peer)
{ {
int ret = 0; if (bgp_stop (peer) < 0)
return -1;
if (bgp_stop (peer) > 0) bgp_start (peer);
bgp_start (peer); return 0;
else
ret = -1;
return ret;
} }
static int static int