

def list_router_ids_on_host(self, context, host, router_ids=None):
    agent = self._get_agent_by_type_and_host(context, constants.AGENT_TYPE_L3, host)
    if (not agentschedulers_db.services_available(agent.admin_state_up)):
        return []
    return self._get_router_ids_for_agent(context, agent, router_ids)

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