summaryrefslogtreecommitdiffstats
path: root/lib/northbound.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-04-16 00:03:15 +0200
committerRenato Westphal <renato@opensourcerouting.org>2019-04-18 18:06:14 +0200
commit1ae9686cdf1b3e514345a5c8ddfa060d9d0429eb (patch)
tree56e4fc149606c65c4b2aafd6d13b8812494e3068 /lib/northbound.c
parentlib: sync sysrepo module with latest API changes (diff)
downloadfrr-1ae9686cdf1b3e514345a5c8ddfa060d9d0429eb.tar.xz
frr-1ae9686cdf1b3e514345a5c8ddfa060d9d0429eb.zip
lib: don't initialize the northbound database in the unit tests
Move call to nb_db_init() from nb_init() to frr_init() so that only the FRR daemons will initialize the northbound database. This should fix a few warnings when running some unit tests. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--lib/northbound.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/northbound.c b/lib/northbound.c
index 9deb9c6cc..fd92aaa9d 100644
--- a/lib/northbound.c
+++ b/lib/northbound.c
@@ -1677,12 +1677,6 @@ void nb_init(struct thread_master *tm,
exit(1);
}
- /* Initialize the northbound database (used for the rollback log). */
- if (nb_db_init() != NB_OK)
- flog_warn(EC_LIB_NB_DATABASE,
- "%s: failed to initialize northbound database",
- __func__);
-
/* Create an empty running configuration. */
running_config = nb_config_new(NULL);