forked from Mirror/frr
bgpd: Added bgp graceful restart additional debug logs.
bgp graceful restart additional debug logs, resolved merge conflicts. Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
This commit is contained in:
parent
2ba1fe6951
commit
4a6e80fbf2
|
@ -1355,6 +1355,13 @@ static void bgp_peer_send_gr_capability(struct stream *s, struct peer *peer,
|
||||||
* only when GR config is present
|
* only when GR config is present
|
||||||
*/
|
*/
|
||||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_GRACEFUL_RESTART)) {
|
if (CHECK_FLAG(peer->flags, PEER_FLAG_GRACEFUL_RESTART)) {
|
||||||
|
|
||||||
|
if (bgp_flag_check(peer->bgp,
|
||||||
|
BGP_FLAG_GR_PRESERVE_FWD) &&
|
||||||
|
BGP_DEBUG(graceful_restart,
|
||||||
|
GRACEFUL_RESTART))
|
||||||
|
zlog_debug("[BGP_GR] F bit Set");
|
||||||
|
|
||||||
FOREACH_AFI_SAFI (afi, safi) {
|
FOREACH_AFI_SAFI (afi, safi) {
|
||||||
if (peer->afc[afi][safi]) {
|
if (peer->afc[afi][safi]) {
|
||||||
if (BGP_DEBUG(graceful_restart,
|
if (BGP_DEBUG(graceful_restart,
|
||||||
|
|
|
@ -746,7 +746,6 @@ void bgp_notify_send_with_data(struct peer *peer, uint8_t code,
|
||||||
|
|
||||||
strlcpy(bgp_notify.data, c,
|
strlcpy(bgp_notify.data, c,
|
||||||
bgp_notify.length);
|
bgp_notify.length);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bgp_notify_print(peer, &bgp_notify, "sending");
|
bgp_notify_print(peer, &bgp_notify, "sending");
|
||||||
|
|
Loading…
Reference in a new issue