]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove network type limitation for qemuARPGetInterfaces
authorLin Ma <lma@suse.com>
Tue, 25 Sep 2018 09:37:24 +0000 (17:37 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Sep 2018 12:57:41 +0000 (14:57 +0200)
Let's ignore the checking of interface type when we call the function
qemuARPGetInterfaces to get IP from host's arp table.

Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Chen Hanxiao <chenhanxiao@gmail.com>
src/qemu/qemu_driver.c

index 126c783a0fac7aaa38fd18f47d1e4a81c4f6417f..b238309852e14aa8f5aceccd8e4f6ffb763e0707 100644 (file)
@@ -20932,9 +20932,6 @@ qemuARPGetInterfaces(virDomainObjPtr vm,
         goto cleanup;
 
     for (i = 0; i < vm->def->nnets; i++) {
-        if (vm->def->nets[i]->type != VIR_DOMAIN_NET_TYPE_NETWORK)
-            continue;
-
         virMacAddrFormat(&(vm->def->nets[i]->mac), macaddr);
         for (j = 0; j < table->n; j++) {
             virArpTableEntry entry = table->t[j];