The zebrad initialization does not need to be part of cli
initialization and should be done separately.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebrad.master = frr_init();
/* Zebra related initialize. */
+ zserv_init();
zebra_init();
rib_init();
zebra_if_init();
}
#endif
-/* Initialisation of zebra and installation of commands. */
-void zebra_init(void)
+void zserv_init(void)
{
/* Client list init. */
zebrad.client_list = list_new();
zebrad.client_list->del = (void (*)(void *))zebra_client_free;
+}
+/* Initialisation of zebra and installation of commands. */
+void zebra_init(void)
+{
/* Install configuration write function. */
install_node(&table_node, config_write_table);
install_node(&forwarding_node, config_write_forwarding);
extern unsigned int multipath_num;
/* Prototypes. */
+extern void zserv_init(void);
extern void zebra_init(void);
extern void zebra_if_init(void);
extern void zebra_zserv_socket_init(char *path);