esxi_advanced

ESXi advanced system settings via SOAP/pyVmomi.

saltext.vcf.clients.esxi_advanced.get(opts, key, profile=None)[source]

Return {"key": <name>, "value": <current>}.

Consistent shape with set_value() — callers who only need the value should get(...)["value"]. vcf_esxi_advanced.setting (the state module) already expects this dict shape.

saltext.vcf.clients.esxi_advanced.set_value(opts, key, value, profile=None)[source]

Set an ESXi advanced setting.

Reuses the OptionValue object returned by QueryOptions (mutating its .value) rather than constructing a fresh one from a bare Python value — some settings are typed xsd:long server-side, and a freshly-built OptionValue from a plain Python int serializes as xsd:int, which the host rejects with vmodl.fault.InvalidArgument(invalidProperty='value'). See saltext.vcf.clients.vcenter_advanced_option.advanced_set() for the vCenter-side counterpart of this same fix.