mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
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>
This commit is contained in:
parent
77ff93b8f5
commit
0d2e1985a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user