IPAddressOrFQDN#
- class IPAddressOrFQDN(ipv4=None, ipv6=None, fqdn=None, *args, **kwargs)#
Bases:
object
An unique address that identifies a device on the internet or a local network in IPv4/IPv6 format or a Fully Qualified Domain Name.
- has_fqdn()#
Returns true if fqdn has non-none value
- has_ipv4()#
Returns true if ipv4 has non-none value
- has_ipv6()#
Returns true if ipv6 has non-none value
- property ipv4#
- Type:
- property ipv6#
- Type:
- is_valid()#
Returns true if any one of the attributes has non-none value
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model