diff options
author | George Liu <liuxiwei@inspur.com> | 2021-03-03 04:38:09 +0300 |
---|---|---|
committer | George Liu <liuxiwei@inspur.com> | 2021-03-03 04:38:09 +0300 |
commit | 96a04f77907daa21457d2d5ef891f14e3d5c02fe (patch) | |
tree | 7a0c94c3f62697a147ade9914876aba45ba013ea /meta-ibm | |
parent | de35523d6ea726c828d904d7d6e5bf842f4374c9 (diff) | |
download | openbmc-96a04f77907daa21457d2d5ef891f14e3d5c02fe.tar.xz |
meta-inspur: fp5280g2: Update the power-supply label name
- In the BmcWeb repo, according to the `LABEL` in the power-supply
configuration, get the `unit` value of the power type
(PowerInputWatts & PowerOutputWatts).
link: https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/sensors.hpp#L912
- Since the `LABEL` naming of the previous configuration file was
wrong, it needs to be updated and conforms to the `LABEL` naming
convention.
- Also, sync update association.json to ensure that the correct
sensor value can be obtained.
Tested:
- Built image-bmc successfully on fp5280g2 machine.
- Obtain the correct `PowerInputWatts` & `PowerOutputWatts` by
viewing the BmcWeb log.
- Obtain `redfish/v1/Chassis/chassis/Power` by the Redfish command:
... ...
"PowerSupplies": [
{
"@odata.id": "/redfish/v1/Chassis/chassis/Power#/PowerSupplies/0",
"EfficiencyPercent": 90,
"IndicatorLED": "Off",
"Manufacturer": "",
"MemberId": "powersupply0",
"Model": "PS-2801-12L",
"Name": "powersupply0",
"PartNumber": "",
"PowerInputWatts": 13.9375,
"PowerOutputWatts": 5.5,
"SerialNumber": "6K12A0117473YX",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
]
... ...
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ie88a629c97ab8ad3136a49f71b810b930a820ab2
Diffstat (limited to 'meta-ibm')
0 files changed, 0 insertions, 0 deletions