def do_ptest(self, context, *args): "usage: ptest [nograph] [v...] [scores] [utilization] [actions]" # use ptest/crm_simulate depending on which command was # used config.core.ptest = constants.simulate_programs[context.get_command_name()] if not config.core.ptest: return False set_obj = mkset_obj("xml") return ui_utils.ptestlike(set_obj.ptest, 'vv', context.get_command_name(), args)
def do_ptest(self, context, *args): "usage: ptest [nograph] [v...] [scores] [utilization] [actions]" if not cib_factory.is_cib_sane(): return False # use ptest/crm_simulate depending on which command was # used config.core.ptest = vars.simulate_programs[context.get_command_name()] if not config.core.ptest: return False set_obj = mkset_obj("xml") return ui_utils.ptestlike(set_obj.ptest, 'vv', context.get_command_name(), args)
def _show_pe(self, f, opt_l): self.pe_file = f # self.pe_file needed by self.ptest ui_utils.ptestlike(self.ptest, 'vv', "transition", opt_l) return crm_report().show_transition_log(f)
def do_simulate(self, context, *args): "usage: simulate [nograph] [v...] [scores] [utilization]" return ui_utils.ptestlike(cib_status.simulate, '', context.get_command_name(), args)
def _show_pe(self, f, opt_l): self.pe_file = f # self.pe_file needed by self.ptest ui_utils.ptestlike(self.ptest, 'vv', "transition", opt_l) return crm_report.show_transition_log(f)