mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
zebra: avoid inactivating twice an interface
This code is a sanity check to avoid double unlink of interface. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
393ec5424e
commit
7befff57df
@ -726,6 +726,9 @@ void if_delete_update(struct interface *ifp)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE))
|
||||||
|
return;
|
||||||
|
|
||||||
/* Mark interface as inactive */
|
/* Mark interface as inactive */
|
||||||
UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE);
|
UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user