mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
zebra: hash proto-created but zebra ID spaced NHGS
To prevent duplication of singleton NHGs, lets hash any zebra-ID spaced NHGs sent from an upper level proto. These would be singleton NHGs anyway and should prevent duplication of dataplane installs. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
6c67f41f9e
commit
08da8bbc22
@ -676,7 +676,7 @@ static bool zebra_nhe_find(struct nhg_hash_entry **nhe, /* return value */
|
||||
if (lookup->id == 0)
|
||||
lookup->id = ++id_counter;
|
||||
|
||||
if (ZEBRA_OWNED(lookup)) {
|
||||
if (lookup->id < zclient_get_nhg_lower_bound()) {
|
||||
/*
|
||||
* This is a zebra hashed/owned NHG.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user