#
33b9a7f8 |
| 07-Feb-2022 |
Matt Spinler <spinler@us.ibm.com> |
inventory.decorator: Add slot number interface
This interface provides a slot number property for an inventory item.
The initial use case is to hang this on certain phosphor-inventory-manager paths
inventory.decorator: Add slot number interface
This interface provides a slot number property for an inventory item.
The initial use case is to hang this on certain phosphor-inventory-manager paths so that when entity-manager probes on them it can have $SlotNumber available as a variable to give a stable sensor name, such as 'PCIe Card $SlotNumber Temp'.
Without this, if say the $index variable is used instead, and then there is no guarantee which device will have which sensor name, especially for cards that can be added in any order when the BMC is running.
Stable sensor names are important in the phosphor-inventory-manager/entity-manager hybrid model where PIM is used for inventory and EM is just used for config.
There is a LocationCode property already that could possibly be used on some systems, but on IBM systems at least it contains the system serial number so would vary from system to system which isn't desired either.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iea95d7ad123672909799244b0d80f564cb40d425
show more ...
|