VmGcProfileNicConfig#

class VmGcProfileNicConfig(dns_config=None, ipv4_config=None, *args, **kwargs)#

Bases: object

Network settings, such as DNS and IPv4 settings, are to be applied to a NIC attached to the VM.

Parameters:
  • dns_config – (dns_config)

  • ipv4_config (required) – (ipv4_config) Mechanism to configure IPv4 settings of the NIC. Either UseDhcp or MustProvideDuringDeployment should be specified as a value. If UseDhcp is specified, DhcpEnabled is set to True for the interface in the unattend XML. If MustProvideDuringDeployment is specified, the user must provide the IPv4 address with the prefix length and gateway details during the deployment.

property dns_config#
Type:

VmGcProfileDnsConfig

property ipv4_config#

Mechanism to configure IPv4 settings of the NIC. Either UseDhcp or MustProvideDuringDeployment should be specified as a value. If UseDhcp is specified, DhcpEnabled is set to True for the interface in the unattend XML. If MustProvideDuringDeployment is specified, the user must provide the IPv4 address with the prefix length and gateway details during the deployment.

Type:

VmGcProfileUseDhcp | VmGcProfileMustProvideDuringDeployment

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model