]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: add an exception in the northbound for operational data callbacks
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 18 Sep 2019 13:55:55 +0000 (10:55 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 18 Sep 2019 17:35:10 +0000 (14:35 -0300)
commit6f4e5eddc0a5ce84fd0546bb8cb21c7530ff0693
tree561cb1604ebcbe41598be9b6521523c396b9fa3f
parent6b5d6e2dbc885cd389bb694e7b83a76652b09bd5
lib: add an exception in the northbound for operational data callbacks

During initialization, the northbound detects if any required
callback is missing (fatal error) or if any unneeded callback is
present (warning).

There are three callbacks, however, that should require special
handling: get_next(), get_keys() and lookup_entry().

These callbacks are normally unneeded for configuration lists. But,
if a configuration list is augmented with new state nodes by another
module, then the three callbacks mentioned above become required. In
this case, never log a warning when these callbacks are implemented
when they are not needed, since this depends on context (e.g. some
daemons might augment "frr-interface" while others don't).

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