[systemd-commits] src/network TODO

Tom Gundersen tomegun at kemper.freedesktop.org
Mon May 19 13:00:54 PDT 2014


 TODO                               |    5 ++---
 src/network/networkd-wait-online.c |    4 +++-
 2 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 473dfd7bd5a74b4724818ab8a764c072335fd510
Author: Tom Gundersen <teg at jklm.no>
Date:   Mon May 19 21:57:10 2014 +0200

    networkd-wait-online: wait for addresses to be configured

diff --git a/TODO b/TODO
index 9a50afb..e05317d 100644
--- a/TODO
+++ b/TODO
@@ -709,9 +709,8 @@ Features:
    - add veth netdev support (c.f. http://shorewall.net/bridge-Shorewall-perl.html#veth)
    - add tun/tap netdev support
 
-* dhcp:
-   - export timezone information
-   - FORCERENEW
+* networkd-wait-online:
+   - make operstates to wait for configurable?
 
 * dhcp:
    - export timezone information
diff --git a/src/network/networkd-wait-online.c b/src/network/networkd-wait-online.c
index 3ea7a83..0b8e35d 100644
--- a/src/network/networkd-wait-online.c
+++ b/src/network/networkd-wait-online.c
@@ -183,7 +183,9 @@ static bool all_configured(Manager *m) {
                         return false;
 
                 r = sd_network_get_link_operational_state(indices[i], &oper_state);
-                if (r >= 0 && streq(oper_state, "carrier"))
+                if (r >= 0 &&
+                    (streq(oper_state, "degraded") ||
+                     streq(oper_state, "routable")))
                         /* we wait for at least one link to be ready,
                            regardless of who manages it */
                         one_ready = true;



More information about the systemd-commits mailing list