The ironic.drivers.modules.msftocs.management
Module¶
-
class
ironic.drivers.modules.msftocs.management.
MSFTOCSManagement
[source]¶ Bases:
ironic.drivers.base.ManagementInterface
-
get_boot_device
(task)[source]¶ Get the current boot device for the task’s node.
Returns the current boot device of the node.
Parameters: task – a task from TaskManager. Returns: a dictionary containing: boot_device: the boot device persistent: Whether the boot device will persist to all future boots or not, None if it is unknown.
-
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.
-
set_boot_device
(*args, **kwargs)[source]¶ Set the boot device for the task’s node.
Set the boot device to use on next boot of the node.
Parameters: - task – a task from TaskManager.
- device – the boot device.
- persistent – Boolean value. True if the boot device will persist to all future boots, False if not. Default: False.
Raises: InvalidParameterValue if an invalid boot device is specified.
-
validate
(task)[source]¶ Validate the driver_info in the node.
Check if the driver_info contains correct required fields.
Parameters: task – a TaskManager instance containing the target node. Raises: MissingParameterValue if any required parameters are missing. Raises: InvalidParameterValue if any parameters have invalid values.
-