Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pimd: Fix missing pimreg interface #13617

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions pimd/pim_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1495,9 +1495,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