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
This commit is contained in:
Tobias Jungel 2018-04-20 16:30:40 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 201b26a344
commit 4c3879863a
1 changed files with 1 additions and 1 deletions

View File

@ -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)