mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 04:55:18 +00:00
libxl_conf: reuse virDomainNetGetActualtype in libxlMakeNicList
Reuse existing helper function virDomainNetGetActualtype. Signed-off-by: Chunyan Liu <cyliu@suse.com> Signed-off-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
2f0d57e4b0
commit
f41e03c63f
@ -1445,7 +1445,7 @@ libxlMakeNicList(virDomainDefPtr def, libxl_domain_config *d_config)
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < nnics; i++) {
|
||||
if (l_nics[i]->type == VIR_DOMAIN_NET_TYPE_HOSTDEV)
|
||||
if (virDomainNetGetActualType(l_nics[i]) == VIR_DOMAIN_NET_TYPE_HOSTDEV)
|
||||
continue;
|
||||
|
||||
if (libxlMakeNic(def, l_nics[i], &x_nics[nvnics]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user