ironic.drivers.modules.xclarity.common module

ironic.drivers.modules.xclarity.common module

ironic.drivers.modules.xclarity.common.get_properties()[source]
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.

ironic.drivers.modules.xclarity.common.translate_xclarity_power_action(power_action)[source]

Translates ironic’s power action strings to XClarity’s format.

Parameters

power_action – power action string to be translated

Returns

the power action translated

ironic.drivers.modules.xclarity.common.translate_xclarity_power_state(power_state)[source]

Translates XClarity’s power state strings to be consistent with Ironic.

Parameters

power_state – power state string to be translated

Returns

the translated power state

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.