summaryrefslogtreecommitdiff
path: root/babeld/babel_main.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-23 20:29:50 -0300
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 16:16:12 -0200
commit8fcdd0d63530d33f853d3fb54793b7b58a33b591 (patch)
tree08f1a9c3a88f0b56d117d3a70d787bc09d55ca96 /babeld/babel_main.c
parent1c2facd12df7bc27758d7ea674b1e57e401fc234 (diff)
*: add empty array of YANG modules
FRR_DAEMON_INFO should now contain an array of 'frr_yang_module_info' structures describing the YANG modules implemented by the daemon. This array will be used by frr_init() function to load all YANG modules and initialize the northbound callbacks during the daemon initialization. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'babeld/babel_main.c')
-rw-r--r--babeld/babel_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/babeld/babel_main.c b/babeld/babel_main.c
index f26d3a8872..c92d463547 100644
--- a/babeld/babel_main.c
+++ b/babeld/babel_main.c
@@ -136,6 +136,10 @@ struct option longopts[] =
{ 0 }
};
+static const struct frr_yang_module_info *babeld_yang_modules[] =
+ {
+ };
+
FRR_DAEMON_INFO(babeld, BABELD,
.vty_port = BABEL_VTY_PORT,
.proghelp = "Implementation of the BABEL routing protocol.",
@@ -144,6 +148,9 @@ FRR_DAEMON_INFO(babeld, BABELD,
.n_signals = array_size(babel_signals),
.privs = &babeld_privs,
+
+ .yang_modules = babeld_yang_modules,
+ .n_yang_modules = array_size(babeld_yang_modules),
)
int