valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0069-networkd-netdev-inform-when-we-take-over-an-existing.patch

803fb7
From fab00ed4a9ce8a1d579028c2fc39db3717b454da Mon Sep 17 00:00:00 2001
803fb7
From: Tom Gundersen <teg@jklm.no>
803fb7
Date: Wed, 4 Mar 2015 10:33:50 +0100
803fb7
Subject: [PATCH] networkd: netdev - inform when we take over an existing
803fb7
 netdev
803fb7
803fb7
The crucial point here is that we will not change the settings of a netdev created by someone else
803fb7
we simply use it as is and trust it was set up as intended.
803fb7
803fb7
This is confusing in the case of the pre-created netdev's (bond0 etc.), the solution should probably
803fb7
be to simply make the kernel stop creating these devices as they are pretty useless.
803fb7
803fb7
(cherry picked from commit ff88a301e93cf1bddbaa7faa981f390a2a81a4bb)
803fb7
---
803fb7
 src/network/networkd-netdev.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
803fb7
index 8119205dd..7d193d088 100644
803fb7
--- a/src/network/networkd-netdev.c
803fb7
+++ b/src/network/networkd-netdev.c
803fb7
@@ -261,7 +261,7 @@ static int netdev_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda
803fb7
 
803fb7
         r = sd_rtnl_message_get_errno(m);
803fb7
         if (r == -EEXIST)
803fb7
-                log_netdev_debug(netdev, "netdev exists, using existing");
803fb7
+                log_info_netdev(netdev, "netdev exists, using existing without changing its parameters");
803fb7
         else if (r < 0) {
803fb7
                 log_warning_netdev(netdev, "netdev could not be created: %s", strerror(-r));
803fb7
                 netdev_drop(netdev);