

def get_hosts_to_notify(self, context, router_id):
    'Returns all hosts to send notification about router update'
    state = agentschedulers_db.get_admin_state_up_filter()
    agents = self.get_l3_agents_hosting_routers(context, [router_id], admin_state_up=state, active=True)
    return [a.host for a in agents]

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