def ipv6_to_int(ip):
 return type_desc.Int16.to_user(addrconv.ipv6.text_to_bin(ip))

def ipv6_to_int ( ip ) : return type_desc . Int16 . to_user ( addrconv . ipv6 . text_to_bin ( ip ) )
converts human readable ipv6 string to int type representation .