zebra: Remove debugs for retrieving a new nhg id

This is not complicated code and if zebra is allocating
a new one.  Zebra does not need to inform the operator
about the process during debugs.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-01-20 20:36:25 -05:00
parent 7a3b6498fc
commit 827fb64ecb

View File

@ -72,24 +72,12 @@ static uint32_t nhg_get_next_id(void)
while (1) { while (1) {
id_counter++; id_counter++;
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
zlog_debug("%s: ID %u checking", __func__, id_counter);
if (id_counter == ZEBRA_NHG_PROTO_LOWER) { if (id_counter == ZEBRA_NHG_PROTO_LOWER) {
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
zlog_debug("%s: ID counter wrapped", __func__);
id_counter = 0; id_counter = 0;
continue; continue;
} }
if (zebra_nhg_lookup_id(id_counter)) { if (!zebra_nhg_lookup_id(id_counter))
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
zlog_debug("%s: ID already exists", __func__);
continue;
}
break; break;
} }