]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Eliminate incorrect and unnecessary check for changed IP address
authorVasiliy Tolstov <v.tolstov@selfip.ru>
Sat, 22 Aug 2015 15:33:15 +0000 (15:33 +0000)
committerLaine Stump <laine@laine.org>
Mon, 24 Aug 2015 14:23:40 +0000 (10:23 -0400)
Commit aa2cc7 modified a previously unnecessary but innocuous check
for interface IP address during interface update incorrectly, causing
all attempted updates (e.g. changing link state) to interfaces of
type='ethernet' for QEMU to fail.

This patch fixes the issue by completely removing the check for IP
address, which is pointless since QEMU doesn't support setting
interface IP addresses from the domain interface XML anyway.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Signed-off-by: Laine Stump <laine@laine.org>
src/qemu/qemu_hotplug.c

index aabdb789c52d0c1d6be870000b9b1980e449aa4c..db4fddac57b6840c528f875ceab0b9e2dce62132 100644 (file)
@@ -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;