PowerSupply, Chassis: add powering association
Create association documentation between Chassis and PowerSupply.
For a machine with multiple chassis, it is necessary to indicate which
chassis a PowerSupply is managed by.
One example is that the ChassisID and PowerSupplyID in the Redfish URL
need to match, so we can confirm it through this association.
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I6beb18fd0b621cec6cd4a38606e009cda40f9761
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/Chassis.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/Chassis.interface.yaml
index 597ec4b..dd805ee 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/Chassis.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/Chassis.interface.yaml
@@ -43,3 +43,13 @@
description: >
A logical division or portion of a physical chassis that contains
multiple devices or systems that cannot be physically separated.
+
+associations:
+ - name: powered_by
+ description: >
+ Objects that implement Chassis 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