@task_manager.require_exclusive_lock
    def set_power_state(self, task, pstate):
        driver_info = _parse_driver_info(task.node)
        driver_info['macs'] = driver_utils.get_node_mac_addresses(task)
        ssh_obj = _get_connection(task.node)

        if pstate == states.POWER_ON:
            state = _power_on(ssh_obj, driver_info)
        elif pstate == states.POWER_OFF:
            state = _power_off(ssh_obj, driver_info)
        else:
            raise exception.InvalidParameterValue(
                _("set_power_state called with invalid power state %s."
                  ) % pstate)

        if state != pstate:
            raise exception.PowerStateFailure(pstate=pstate)
Returns an iterator over an infinite Halton sequence
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ssh.py/SSHPower.set_power_state--crossover with--dataset/ETHPy150Open Toblerity/Shapely/tests/test_union.py/halton