def is_valid_ipv6_prefix(ipv6_prefix):
 if (not isinstance(ipv6_prefix, str)):
  return False
 tokens = ipv6_prefix.split('/')
 if (len(tokens) != 2):
  return False
 return (is_valid_ipv6(tokens[0]) and is_valid_ip_prefix(tokens[1], 128))

def is_valid_ipv6_prefix ( ipv6_prefix ) : if ( not isinstance ( ipv6_prefix , str ) ) : return False tokens = ipv6_prefix . split ( '/' ) if ( len ( tokens ) != 2 ) : return False return ( is_valid_ipv6 ( tokens [ 0 ] ) and is_valid_ip_prefix ( tokens [ 1 ] , 128 ) )
returns true if given ipv6_prefix is a valid ipv6 prefix .