bmcweb: Update "ProcessorType" with "Core" and "Thread"
"ProcessorType" was missing and it was being caught during our testing.
Tested:
root@nabij11-nfd01:~# wget -qO- localhost/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0
{
"@odata.id": "/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0",
"@odata.type": "#Processor.v1_11_0.Processor",
"Id": "core0",
"Name": "SubProcessor",
"ProcessorId": {
"MicrocodeInfo": "0x2B0001B0"
},
"ProcessorType": "Core",
"Status": {
"Health": "OK",
"State": "Enabled"
},
"SubProcessors": {
"@odata.id": "/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0/SubProcessors"
}
}
root@nabij11-nfd01:~# wget -qO- localhost/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0/SubProcessors/thread0
{
"@odata.id": "/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0/SubProcessors/thread0",
"@odata.type": "#Processor.v1_11_0.Processor",
"Id": "thread0",
"Metrics": {
"@odata.id": "/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0/SubProcessors/thread0/ProcessorMetrics"
},
"Name": "SubProcessor",
"ProcessorId": {
"MicrocodeInfo": "0x2B0001B0"
},
"ProcessorType": "Thread",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Google-Bug-Id: 282212790
Change-Id: I4c2c14701c3022de8e7a48d6b5c512427df3feef
Signed-off-by: Brandon Kim <brandonkim@google.com>
(cherry picked from commit 9347b31f4a665c0db09bb98abf9d00d1c6abab03)
4 files changed