summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNinad Palsule <ninadpalsule@us.ibm.com>2023-05-19 01:18:09 +0300
committerNinad Palsule <ninadpalsule@us.ibm.com>2023-05-25 17:22:23 +0300
commitcf0e004c3c13f4955f98b315fc58cf81c3f4a32b (patch)
tree4bfc9ead09ca74f915d7ff9acbdd8ca1d6b61343 /src
parentdde9bc12ed98a89a0ce662be580738efadf2578c (diff)
downloadbmcweb-cf0e004c3c13f4955f98b315fc58cf81c3f4a32b.tar.xz
Refactor processor/memory state related code
- Moved code around to bring state related code close to each other - Separated long memory lambda function. Tested: - Ran: Compared output of following command before and after change and it matched. $ curl -s -k https://${bmc}/redfish/v1/Systems/system { "@odata.id": "/redfish/v1/Systems/system", "@odata.type": "#ComputerSystem.v1_16_0.ComputerSystem", "Actions": { "#ComputerSystem.Reset": { "@Redfish.ActionInfo": "/redfish/v1/Systems/system/ResetActionInfo", "target": "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" } }, | | "Manufacturer": "", "Memory": { "@odata.id": "/redfish/v1/Systems/system/Memory" }, "MemorySummary": { "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "TotalSystemMemoryGiB": 0 }, | | "ProcessorSummary": { "CoreCount": 32, "Count": 4, "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" } }, "Processors": { "@odata.id": "/redfish/v1/Systems/system/Processors" }, Change-Id: Ib72f272eca4ff79e26fe29033c989896a5b9154d Signed-off-by: Ninad Palsule <ninadpalsule@us.ibm.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions