The ironic.drivers.modules.cimc.management
Module¶
-
class
ironic.drivers.modules.cimc.management.
CIMCManagement
[source]¶ Bases:
ironic.drivers.base.ManagementInterface
-
get_boot_device
(task)[source]¶ Get the current boot device for a node.
Provides the current boot device of the node. Be aware that not all drivers support this.
Parameters: task – a task from TaskManager. Raises: MissingParameterValue if a required parameter is missing Raises: CIMCException if there is an error from CIMC Returns: a dictionary containing: boot_device: the boot device, one of ironic.common.boot_devices
or None if it is unknown.persistent: Whether the boot device will persist to all future boots or not, None if it is unknown.
-
get_properties
()[source]¶ Return the properties of the interface.
Returns: dictionary of <property name>:<property description> entries.
-
get_supported_boot_devices
(task)[source]¶ Get a list of the supported boot devices.
Parameters: task – a task from TaskManager. Returns: A list with the supported boot devices defined in ironic.common.boot_devices
.
-
set_boot_device
(task, device, persistent=True)[source]¶ Set the boot device for a node.
Set the boot device to use on next reboot of the node.
Parameters: - task – a task from TaskManager.
- device – the boot device, one of
ironic.common.boot_devices
. - persistent – Every boot device in CIMC is persistent right now, so this value is ignored.
Raises: InvalidParameterValue if an invalid boot device is specified.
Raises: MissingParameterValue if a required parameter is missing
Raises: CIMCException if there is an error from CIMC
-