diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2023-03-03 13:09:20 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2023-05-08 21:47:44 -0300 | 
| commit | d8cf2fc52fbcd3f4ada3931574b54f197d59b520 (patch) | |
| tree | 88e64cbabb83f7a19a35787ea2c6ad02c17865c2 /ospfd/ospf_zebra.c | |
| parent | 88b3d5e5144fc6422c600e56e419231ce630f869 (diff) | |
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>
Diffstat (limited to 'ospfd/ospf_zebra.c')
| -rw-r--r-- | ospfd/ospf_zebra.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index e7a98188ab..27d74cd4fc 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -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)  { +	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,  				    stale_time);  }  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);  }  | 
