fp5280g2: inventory: Add Chassis interface to the chassis
Create the xyz.openbmc_project.Inventory.Item.Chassis interface
on the /system/chassis inventory item at startup.
(From meta-inspur rev: 7cd52a29282b3a6f4d291d16cec1bcaeb16ab2d0)
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I514c7b77583992357696b5eb09df52b4770efa23
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml b/meta-inspur/meta-fp5280g2/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml
new file mode 100644
index 0000000..b5c548e
--- /dev/null
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml
@@ -0,0 +1,13 @@
+events:
+ - name: Add Chassis interface
+ description: >
+ Add the chassis interface on the chassis inventory path
+ type: startup
+ actions:
+ - name: createObjects
+ objs:
+ /system/chassis:
+ xyz.openbmc_project.Inventory.Item.Chassis:
+ Type:
+ value: "RackMount"
+ type: string