isisd: guard SPF warning by debug flag

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
Christian Franke 2017-08-29 00:23:53 +02:00
parent b4f816c3f0
commit ce837d81cc

View File

@ -1294,10 +1294,10 @@ static int isis_run_spf(struct isis_area *area, int level, int family,
/*
* C.2.7 Step 2
*/
if (isis_vertex_queue_count(&spftree->tents) == 0) {
if (!isis_vertex_queue_count(&spftree->tents)
&& (isis->debugs & DEBUG_SPF_EVENTS)) {
zlog_warn("ISIS-Spf: TENT is empty SPF-root:%s",
print_sys_hostname(sysid));
goto out;
}
while (isis_vertex_queue_count(&spftree->tents)) {