From 69cca03c19243954fa44fe1b0439efdb88b0f845 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 20 Jun 2023 13:30:36 +0200 Subject: [PATCH] node-proxy: implement _update_memory() in redfish_dell.py This implements the `_update_memory()` method in redfish_dell.py Signed-off-by: Guillaume Abrioux (cherry picked from commit b1d00d9a5a63fed9d866bc7c44c89b0b1580301d) --- src/cephadm/node-proxy/redfish_dell.py | 6 +++++- src/cephadm/node-proxy/redfish_system.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cephadm/node-proxy/redfish_dell.py b/src/cephadm/node-proxy/redfish_dell.py index 9bf69b32470..0f4467bad5f 100644 --- a/src/cephadm/node-proxy/redfish_dell.py +++ b/src/cephadm/node-proxy/redfish_dell.py @@ -52,8 +52,12 @@ class RedfishDell(RedfishSystem): pass def _update_memory(self) -> None: + fields = ['Description', + 'MemoryDeviceType', + 'CapacityMiB', + 'Status'] log.logger.info("Updating memory") - pass + self._system['memory'] = self.build_data(fields, 'Memory') def _update_power(self) -> None: log.logger.info("Updating power") diff --git a/src/cephadm/node-proxy/redfish_system.py b/src/cephadm/node-proxy/redfish_system.py index a41a861df46..3da45ff11a5 100644 --- a/src/cephadm/node-proxy/redfish_system.py +++ b/src/cephadm/node-proxy/redfish_system.py @@ -64,6 +64,7 @@ class RedfishSystem(BaseSystem): 'storage': self.get_storage(), 'processors': self.get_processors(), 'network': self.get_network(), + 'memory': self.get_memory(), } return result -- 2.39.5