'Check if there are any user ports on subnet and return first.'

@db_api.context_manager.reader
def _subnet_get_user_allocation(self, context, subnet_id):

    return port_obj.IPAllocation.get_alloc_by_subnet_id(context, subnet_id, AUTO_DELETE_PORT_OWNERS)
