serial: string;
vcpus: int;
usb: string list;
- nics: (string * string * string option) list;
+ nics: (string * string * string option * bool) list;
acpi: bool;
disp: disp_opt;
pci_emulations: string list;
(* qemu need a different id for every vlan, or things get very bad *)
let vlan_id = ref 0 in
let if_number = ref 0 in
- let nics' = List.map (fun (mac, bridge, model) ->
+ let nics' = List.filter (fun (_,_,_,wireless) -> wireless = false) info.nics in
+ let nics' = List.map (fun (mac, bridge, model, _) ->
let modelstr =
match model with
| None -> "rtl8139"
incr if_number;
incr vlan_id;
r
- ) info.nics in
+ ) nics' in
let qemu_pid_path = xs.Xs.getdomainpath domid ^ "/qemu-pid" in
if info.power_mgmt <> 0 then begin
serial: string;
vcpus: int;
usb: string list;
- nics: (string * string * string option) list;
+ nics: (string * string * string option * bool) list;
acpi: bool;
disp: disp_opt;
pci_emulations: string list;
let dm_info_of_cfg cfg =
let nics = get_nics cfg in
- let nics = List.map (fun nic -> nic.nic_mac, nic.nic_bridge, if nic.nic_model="" then None else Some nic.nic_model) nics in
+ let nics = List.map (fun nic -> nic.nic_mac, nic.nic_bridge, (if nic.nic_model="" then None else Some nic.nic_model), nic.nic_wireless) nics in
let extrahvm =
(match cfg.cdrom_pt with