summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-12-07 20:31:48 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 20:16:12 +0200
commit1c2facd12df7bc27758d7ea674b1e57e401fc234 (patch)
treeb82aeb06586c2c7b380420ddd484964af915aee1 /tests/helpers
parentMerge pull request #3235 from opensourcerouting/buildfoo-20181024 (diff)
downloadfrr-1c2facd12df7bc27758d7ea674b1e57e401fc234.tar.xz
frr-1c2facd12df7bc27758d7ea674b1e57e401fc234.zip
lib: introduce new northbound API
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests/helpers')
-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 fed1d5a53..9e34a7c25 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();