ironic.drivers.modules.irmc.vendor module

Vendor interface of iRMC driver

class ironic.drivers.modules.irmc.vendor.IRMCVendorPassthru(*args, **kwargs)[source]

Bases: VendorInterface

cache_irmc_firmware_version(task, **kwargs)[source]

Fetch and save iRMC firmware version.

This method connects to iRMC and fetch iRMC firmware version. If fetched firmware version is not cached in or is different from one in driver_internal_info/irmc_fw_version, store fetched version in driver_internal_info/irmc_fw_version.

Parameters:

task – An instance of TaskManager.

Raises:

IRMCOperationError if some error occurs

get_properties()[source]

Return the properties of the interface.

Returns:

Dictionary of <property name>:<property description> entries.

validate(task, method=None, **kwargs)[source]

Validate vendor-specific actions.

This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver.

Parameters:
  • task – An instance of TaskManager.

  • method – Name of vendor passthru method

Raises:

InvalidParameterValue if invalid value is contained in the ‘driver_info’ property.

Raises:

MissingParameterValue if some mandatory key is missing in the ‘driver_info’ property.