vcf_vim_dvs

Execution module for vSphere Distributed Virtual Switches (SOAP).

saltext.vcf.modules.vcf_vim_dvs.list_(profile=None)[source]

List every VDS.

CLI Example:

salt '*' vcf_vim_dvs.list_
saltext.vcf.modules.vcf_vim_dvs.get(dvs, profile=None)[source]

Return one VDS by name or moid.

CLI Example:

salt '*' vcf_vim_dvs.get prod-dvs
saltext.vcf.modules.vcf_vim_dvs.get_or_none(dvs, profile=None)[source]

Return one VDS or None.

CLI Example:

salt '*' vcf_vim_dvs.get_or_none prod-dvs
saltext.vcf.modules.vcf_vim_dvs.create(name, datacenter, version=None, num_uplinks=4, max_mtu=1500, description='', profile=None)[source]

Create a VDS in datacenter’s networkFolder.

CLI Example:

salt '*' vcf_vim_dvs.create prod-dvs Datacenter num_uplinks=4 max_mtu=9000
saltext.vcf.modules.vcf_vim_dvs.reconfigure(dvs, max_mtu=None, description=None, profile=None)[source]

Update VDS config fields.

CLI Example:

salt '*' vcf_vim_dvs.reconfigure prod-dvs max_mtu=9000
saltext.vcf.modules.vcf_vim_dvs.delete(dvs, profile=None)[source]

Delete the VDS.

CLI Example:

salt '*' vcf_vim_dvs.delete prod-dvs
saltext.vcf.modules.vcf_vim_dvs.add_host(dvs, host, pnic_devices=None, profile=None)[source]

Attach a host to the VDS, optionally pinning pNICs to uplinks.

CLI Example:

salt '*' vcf_vim_dvs.add_host prod-dvs esxi-01 pnic_devices='["vmnic0","vmnic1"]'
saltext.vcf.modules.vcf_vim_dvs.remove_host(dvs, host, profile=None)[source]

Detach a host from the VDS.

CLI Example:

salt '*' vcf_vim_dvs.remove_host prod-dvs esxi-01