ironic.drivers.modules.cimc.common module

ironic.drivers.modules.cimc.common module

ironic.drivers.modules.cimc.common.cimc_handle(task)[source]

Context manager for creating a CIMC handle and logging into it.

Parameters:task – The current task object.
Raises:CIMCException if login fails
Yields:A CIMC Handle for the node in the task.
ironic.drivers.modules.cimc.common.handle_login(task, handle, info)[source]

Login to the CIMC handle.

Run login on the CIMC handle, catching any ImcException and reraising it as an ironic CIMCException.

Parameters:
  • handle – A CIMC handle.
  • info – A list of driver info as produced by parse_driver_info.
Raises:

CIMCException if there error logging in.

ironic.drivers.modules.cimc.common.parse_driver_info(node)[source]

Parses and creates Cisco driver info.

Parameters:node – An Ironic node object.
Returns:dictionary that contains node.driver_info parameter/values.
Raises:MissingParameterValue if any required parameters are missing.
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.