meta-ieisystem: bmcweb: Enable insecure-enable-redfish-query
Since web access to sensors is too slow, enable the query parameter
function of redfish and use the expand parameter to get all sensor
data at once.
Tested:
```
curl -k -H "X-Auth-Token: $token" -X GET
https://${bmc}/redfish/v1/Chassis/chassis/Sensors?$expand=*($levels=1)
{
"@odata.id": "/redfish/v1/Chassis/chassis/Sensors",
"@odata.type": "#SensorCollection.SensorCollection",
"Description": "Collection of Sensors for this Chassis",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/chassis/Sensors/SYS_5V",
"@odata.type": "#Sensor.v1_0_0.Sensor",
"Id": "SYS_5V",
"Name": "SYS_5V",
"Reading": 11.635200000000001,
"ReadingRangeMax": 6.659267458256627,
"ReadingRangeMin": 0.0,
"ReadingType": "Voltage",
"ReadingUnits": "V",
"Status": {
"Health": "Critical",
"State": "Enabled"
},
"Thresholds": {
"LowerCaution": {
"Reading": 4.65
},
"LowerCritical": {
"Reading": 4.5
},
"UpperCaution": {
"Reading": 5.37
},
"UpperCritical": {
"Reading": 5.52
}
}
},
......
```
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: If2209806c4b0db2b7adae4512afcb26a2ef453be
diff --git a/meta-ieisystem/recipes-ieisystem/bmcweb/bmcweb_%.bbappend b/meta-ieisystem/recipes-ieisystem/bmcweb/bmcweb_%.bbappend
new file mode 100644
index 0000000..f3babf7
--- /dev/null
+++ b/meta-ieisystem/recipes-ieisystem/bmcweb/bmcweb_%.bbappend
@@ -0,0 +1,3 @@
+EXTRA_OEMESON:append = " \
+ -Dinsecure-enable-redfish-query=enabled \
+ "