Re: [libvirt] [PATCH 3/4] virsh: Deal with multiple matching devices in domif-getlink

2017-10-13 Thread John Ferlan
On 10/05/2017 10:18 AM, Michal Privoznik wrote: > The command tries to match interface in domain definition by MAC > address or interface name. However, since it's possible to > configure two interfaces with the same MAC address, it may > happen that the XPath returns two or more nodes. We should

[libvirt] [PATCH 3/4] virsh: Deal with multiple matching devices in domif-getlink

2017-10-05 Thread Michal Privoznik
The command tries to match interface in domain definition by MAC address or interface name. However, since it's possible to configure two interfaces with the same MAC address, it may happen that the XPath returns two or more nodes. We should check for that. Signed-off-by: Michal Privoznik --- to