Fix: LED state not changes for UpperCriticalthresh
Issue: LED state is in Blinking Green after setting the
'Upper Critical threshold'.
RootCause: A Typo in the event name used in source code.
Fix:
After setting the Threshold value expected LED status should be
"blinking Amber "
Tested:
Initial LED state:
ipmitool raw 0x30 0xb0
20 --> Solid Green
1. Patch the 'Upper Critical threshold' value to 'Inlet_BRD_Temp'
PATCH : https://<bmcip>/redfish/v1/Chassis/<Baseboard>/Thermal
patch body:
{
"Temperatures":[
{
"MemberId":"Inlet_BRD_Temp",
"ReadingCelsius":120.0
}
]
}
Response :
{
"@odata.id": "/redfish/v1/Chassis/<Baseboard>/Thermal",
"@odata.type": "#Thermal.v1_4_0.Thermal",
"Fans": [],
"Id": "Thermal",
"Name": "Thermal",
"Temperatures": []
}
LED state changed
ipmitool raw 0x30 0xb0
04 --> Blinking Amber
Signed-off-by: sunitakx <sunitax.kumari@linux.intel.com>
Change-Id: I9941c35a4b66555f0147315e2405361e0795f6ac
diff --git a/callback-manager/src/callback_manager.cpp b/callback-manager/src/callback_manager.cpp
index aff8996..5050205 100644
--- a/callback-manager/src/callback_manager.cpp
+++ b/callback-manager/src/callback_manager.cpp
@@ -239,7 +239,7 @@
{
criticalAssertMap[message.get_path()]["low"] = assert;
}
- else if (event == "CriticAlalarmHigh")
+ else if (event == "CriticalAlarmHigh")
{
criticalAssertMap[message.get_path()]["high"] = assert;
}