mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 10:56:14 +00:00
ospfd, ospf6d: log when GR messages are sent to zebra
This should be useful to troubleshoot possible GR problems in the future. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
88b3d5e514
commit
d8cf2fc52f
@ -239,12 +239,18 @@ static int ospf6_zebra_gr_update(struct ospf6 *ospf6, int command,
|
|||||||
|
|
||||||
int ospf6_zebra_gr_enable(struct ospf6 *ospf6, uint32_t stale_time)
|
int ospf6_zebra_gr_enable(struct ospf6 *ospf6, uint32_t stale_time)
|
||||||
{
|
{
|
||||||
|
if (IS_DEBUG_OSPF6_GR)
|
||||||
|
zlog_debug("Zebra enable GR [stale time %u]", stale_time);
|
||||||
|
|
||||||
return ospf6_zebra_gr_update(ospf6, ZEBRA_CLIENT_GR_CAPABILITIES,
|
return ospf6_zebra_gr_update(ospf6, ZEBRA_CLIENT_GR_CAPABILITIES,
|
||||||
stale_time);
|
stale_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ospf6_zebra_gr_disable(struct ospf6 *ospf6)
|
int ospf6_zebra_gr_disable(struct ospf6 *ospf6)
|
||||||
{
|
{
|
||||||
|
if (IS_DEBUG_OSPF6_GR)
|
||||||
|
zlog_debug("Zebra disable GR");
|
||||||
|
|
||||||
return ospf6_zebra_gr_update(ospf6, ZEBRA_CLIENT_GR_DISABLE, 0);
|
return ospf6_zebra_gr_update(ospf6, ZEBRA_CLIENT_GR_DISABLE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1252,12 +1252,18 @@ static int ospf_zebra_gr_update(struct ospf *ospf, int command,
|
|||||||
|
|
||||||
int ospf_zebra_gr_enable(struct ospf *ospf, uint32_t stale_time)
|
int ospf_zebra_gr_enable(struct ospf *ospf, uint32_t stale_time)
|
||||||
{
|
{
|
||||||
|
if (IS_DEBUG_OSPF_GR)
|
||||||
|
zlog_debug("Zebra enable GR [stale time %u]", stale_time);
|
||||||
|
|
||||||
return ospf_zebra_gr_update(ospf, ZEBRA_CLIENT_GR_CAPABILITIES,
|
return ospf_zebra_gr_update(ospf, ZEBRA_CLIENT_GR_CAPABILITIES,
|
||||||
stale_time);
|
stale_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ospf_zebra_gr_disable(struct ospf *ospf)
|
int ospf_zebra_gr_disable(struct ospf *ospf)
|
||||||
{
|
{
|
||||||
|
if (IS_DEBUG_OSPF_GR)
|
||||||
|
zlog_debug("Zebra disable GR");
|
||||||
|
|
||||||
return ospf_zebra_gr_update(ospf, ZEBRA_CLIENT_GR_DISABLE, 0);
|
return ospf_zebra_gr_update(ospf, ZEBRA_CLIENT_GR_DISABLE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user