summaryrefslogtreecommitdiffstats
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-25 02:15:31 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-28 23:16:16 +0200
commitae0994f6eb301491aafb8fef8f1d8c6a9033fae9 (patch)
tree406cc9c8c8e8ed320d1f7df3845e2194120004c3 /lib/libfrr.c
parentlib: Make the debug callbacks a list of callbacks (diff)
downloadfrr-ae0994f6eb301491aafb8fef8f1d8c6a9033fae9.tar.xz
frr-ae0994f6eb301491aafb8fef8f1d8c6a9033fae9.zip
lib: Separate out the debug_init api
Separate out the debug_init api to have 2 functions: 1) Function to register a callback 2) Function to initiate the cli. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/libfrr.c')
-rw-r--r--lib/libfrr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 5970e70a6..8fa1509b7 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -39,6 +39,7 @@
#include "db.h"
#include "northbound_cli.h"
#include "northbound_db.h"
+#include "debug.h"
DEFINE_HOOK(frr_late_init, (struct thread_master * tm), (tm))
DEFINE_KOOH(frr_early_fini, (), ())
@@ -654,6 +655,9 @@ struct thread_master *frr_init(void)
lib_error_init();
yang_init();
+
+ debug_init_cli();
+
nb_init(master, di->yang_modules, di->n_yang_modules);
if (nb_db_init() != NB_OK)
flog_warn(EC_LIB_NB_DATABASE,