bmcweb: Memory: Why not use "Present" for Redfish's Status State ?

Gunnar Mills gmills at
Tue Oct 27 05:49:45 AEDT 2020

Hi Ed and Pawel,

I am missing some context here.
Why if MemorySizeInKB is 0 we set the "Status""State" of the DIMM to Absent?
Why not use the Present property?

By default MemorySizeInKB is 0 so if MemorySizeInKB hasn't been set your 
DIMM looks like (all other properties are skipped):

curl -k https://$bmc/redfish/v1/Systems/system/Memory/dimm6
   "": "/redfish/v1/Systems/system/Memory/dimm6",
   "@odata.type": "#Memory.v1_7_0.Memory",
   "Id": "dimm6",
   "Name": "DIMM Slot",
   "Status": {
     "Health": "OK",
     "HealthRollup": "OK",
     "State": "Absent"

This logic was added here:


More information about the openbmc mailing list