summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-07-09 16:21:44 +0200
committerGitHub <noreply@github.com>2019-07-09 16:21:44 +0200
commit379ae68584f6b32db268d83651ca1bd39688f891 (patch)
tree3d11f24b3bdf64bc2be23476390c11e322ab8ede
parentMerge pull request #4511 from pguibert6WIND/flowspec_some_fixes (diff)
parentvrrpd: set interface ifindex to internal upon deletion (diff)
downloadfrr-379ae68584f6b32db268d83651ca1bd39688f891.tar.xz
frr-379ae68584f6b32db268d83651ca1bd39688f891.zip
Merge pull request #4655 from qlyoung/fix-vrrp-iface-del-infiniteloop
vrrpd: set interface ifindex to internal upon deletion
-rw-r--r--vrrpd/vrrp_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vrrpd/vrrp_zebra.c b/vrrpd/vrrp_zebra.c
index 7503034de..c15c250bd 100644
--- a/vrrpd/vrrp_zebra.c
+++ b/vrrpd/vrrp_zebra.c
@@ -208,6 +208,8 @@ static int vrrp_zebra_if_address_del(int command, struct zclient *client,
vrrp_if_address_del(c->ifp);
+ if_set_index(c->ifp, IFINDEX_INTERNAL);
+
return 0;
}