mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:02:26 +00:00
bfdd: close bfd echo sockets, upon vrf disable
upon vrf disable, an event informs bfd daemon that the vrf contexts should be removed. in the case a vrf backend is netns based, all sockets opened under that netns have to be closed. otherwise it is impossible for the system to completely close the network namespace. that implies that some interfaces may not be deleted, and may not be given back to default vrf. PR=65291 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Acked-by: Julien Floret <julien.floret@6wind.com>
This commit is contained in:
parent
1076e2c2b2
commit
8cf3c21737
@ -1706,6 +1706,8 @@ static int bfd_vrf_disable(struct vrf *vrf)
|
||||
socket_close(&bvrf->bg_mhop);
|
||||
socket_close(&bvrf->bg_shop6);
|
||||
socket_close(&bvrf->bg_mhop6);
|
||||
socket_close(&bvrf->bg_echo);
|
||||
socket_close(&bvrf->bg_echov6);
|
||||
|
||||
/* free context */
|
||||
XFREE(MTYPE_BFDD_VRF, bvrf);
|
||||
|
Loading…
Reference in New Issue
Block a user