]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Deal with multiple matching devices in domif-getlink
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 4 Oct 2017 15:39:59 +0000 (17:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 Oct 2017 20:47:17 +0000 (13:47 -0700)
commit7a995c6b78062be85ae03b74511e2cc7f0a08898
tree1e923b9641461a7b32129ac3459cff4dbb31c1dc
parent0d3d020ba6c4f4f84cc20821dbd8b542ac994d37
virsh: Deal with multiple matching devices in domif-getlink

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 <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain-monitor.c