#NEWLINE# def allocate_subnet( self , subnet_request ) : #NEWLINE# #INDENT# "Create an IPAMSubnet object for the provided cidr.\n\n        This method does not actually do any operation in the driver, given\n        its simplified nature.\n\n        :param cidr: subnet's CIDR\n        :returns: a NeutronDbSubnet instance\n        " #NEWLINE# if self . _subnetpool : #NEWLINE# #INDENT# subnet = super ( NeutronDbPool , self ) . allocate_subnet ( self ) #NEWLINE# subnet_request = subnet . get_details ( ) #NEWLINE# #UNINDENT# if ( not isinstance ( subnet_request , ipam_req . SpecificSubnetRequest ) ) : #NEWLINE# #INDENT# raise ipam_exc . InvalidSubnetRequestType ( subnet_type = type ( subnet_request ) ) #NEWLINE# #UNINDENT# return NeutronDbSubnet . create_from_subnet_request ( subnet_request , self . _context )