def valid_ipv6(addr, flags=0):
"""
Wrapper function of "netaddr.valid_ipv6()".
The function extends "netaddr.valid_ipv6()" to enable to validate
IPv4 network address in "xxxx:xxxx:xxxx::/xx" format.
:param addr: IP address to be validated.
:param flags: See the "netaddr.valid_ipv6()" docs for details.
:return: True is valid. False otherwise.
"""
return _valid_ip(netaddr.valid_ipv6, 128, addr, flags)
评论列表
文章目录