The code path for a deleted interface was calling
zebra with a IFINDEX_DELETED, which caused zebra
to bitch and moan about the issue. Since the
only thing this function does is call zebra
to deregister the RA stuff, don't set the
ifindex to DELETED till afterwords.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
if (!ifp) /* This may happen if we've just unregistered for a VRF. */
return 0;
- ifp->ifindex = IFINDEX_DELETED;
-
if (BGP_DEBUG(zebra, ZEBRA))
zlog_debug("Rx Intf del VRF %u IF %s", vrf_id, ifp->name);
return 0;
bgp_update_interface_nbrs(bgp, ifp, NULL);
+
+ ifp->ifindex = IFINDEX_DELETED;
return 0;
}