mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Feature #3306: Add model aliases
This commit is contained in:
1 parent
df15fa4c96
commit
b95f0188cc
1 file changed
+7
-7
@@ -925,19 +925,19 @@ private
|
||||
}
|
||||
|
||||
nic_card = case model
|
||||
when "virtuale1000"
|
||||
when "virtuale1000", "e1000"
|
||||
RbVmomi::VIM::VirtualE1000
|
||||
when "virtuale1000e"
|
||||
when "virtuale1000e", "e1000e"
|
||||
RbVmomi::VIM::VirtualE1000e
|
||||
when "virtualpcnet32"
|
||||
when "virtualpcnet32", "pcnet32"
|
||||
RbVmomi::VIM::VirtualPCNet32
|
||||
when "virtualsriovethernetcard"
|
||||
when "virtualsriovethernetcard", "sriovethernetcard"
|
||||
RbVmomi::VIM::VirtualSriovEthernetCard
|
||||
when "virtualvmxnetm"
|
||||
when "virtualvmxnetm", "vmxnetm"
|
||||
RbVmomi::VIM::VirtualVmxnetm
|
||||
when "virtualvmxnet2"
|
||||
when "virtualvmxnet2", "vmnet2"
|
||||
RbVmomi::VIM::VirtualVmxnet2
|
||||
when "virtualvmxnet3"
|
||||
when "virtualvmxnet3", "vmxnet3"
|
||||
RbVmomi::VIM::VirtualVmxnet3
|
||||
else # If none matches, use VirtualE1000
|
||||
RbVmomi::VIM::VirtualE1000
|
||||
|
||||
Reference in new issue
Block a user