networkd: link - degrade failed UP to warning
authorTom Gundersen <teg@jklm.no>
Sat, 8 Mar 2014 00:08:30 +0000 (01:08 +0100)
committerTom Gundersen <teg@jklm.no>
Sat, 8 Mar 2014 00:12:46 +0000 (01:12 +0100)
Something else may still bring the link up, so don't enter failed state prematurely.

src/network/networkd-link.c

index 785e8d5..9fb8d9f 100644 (file)
@@ -1056,15 +1056,13 @@ static int link_up_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
                 return 1;
 
         r = sd_rtnl_message_get_errno(m);
-        if (r < 0) {
-                log_struct_link(LOG_ERR, link,
+        if (r < 0)
+                log_struct_link(LOG_WARNING, link,
                                 "MESSAGE=%s: could not bring up interface: %s",
                                 link->ifname, strerror(-r),
                                 "ERRNO=%d", -r,
                                 NULL);
-                link_enter_failed(link);
                 return 1;
-        }
 
         link_update_flags(link, link->flags | IFF_UP);