':param version: Either constants.IPv4 or constants.IPv6
:param prefixlen: The prefix len requested.  Must be within the min and
max allowed.
:type prefixlen: int'

def __init__(self, tenant_id, subnet_id, version, prefixlen, gateway_ip=None, allocation_pools=None):

    super(AnySubnetRequest, self).__init__(tenant_id=tenant_id, subnet_id=subnet_id, gateway_ip=gateway_ip, allocation_pools=allocation_pools)
    net = netaddr.IPNetwork(((self.WILDCARDS[version] + '/') + str(prefixlen)))
    self._validate_with_subnet(net)
    self._prefixlen = prefixlen
