]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: load nb callbacks even with ignore_cbs set
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 15 Nov 2023 01:15:18 +0000 (02:15 +0100)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 21 Nov 2023 11:13:05 +0000 (13:13 +0200)
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>
lib/northbound.c

index 88aa2a5f20d36f0932c9bbf6067c1f96b12de4f8..32988dfc151b8f49f7764ef7fe3f9e98760a09c8 100644 (file)
@@ -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;