diff options
author | Lei YU <yulei.sh@bytedance.com> | 2021-06-04 11:15:32 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-08-20 12:37:19 +0300 |
commit | 88b675a08d66e2a70419195f81a4d3f9132c42d1 (patch) | |
tree | 2c42dca919e616307d057d9705a71b07932fbd1f /poky/documentation/poky.yaml | |
parent | ac505e7e62d9fed96829aa9e04ab162b70974c95 (diff) | |
download | openbmc-88b675a08d66e2a70419195f81a4d3f9132c42d1.tar.xz |
bytedance: g220a: virtual-sensor: Add associations
Add virtual sensor's associations so that the sensors could be shown in
Redfish and WebUI.
Tested: Verify the Total_Power is shown in Redfish as below
$ curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/Chassis/G220A/Sensors/Total_Power
{
"@odata.id": "/redfish/v1/Chassis/G220A/Sensors/Total_Power",
"@odata.type": "#Sensor.v1_0_0.Sensor",
"Id": "Total_Power",
"Name": "Total Power",
"Reading": 514.0,
"ReadingRangeMax": null,
"ReadingRangeMin": null,
"ReadingType": "Power",
"ReadingUnits": "W",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I0c9c84917364cad701f00fc3041d427a6e8750bc
Diffstat (limited to 'poky/documentation/poky.yaml')
0 files changed, 0 insertions, 0 deletions