summaryrefslogtreecommitdiff
path: root/lib/affinitymap_northbound.c
AgeCommit message (Collapse)Author
2024-02-20lib: add missing priority for affinity map callbacksIgor Ryzhov
Other objects depend on affinity-maps being created before them by using leafref with require-instance true. Set the priority to ensure that. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-28lib: convert affinity-map to mgmtdIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-19lib: make affinity-map value mandatoryIgor Ryzhov
There can't be an affinity map without a bit position. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-19lib: validate affinity-map bit position using the yang modelIgor Ryzhov
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>
2024-01-19lib: make affinity-map value unique in the yang modelIgor Ryzhov
It allows us to remove the code that does the same thing manually. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-19lib: validate affinity-map reference using yang modelIgor Ryzhov
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>
2023-02-10lib,zebra: add affinity-map configuration hooksLouis Scalbert
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>
2023-02-09lib,yang,zebra: add affinity-map supportLouis Scalbert
Add the affinity-map global command to zebra. The syntax is: > affinity-map NAME bit-position (0-1023) Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>