summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_affinitymap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zebra: rework affinity-map update hookIgor Ryzhov2024-01-191-21/+6
| | | | | | | Don't use config tree when updating internal daemon state. Everything needed is already stored in internal structures. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* lib: validate affinity-map bit position using the yang modelIgor Ryzhov2024-01-191-38/+0
| | | | | | | | When affinity mode is "standard", bit position cannot be greater than 31. Add a "must" statement to the YANG model to validate this, and remove our custom validation code that does the same. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* lib: validate affinity-map reference using yang modelIgor Ryzhov2024-01-191-25/+0
| | | | | | | | | | Change the type of affinity leaf-list in frr-zebra to a leafref with "require-instance" property set to true. This change tells libyang to automatically check that affinity-map exists before usage and doesn't allow it to be deleted if it's referenced. It allows us to remove all the manual code that is doing the same thing. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* lib,zebra: add affinity-map configuration hooksLouis Scalbert2023-02-101-0/+144
Add affinity-map hooks to check the utilization of affinity-map in link-params before its deletion and to update link-params when the affinity-map bit-position is updated. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>