ironic.drivers.modules.redfish.bios module¶
-
class
ironic.drivers.modules.redfish.bios.
RedfishBIOS
(*args, **kwargs)[source]¶ Bases:
ironic.drivers.base.BIOSInterface
-
apply_configuration
(task, settings)[source]¶ Apply the BIOS settings to the node.
- Parameters
task – a TaskManager instance containing the node to act on.
settings – a list of BIOS settings to be updated.
- Raises
RedfishConnectionError when it fails to connect to Redfish
- Raises
RedfishError on an error from the Sushy library
-
cache_bios_settings
(task)[source]¶ Store or update the current BIOS settings for the node.
Get the current BIOS settings and store them in the bios_settings database table.
- Parameters
task – a TaskManager instance containing the node to act on.
- Raises
RedfishConnectionError when it fails to connect to Redfish
- Raises
RedfishError on an error from the Sushy library
- Raises
UnsupportedDriverExtension if the system does not support BIOS settings
-
factory_reset
(task)[source]¶ Reset the BIOS settings of the node to the factory default.
- Parameters
task – a TaskManager instance containing the node to act on.
- 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.
-
post_configuration
(task, settings)[source]¶ Perform post configuration action to store the BIOS settings.
Extension point to allow vendor implementations to extend this class and override this method to perform a custom action to write the BIOS settings to the Redfish service. The default implementation performs a reboot.
- Parameters
task – a TaskManager instance containing the node to act on.
settings – a list of BIOS settings to be updated.
-
post_reset
(task)[source]¶ Perform post reset action to apply the BIOS factory reset.
Extension point to allow vendor implementations to extend this class and override this method to perform a custom action to apply the BIOS factory reset to the Redfish service. The default implementation performs a reboot.
- Parameters
task – a TaskManager instance containing the node to act on.
-