summaryrefslogtreecommitdiff
path: root/ripd/rip_main.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-09 01:34:57 -0300
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 16:16:12 -0200
commit707656ec85360602d849fbbe7fe54c717194f4d5 (patch)
tree8393290ee162977eb3e9f53b84dd5b21c69c085f /ripd/rip_main.c
parent8f90d89ba93a63dba121f0678ed2506b4ae530be (diff)
yang, ripd: add 'frr-ripd.yang' and associated stub callbacks
Introduce frr-ripd.yang, which defines a model for managing the FRR ripd daemon. Also add frr-route-types.yang which defines typedefs for FRR route types. Update the 'frr_yang_module_info' array of ripd with the new 'frr-ripd' module. Add two new files (rip_cli.[ch]) which should contain all ripd commands converted to the new northbound model. Centralizing all commands in a single place will facilitate the process of moving the CLI to a separate program in the future. Add automatically generated stub callbacks in rip_northbound.c. These callbacks will be implemented gradually in the following commits. Add example JSON/XML ripd configurations in yang/examples/. Add the confd.frr-ripd.yang YANG module with annotations specific to the ConfD daemon. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_main.c')
-rw-r--r--ripd/rip_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c
index b47b111bc9..23981d6d66 100644
--- a/ripd/rip_main.c
+++ b/ripd/rip_main.c
@@ -121,6 +121,7 @@ static struct quagga_signal_t ripd_signals[] = {
static const struct frr_yang_module_info *ripd_yang_modules[] = {
&frr_interface_info,
+ &frr_ripd_info,
};
FRR_DAEMON_INFO(ripd, RIP, .vty_port = RIP_VTY_PORT,
@@ -180,6 +181,7 @@ int main(int argc, char **argv)
/* RIP related initialization. */
rip_init();
rip_if_init();
+ rip_cli_init();
rip_zclient_init(master);
rip_peer_init();