]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
node-proxy: implement _update_memory() in redfish_dell.py
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 20 Jun 2023 11:30:36 +0000 (13:30 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 14:52:34 +0000 (14:52 +0000)
This implements the `_update_memory()` method in redfish_dell.py

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit b1d00d9a5a63fed9d866bc7c44c89b0b1580301d)

src/cephadm/node-proxy/redfish_dell.py
src/cephadm/node-proxy/redfish_system.py

index 9bf69b32470780fbd023f1cbc1ad983dba8b6846..0f4467bad5ffa71e58f26dd7fd163753ab4b1117 100644 (file)
@@ -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")
index a41a861df46c43134e9f28af86ad1ada989c73e4..3da45ff11a549d7c875e4008b0aaa79dfad645ec 100644 (file)
@@ -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