mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 16:06:46 +00:00
Merge pull request #9655 from yyuanam/first_commit
Zebra: Ignore the failure of startup intf lookup.
This commit is contained in:
commit
38e7e55306
@ -1292,11 +1292,22 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
|||||||
|
|
||||||
ifp = if_lookup_by_index_per_ns(zns, ifa->ifa_index);
|
ifp = if_lookup_by_index_per_ns(zns, ifa->ifa_index);
|
||||||
if (ifp == NULL) {
|
if (ifp == NULL) {
|
||||||
flog_err(
|
if (startup) {
|
||||||
EC_LIB_INTERFACE,
|
/* During startup, failure to lookup the referenced
|
||||||
"netlink_interface_addr can't find interface by index %d",
|
* interface should not be an error, so we have
|
||||||
ifa->ifa_index);
|
* downgraded this condition to warning, and we permit
|
||||||
return -1;
|
* the startup interface state retrieval to continue.
|
||||||
|
*/
|
||||||
|
flog_warn(EC_LIB_INTERFACE,
|
||||||
|
"%s: can't find interface by index %d",
|
||||||
|
__func__, ifa->ifa_index);
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
flog_err(EC_LIB_INTERFACE,
|
||||||
|
"%s: can't find interface by index %d",
|
||||||
|
__func__, ifa->ifa_index);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Flags passed through */
|
/* Flags passed through */
|
||||||
|
Loading…
Reference in New Issue
Block a user