DRAC BIOS configuration specific methods
ironic.drivers.modules.drac.bios.
abandon_config
(task)[source]¶Abandons uncommitted changes added by set_config
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | DracOperationError on an error from python-dracclient. |
ironic.drivers.modules.drac.bios.
commit_config
(task, reboot=False)[source]¶Commits pending changes added by set_config
Parameters: |
|
---|---|
Raises: | DracOperationError on an error from python-dracclient. |
Returns: | the job_id key with the id of the newly created config job. |
ironic.drivers.modules.drac.bios.
get_config
(node)[source]¶Get the BIOS configuration.
The BIOS settings look like:
{'EnumAttrib': {'name': 'EnumAttrib',
'current_value': 'Value',
'pending_value': 'New Value', # could also be None
'read_only': False,
'possible_values': ['Value', 'New Value', 'None']},
'StringAttrib': {'name': 'StringAttrib',
'current_value': 'Information',
'pending_value': None,
'read_only': False,
'min_length': 0,
'max_length': 255,
'pcre_regex': '^[0-9A-Za-z]{0,255}$'},
'IntegerAttrib': {'name': 'IntegerAttrib',
'current_value': 0,
'pending_value': None,
'read_only': True,
'lower_bound': 0,
'upper_bound': 65535}}
Parameters: | node – an ironic node object. |
---|---|
Raises: | DracOperationError on an error from python-dracclient. |
Returns: | a dictionary containing BIOS settings |
The above values are only examples, of course. BIOS attributes exposed via this API will always be either an enumerated attribute, a string attribute, or an integer attribute. All attributes have the following parameters:
Parameters: |
|
---|
Enumerable attributes also have the following parameters:
Parameters: | possible_values – is an array of values it is permissible to set the attribute to. |
---|
String attributes also have the following parameters:
Parameters: |
|
---|
Integer attributes also have the following parameters:
Parameters: |
|
---|
ironic.drivers.modules.drac.bios.
set_config
(task, **kwargs)[source]¶Sets the pending_value parameter for each of the values passed in.
Parameters: |
|
---|---|
Raises: | DracOperationError on an error from python-dracclient. |
Returns: | A dictionary containing the ‘is_commit_required’ key with a boolean value indicating whether commit_config() needs to be called to make the changes, and the ‘is_reboot_required’ key which has a value of ‘true’ or ‘false’. This key is used to indicate to the commit_config() call if a reboot should be performed. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.