Signed-off-by: Jim Paris <jim@xxxxxxxx> --- src/qemu_conf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/qemu_conf.c b/src/qemu_conf.c index c463ffb..c1260ed 100644 --- a/src/qemu_conf.c +++ b/src/qemu_conf.c @@ -1738,7 +1738,8 @@ int qemudBuildCommandLine(virConnectPtr conn, while (net) { char nic[100]; - if (snprintf(nic, sizeof(nic), "nic,macaddr=%02x:%02x:%02x:%02x:%02x:%02x,vlan=%d", + if (snprintf(nic, sizeof(nic), "nic%s%s,macaddr=%02x:%02x:%02x:%02x:%02x:%02x,vlan=%d", + (net->model[0] ? ",model=" : ""), net->model, net->mac[0], net->mac[1], net->mac[2], net->mac[3], net->mac[4], net->mac[5], -- 1.5.3.4 -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list