diff --git a/zebra/interface.c b/zebra/interface.c index fc44be34ea..a785186e3d 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -726,6 +726,9 @@ void if_delete_update(struct interface *ifp) return; } + if (!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) + return; + /* Mark interface as inactive */ UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE);