When detaching interface via detach-device or virDomainDetachDevice() we
parse input XML and (probably) generate a random MAC. This leads then into
not finding interface and thus error. When a mac wasn't specified and domain
has exactly one interface, semantic is clear. Otherwise we require <mac> in
input XML.

Michal Privoznik (3):
  Introduce flag representing if MAC address of interface was generated
        or not.
  qemu: Check for generated MACs while detaching interface
  xen: Check for generated MACs while detaching interface

 src/conf/domain_conf.c  |    2 ++
 src/conf/domain_conf.h  |    1 +
 src/qemu/qemu_hotplug.c |   26 ++++++++++++++++++++------
 src/xen/xm_internal.c   |    3 ++-
 4 files changed, 25 insertions(+), 7 deletions(-)

-- 
1.7.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to