ironic.drivers.modules.ucs.helper module

ironic.drivers.modules.ucs.helper module

Ironic Cisco UCSM helper functions

class ironic.drivers.modules.ucs.helper.CiscoUcsHelper(task)[source]

Bases: object

Cisco UCS helper. Performs session managemnt.

connect_ucsm()[source]

Creates the UcsHandle

Raises:UcsConnectionError, if ucs helper fails to establish session with UCS Manager.
logout()[source]

Logouts the current active session.

ironic.drivers.modules.ucs.helper.parse_driver_info(node)[source]

Parses and creates Cisco driver info

Parameters:node – An Ironic node object.
Returns:dictonary that contains node.driver_info parameter/values.
Raises:MissingParameterValue if any required parameters are missing.
ironic.drivers.modules.ucs.helper.requires_ucs_client(func)[source]

Creates handle to connect to UCS Manager.

This method is being used as a decorator method. It establishes connection with UCS Manager. And creates a session. Any method that has to perform operation on UCS Manager, requries this session, which can use this method as decorator method. Use this method as decorator method requires having helper keyword argument in the definition.

Parameters:func – function using this as a decorator.
Returns:a wrapper function that performs the required tasks mentioned above before and after calling the actual function.
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.