mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-17 18:15:17 +00:00
qemu: Fix domxml-to-native network model conversion
https://bugzilla.redhat.com/show_bug.cgi?id=636832 (cherry picked from commit 9a2975786b74aa0fe75e3eadb39aa0f9b37e57bb) Conflicts: src/qemu/qemu_driver.c
This commit is contained in:
parent
c1e7b1fbd1
commit
b50e896cee
@ -4608,6 +4608,8 @@ static char *qemuDomainXMLToNative(virConnectPtr conn,
|
||||
for (i = 0 ; i < def->nnets ; i++) {
|
||||
virDomainNetDefPtr net = def->nets[i];
|
||||
int bootIndex = net->info.bootIndex;
|
||||
char *model = net->model;
|
||||
|
||||
if (net->type == VIR_DOMAIN_NET_TYPE_NETWORK) {
|
||||
int actualType = virDomainNetGetActualType(net);
|
||||
const char *brname;
|
||||
@ -4665,7 +4667,9 @@ static char *qemuDomainXMLToNative(virConnectPtr conn,
|
||||
net->data.ethernet.dev = brname;
|
||||
net->data.ethernet.ipaddr = ipaddr;
|
||||
}
|
||||
|
||||
net->info.bootIndex = bootIndex;
|
||||
net->model = model;
|
||||
}
|
||||
for (i = 0 ; i < def->ngraphics ; i++) {
|
||||
if (def->graphics[i]->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user