diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-08 21:08:12 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-09 14:41:27 +0200 |
commit | 37ebeb77cf94ef0222cbe3b19eaad8a0a53702f1 (patch) | |
tree | 8068efd40d98ff1b5be500810ec79e7019e124b7 | |
parent | 370e9930c3260cc58984ec70e44b1e2ab7676496 (diff) |
networkd: netdev - drop if creation fails
This ensures that all links waiting to be enslaved are notified that the netdev does not exist.
-rw-r--r-- | src/network/networkd-netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c index 36decf459a..7962cc6c6a 100644 --- a/src/network/networkd-netdev.c +++ b/src/network/networkd-netdev.c @@ -219,8 +219,8 @@ static int netdev_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda if (r == -EEXIST) log_debug_netdev(netdev, "netdev exists, using existing"); else if (r < 0) { - log_warning_netdev(netdev, "netdev failed: %s", strerror(-r)); - netdev_enter_failed(netdev); + log_warning_netdev(netdev, "netdev could not be greated: %s", strerror(-r)); + netdev_drop(netdev); return 1; } |