def get_network_adapter_type(adapter_type):
 if (adapter_type == 'vmxnet'):
  return vim.vm.device.VirtualVmxnet()
 elif (adapter_type == 'vmxnet2'):
  return vim.vm.device.VirtualVmxnet2()
 elif (adapter_type == 'vmxnet3'):
  return vim.vm.device.VirtualVmxnet3()
 elif (adapter_type == 'e1000'):
  return vim.vm.device.VirtualE1000()
 elif (adapter_type == 'e1000e'):
  return vim.vm.device.VirtualE1000e()

def get_network_adapter_type ( adapter_type ) : if ( adapter_type == 'vmxnet' ) : return vim . vm . device . VirtualVmxnet ( ) elif ( adapter_type == 'vmxnet2' ) : return vim . vm . device . VirtualVmxnet2 ( ) elif ( adapter_type == 'vmxnet3' ) : return vim . vm . device . VirtualVmxnet3 ( ) elif ( adapter_type == 'e1000' ) : return vim . vm . device . VirtualE1000 ( ) elif ( adapter_type == 'e1000e' ) : return vim . vm . device . VirtualE1000e ( )
return the network adapter type .