Ironic Wake-On-Lan power manager.
Bases: ironic.drivers.base.PowerInterface
Wake-On-Lan Driver for Ironic
This PowerManager class provides a mechanism for controlling power state via Wake-On-Lan.
Not supported. Get the current power state of the task’s node.
This operation is not supported by the Wake-On-Lan driver. So value returned will be from the database and may not reflect the actual state of the system.
Returns: | POWER_OFF if power state is not set otherwise return the node’s power_state value from the database. |
---|
Not supported. Cycles the power to the task’s node.
This operation is not fully supported by the Wake-On-Lan driver. So this method will just try to power the task’s node on.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue if parameters are invalid. |
Raises: | MissingParameterValue if required parameters are missing. |
Raises: | WolOperationError if an error occur when sending the magic packets |
Wakes the task’s node on power on. Powering off is not supported.
Wakes the task’s node on. Wake-On-Lan does not support powering the task’s node off so, just log it.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if parameters are invalid. |
Raises: | MissingParameterValue if required parameters are missing. |
Raises: | WolOperationError if an error occur when sending the magic packets |