Ipv4Config#

class Ipv4Config(should_assign_ip=None, ip_address=None, secondary_ip_address_list=None, *args, **kwargs)[source]#

Bases: object

The IP address configurations.

Parameters:
  • should_assign_ip – (should_assign_ip) If set to true (default value), an IP address must be assigned to the VM NIC - either the one explicitly specified by the user or allocated automatically by the IPAM service by not specifying the IP address. If false, then no IP assignment is required for this VM NIC.

  • ip_address – (ip_address)

  • secondary_ip_address_list – (secondary_ip_address_list) Secondary IP addresses for the NIC.

property ip_address#
Type:

IPv4Address

property secondary_ip_address_list#

Secondary IP addresses for the NIC.

Type:

list[ IPv4Address ]

property should_assign_ip#

If set to true (default value), an IP address must be assigned to the VM NIC - either the one explicitly specified by the user or allocated automatically by the IPAM service by not specifying the IP address. If false, then no IP assignment is required for this VM NIC.

Type:

bool

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model