diff options
| author | Manojkiran Eda <manojkiran.eda@gmail.com> | 2019-06-25 23:06:32 +0530 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-06-27 17:13:50 +0000 |
| commit | 7e236ca3b4d0263181fc977f0ee68a7d947c7070 (patch) | |
| tree | 2839c9a5562e6ce79e2f44bc1f77a0f2a5021e7b | |
| parent | 15a86ff65a0ff588adabbeaac7c0e2fe51932357 (diff) | |
| download | bmcweb-7e236ca3b4d0263181fc977f0ee68a7d947c7070.tar.gz bmcweb-7e236ca3b4d0263181fc977f0ee68a7d947c7070.zip | |
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>
| -rw-r--r-- | redfish-core/lib/cpudimm.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ void getDimmDataByService(std::shared_ptr<AsyncResp> aResp, { 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 = |

