network: do not block configuring addresses by creating stacked netdevs

`link_is_ready_to_configure()` is used to judge we can configure
addresses, routes, and etc. And they can be configured independently of
stacked netdevs.
This commit is contained in:
Yu Watanabe
2021-12-07 05:34:08 +09:00
parent 5329a37935
commit 879377cad5

View File

@@ -172,9 +172,6 @@ bool link_is_ready_to_configure(Link *link, bool allow_unmanaged) {
if (link->set_link_messages > 0)
return false;
if (!link->stacked_netdevs_created)
return false;
if (!link->activated)
return false;
@@ -441,6 +438,9 @@ void link_check_ready(Link *link) {
return;
}
if (!link->stacked_netdevs_created)
return (void) log_link_debug(link, "%s(): stacked netdevs are not created.", __func__);
if (!link->static_addresses_configured)
return (void) log_link_debug(link, "%s(): static addresses are not configured.", __func__);