]> xenbits.xensource.com Git - libvirt.git/commit
virDomainNetFindIdx: Ignore auto generated MAC addresses
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 2 Oct 2017 10:43:04 +0000 (12:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Oct 2017 15:10:12 +0000 (17:10 +0200)
commit7e9f171d8bbe5b56b8490016371e845d0f3b361a
tree136a80d64e0a6c0eed491e2d6fa08d29f185c466
parent7e62c4cd26dfde89d561a754f22cd07f23e2429e
virDomainNetFindIdx: Ignore auto generated MAC addresses

When detaching an <interface/> from a domain, the MAC address is
parsed and if not present one is generated. If no corresponding
interface is found in the domain, the following error is
reported:

error: operation failed: no device matching mac address 52:54:00:75:32:5b found

where the MAC address is the auto generated one. This might be
very confusing. Solution to this is to ignore auto generated MAC
address when looking up the device.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/domain_conf.c