def _get_routers_to_schedule(self, context, plugin, router_ids=None):
        if router_ids is not None:
            filters = {'id': router_ids,
                       'status': [constants.ROUTER_STATUS_ACTIVE]}
            routers = plugin.get_routers(context, filters=filters)
            return self._filter_unscheduled_routers(context, plugin, routers)
        else:
            return self._get_unscheduled_routers(context, plugin)
Attach authentication/permission helpers to request.
dataset/ETHPy150Open openstack/neutron/neutron/scheduler/l3_agent_scheduler.py/L3Scheduler._get_routers_to_schedule--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/access/middleware.py/ACLMiddleware.process_request