[libvirt] [PATCH 1/2] qemu: Remove network type limitation for qemuARPGetInterfaces

Lin Ma lma at suse.com
Fri Sep 7 10:44:53 UTC 2018


When we call qemuARPGetInterfaces to get IP from host's arp table, The
iface's type has nothing to do with it, We should allow all of type.

Signed-off-by: Lin Ma <lma at suse.com>
---
 src/qemu/qemu_driver.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 2f8d6915e1..c2abecf81d 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -20940,9 +20940,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];
-- 
2.16.2




More information about the libvir-list mailing list