ironic.drivers.modules.ibmc.utils module

iBMC Driver common utils

ironic.drivers.modules.ibmc.utils.handle_ibmc_exception(action)[source]

Decorator to handle iBMC client exception.

Decorated functions must take a TaskManager as the first parameter.

ironic.drivers.modules.ibmc.utils.parse_driver_info(node)[source]

Parse the information required for Ironic to connect to iBMC.

Parameters

node – an Ironic node object

Returns

dictionary of parameters

Raises

InvalidParameterValue on malformed parameter(s)

Raises

MissingParameterValue on missing parameter(s)

ironic.drivers.modules.ibmc.utils.revert_dictionary(d)[source]