mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Remove network type limitation for qemuARPGetInterfaces
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>
This commit is contained in:
parent
cd33eaa251
commit
79e0e62e78
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user