Temporary fix for qemu template details page

This commit is contained in:
Piotr Pekala 2019-09-17 01:53:30 -07:00
parent fb06398517
commit 94f179c74f
2 changed files with 48 additions and 20 deletions

View File

@ -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,

View File

@ -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;
}