]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: introduce new 'pre_validate' northbound callback
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 12 Sep 2019 22:07:54 +0000 (19:07 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 18 Sep 2019 16:38:28 +0000 (13:38 -0300)
commit34224f0c5c7259e0b880d48ea4a0c171997598bb
treedb25dcd048c6b52ec1ef9233022a119c8980d75f
parenteed84494b4e434cb3846383771f3482269e48466
lib: introduce new 'pre_validate' northbound callback

This callback can be used to validate subsections of the
configuration being committed before validating the configuration
changes themselves. It's useful to perform more complex validations
that depend on the relationship between multiple nodes.

Only YANG-level validation (performed by libyang) and the
NB_EV_VALIDATE validation (that can be used to validate individual
configuration changes) proved to be insufficient in some cases.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/northbound.h