]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: do not block configuring addresses by creating stacked netdevs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 20:34:08 +0000 (05:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 06:58:25 +0000 (15:58 +0900)
`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.

src/network/networkd-link.c

index f0e1d9bcd41a25676ba9f7a2147ad687d391ea65..c2b632ba5bd99cd66e5772981b3ac7ddfa396c7e 100644 (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__);