IPv4Address#

class IPv4Address(value=None, prefix_length=32, *args, **kwargs)#

Bases: object

An unique address that identifies a device on the internet or a local network in IPv4 format.

Parameters:
  • value (required) – (value) The IPv4 address of the host.

  • prefix_length (min=0, max=32) – (prefix_length) The prefix length of the network to which this host IPv4 address belongs. (Default 32)

property prefix_length#

The prefix length of the network to which this host IPv4 address belongs.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property value#

The IPv4 address of the host.

Type:

str