]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Fix for Helper node doesn't set R-bit in OPEN message after the reload.
authorbisdhdh <biswajit.sadhu@gmail.com>
Thu, 24 Oct 2019 06:37:08 +0000 (12:07 +0530)
committerbisdhdh <biswajit.sadhu@gmail.com>
Thu, 23 Jan 2020 04:04:25 +0000 (09:34 +0530)
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>
bgpd/bgp_open.c

index 89437a5149969bc5ab0fbc239cd750317fad5178..82a17671e90838783412be3bbf0ca55b89642554 100644 (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);
                }