vcf_vim_dvs

State module for VDS + DPG.

Notes on NIC teaming / physical-failover mode:

  • teaming_configured() sets the uplink-teaming policy on a distributed port group (load balancing or explicit failover order).

  • LACP-with-LAG on a DVS (LAG create + ReconfigureLacp_Task on the parent DVS, plus per-DPG VMwareDvsLagVlanConfig binding) is a follow-up — this state ships the common non-LAG cases.

saltext.vcf.states.vcf_vim_dvs.present(name, datacenter, num_uplinks=4, max_mtu=1500, description='', profile=None)[source]

Ensure VDS name exists in datacenter with the given config.

saltext.vcf.states.vcf_vim_dvs.absent(name, profile=None)[source]

Ensure VDS name does not exist.

saltext.vcf.states.vcf_vim_dvs.portgroup_present(name, dvs, vlan_id=0, num_ports=8, binding='earlyBinding', promiscuous=False, profile=None)[source]

Ensure a VLAN-backed DPG name exists on dvs.

saltext.vcf.states.vcf_vim_dvs.portgroup_absent(name, dvs, profile=None)[source]

Ensure DPG name on dvs does not exist.

saltext.vcf.states.vcf_vim_dvs.teaming_configured(name, dvs, policy, reverse_policy=None, notify_switches=None, rolling_order=None, check_beacon=None, active_uplinks=None, standby_uplinks=None, profile=None)[source]

Ensure DPG name on dvs uses the given uplink-teaming policy.

Satisfies the “virtual switches must be set up in a physical network failover mode (LACP, teaming)” requirement for distributed port groups. LACP-with-LAG (LAG creation + ReconfigureLacp_Task on the parent DVS) is a follow-up; this state covers the common load-balance / failover-explicit cases.

Only fields the caller passes (non-None) are diffed; fields left as None are treated as “don’t manage”.