IpAddressInfo#
- class IpAddressInfo(ipv4_addresses=None, ipv6_addresses=None, *args, **kwargs)#
Bases:
object
The IP address information of NIC.
- Parameters:
ipv4_addresses – (
ipv4_addresses
) IP addresses for the NIC.ipv6_addresses – (
ipv6_addresses
) IPV6 addresses for the NIC.
- property ipv4_addresses#
IP addresses for the NIC.
- Type:
list[
IPv4Address
]
- property ipv6_addresses#
IPV6 addresses for the NIC.
- Type:
list[
str
]
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model