

def _get_l3_bindings_hosting_routers(self, context, router_ids):
    if (not router_ids):
        return []
    query = context.session.query(RouterL3AgentBinding)
    query = query.options(joinedload('l3_agent')).filter(RouterL3AgentBinding.router_id.in_(router_ids))
    return query.all()

dataset/ETHPy150Open openstack/neutron/neutron/db/l3_agentschedulers_db.py L3AgentSchedulerDbMixin._get_l3_bindings_hosting_routers/original