Association between intrusion sensor and item

Chassis intrusion sensor does not have the Sensor.Value interface to be
legit into the "sensors" association with the chassis but there's a need
to associate the sensor with the chassis that it is monitoring physical
security state.

This commit introduces the monitoring/monitored_by association between a
chassis intrusion sensor and the inventory items that it is currently
monitoring the physical security state. The association in this case
requires the two endpoint interfaces of
"xyz.openbmc_project.Chassis.Intrusion" and
"xyz.openbmc_project.Inventory.Item".

Signed-off-by: Chau Ly <chaul@amperecomputing.com>
Change-Id: I1d110c8a83c5d264785ce30c363a654cbf711731
diff --git a/yaml/xyz/openbmc_project/Chassis/Intrusion.interface.yaml b/yaml/xyz/openbmc_project/Chassis/Intrusion.interface.yaml
index 5e350df..8ebae36 100644
--- a/yaml/xyz/openbmc_project/Chassis/Intrusion.interface.yaml
+++ b/yaml/xyz/openbmc_project/Chassis/Intrusion.interface.yaml
@@ -41,3 +41,13 @@
           - name: "TamperingDetected"
             description: >
                 Physical tampering is detected.
+
+associations:
+    - name: monitoring
+      description: >
+          One chassis intrusion sensor needs to implement the 'monitoring'
+          association to provide links to the inventory items that it is
+          monitoring the security state against intrusion events.
+      reverse_name: monitored_by
+      required_endpoint_interfaces:
+          - xyz.openbmc_project.Inventory.Item