mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-29 20:10:12 +00:00
bgpd: Refine debug logs for zebra GR registration
Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
This commit is contained in:
parent
75040a0295
commit
c30b683338
@ -3979,6 +3979,11 @@ int bgp_zebra_send_capabilities(struct bgp *bgp, bool disable)
|
|||||||
return BGP_GR_FAILURE;
|
return BGP_GR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BGP_DEBUG(zebra, ZEBRA))
|
||||||
|
zlog_debug("%s(%d): Sending GR capability %s to zebra",
|
||||||
|
bgp->name_pretty, bgp->vrf_id,
|
||||||
|
disable ? "disabled" : "enabled");
|
||||||
|
|
||||||
/* Check if capability is already sent. If the flag force is set
|
/* Check if capability is already sent. If the flag force is set
|
||||||
* send the capability since this can be initial bgp configuration
|
* send the capability since this can be initial bgp configuration
|
||||||
*/
|
*/
|
||||||
@ -3994,8 +3999,8 @@ int bgp_zebra_send_capabilities(struct bgp *bgp, bool disable)
|
|||||||
|
|
||||||
if (zclient_capabilities_send(ZEBRA_CLIENT_CAPABILITIES, zclient, &api)
|
if (zclient_capabilities_send(ZEBRA_CLIENT_CAPABILITIES, zclient, &api)
|
||||||
== ZCLIENT_SEND_FAILURE) {
|
== ZCLIENT_SEND_FAILURE) {
|
||||||
zlog_err("%s: %s error sending capability", __func__,
|
zlog_err("%s(%d): Error sending GR capability to zebra",
|
||||||
bgp->name_pretty);
|
bgp->name_pretty, bgp->vrf_id);
|
||||||
ret = BGP_GR_FAILURE;
|
ret = BGP_GR_FAILURE;
|
||||||
} else {
|
} else {
|
||||||
if (disable)
|
if (disable)
|
||||||
@ -4003,9 +4008,6 @@ int bgp_zebra_send_capabilities(struct bgp *bgp, bool disable)
|
|||||||
else
|
else
|
||||||
bgp->present_zebra_gr_state = ZEBRA_GR_ENABLE;
|
bgp->present_zebra_gr_state = ZEBRA_GR_ENABLE;
|
||||||
|
|
||||||
if (BGP_DEBUG(zebra, ZEBRA))
|
|
||||||
zlog_debug("%s: %s send capabilty success", __func__,
|
|
||||||
bgp->name_pretty);
|
|
||||||
ret = BGP_GR_SUCCESS;
|
ret = BGP_GR_SUCCESS;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user