summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pimd/pim_iface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index 0ba7b5a65..d284912d1 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -1534,8 +1534,10 @@ void pim_if_create_pimreg(struct pim_instance *pim)
pim->vrf->name);
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
- pim_if_new(pim->regiface, false, false, true,
- false /*vxlan_term*/);
+ if (!pim->regiface->info)
+ pim_if_new(pim->regiface, false, false, true,
+ false /*vxlan_term*/);
+
/*
* On vrf moves we delete the interface if there
* is nothing going on with it. We cannot have