openpower-occ-control:failure to read OCC state.
Failure to read OCC state set the OCCs sensors to Nan/Not Functional
Tested: cronus error inject on OCC with and without OCC resets.
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
Change-Id: I2a6bb6a431f09ea816979b3a482b54a28e21db53
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
diff --git a/occ_manager.hpp b/occ_manager.hpp
index c06f6d3..d636976 100644
--- a/occ_manager.hpp
+++ b/occ_manager.hpp
@@ -144,6 +144,12 @@
/** @brief Notify pcap object to update bounds */
void updatePcapBounds() const;
+ /** @brief Set all sensor values of this OCC to NaN and non functional.
+ *
+ * @param[in] id - Id of the OCC.
+ */
+ void setSensorValueToNonFunctional(uint32_t id) const;
+
private:
/** @brief Creates the OCC D-Bus objects.
*/
@@ -173,7 +179,7 @@
*
* @param[in] status - OccActive status
*/
- void statusCallBack(bool status);
+ void statusCallBack(instanceID instance, bool status);
/** @brief Sends a Heartbeat command to host control command handler */
void sendHeartBeat();