#NEWLINE# def _get_routers_to_schedule( self , context , plugin , router_ids = None ) : #NEWLINE# #INDENT# 'Verify that the routers specified need to be scheduled.\n\n        :param context: the context\n        :param plugin: the core plugin\n        :param router_ids: the list of routers to be checked for scheduling\n        :returns: the list of routers to be scheduled\n        ' #NEWLINE# if ( router_ids is not None ) : #NEWLINE# #INDENT# filters = { #NEWLINE# #INDENT# 'id' : router_ids , #NEWLINE# 'status' : [ constants . ROUTER_STATUS_ACTIVE ] , #NEWLINE# #UNINDENT# } #NEWLINE# routers = plugin . get_routers ( context , filters = filters ) #NEWLINE# return self . _filter_unscheduled_routers ( context , plugin , routers ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _get_unscheduled_routers ( context , plugin )