summaryrefslogtreecommitdiff
path: root/tests/helpers/c/main.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-12-07 17:31:48 -0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 16:16:12 -0200
commit1c2facd12df7bc27758d7ea674b1e57e401fc234 (patch)
treeb82aeb06586c2c7b380420ddd484964af915aee1 /tests/helpers/c/main.c
parent75082dafb5a929b99d89c8f55e6b2da3f4d90100 (diff)
lib: introduce new northbound API
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests/helpers/c/main.c')
-rw-r--r--tests/helpers/c/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index fed1d5a537..9e34a7c255 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -155,6 +155,8 @@ int main(int argc, char **argv)
cmd_init(1);
vty_init(master);
memory_init();
+ yang_init();
+ nb_init(NULL, 0);
/* OSPF vty inits. */
test_vty_init();
@@ -171,7 +173,7 @@ int main(int argc, char **argv)
/* Configuration file read*/
if (!config_file)
usage(progname, 1);
- vty_read_config(config_file, NULL);
+ vty_read_config(NULL, config_file, NULL);
test_timer_init();