#NEWLINE# def _choose_router_agents_for_ha( self , plugin , context , candidates ) : #NEWLINE# #INDENT# num_agents = self . _get_num_of_agents_for_ha ( len ( candidates ) ) #NEWLINE# ordered_agents = plugin . get_l3_agents_ordered_by_num_routers ( context , [ candidate [ 'id' ] for candidate in self ] ) #NEWLINE# return ordered_agents [ : num_agents ]