Item, LED: add identifying association
Create association documentation between LED and Item.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I121cd09cd3eb032400200e51a1c94e2dfcc872cc
diff --git a/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
index d74db10..f70e0b5 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
+++ b/yaml/xyz/openbmc_project/Inventory/Item.interface.yaml
@@ -48,3 +48,11 @@
reverse_name: cooling
required_endpoint_interfaces:
- xyz.openbmc_project.Inventory.Item.Fan
+ - name: identified_by
+ description: >
+ Objects that implement Item can optionally implement the
+ 'identified_by' association to provide a link to one or more
+ LED Groups.
+ reverse_name: identifying
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Led.Group
diff --git a/yaml/xyz/openbmc_project/Inventory/Item/README.md b/yaml/xyz/openbmc_project/Inventory/Item/README.md
index a801a8f..cb66900 100644
--- a/yaml/xyz/openbmc_project/Inventory/Item/README.md
+++ b/yaml/xyz/openbmc_project/Inventory/Item/README.md
@@ -20,3 +20,4 @@
* Item and Item: [containing, contained_by]
* Sensor.Value and Bmc: [monitoring, monitored_by]
* fan and item: [cooling, cooled_by]
+* led and item : [identifying, identified_by]
diff --git a/yaml/xyz/openbmc_project/Led/Group.interface.yaml b/yaml/xyz/openbmc_project/Led/Group.interface.yaml
index 56caba2..adde5ec 100644
--- a/yaml/xyz/openbmc_project/Led/Group.interface.yaml
+++ b/yaml/xyz/openbmc_project/Led/Group.interface.yaml
@@ -6,3 +6,12 @@
description: >
Whether or not the group is currently asserted.
To assert a group, set to True. To de-assert a group, set to False.
+
+associations:
+ - name: identifying
+ description: >
+ Objects that implement LED group can optionally implement the
+ 'identifying' association to provide a link back to a Item.
+ reverse_name: identified_by
+ required_endpoint_interfaces:
+ - xyz.openbmc_project.Inventory.Item