def is_ipv6(self, input_ip):
    try:
        socket.inet_pton(socket.AF_INET6, input_ip)
    except Exception:
        return False
    return True
def is_ipv6(self, input_ip):
    try:
        socket.inet_pton(socket.AF_INET6, input_ip)
    except Exception:
        return False
    return True