IPv4Address#

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

Bases: object

Parameters:
  • value – (value)

  • prefix_length – (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()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model

property value#
Type:

str