]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: make NHG ID allocation smarter
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 13 May 2020 21:42:55 +0000 (17:42 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:40:59 +0000 (12:40 -0400)
commitac5d1091dcb62484bf432e80023fa55239fc0d84
treefa4c889a4aaab0abd55afb02a554a7ddd482a707
parent25645bd6017802cbcb628718a928599c42f72c72
zebra: make NHG ID allocation smarter

Make NHG ID allocation smarter so it wraps once it hits
the lower bound for protos and performs a lookup to make
sure we don't already have that ID in use.

Its pretty unlikely we would wrap since the ID space is somewhere
around 24million for Zebra at this point in time.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c