summaryrefslogtreecommitdiff
path: root/ldpd
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 /ldpd
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 'ldpd')
-rw-r--r--ldpd/ldpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index c611ec12ad..1280567f83 100644
--- a/ldpd/ldpd.c
+++ b/ldpd/ldpd.c
@@ -177,6 +177,9 @@ static struct quagga_signal_t ldp_signals[] =
}
};
+static const struct frr_yang_module_info *ldpd_yang_modules[] = {
+};
+
FRR_DAEMON_INFO(ldpd, LDP,
.vty_port = LDP_VTY_PORT,
@@ -186,6 +189,9 @@ FRR_DAEMON_INFO(ldpd, LDP,
.n_signals = array_size(ldp_signals),
.privs = &ldpd_privs,
+
+ .yang_modules = ldpd_yang_modules,
+ .n_yang_modules = array_size(ldpd_yang_modules),
)
static int ldp_config_fork_apply(struct thread *t)