mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-19 04:57:51 +00:00
Fix issues with Qemu adapters in template preferences. Fixes #1449
This commit is contained in:
parent
838480509e
commit
0d7020af97
@ -13,8 +13,8 @@
|
||||
<th mat-header-cell *matHeaderCellDef>Adapter type</th>
|
||||
<td mat-cell *matCellDef="let element; let i = index">
|
||||
<mat-select placeholder="Type" [(ngModel)]="element.adapter_type">
|
||||
<mat-option *ngFor="let type of networkTypes" [value]="type">
|
||||
{{ type }}
|
||||
<mat-option *ngFor="let type of networkTypes" [value]="type.value">
|
||||
{{ type.name }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</td>
|
||||
|
@ -186,7 +186,7 @@
|
||||
</mat-form-field>
|
||||
<mat-form-field class="form-field">
|
||||
<mat-select placeholder="Type" [(ngModel)]="qemuTemplate.adapter_type">
|
||||
<mat-option *ngFor="let type of networkTypes" [value]="type[0]"> {{ type[1] }} ({{ type[0] }}) </mat-option>
|
||||
<mat-option *ngFor="let type of networkTypes" [value]="type.value">{{type.name}} ({{type.value}}) </mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<button mat-button class="configButton" (click)="setCustomAdaptersConfiguratorState(true)">
|
||||
|
@ -12,53 +12,30 @@ export class QemuConfigurationService {
|
||||
|
||||
getNetworkTypes() {
|
||||
// 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',
|
||||
'e1000-82544gc',
|
||||
'e1000-82545em',
|
||||
'e1000e',
|
||||
'rocker',
|
||||
'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',
|
||||
{ value: 'e1000', name: 'Intel Gigabit Ethernet' },
|
||||
{ value: 'e1000-82544gc', name: 'Intel 82544GC Gigabit Ethernet' },
|
||||
{ value: 'e1000-82545em', name: 'Intel 82545EM Gigabit Ethernet' },
|
||||
{ value: 'e1000e', name: 'Intel PCIe Gigabit Ethernet' },
|
||||
{ value: 'i82550', name: 'Intel i82550 Ethernet' },
|
||||
{ value: 'i82551', name: 'Intel i82551 Ethernet' },
|
||||
{ value: 'i82557a', name: 'Intel i82557A Ethernet' },
|
||||
{ value: 'i82557b', name: 'Intel i82557B Ethernet' },
|
||||
{ value: 'i82557c', name: 'Intel i82557C Ethernet' },
|
||||
{ value: 'i82558a', name: 'Intel i82558A Ethernet' },
|
||||
{ value: 'i82558b', name: 'Intel i82558B Ethernet' },
|
||||
{ value: 'i82559a', name: 'Intel i82559A Ethernet' },
|
||||
{ value: 'i82559b', name: 'Intel i82559B Ethernet' },
|
||||
{ value: 'i82559c', name: 'Intel i82559C Ethernet' },
|
||||
{ value: 'i82559er', name: 'Intel i82559ER Ethernet' },
|
||||
{ value: 'i82562', name: 'Intel i82562 Ethernet' },
|
||||
{ value: 'i82801', name: 'Intel i82801 Ethernet' },
|
||||
{ value: 'ne2k_pci', name: 'NE2000 Ethernet' },
|
||||
{ value: 'pcnet', name: 'AMD PCNet Ethernet' },
|
||||
{ value: 'rocker', name: 'Rocker L2 switch device' },
|
||||
{ value: 'rtl8139', name: 'Realtek 8139 Ethernet' },
|
||||
{ value: 'virtio-net-pci', name: 'Paravirtualized Network I/O' },
|
||||
{ value: 'vmxnet3', name: 'VMWare Paravirtualized Ethernet v3' },
|
||||
];
|
||||
|
||||
return networkTypes;
|
||||
|
Loading…
Reference in New Issue
Block a user