None
Bases: ironic.drivers.base.PowerInterface
Power.
get_power_state
(task)[source]¶Return the power state of the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | MissingParameterValue if a required parameter is missing. |
Returns: | a power state. One of ironic.common.states . |
Raises: | CIMCException if there is an error communicating with CIMC |
Power.
get_properties
()[source]¶Return the properties of the interface.
Returns: | dictionary of <property name>:<property description> entries. |
---|
Power.
reboot
(task, timeout=None)[source]¶Perform a hard reboot of the task’s node.
If the node is already powered on then it shall reboot the node, if its off then the node will just be turned on.
Parameters: |
|
---|---|
Raises: | MissingParameterValue if a required parameter is missing. |
Raises: | CIMCException if there is an error communicating with CIMC |
Power.
set_power_state
(task, pstate, timeout=None)[source]¶Set the power state of the task’s node.
Parameters: |
|
---|---|
Raises: | MissingParameterValue if a required parameter is missing. |
Raises: | InvalidParameterValue if an invalid power state is passed |
Raises: | CIMCException if there is an error communicating with CIMC |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.