forked from Mirror/frr
zebra: Cleanup linked list on shutdown in label manager
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
7cabd9361c
commit
f77095430d
|
@ -302,6 +302,11 @@ void label_manager_init(void)
|
||||||
install_element(CONFIG_NODE, &mpls_label_dynamic_block_cmd);
|
install_element(CONFIG_NODE, &mpls_label_dynamic_block_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void label_manager_terminate(void)
|
||||||
|
{
|
||||||
|
list_delete(&lbl_mgr.lc_list);
|
||||||
|
}
|
||||||
|
|
||||||
/* alloc and fill a label chunk */
|
/* alloc and fill a label chunk */
|
||||||
struct label_manager_chunk *
|
struct label_manager_chunk *
|
||||||
create_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
|
create_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
|
||||||
|
|
|
@ -105,6 +105,8 @@ struct label_manager {
|
||||||
};
|
};
|
||||||
|
|
||||||
void label_manager_init(void);
|
void label_manager_init(void);
|
||||||
|
void label_manager_terminate(void);
|
||||||
|
|
||||||
struct label_manager_chunk *
|
struct label_manager_chunk *
|
||||||
assign_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
|
assign_label_chunk(uint8_t proto, unsigned short instance, uint32_t session_id,
|
||||||
uint8_t keep, uint32_t size, uint32_t base);
|
uint8_t keep, uint32_t size, uint32_t base);
|
||||||
|
|
|
@ -236,6 +236,8 @@ void zebra_finalize(struct event *dummy)
|
||||||
|
|
||||||
zebra_pw_terminate();
|
zebra_pw_terminate();
|
||||||
|
|
||||||
|
label_manager_terminate();
|
||||||
|
|
||||||
ns_terminate();
|
ns_terminate();
|
||||||
frr_fini();
|
frr_fini();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in a new issue