From af76e2bc3e756a5325478cada4e643d82e7b466e Mon Sep 17 00:00:00 2001 From: "Jason M. Bills" Date: Thu, 15 Jun 2023 08:20:34 -0700 Subject: Add fields to the DIMM inventory table There is a request to see three additional fields from Redfish in the DIMM inventory table: https://github.com/openbmc/webui-vue/issues/107. This change adds Manufacturer, Error correction, and Rank count data from Redfish into the DIMM inventory table. Tested: Confirmed that the three fields show in the table with the correct data from Redfish. Change-Id: I6f1fc5103649abf8350e5b5c107c11eea3d1a599 Signed-off-by: Jason M. Bills --- src/locales/en-US.json | 2 ++ src/locales/ru-RU.json | 2 ++ src/store/modules/HardwareStatus/MemoryStore.js | 6 ++++++ .../HardwareStatus/Inventory/InventoryTableDimmSlot.vue | 15 +++++++++++++++ 4 files changed, 25 insertions(+) diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 7c86d498..ff107690 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -401,6 +401,7 @@ "description": "Description", "efficiencyPercent": "Efficiency", "enabled": "Enabled", + "errorCorrection": "Error correction", "fanSpeed": "Fan speed", "firmwareVersion": "Firmware version", "graphicalConsole": "Graphical console", @@ -430,6 +431,7 @@ "processorArchitecture": "Processor architecture", "processorSummary": "Processor summary", "processorType": "Processor type", + "rankCount": "Rank count", "serialConsole": "Serial console", "serialNumber": "Serial number", "serviceEnabled": "Service enabled", diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index 15e23a54..70fe5cb4 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -401,6 +401,7 @@ "description": "Описание", "efficiencyPercent": "Эффективность", "enabled": "Включено", + "errorCorrection": "Исправление ошибок", "fanSpeed": "Скорость вращения вентилятора", "firmwareVersion": "Версия встроенного ПО", "graphicalConsole": "Графическая консоль", @@ -430,6 +431,7 @@ "processorArchitecture": "Архитектура", "processorSummary": "Сводная информация по процессору", "processorType": "Тип процессора", + "rankCount": "Количество рангов", "serialConsole": "Последовательная консоль", "serialNumber": "Серийный номер", "serviceEnabled": "Включённые сервисы", diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js index c166d831..81996a7d 100644 --- a/src/store/modules/HardwareStatus/MemoryStore.js +++ b/src/store/modules/HardwareStatus/MemoryStore.js @@ -20,8 +20,11 @@ const MemoryStore = { CapacityMiB, DataWidthBits, Enabled, + ErrorCorrection, + Manufacturer, OperatingSpeedMhz, PartNumber, + RankCount, SerialNumber, SparePartNumber, Description, @@ -38,7 +41,10 @@ const MemoryStore = { dataWidthBits: DataWidthBits, operatingSpeedMhz: OperatingSpeedMhz, enabled: Enabled, + errorCorrection: ErrorCorrection, + manufacturer: Manufacturer, partNumber: PartNumber, + rankCount: RankCount, serialNumber: SerialNumber, statusState: Status.State, sparePartNumber: SparePartNumber, diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue index 459d3bb3..196335ef 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue @@ -70,6 +70,11 @@ +
+ +
{{ $t('pageInventory.table.manufacturer') }}:
+
{{ dataFormatter(item.manufacturer) }}
+
{{ $t('pageInventory.table.partNumber') }}:
@@ -100,6 +105,11 @@ {{ $t('unit.MiB') }}
+
+ +
{{ $t('pageInventory.table.rankCount') }}:
+
{{ dataFormatter(item.rankCount) }}
+
{{ $t('pageInventory.table.statusState') }}:
@@ -156,6 +166,11 @@ {{ $t('unit.MHz') }}
+
+ +
{{ $t('pageInventory.table.errorCorrection') }}:
+
{{ dataFormatter(item.errorCorrection) }}
+
-- cgit v1.2.3