mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 15:16:20 +00:00
pathd: add a zebra stop handler
This handler code is used to stop zebra related contexts. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
a145324acf
commit
e6d4113660
@ -352,3 +352,9 @@ void path_zebra_init(struct thread_master *master)
|
||||
/* Connect to the LM. */
|
||||
path_zebra_label_manager_connect();
|
||||
}
|
||||
|
||||
void path_zebra_stop(void)
|
||||
{
|
||||
zclient_stop(zclient);
|
||||
zclient_free(zclient);
|
||||
}
|
||||
|
@ -30,5 +30,6 @@ void path_zebra_delete_sr_policy(struct srte_policy *policy);
|
||||
int path_zebra_request_label(mpls_label_t label);
|
||||
void path_zebra_release_label(mpls_label_t label);
|
||||
void path_zebra_init(struct thread_master *master);
|
||||
void path_zebra_stop(void);
|
||||
|
||||
#endif /* _FRR_PATH_MPLS_H_ */
|
||||
|
@ -510,6 +510,8 @@ void srte_clean_zebra(void)
|
||||
|
||||
RB_FOREACH_SAFE (policy, srte_policy_head, &srte_policies, safe_pol)
|
||||
srte_policy_del(policy);
|
||||
|
||||
path_zebra_stop();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user