vcf_vim_host_network

State module for standard vSwitch / port group / VMkernel adapters.

saltext.vcf.states.vcf_vim_host_network.vswitch_present(name, host, num_ports=128, mtu=1500, pnic_devices=None, profile=None)[source]

Ensure a standard vSwitch name exists on host with the given config.

saltext.vcf.states.vcf_vim_host_network.portgroup_present(name, host, vswitch, vlan_id=0, profile=None)[source]

Ensure a standard port group name exists with the given config.

saltext.vcf.states.vcf_vim_host_network.vmkernel_present(name, host, portgroup=None, dhcp=False, ip_address=None, subnet_mask=None, mtu=1500, profile=None)[source]

Ensure a VMkernel name (device id, e.g. vmk1) exists.

If the device doesn’t exist, a portgroup is required to bind it to. For an existing vmkernel, drift on IP/MTU/DHCP triggers an update.