dhcp: disable extraneous vlib_log spew
When there are no dhcp client interfaces configured, it's not useful to make periodic / timeout log entries. Type: fix Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I16b68fe15ad9de789e49ad1b782b3b0e536bad60
This commit is contained in:
@ -887,15 +887,18 @@ dhcp_client_process (vlib_main_t * vm,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ~0:
|
case ~0:
|
||||||
/* *INDENT-OFF* */
|
if (pool_elts (dcm->clients))
|
||||||
DHCP_INFO ("timeout");
|
{
|
||||||
pool_foreach (c, dcm->clients,
|
DHCP_INFO ("timeout");
|
||||||
({
|
/* *INDENT-OFF* */
|
||||||
timeout = dhcp_client_sm (now, timeout,
|
pool_foreach (c, dcm->clients,
|
||||||
(uword) (c - dcm->clients));
|
({
|
||||||
}));
|
timeout = dhcp_client_sm (now, timeout,
|
||||||
/* *INDENT-ON* */
|
(uword) (c - dcm->clients));
|
||||||
if (pool_elts (dcm->clients) == 0)
|
}));
|
||||||
|
/* *INDENT-ON* */
|
||||||
|
}
|
||||||
|
else
|
||||||
timeout = 100.0;
|
timeout = 100.0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user