func baseVirtualEthernetCardToBaseVirtualDevice(v types.BaseVirtualEthernetCard) types.BaseVirtualDevice {
	switch t := v.(type) {
	case *types.VirtualE1000:
		return types.BaseVirtualDevice(t)
	case *types.VirtualE1000e:
		return types.BaseVirtualDevice(t)
	case *types.VirtualPCNet32:
		return types.BaseVirtualDevice(t)
	case *types.VirtualSriovEthernetCard:
		return types.BaseVirtualDevice(t)
	case *types.VirtualVmxnet2:
		return types.BaseVirtualDevice(t)
	case *types.VirtualVmxnet3:
		return types.BaseVirtualDevice(t)
	}
	panic(fmt.Errorf("unknown ethernet card type %T", v))
}
func baseVirtualEthernetCardToBaseVirtualDevice(v types.BaseVirtualEthernetCard) types.BaseVirtualDevice {
	switch t := v.(type) {
	case *types.VirtualE1000:
		return types.BaseVirtualDevice(t)
	case *types.VirtualE1000e:
		return types.BaseVirtualDevice(t)
	case *types.VirtualPCNet32:
		return types.BaseVirtualDevice(t)
	case *types.VirtualSriovEthernetCard:
		return types.BaseVirtualDevice(t)
	case *types.VirtualVmxnet2:
		return types.BaseVirtualDevice(t)
	case *types.VirtualVmxnet3:
		return types.BaseVirtualDevice(t)
	}
	panic(fmt.Errorf("unknown ethernet card type %T", v))
}
func baseVirtualEthernetCardToBaseVirtualDevice ( v types . BaseVirtualEthernetCard ) types . BaseVirtualDevice { switch t := v . ( type ) { case * types . VirtualE1000 : return types . BaseVirtualDevice ( t ) case * types . VirtualE1000e : return types . BaseVirtualDevice ( t ) case * types . VirtualPCNet32 : return types . BaseVirtualDevice ( t ) case * types . VirtualSriovEthernetCard : return types . BaseVirtualDevice ( t ) case * types . VirtualVmxnet2 : return types . BaseVirtualDevice ( t ) case * types . VirtualVmxnet3 : return types . BaseVirtualDevice ( t ) } panic ( fmt . Errorf ( " " , v ) ) }
// baseVirtualEthernetCardToBaseVirtualDevice converts a
// BaseVirtualEthernetCard value into a BaseVirtualDevice.
baseVirtualEthernetCardToBaseVirtualDevice converts a BaseVirtualEthernetCard value into a BaseVirtualDevice .