Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

Label ignored for vmxnet3 virtualdevice

$
0
0

I'm trying to set the label for a vmxnet3 virtual device, the information is passed to vsphere, but vsphere ignores the label (customlabel) and just calls the network interface 'Network Adapter 1'.

 

Data passed to Vsphere (Using Fog.io):

 

(vim.vm.device.VirtualDeviceSpec) {
-->             dynamicType = <unset>,
-->             operation = "add",
-->             fileOperation = <unset>,
-->             device = (vim.vm.device.VirtualVmxnet3) {
-->                dynamicType = <unset>,
-->                key = 0,
-->                deviceInfo = (vim.Description) {
-->                   dynamicType = <unset>,
-->                   label = "customlabel",
-->                   summary = "VM Network",
-->                },
-->                backing = (vim.vm.device.VirtualEthernetCard.DistributedVirtualPortBackingInfo) {
-->                   dynamicType = <unset>,
-->                   port = (vim.dvs.PortConnection) {
-->                      dynamicType = <unset>,
-->                      switchUuid = "be 0c 1a 50 3a 62 17 09-ba a4 0a 88 ad a6 96 a0",
-->                      portgroupKey = "dvportgroup-87",
-->                      portKey = <unset>,
-->                      connectionCookie = <unset>,
-->                   },
-->                },
-->                connectable = (vim.vm.device.VirtualDevice.ConnectInfo) null,
-->                slotInfo = (vim.vm.device.VirtualDevice.BusSlotInfo) null,
-->                controllerKey = <unset>,
-->                unitNumber = <unset>,
-->                addressType = "generated",
-->                macAddress = <unset>,
-->                wakeOnLanEnabled = <unset>,
-->                resourceAllocation = (vim.vm.device.VirtualEthernetCard.ResourceAllocation) null,
-->             },
-->          },

 

But when I read the device info back it comes back as 'Network Adapter 1'.

Is it possible to set a label on a network adapter?


Viewing all articles
Browse latest Browse all 1860


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>