vcf_nsx_dhcp¶
State module for NSX DHCP server and relay profiles.
Covers both sides of nsx_dhcp: the DHCP Server Profile
(dhcp-server-configs) and the DHCP Relay Profile (dhcp-relay-configs),
each attached to segments to provide or forward DHCP for workloads.
- saltext.vcf.states.vcf_nsx_dhcp.server_present(name, server_addresses, profile=None, **spec)[source]¶
Ensure DHCP server profile name exists with server_addresses.
server_addresses is a list of CIDRs (e.g.
["10.0.0.2/24"]) the DHCP server itself answers on. Extra keyword args (lease_time,edge_cluster_path, …) are passed straight through to the create call. Policy API PUT is idempotent, so this only checks presence — it does not diff/update fields on an already-existing profile.
- saltext.vcf.states.vcf_nsx_dhcp.server_absent(name, profile=None)[source]¶
Ensure DHCP server profile name does not exist.
- saltext.vcf.states.vcf_nsx_dhcp.relay_present(name, server_addresses, profile=None, **spec)[source]¶
Ensure DHCP relay profile name exists, forwarding to server_addresses.
server_addresses is a list of upstream DHCP server IPs to relay requests to. Extra keyword args are passed straight through to the create call. Policy API PUT is idempotent, so this only checks presence — it does not diff/update fields on an already-existing profile.