def _get_underscheduled_routers(self, plugin, context):
underscheduled_routers = []<EOL>max_agents_for_ha = plugin.get_number_of_agents_for_scheduling(context)<EOL>for router, count in plugin.get_routers_l3_agents_count(context):<EOL><INDENT>if (router[routertype.TYPE_ATTR] !=<EOL>plugin.get_namespace_router_type_id(context)):<EOL><INDENT>continue<EOL><DEDENT>if (count < <NUM_LIT:1> or<EOL>router.get('<STR_LIT>', False) and count < max_agents_for_ha):<EOL><INDENT>underscheduled_routers.append(router)<EOL><DEDENT><DEDENT>return underscheduled_routers<EOL>
For release >= pike.