From b90204a8e99808378621e50f8e586e6eabb30b76 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 3 Apr 2020 19:43:02 -0300 Subject: 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 --- tests/lib/cli/common_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lib/cli/common_cli.c') diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index e091372ab8..bd81656ca9 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -84,7 +84,7 @@ int main(int argc, char **argv) vty_init(master, false); lib_cmd_init(); - yang_init(); + yang_init(true); nb_init(master, NULL, 0); test_init(argc, argv); -- cgit v1.2.3