diff options
author | Simon Rettberg | 2021-07-05 18:44:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-05 18:44:48 +0200 |
commit | 09d48d1daf3243907dd74fd5d8078d96c1ee5597 (patch) | |
tree | 68aa07d2d9722953505a92e49cc87bbde1fccfe2 /src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java | |
parent | Add util methods to print App information from MANIFEST.MF (diff) | |
download | master-sync-shared-de-generic-virtualizer.tar.gz master-sync-shared-de-generic-virtualizer.tar.xz master-sync-shared-de-generic-virtualizer.zip |
[virtualizer] Get rid of <?,?,?,?,?,?,?,?>de-generic-virtualizer
Diffstat (limited to 'src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java')
-rw-r--r-- | src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java index 5d74d0d..06091c0 100644 --- a/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java +++ b/src/main/java/org/openslx/virtualization/configuration/VirtualizationConfigurationQemuUtils.java @@ -5,13 +5,9 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import org.openslx.libvirt.domain.device.Disk; -import org.openslx.libvirt.domain.device.Interface; import org.openslx.libvirt.domain.device.Disk.BusType; import org.openslx.virtualization.Version; import org.openslx.virtualization.configuration.VirtualizationConfiguration.DriveBusType; -import org.openslx.virtualization.configuration.VirtualizationConfiguration.EthernetDevType; -import org.openslx.virtualization.configuration.VirtualizationConfiguration.SoundCardType; -import org.openslx.libvirt.domain.device.Sound; /** * Collection of utils to convert data types from bwLehrpool to Libvirt and vice versa. @@ -83,80 +79,6 @@ public class VirtualizationConfigurationQemuUtils } /** - * Converts a Libvirt sound device model to a VM metadata sound card type. - * - * @param soundDeviceModel Libvirt sound device model. - * @return VM metadata sound card type. - */ - public static SoundCardType convertSoundDeviceModel( Sound.Model soundDeviceModel ) - { - SoundCardType type = SoundCardType.NONE; - - switch ( soundDeviceModel ) { - case AC97: - type = SoundCardType.AC; - break; - case ES1370: - type = SoundCardType.ES; - break; - case ICH6: - type = SoundCardType.HD_AUDIO; - break; - case ICH9: - type = SoundCardType.HD_AUDIO; - break; - case SB16: - type = SoundCardType.SOUND_BLASTER; - break; - } - - return type; - } - - /** - * Converts a Libvirt network device model to a VM metadata ethernet device type. - * - * @param networkDeviceModel Libvirt network device model. - * @return VM metadata ethernet device type. - */ - public static EthernetDevType convertNetworkDeviceModel( Interface.Model networkDeviceModel ) - { - EthernetDevType type = EthernetDevType.NONE; - - switch ( networkDeviceModel ) { - case E1000: - type = EthernetDevType.E1000; - break; - case E1000E: - type = EthernetDevType.E1000E; - break; - case PCNET: - type = EthernetDevType.PCNETPCI2; - break; - case VIRTIO: - type = EthernetDevType.PARAVIRT; - break; - case VIRTIO_NET_PCI: - type = EthernetDevType.PARAVIRT; - break; - case VIRTIO_NET_PCI_NON_TRANSITIONAL: - type = EthernetDevType.PARAVIRT; - break; - case VIRTIO_NET_PCI_TRANSITIONAL: - type = EthernetDevType.PARAVIRT; - break; - case VMXNET3: - type = EthernetDevType.VMXNET3; - break; - default: - type = EthernetDevType.AUTO; - break; - } - - return type; - } - - /** * Returns an item from a given {@link ArrayList}. * * The item is selected by a given index. If the item is not available within the |