summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-24 01:29:50 +0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 20:16:12 +0200
commit8fcdd0d63530d33f853d3fb54793b7b58a33b591 (patch)
tree08f1a9c3a88f0b56d117d3a70d787bc09d55ca96 /pimd
parentlib: introduce new northbound API (diff)
downloadfrr-8fcdd0d63530d33f853d3fb54793b7b58a33b591.tar.xz
frr-8fcdd0d63530d33f853d3fb54793b7b58a33b591.zip
*: 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 'pimd')
-rw-r--r--pimd/pim_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pimd/pim_main.c b/pimd/pim_main.c
index 578794086..41c385e38 100644
--- a/pimd/pim_main.c
+++ b/pimd/pim_main.c
@@ -71,6 +71,9 @@ struct zebra_privs_t pimd_privs = {
.cap_num_p = sizeof(_caps_p) / sizeof(_caps_p[0]),
.cap_num_i = 0};
+static const struct frr_yang_module_info *pimd_yang_modules[] = {
+};
+
FRR_DAEMON_INFO(pimd, PIM, .vty_port = PIMD_VTY_PORT,
.proghelp = "Implementation of the PIM routing protocol.",
@@ -78,7 +81,8 @@ FRR_DAEMON_INFO(pimd, PIM, .vty_port = PIMD_VTY_PORT,
.signals = pimd_signals,
.n_signals = 4 /* XXX array_size(pimd_signals) XXX*/,
- .privs = &pimd_privs, )
+ .privs = &pimd_privs, .yang_modules = pimd_yang_modules,
+ .n_yang_modules = array_size(pimd_yang_modules), )
int main(int argc, char **argv, char **envp)