Merge pull request #14251 from donaldsharp/protodown_rc_issue

zebra: Prevent protodown_rc from going Bzonkas
This commit is contained in:
Donatas Abraitis 2023-08-23 11:08:30 +03:00 committed by GitHub
commit 5acbff964e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1195,6 +1195,12 @@ static bool if_ignore_set_protodown(const struct interface *ifp, bool new_down,
zif = ifp->info;
/*
* FRR does not have enough data to make this request
*/
if (ifp->ifindex == IFINDEX_INTERNAL)
return true;
/* Current state as we know it */
old_down = !!(ZEBRA_IF_IS_PROTODOWN(zif));
old_set_down = !!CHECK_FLAG(zif->flags, ZIF_FLAG_SET_PROTODOWN);