diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-07-29 18:16:14 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-07-29 19:36:30 +0000 | 
| commit | 2d8cb4be8791b36b58dd67e8eb66b739b72846ee (patch) | |
| tree | 1ded1394edd1e79afd3d995919915ddb9a30ca7d /vrrpd/vrrp_zebra.c | |
| parent | a041a8fff234300c534a485b435f94d687bfb6dd (diff) | |
vrrpd: set interface ifindex to internal upon interface deletion
That fix line should have been in a different place.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp_zebra.c')
| -rw-r--r-- | vrrpd/vrrp_zebra.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/vrrpd/vrrp_zebra.c b/vrrpd/vrrp_zebra.c index c15c250bdf..dbfcbe945e 100644 --- a/vrrpd/vrrp_zebra.c +++ b/vrrpd/vrrp_zebra.c @@ -113,6 +113,8 @@ static int vrrp_zebra_if_del(int command, struct zclient *zclient,  	vrrp_if_del(ifp); +	if_set_index(ifp, IFINDEX_INTERNAL); +  	return 0;  } @@ -208,8 +210,6 @@ 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;  }  | 
