mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
libxl: Allow libxl to set NIC devid
libxl contains logic to determine an appropriate devid for new devices that do not specify one in their configuration. For all device types except NICs, the libxl driver allows libxl to determine devid. Do the same for NICs.
This commit is contained in:
parent
6298f74d9a
commit
ba64b97134
@ -609,8 +609,6 @@ libxlMakeNicList(virDomainDefPtr def, libxl_domain_config *d_config)
|
||||
}
|
||||
|
||||
for (i = 0; i < nnics; i++) {
|
||||
x_nics[i].devid = i;
|
||||
|
||||
if (libxlMakeNic(l_nics[i], &x_nics[i]))
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user