When we receive a NHG from the kernel, we set the ID counter
to that to avoid using IDs owned from the kernel.
If we get one outside of zebra's range, lets not update it
since its probably one we created and never deleted anyway.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zlog_debug("%s: nh %pNHv, id %u, count %d",
__func__, nh, id, (int)count);
- if (id > id_counter)
+ if (id > id_counter && id < zclient_get_nhg_lower_bound())
/* Increase our counter so we don't try to create
* an ID that already exists
*/