diff options
author | Tobias Jungel <Tobias.Jungel@gmail.com> | 2018-04-20 16:30:40 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-04-20 16:30:40 +0200 |
commit | 4c3879863a5b35f3ccc3fe9bba2b629702a7469d (patch) | |
tree | a62caf480f290acfc60207e025ff9f6cd5473b79 /src/network/netdev/netdev.c | |
parent | 201b26a3441a46c2acf43d6718c01f1df173f014 (diff) | |
download | systemd-4c3879863a5b35f3ccc3fe9bba2b629702a7469d.tar.gz |
networkd: more specific link down while enslaving (#8771)
Issue #5853 introduced a link_down for every netdev enslaved. This behaviour is
not required on other slave interfaces.
fixes 14b6bb7
Diffstat (limited to 'src/network/netdev/netdev.c')
-rw-r--r-- | src/network/netdev/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index e268dff372..af426aebd5 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -225,7 +225,7 @@ static int netdev_enslave_ready(NetDev *netdev, Link* link, sd_netlink_message_h assert(link); assert(callback); - if (link->flags & IFF_UP) { + if (link->flags & IFF_UP && netdev->kind == NETDEV_KIND_BOND) { log_netdev_debug(netdev, "Link '%s' was up when attempting to enslave it. Bringing link down.", link->ifname); r = link_down(link); if (r < 0) |