mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
zebra: Move zebrad initialization outside of cli init
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>
This commit is contained in:
parent
0c08a0b87b
commit
5f145fb8bd
@ -295,6 +295,7 @@ int main(int argc, char **argv)
|
|||||||
zebrad.master = frr_init();
|
zebrad.master = frr_init();
|
||||||
|
|
||||||
/* Zebra related initialize. */
|
/* Zebra related initialize. */
|
||||||
|
zserv_init();
|
||||||
zebra_init();
|
zebra_init();
|
||||||
rib_init();
|
rib_init();
|
||||||
zebra_if_init();
|
zebra_if_init();
|
||||||
|
@ -3298,13 +3298,16 @@ void zserv_read_file(char *input)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialisation of zebra and installation of commands. */
|
void zserv_init(void)
|
||||||
void zebra_init(void)
|
|
||||||
{
|
{
|
||||||
/* Client list init. */
|
/* Client list init. */
|
||||||
zebrad.client_list = list_new();
|
zebrad.client_list = list_new();
|
||||||
zebrad.client_list->del = (void (*)(void *))zebra_client_free;
|
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 configuration write function. */
|
||||||
install_node(&table_node, config_write_table);
|
install_node(&table_node, config_write_table);
|
||||||
install_node(&forwarding_node, config_write_forwarding);
|
install_node(&forwarding_node, config_write_forwarding);
|
||||||
|
@ -148,6 +148,7 @@ extern struct zebra_t zebrad;
|
|||||||
extern unsigned int multipath_num;
|
extern unsigned int multipath_num;
|
||||||
|
|
||||||
/* Prototypes. */
|
/* Prototypes. */
|
||||||
|
extern void zserv_init(void);
|
||||||
extern void zebra_init(void);
|
extern void zebra_init(void);
|
||||||
extern void zebra_if_init(void);
|
extern void zebra_if_init(void);
|
||||||
extern void zebra_zserv_socket_init(char *path);
|
extern void zebra_zserv_socket_init(char *path);
|
||||||
|
Loading…
Reference in New Issue
Block a user