bgpd: Fix for Helper node doesn't set R-bit in OPEN message after the reload.

BGP Helper node doesn't set R-bit in OPEN message after the
restart or reload of the BGP router.

Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
This commit is contained in:
bisdhdh 2019-10-24 12:07:08 +05:30
parent d7b3cda6f7
commit 6102cb7fe4

View File

@ -1332,9 +1332,7 @@ static void bgp_peer_send_gr_capability(struct stream *s, struct peer *peer,
rcapp = stream_get_endp(s);
stream_putc(s, 0);
restart_time = peer->bgp->restart_time;
if ((peer->bgp->t_startup) &&
(CHECK_FLAG(peer->flags,
PEER_FLAG_GRACEFUL_RESTART))) {
if (peer->bgp->t_startup) {
SET_FLAG(restart_time, RESTART_R_BIT);
SET_FLAG(peer->cap, PEER_CAP_RESTART_BIT_ADV);
}