summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-04-03 19:43:02 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-04-03 22:34:55 -0300
commitb90204a8e99808378621e50f8e586e6eabb30b76 (patch)
tree1c9b73b4eabb8de2257c409dda4640738faf89c9 /lib/libfrr.c
parent5f37f5304f337a7fe5e0e80afaa85a108b8bc809 (diff)
lib, tools: silence harmless warnings in the northbound tools
Our two northbound tools don't have embedded YANG modules like the other FRR binaries. As such, ly_ctx_set_module_imp_clb() shouldn't be called when the YANG subsystem it being initialized by a northbound tool. To make that possible, add a new "embedded_modules" parameter to the yang_init() function to control whether libyang should look for embedded modules or not. With this fix, "gen_northbound_callbacks" and "gen_yang_deviations" won't emit "YANG model X not embedded, trying external file" warnings anymore. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 3622890e46..9a681103d4 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -717,7 +717,7 @@ struct thread_master *frr_init(void)
log_ref_vty_init();
lib_error_init();
- yang_init();
+ yang_init(true);
debug_init_cli();