Hi all,
I am creating a workflow to automate some P2V tasks and i want to disconnect the NIC before doing anyting on the VMs. When everything will be done, i want to reconnect this NIC. I am playing with vCO for some months now and I need to get help with the scripting part. I always managed to find some code but this time I did not find anything!
So i need to script this part! I think i find a way to change the connection settings of the VMXNET3 NIC with this part of code :
System.getModule("com.vmware.library.vc.vm.spec.config.device").getVirtualVmxnet3(backing,connectable,controllerKey,deviceInfo,key,unitNumber,addressType,macAddress,wakeOnLanEnabled) var connectset = new VcVirtualDeviceConnectInfo(); connectset.connected = false; connectset.startConnected = false;
Now i need to find how to affect those settings to the VMXNET3 adapter of a VM?
How to drill down from the VM to those settings?
Thanks for your help!