668c40dec4
This is to create the foundation for supporting resource extensibility as proposed in Redfish specification [0]. In essence it tries to provide a framework to dynamically load the varied OEM resource extensions using stevedore. The target entry points are lazily invoked on demand. Other features as below: * Provides an attribute 'oem_vendors' in Resource Base class to discover the available OEM extensions. Also provides another API to get the resource extension object based on the OEM vendor string. * Provides the foundation for classes which can parse OEM extension attributes. Also a framework to dynamically load the varied OEM resource extensions using ``stevedore``. The target entry points are lazily invoked on demand. * Entry points added with name 'contoso' in setup.cfg. All Entry point names are as lowercase_underscore_joined. * A new folder structure added for OEM extensions framework - 'sushy/resources/oem/' * Provides a fake resource extension as a ready reckoner for OEMs. * Uses the existing json sample which consists of OEM string as 'Contoso', a fictitious company, for unit testing purpose. * Add Resource OEM extension related exceptions [0] http://redfish.dmtf.org/schemas/DSP0266_1.1.html#resource-extensibility Story: 1689605 Task: 12039 Change-Id: I6d64d27ec456e46c2cb5052f93a91d9e06ba82de |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
common.py | ||
fake.py |