diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2019-08-15 23:26:54 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-02-08 00:15:21 +0300 |
commit | 42cbe53889b5f2d358d1174245df51a23efcb3f8 (patch) | |
tree | 8de0ec405599a92e7cfbc8fb4d55669d96ae36c9 /src/gtest_main.cpp | |
parent | 2077899f6d4534d98ca2cca3bc9020dbc6a4aef9 (diff) | |
download | bmcweb-42cbe53889b5f2d358d1174245df51a23efcb3f8.tar.xz |
Add Power Supply Attributes
Map DeratingFactor from PowerSupplyAttributes.interface.yaml
to the Redfish property PowerSupply "EfficiencyPercent".
Only do this call when the "Power" schema is called.
Use the InventoryItem class introduced in
adc4f0db57568c5e5d2a3398fce00dbb050a3b72
Tested: Power, Thermal, all look good.
Passed the Redfish Validator.
"PowerSupplies": [
{
"@odata.id": "/redfish/v1/Chassis/chassis/Power#/PowerSupplies/0",
"EfficiencyPercent": 90,
"IndicatorLED": "Off",
"Manufacturer": "",
"MemberId": "powersupply0",
"Model": "2B1D",
"Name": "powersupply0",
"PartNumber": "01KL471",
"PowerInputWatts": 12.0,
"SerialNumber": "71G370",
"Status": {
"Health": "OK",
"State": "Enabled"
}
},
Change-Id: I344577a7a3d72cd37d5f6bab03edbdce13b9f764
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'src/gtest_main.cpp')
0 files changed, 0 insertions, 0 deletions