libvirt docs says that network type ethernet not fully
managed by libvirt, so don't check for ip.
This fixes issue when no ip assigned to interface in libvirt domain xml
and somebody want to change link state of interface.
Signed-off-by: Vasiliy Tolstov <v.tolstov(a)selfip.ru>
---
src/qemu/qemu_hotplug.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index aabdb78..db4fdda 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -2394,10 +2394,7 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
case VIR_DOMAIN_NET_TYPE_ETHERNET:
if (STRNEQ_NULLABLE(olddev->data.ethernet.dev,
- newdev->data.ethernet.dev) ||
- olddev->nips == 0 || newdev->nips == 0 ||
- !virSocketAddrEqual(&olddev->ips[0]->address,
- &newdev->ips[0]->address)) {
+ newdev->data.ethernet.dev)) {
needReconnect = true;
}
break;
--
2.5.0