]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Check for user aliases duplicates only
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Feb 2018 11:18:40 +0000 (12:18 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Mar 2018 12:27:24 +0000 (13:27 +0100)
commite43263601fe27feb8d005668528f35f75428b8c6
tree03bd560bde66543872645871c5b86811679e16b2
parente5673ed44465edcfccdd906158136ad8dcb94b9b
conf: Check for user aliases duplicates only

https://bugzilla.redhat.com/show_bug.cgi?id=1553162

When validating a device XML config we check if user provided
alias is unique. We do this by maintaining a hash table of device
aliases as we iterated over all devices defined for the domain.
However, it may happen that what appears as two devices in domain
XML is in fact just one interface in hypervisor.  We can assume
libvirt generated aliases to be unique and thus really check user
provided ones only.

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