From 842e24df4a73a11b6dbb5639ebfd0090ba4c87c7 Mon Sep 17 00:00:00 2001 From: eportnov Date: Fri, 1 Jul 2022 10:54:24 +0300 Subject: Add asset data --- .../chassis.yaml | 36 +++++++++++++++++- .../phosphor-inventory-manager-cpu/cpu.yaml | 43 ++++++++++++++++++++++ .../phosphor-inventory-manager-dimm/dimm.yaml | 34 +++++++++++++++++ 3 files changed, 111 insertions(+), 2 deletions(-) diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml index 4f09ea2adf..eb43fc84ae 100644 --- a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml @@ -11,5 +11,37 @@ events: Type: value: "xyz.openbmc_project.Inventory.Item.Chassis.ChassisType.RackMount" type: string - - + + - name: createObjects + objs: + /system/board: + xyz.openbmc_project.Inventory.Decorator.Asset: + Manufacturer: + value: "Manufacturer" + type: string + PartNumber: + value: "PartNumber" + type: string + SerialNumber: + value: "SerialNumber" + type: string + BuildDate: + value: "BuildDate" + type: string + Model: + value: "Model" + type: string + SubModel: + value: "SubModel" + type: string + SparePartNumber: + value: "SparePartNumber" + type: string + + - name: createObjects + objs: + /system/board: + xyz.openbmc_project.Inventory.Decorator.AssetTag: + AssetTag: + value: "AssetTag" + type: string diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-cpu/cpu.yaml b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-cpu/cpu.yaml index 329d1b20d4..0d96757f67 100644 --- a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-cpu/cpu.yaml +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-cpu/cpu.yaml @@ -14,10 +14,53 @@ events: Family: value: "XeonCPU-3" type: string + + - name: createObjects + objs: + /system/board/cpu0: + xyz.openbmc_project.Inventory.Decorator.Asset: + Manufacturer: + value: "Manufacturer" + type: string + PartNumber: + value: "PartNumber" + type: string + SerialNumber: + value: "SerialNumber" + type: string + BuildDate: + value: "BuildDate" + type: string + Model: + value: "Model" + type: string + SubModel: + value: "SubModel" + type: string + SparePartNumber: + value: "SparePartNumber" + type: string + + - name: createObjects + objs: + /system/board/cpu0: + xyz.openbmc_project.Inventory.Decorator.AssetTag: + AssetTag: + value: "AssetTag" + type: string + - name: createObjects objs: /system/board/cpu0/core0: xyz.openbmc_project.Inventory.Item.CpuCore: + + - name: createObjects + objs: + /system/board/cpu0/core0: + xyz.openbmc_project.Inventory.Decorator.Asset: + Manufacturer: + value: "Manufacturer" + type: string - name: setProperty interface: xyz.openbmc_project.Inventory.Item.Cpu diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-dimm/dimm.yaml b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-dimm/dimm.yaml index 9e5db64438..7c8d147d66 100644 --- a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-dimm/dimm.yaml +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-dimm/dimm.yaml @@ -15,6 +15,40 @@ events: value: "Synchronous, Static column" type: string + - name: createObjects + objs: + /system/board/dimm0: + xyz.openbmc_project.Inventory.Decorator.Asset: + Manufacturer: + value: "Manufacturer" + type: string + PartNumber: + value: "PartNumber" + type: string + SerialNumber: + value: "SerialNumber" + type: string + BuildDate: + value: "BuildDate" + type: string + Model: + value: "Model" + type: string + SubModel: + value: "SubModel" + type: string + SparePartNumber: + value: "SparePartNumber" + type: string + + - name: createObjects + objs: + /system/board/dimm0: + xyz.openbmc_project.Inventory.Decorator.AssetTag: + AssetTag: + value: "AssetTag" + type: string + - name: setProperty interface: xyz.openbmc_project.Inventory.Item.Dimm property: MemoryDataWidth -- cgit v1.2.3