diff options
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | 2017-08-22 07:40:27 -0500 |
---|---|---|
committer | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | 2017-10-11 04:28:11 -0500 |
commit | e84841ce7e833d527709c557e9e25829f4e3893c (patch) | |
tree | d4b3ce2d8a849da1b9b64f2ee3446fce0bd28277 /sensordatahandler.cpp | |
parent | d12ae758516436376bb3b918671acc49a2c630ff (diff) | |
download | phosphor-host-ipmid-e84841ce7e833d527709c557e9e25829f4e3893c.tar.gz phosphor-host-ipmid-e84841ce7e833d527709c557e9e25829f4e3893c.zip |
IPMI changes to skip updating non present cores
Cores which are not present need not to be updated
to inventory. This change is for skipping several
updates to inventory based on skipOn value.
Change-Id: I29e005a715ccae1df6eeaf35561a20896ecde0ac
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Diffstat (limited to 'sensordatahandler.cpp')
-rw-r--r-- | sensordatahandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sensordatahandler.cpp b/sensordatahandler.cpp index 1776ec7..c8d4fbf 100644 --- a/sensordatahandler.cpp +++ b/sensordatahandler.cpp @@ -318,11 +318,21 @@ ipmi_ret_t assertion(const SetSensorReadingReq& cmdData, { if (assertionSet.test(value.first)) { + //Skip update if skipOn is ASSERT + if (SkipAssertion::ASSERT == value.second.skip) + { + return IPMI_CC_OK; + } props.emplace(property.first, value.second.assert); valid = true; } else if (deassertionSet.test(value.first)) { + //Skip update if skipOn is DEASSERT + if (SkipAssertion::DEASSERT == value.second.skip) + { + return IPMI_CC_OK; + } props.emplace(property.first, value.second.deassert); valid = true; } @@ -333,6 +343,7 @@ ipmi_ret_t assertion(const SetSensorReadingReq& cmdData, } } } + objects.emplace(sensorInfo.sensorPath, std::move(interfaces)); msg.append(std::move(objects)); return updateToDbus(msg); |