def _get_node_reachability( node_target_factory: NodeTargetLibFactory, node_communicator: Communicator, report_processor: SimpleReportProcessorInterface, node_name_list: Iterable[str], ) -> Mapping[str, str]: # we are not interested in reports telling the user which nodes are # unknown since we display that info in the list of nodes dummy_report_list, target_list = ( node_target_factory.get_target_list_with_reports(node_name_list)) com_cmd = CheckReachability(report_processor) com_cmd.set_targets(target_list) return run_communication(node_communicator, com_cmd)
def get_node_target_factory(self) -> NodeTargetLibFactory: return NodeTargetLibFactory(self.__get_known_hosts(), self.report_processor)