Skip to content

Commit

Permalink
Merge pull request #14558 from FRRouting/mergify/bp/stable/9.0/pr-13617
Browse files Browse the repository at this point in the history
pimd: Fix missing pimreg interface (backport #13617)
  • Loading branch information
Jafaral authored Oct 11, 2023
2 parents 1c508bb + 8593ef2 commit f08f6f4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pimd/pim_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,9 +1490,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
Expand Down

0 comments on commit f08f6f4

Please sign in to comment.