The sushy.resources.oem.common Module

The sushy.resources.oem.common Module

sushy.resources.oem.common.get_resource_extension_by_vendor(resource_name, vendor, resource, *args, **kwds)

Helper method to get Resource specific OEM extension object for vendor

Parameters:
  • resource_name – The underscore joined name of the resource e.g. ‘system’ / ‘ethernet_interface’ / ‘update_service’
  • vendor – This is the OEM vendor string which is the vendor-specific extensibility identifier. Examples are: ‘Contoso’, ‘Hpe’. As a matter of fact the lowercase of this string will be the plugin entry point name.
  • resource – The Sushy resource instance
Returns:

The object returned by plugin(*args, **kwds) of extension.

Raises:

OEMExtensionNotFoundError – if no valid resource OEM extension found.

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.