inventory: decorators: add compatible interface

Add a new classification interface for inventory.

Prior to this patch inventory could be typed by class e.g.: dimm, cpu,
system and by model or part number
(xyz.openbmc_project.Inventory.Decorator.Asset).

This patch adds another way to classify inventory; "compatibles" where
compatibles are more granular then class and less granular than model or
part number.

Obviously not all instances of a class of inventory are the same.  And
vendors often give the same entities different model/part numbers.  This
leaves software without any suitable query identifiers for determining,
or publishing, the relevant (to software) characteristics of the
inventory item.

As a concrete example, consider a data driven application that supports
a number of different power supplies by means of a hardware database.
Futher consider that one power supply vendor releases the same physical
power supply with 5 different model numbers.  Instead of requiring the
application to maintain aliases for each model number, implement
xyz.openbmc_project.Inventory.Decorator.Compatible.

Change-Id: If90b5932d58bedc2d82c7c26a486ed23b3d52f1a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
1 file changed
tree: 368f7b7bba8659e52639eaca6ff39224815c169a
  1. org/
  2. xyz/
  3. .gitignore
  4. bootstrap.sh
  5. configure.ac
  6. generate_makefile.sh
  7. generate_yaml_makefile.sh
  8. LICENSE
  9. MAINTAINERS
  10. Makefile.am
  11. Makefile.interfaces.in
  12. Makefile.yaml.in
  13. phosphor-dbus-interfaces.pc.in
  14. README.md
README.md

phosphor-dbus-interfaces

YAML descriptors of standard dbus interfaces

Only the xyz/openbmc_project interfaces are built by default.

Enable the OpenPower D-Bus interfaces with:

--enable-openpower-dbus-interfaces