From: Guillaume Abrioux Date: Tue, 20 Jun 2023 11:30:36 +0000 (+0200) Subject: node-proxy: implement _update_memory() in redfish_dell.py X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~291^2~81 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=69cca03c19243954fa44fe1b0439efdb88b0f845;p=ceph-ci.git 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) --- 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