Fix the association between Item and PowerSupply
PowerSupply should be associated with an Item, instead of Chassis.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If2e7dbea6f1cf0eb2e5984bb83bea252fd7f94cf
diff --git a/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
index 8cc391d..44f8d8c 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
@@ -64,3 +64,11 @@
reverse_name: fault_identifying
required_endpoint_interfaces:
- xyz.openbmc_project.Led.Group
+ - name: powered_by
+ description: >
+ Objects that implement Item can optionally implement the
+ 'powered_by' association to provide a link to one or more
+ power supplies.
+ reverse_name: powering
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Inventory.Item.PowerSupply