summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-08 01:08:30 +0100
committerTom Gundersen <teg@jklm.no>2014-03-08 01:12:46 +0100
commit76800848f281c3705c9364fd3e888153d94aaf34 (patch)
tree58343eaf305c9019913c96e0414a29c4b25e837c /src/network
parent59a7a684227cd8a8b4d84bd19acc1264d34fca65 (diff)
networkd: link - degrade failed UP to warning
Something else may still bring the link up, so don't enter failed state prematurely.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 785e8d5c9b..9fb8d9f1fc 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -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);