mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 20:55:25 +00:00
Merge pull request #13617 from anlancs/fix/pimd-remove-pimreg-vrf
pimd: Fix missing pimreg interface
This commit is contained in:
commit
9b6f41bfbe
@ -1500,9 +1500,16 @@ void pim_if_create_pimreg(struct pim_instance *pim)
|
||||
pim->vrf->name);
|
||||
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
|
||||
|
||||
if (!pim->regiface->info)
|
||||
pim_if_new(pim->regiface, false, false, true,
|
||||
false /*vxlan_term*/);
|
||||
/*
|
||||
* The pimreg interface might has been removed from
|
||||
* kerenl with the VRF's deletion. It must be
|
||||
* recreated, so delete the old one first.
|
||||
*/
|
||||
if (pim->regiface->info)
|
||||
pim_if_delete(pim->regiface);
|
||||
|
||||
pim_if_new(pim->regiface, false, false, true,
|
||||
false /*vxlan_term*/);
|
||||
|
||||
/*
|
||||
* On vrf moves we delete the interface if there
|
||||
|
Loading…
Reference in New Issue
Block a user