The ironic.drivers.modules.redfish.power Module¶
- 
class ironic.drivers.modules.redfish.power.RedfishPower[source]¶
- Bases: - ironic.drivers.base.PowerInterface- 
get_power_state(task)[source]¶
- Get the current power state of the task’s node. - Parameters: - task – a TaskManager instance containing the node to act on. - Returns: - a power state. One of - ironic.common.states.- Raises: - InvalidParameterValue on malformed parameter(s) - Raises: - MissingParameterValue on missing parameter(s) - Raises: - RedfishConnectionError when it fails to connect to Redfish - Raises: - RedfishError on an error from the Sushy library 
 - 
get_properties()[source]¶
- Return the properties of the interface. - Returns: - dictionary of <property name>:<property description> entries. 
 - 
get_supported_power_states(task)[source]¶
- Get a list of the supported power states. - Parameters: - task – A TaskManager instance containing the node to act on. Not used by this driver at the moment. - Returns: - A list with the supported power states defined in - ironic.common.states.
 - 
reboot(*args, **kwargs)[source]¶
- Perform a hard reboot of the task’s node. - Parameters: - task – a TaskManager instance containing the node to act on.
- timeout – Not used by this driver.
 - Raises: - MissingParameterValue if a required parameter is missing. - Raises: - RedfishConnectionError when it fails to connect to Redfish - Raises: - RedfishError on an error from the Sushy library 
 - 
set_power_state(*args, **kwargs)[source]¶
- Set the power state of the task’s node. - Parameters: - task – a TaskManager instance containing the node to act on.
- power_state – Any power state from ironic.common.states.
- timeout – Not used by this driver.
 - Raises: - MissingParameterValue if a required parameter is missing. - Raises: - RedfishConnectionError when it fails to connect to Redfish - Raises: - RedfishError on an error from the Sushy library 
 
-