@task_manager.require_exclusive_lock
    def reboot(self, task):
        current_pstate = self.get_power_state(task)
        if current_pstate == states.POWER_ON:
            _set_power_state(task, states.REBOOT)
        elif current_pstate == states.POWER_OFF:
            _set_power_state(task, states.POWER_ON)
Perform a hard reboot of the task's node.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/irmc/power.py/IRMCPower.reboot