]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: Add check to ensure link is down before attempting to enslave (#5853)
authorRoelf Wichertjes <roelf@roelf.org>
Sun, 30 Apr 2017 11:12:32 +0000 (13:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 30 Apr 2017 11:12:32 +0000 (13:12 +0200)
commit14b6bb776287e72887071dafae3d4c2c65ee926d
tree6f7369eec8143c0473674a44bdf234f494676e01
parent2766d951c9385d91e504d968551247b115a77ef6
networkd: Add check to ensure link is down before attempting to enslave (#5853)

netdev to bond.

There are situations where a link can be in an "UP" state when
 systemd-networkd attempts to add the link to a bond device.
This is a problem because the bonding driver will refuse to
 enslave a link if it is in the "UP" state.
This check ensures systemd-networkd sets the link to "DOWN"
 before attempting to add the link to the bond.

Fixes #5838.
src/network/netdev/netdev.c
src/network/networkd-link.c
src/network/networkd-link.h