Refish:Memory - Populate missing properties
With this commit the GET request on any dimm object returns
few additional properties.The following are the properties
that are added as a part of this commit.
- PartNumber
- SerialNumber
- Manufacturer
Tested by:
1. Redfish-Service-Validator - Pass
2. GET https://<ip:port>/redfish/v1/Systems/system/Memory/dimm<number>
Change-Id: I75ad8188e53dc8e08add6f5c7bebb6a5056afd35
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp
index 572156d..5601325 100644
--- a/redfish-core/lib/cpudimm.hpp
+++ b/redfish-core/lib/cpudimm.hpp
@@ -322,6 +322,18 @@
{
aResp->res.jsonValue["DataWidthBits"] = property.second;
}
+ else if (property.first == "PartNumber")
+ {
+ aResp->res.jsonValue["PartNumber"] = property.second;
+ }
+ else if (property.first == "SerialNumber")
+ {
+ aResp->res.jsonValue["SerialNumber"] = property.second;
+ }
+ else if (property.first == "Manufacturer")
+ {
+ aResp->res.jsonValue["Manufacturer"] = property.second;
+ }
else if (property.first == "MemoryType")
{
const auto *value =