'Create an IPAMSubnet object for the provided cidr.
This method does not actually do any operation in the driver, given
its simplified nature.
:param cidr: subnet\'s CIDR
:returns: a NeutronDbSubnet instance'

def allocate_subnet(self, subnet_request):

    if self._subnetpool:
        subnet = super(NeutronDbPool, self).allocate_subnet(subnet_request)
        subnet_request = subnet.get_details()
    if (not isinstance(subnet_request, ipam_req.SpecificSubnetRequest)):
        raise ipam_exc.InvalidSubnetRequestType(subnet_type=type(subnet_request))
    return NeutronDbSubnet.create_from_subnet_request(subnet_request, self._context)
