diff --git a/src/app/components/preferences/common/custom-adapters/custom-adapters.component.ts b/src/app/components/preferences/common/custom-adapters/custom-adapters.component.ts index e693a133..cdc00db9 100644 --- a/src/app/components/preferences/common/custom-adapters/custom-adapters.component.ts +++ b/src/app/components/preferences/common/custom-adapters/custom-adapters.component.ts @@ -19,12 +19,18 @@ export class CustomAdaptersComponent { public adapters: CustomAdapter[]; public numberOfAdapters: number; + constructor() { + console.log(this.networkTypes); + } + cancelConfigureCustomAdapters(){ this.closeConfiguratorEmitter.emit(false); } configureCustomAdapters(){ this.adapters = []; + console.log(this.customAdapters); + this.customAdapters.adapters.forEach(n => { this.adapters.push({ adapter_number: n.adapter_number, diff --git a/src/app/services/qemu-configuration.service.ts b/src/app/services/qemu-configuration.service.ts index 8c410031..3e73903d 100644 --- a/src/app/services/qemu-configuration.service.ts +++ b/src/app/services/qemu-configuration.service.ts @@ -11,26 +11,48 @@ export class QemuConfigurationService { } getNetworkTypes() { - let networkTypes = [["e1000", "Intel Gigabit Ethernet"], - ["i82550", "Intel i82550 Ethernet"], - ["i82551", "Intel i82551 Ethernet"], - ["i82557a", "Intel i82557A Ethernet"], - ["i82557b", "Intel i82557B Ethernet"], - ["i82557c", "Intel i82557C Ethernet"], - ["i82558a", "Intel i82558A Ethernet"], - ["i82558b", "Intel i82558B Ethernet"], - ["i82559a", "Intel i82559A Ethernet"], - ["i82559b", "Intel i82559B Ethernet"], - ["i82559c", "Intel i82559C Ethernet"], - ["i82559er", "Intel i82559ER Ethernet"], - ["i82562", "Intel i82562 Ethernet"], - ["i82801", "Intel i82801 Ethernet"], - ["ne2k_pci", "NE2000 Ethernet"], - ["pcnet", "AMD PCNet Ethernet"], - ["rtl8139", "Realtek 8139 Ethernet"], - ["virtio", "Legacy paravirtualized Network I/O"], - ["virtio-net-pci", "Paravirtualized Network I/O"], - ["vmxnet3", "VMWare Paravirtualized Ethernet v3"]]; + // needs extending of custom adapter component + // let networkTypes = [["e1000", "Intel Gigabit Ethernet"], + // ["i82550", "Intel i82550 Ethernet"], + // ["i82551", "Intel i82551 Ethernet"], + // ["i82557a", "Intel i82557A Ethernet"], + // ["i82557b", "Intel i82557B Ethernet"], + // ["i82557c", "Intel i82557C Ethernet"], + // ["i82558a", "Intel i82558A Ethernet"], + // ["i82558b", "Intel i82558B Ethernet"], + // ["i82559a", "Intel i82559A Ethernet"], + // ["i82559b", "Intel i82559B Ethernet"], + // ["i82559c", "Intel i82559C Ethernet"], + // ["i82559er", "Intel i82559ER Ethernet"], + // ["i82562", "Intel i82562 Ethernet"], + // ["i82801", "Intel i82801 Ethernet"], + // ["ne2k_pci", "NE2000 Ethernet"], + // ["pcnet", "AMD PCNet Ethernet"], + // ["rtl8139", "Realtek 8139 Ethernet"], + // ["virtio", "Legacy paravirtualized Network I/O"], + // ["virtio-net-pci", "Paravirtualized Network I/O"], + // ["vmxnet3", "VMWare Paravirtualized Ethernet v3"]]; + + let networkTypes = ["e1000", "Intel Gigabit Ethernet", + "i82550", + "i82551", + "i82557a", + "i82557b", + "i82557c", + "i82558a", + "i82558b", + "i82559a", + "i82559b", + "i82559c", + "i82559er", + "i82562", + "i82801", + "ne2k_pci", + "pcnet", + "rtl8139", + "virtio", + "virtio-net-pci", + "vmxnet3"]; return networkTypes; }