vim_vm_nic¶
VM NIC lifecycle via SOAP VirtualMachine.ReconfigVM_Task.
- saltext.vcf.clients.vim_vm_nic.list_(opts, vm_id_or_name, profile=None)[source]¶
Return every Ethernet device on the VM as a list of dicts.
- saltext.vcf.clients.vim_vm_nic.add(opts, vm_id_or_name, *, nic_type='vmxnet3', network=None, network_moid=None, portgroup_key=None, dvs_uuid=None, mac_address=None, start_connected=True, profile=None)[source]¶
Add a new NIC.
Backing options:
network — legacy port-group name (looked up via
vim.Network). Convenience for callers who only know the port-group label — typical for standalone-ESXi and single-vSwitch setups.network_moid — legacy port group by MOID (bypasses the lookup).
portgroup_key + dvs_uuid — distributed port group.