diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2023-11-15 02:15:18 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2023-11-21 12:13:05 +0100 |
commit | 0d2e1985a827462c55ada9976bd281d92a6edf09 (patch) | |
tree | 6e7424cb72de5c919fcb81864168d7f9944cee8a /lib/northbound.c | |
parent | Merge pull request #14710 from teletajp/fix_show_ospf_gr_helper_cmd (diff) | |
download | frr-0d2e1985a827462c55ada9976bd281d92a6edf09.tar.xz frr-0d2e1985a827462c55ada9976bd281d92a6edf09.zip |
lib: load nb callbacks even with ignore_cbs set
Don't skip NB callbacks loading when ignore_cbs is set for a YANG
module. It allows us to use cli_show, cli_show_end and cli_cmp callbacks
in mgmtd and output configuration directly from it instead of backend
daemons.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.c')
-rw-r--r-- | lib/northbound.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/northbound.c b/lib/northbound.c index 88aa2a5f2..32988dfc1 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -2575,10 +2575,6 @@ const char *nb_client_name(enum nb_client client) static void nb_load_callbacks(const struct frr_yang_module_info *module) { - - if (module->ignore_cbs) - return; - for (size_t i = 0; module->nodes[i].xpath; i++) { struct nb_node *nb_node; uint32_t priority; |