This patch series comes out of a comment in:
https://bugzilla.redhat.com/show_bug.cgi?id=1125755
that pointed out that sioctl(SIOCBRDELBR) won't delete a bridge
interface if it is IFF_UP, but the netlink RTM_DELLINK message doesn't
care - it will delete it anyway. In these patches we switch to using
RTM_DELLINK to avoid failures caused by a bridge interface that is
IFF_UP.
Laine Stump (4):
util: netlink function to delete any network device
util: replace body of virNetDevMacVLanDelete() with
virNetlinkDelLink()
util: use netlink to delete bridge devices
util: use netlink to create bridge devices
src/libvirt_private.syms | 1 +
src/util/virnetdevbridge.c | 90 +++++++++++++++++++++++++++++++++++++++++++--
src/util/virnetdevmacvlan.c | 67 +--------------------------------
src/util/virnetlink.c | 89 ++++++++++++++++++++++++++++++++++++++++++++
src/util/virnetlink.h | 3 +-
5 files changed, 181 insertions(+), 69 deletions(-)
--
2.1.0