]> git.puffer.fish Git - mirror/frr.git/commit
lib: validate affinity-map bit position using the yang model
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 18 Jan 2024 23:40:21 +0000 (01:40 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 19 Jan 2024 01:47:05 +0000 (03:47 +0200)
commit670e0c0737862e77f7baa042b2748345c13e7355
tree6e83f6d2bb5c3b4e0e853ce58960818c54b6cd63
parent26bd685a87cd95b0a864580c5d8696eee203d929
lib: validate affinity-map bit position using the yang model

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/affinitymap.c
lib/affinitymap.h
lib/affinitymap_northbound.c
yang/frr-zebra.yang
zebra/zebra_affinitymap.c
zebra/zebra_nb_config.c