diff options
| author | P.K. Lee <p.k.lee@quantatw.com> | 2025-05-28 05:37:39 +0300 |
|---|---|---|
| committer | Amithash Prasad <amithash@meta.com> | 2025-05-28 21:37:59 +0300 |
| commit | ba46514f96016445421b7e67220311c4041740c8 (patch) | |
| tree | 7439ca894d9f8e1b6493b99897e4f23c779f0036 /meta-openembedded/meta-python/recipes-devtools/python/python3-dnspython | |
| parent | 39ab8ec984b0d335533965fc4bb75d39cd3fbfdb (diff) | |
| download | openbmc-ba46514f96016445421b7e67220311c4041740c8.tar.xz | |
meta-facebook: ventura: Allow Redfish to access virtual sensors
Due to the lack of "Associations", Redfish was unable to access the
virtual sensor data. This change adds the necessary associations to make
the data accessible via Redfish.
Tested:
```
$ curl -k -u root:0penBmc -X GET https://${RMC_IP}/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors",
"@odata.type": "#SensorCollection.SensorCollection",
"Description": "Collection of Sensors for this Chassis",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/current_FCB_0_FAN_0_CURR_A"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/current_FCB_0_FAN_1_CURR_A"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/voltage_FCB_0_FAN_0_IMON_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/voltage_FCB_0_FAN_0_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/voltage_FCB_0_FAN_1_IMON_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_0/Sensors/voltage_FCB_0_FAN_1_VOLT_V"
}
],
"Members@odata.count": 6,
"Name": "Sensors"
}
$ curl -k -u root:0penBmc -X GET https://${RMC_IP}/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors",
"@odata.type": "#SensorCollection.SensorCollection",
"Description": "Collection of Sensors for this Chassis",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/current_FCB_1_FAN_2_CURR_A"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/current_FCB_1_FAN_3_CURR_A"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/voltage_FCB_1_FAN_2_IMON_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/voltage_FCB_1_FAN_2_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/voltage_FCB_1_FAN_3_IMON_VOLT_V"
},
{
"@odata.id": "/redfish/v1/Chassis/Ventura_Fan_Board_1/Sensors/voltage_FCB_1_FAN_3_VOLT_V"
}
],
"Members@odata.count": 6,
"Name": "Sensors"
}
```
Change-Id: Ia9afe81e8f43d4f4f3a7f1b2006609c034c22269
Signed-off-by: P.K. Lee <p.k.lee@quantatw.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-dnspython')
0 files changed, 0 insertions, 0 deletions
