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/PowerSupply.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item/PowerSupply.interface.yaml
index 30e32a8..0d77ef0 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/PowerSupply.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item/PowerSupply.interface.yaml
@@ -1,2 +1,11 @@
description: >
Implement to provide PowerSupply attributes.
+
+associations:
+ - name: powering
+ description: >
+ Objects that implement PowerSupply can optionally implement the
+ 'powering' association to provide a link back to a Chassis.
+ reverse_name: powered_by
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Inventory.Item.Chassis