vcf_vim_vm_nic

Execution module for VM NIC lifecycle (SOAP).

saltext.vcf.modules.vcf_vim_vm_nic.list_(vm, profile=None)[source]

List every NIC on vm.

CLI Example:

salt '*' vcf_vim_vm_nic.list_ vm-100
saltext.vcf.modules.vcf_vim_vm_nic.add(vm, nic_type='vmxnet3', network_moid=None, portgroup_key=None, dvs_uuid=None, mac_address=None, start_connected=True, profile=None)[source]

Add a new NIC.

CLI Example:

salt '*' vcf_vim_vm_nic.add vm-100 nic_type=vmxnet3 network_moid=network-12
saltext.vcf.modules.vcf_vim_vm_nic.update_backing(vm, nic_key, network_moid=None, portgroup_key=None, dvs_uuid=None, profile=None)[source]

Reattach an existing NIC to a different network.

CLI Example:

salt '*' vcf_vim_vm_nic.update_backing vm-100 4000 network_moid=network-42
saltext.vcf.modules.vcf_vim_vm_nic.set_connected(vm, nic_key, connected, profile=None)[source]

Hot-toggle a NIC’s connected state.

CLI Example:

salt '*' vcf_vim_vm_nic.set_connected vm-100 4000 true
saltext.vcf.modules.vcf_vim_vm_nic.remove(vm, nic_key, profile=None)[source]

Remove a NIC by its device key.

CLI Example:

salt '*' vcf_vim_vm_nic.remove vm-100 4000