summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-03-28 22:08:37 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-03-29 14:19:05 -0400
commit69dd2e5ea613e079887233d75fbce5f7c4107592 (patch)
tree02134dfd84ca71dc529eb44aa6297756b9c2849a /pimd/pim_zebra.c
parent35dd52481a2563916247b4d039df070e1ecf5124 (diff)
bfdd, nhrpd, pimd: When deleting an interface clean up
When we delete an interface, we need to set the interface ifindex to an internal value so that we don't end up in a state where the re-addition of the same ifindex, due to a rename operation, causes an infinite loop. Fixes:#4007 Fix-Suggested-by: Saravanan K Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index ad60e8e3a6..30d66c835b 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -152,6 +152,8 @@ static int pim_zebra_if_del(int command, struct zclient *zclient,
if (!if_is_operative(ifp))
pim_if_addr_del_all(ifp);
+ if_set_index(ifp, IFINDEX_INTERNAL);
+
return 0;
}