From 0d2e1985a827462c55ada9976bd281d92a6edf09 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 15 Nov 2023 02:15:18 +0100 Subject: 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 --- lib/northbound.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/northbound.c') 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; -- cgit v1.2.3