Skip to content

Commit 380bb02

Browse files
lxwinspurwilliamspatrick
authored andcommitted
Fix the association between Item and PowerSupply
PowerSupply should be associated with an Item, instead of Chassis. Signed-off-by: George Liu <[email protected]> Change-Id: If2e7dbea6f1cf0eb2e5984bb83bea252fd7f94cf
1 parent 1a891d3 commit 380bb02

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

yaml/xyz/openbmc_project/Inventory/Item.interface.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ associations:
6464
reverse_name: fault_identifying
6565
required_endpoint_interfaces:
6666
- xyz.openbmc_project.Led.Group
67+
- name: powered_by
68+
description: >
69+
Objects that implement Item can optionally implement the
70+
'powered_by' association to provide a link to one or more
71+
power supplies.
72+
reverse_name: powering
73+
required_endpoint_interfaces:
74+
- xyz.openbmc_project.Inventory.Item.PowerSupply

yaml/xyz/openbmc_project/Inventory/Item/Chassis.interface.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,3 @@ enumerations:
4343
description: >
4444
A logical division or portion of a physical chassis that contains
4545
multiple devices or systems that cannot be physically separated.
46-
47-
associations:
48-
- name: powered_by
49-
description: >
50-
Objects that implement Chassis can optionally implement the
51-
'powered_by' association to provide a link to one or more
52-
power supplies.
53-
reverse_name: powering
54-
required_endpoint_interfaces:
55-
- xyz.openbmc_project.Inventory.Item.PowerSupply

yaml/xyz/openbmc_project/Inventory/Item/PowerSupply.interface.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ associations:
55
- name: powering
66
description: >
77
Objects that implement PowerSupply can optionally implement the
8-
'powering' association to provide a link back to a Chassis.
8+
'powering' association to provide a link back to a Item.
99
reverse_name: powered_by
1010
required_endpoint_interfaces:
11-
- xyz.openbmc_project.Inventory.Item.Chassis
11+
- xyz.openbmc_project.Inventory.Item

yaml/xyz/openbmc_project/Inventory/Item/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Document ObjectMapper association forward and reverse names as follows:
2121
* Sensor.Value and Bmc: [monitoring, monitored_by]
2222
* fan and item: [cooling, cooled_by]
2323
* led and item : [identifying, identified_by] [fault_identifying, fault_identified_by]
24+
* powerSupply and item : [powering, powered_by]

0 commit comments

Comments
 (0)