ironic.drivers.modules.xclarity.common module¶
-
ironic.drivers.modules.xclarity.common.
get_server_hardware_id
(node)[source]¶ Validates node configuration and returns xclarity hardware id.
Validates whether node configutation is consistent with XClarity and returns the XClarity Hardware ID for a specific node. :param node: node object to get information from :returns: the XClarity Hardware ID for a specific node :raises: MissingParameterValue if unable to validate XClarity Hardware ID
-
ironic.drivers.modules.xclarity.common.
get_xclarity_client
(node)[source]¶ Generates an instance of the XClarity client.
Generates an instance of the XClarity client using the imported xclarity_client library.
- Parameters
node – an ironic node object.
- Returns
an instance of the XClarity client
- Raises
XClarityError if can’t get to the XClarity client
-
ironic.drivers.modules.xclarity.common.
parse_driver_info
(node)[source]¶ Parse a node’s driver_info values.
Parses the driver_info of the node, reads default values and returns a dict containing the combination of both.
- Parameters
node – an ironic node object to get informatin from.
- Returns
a dict containing information parsed from driver_info.
- Raises
InvalidParameterValue if some required information is missing on the node or inputs is invalid.