]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add macvlan delete to qemuDomainAttachNetDevice cleanup
authorMatthew Rosato <mjrosato@linux.vnet.ibm.com>
Mon, 1 Jul 2013 15:04:57 +0000 (17:04 +0200)
committerLaine Stump <laine@laine.org>
Mon, 15 Jul 2013 14:43:03 +0000 (10:43 -0400)
commit97f97a49075b0d86f3bef8f18aa2b01a2f55707b
tree4000dac76fe9bd52138339db7e582d86fee08fdd
parent9e37f57f430055492f9bf5d0abd283eb070486d4
qemu: add macvlan delete to qemuDomainAttachNetDevice cleanup

If an error occurs during qemuDomainAttachNetDevice after the macvtap
was created in qemuPhysIfaceConnect, the macvtap device gets left behind.
This patch adds code to the cleanup routine to delete the macvtap.

Signed-off-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Reviewed-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_hotplug.c