Lines Matching +full:auto +full:- +full:detect

35         m_worker->performInitialSetup();  in Manager()
37 // set callback to detect any asset tag change in Manager()
40 // set async timer to detect if system VPD is published on D-Bus. in Manager()
43 // set async timer to detect if VPD collection is done. in Manager()
48 m_worker->getSysCfgJsonObj(), m_worker, m_ioContext); in Manager()
51 // set callback to detect host state change. in Manager()
55 iFace->register_method( in Manager()
59 const types::BinaryVector i_value) -> int { in Manager()
60 return this->updateKeyword( in Manager()
65 iFace->register_method( in Manager()
68 const types::WriteVpdParams i_paramsToWriteData) -> int { in Manager()
69 return this->updateKeyword(i_vpdPath, i_paramsToWriteData); in Manager()
72 iFace->register_method( in Manager()
75 const types::WriteVpdParams i_paramsToWriteData) -> int { in Manager()
76 return this->updateKeywordOnHardware(i_fruPath, in Manager()
80 iFace->register_method( in Manager()
84 -> types::DbusVariantType { in Manager()
85 return this->readKeyword(i_fruPath, i_paramsToReadData); in Manager()
88 iFace->register_method( in Manager()
91 this->collectSingleFruVpd(i_dbusObjPath); in Manager()
94 iFace->register_method( in Manager()
97 this->deleteSingleFruVpd(i_dbusObjPath); in Manager()
100 iFace->register_method( in Manager()
103 uint16_t& i_nodeNumber) -> std::string { in Manager()
104 return this->getExpandedLocationCode(i_unexpandedLocationCode, in Manager()
108 iFace->register_method("GetFRUsByExpandedLocationCode", in Manager()
110 -> types::ListOfPaths { in Manager()
111 return this->getFrusByExpandedLocationCode( in Manager()
115 iFace->register_method( in Manager()
118 uint16_t& i_nodeNumber) -> types::ListOfPaths { in Manager()
119 return this->getFrusByUnexpandedLocationCode( in Manager()
123 iFace->register_method( in Manager()
126 -> std::string { return this->getHwPath(i_dbusObjPath); }); in Manager()
128 iFace->register_method("PerformVPDRecollection", [this]() { in Manager()
129 this->performVpdRecollection(); in Manager()
133 iFace->register_property_rw<std::string>( in Manager()
135 [this](const std::string l_currStatus, const auto&) { in Manager() argument
139 [this](const auto&) { return m_vpdCollectionStatus; }); in Manager() argument
144 "VPD-Manager service failed. " + std::string(e.what())); in Manager()
176 const auto& l_itrToAssetTag = l_propMap.find("AssetTag"); in processAssetTagChangeCallback()
179 if (auto l_assetTag = in processAssetTagChangeCallback()
180 std::get_if<std::string>(&(l_itrToAssetTag->second))) in processAssetTagChangeCallback()
214 auto asyncCancelled = timer.expires_after(std::chrono::seconds(2)); in SetTimerToDetectSVPDOnDbus()
217 : logging::logMessage("Timer re-started"); in SetTimerToDetectSVPDOnDbus()
223 "Timer to detect system VPD collection status was aborted"); in SetTimerToDetectSVPDOnDbus()
229 "Timer to detect System VPD collection failed"); in SetTimerToDetectSVPDOnDbus()
232 if (m_worker->isSystemVPDOnDBus()) in SetTimerToDetectSVPDOnDbus()
239 m_interface->set_property("CollectionStatus", in SetTimerToDetectSVPDOnDbus()
241 m_worker->collectFrusFromJson(); in SetTimerToDetectSVPDOnDbus()
250 static constexpr auto MAX_RETRY = 40; in SetTimerToDetectVpdCollectionStatus()
255 auto l_asyncCancelled = l_timer.expires_after(std::chrono::seconds(3)); in SetTimerToDetectVpdCollectionStatus()
259 : logging::logMessage("Collection Timer re-started"); in SetTimerToDetectVpdCollectionStatus()
265 "Timer to detect thread collection status was aborted"); in SetTimerToDetectVpdCollectionStatus()
271 "Timer to detect thread collection failed"); in SetTimerToDetectVpdCollectionStatus()
274 if (m_worker->isAllFruCollectionDone()) in SetTimerToDetectVpdCollectionStatus()
278 m_interface->set_property("CollectionStatus", in SetTimerToDetectVpdCollectionStatus()
282 m_worker->getSysCfgJsonObj(); in SetTimerToDetectVpdCollectionStatus()
291 auto l_threadCount = m_worker->getActiveThreadCount(); in SetTimerToDetectVpdCollectionStatus()
303 std::to_string(l_timerRetry) + " re-tries"); in SetTimerToDetectVpdCollectionStatus()
318 return -1; in updateKeyword()
326 l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in updateKeyword()
341 return -1; in updateKeyword()
355 return l_parserObj->updateVpdKeyword(i_paramsToWriteData); in updateKeyword()
362 return -1; in updateKeyword()
381 l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in updateKeywordOnHardware()
386 return l_parserObj->updateVpdKeywordOnHardware(i_paramsToWriteData); in updateKeywordOnHardware()
410 l_jsonObj = m_worker->getSysCfgJsonObj(); in readKeyword()
428 l_parserObj->getVpdParserInstance(); in readKeyword()
431 l_vpdParserInstance->readKeywordFromHardware(i_paramsToReadData)); in readKeyword()
459 l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in collectSingleFruVpd()
470 // Get FRU path for the given D-bus object path from JSON in collectSingleFruVpd()
477 "D-bus object path not present in JSON. Single FRU VPD collection failed for " + in collectSingleFruVpd()
506 types::VPDMapVariant l_parsedVpd = m_worker->parseVpdFile(l_fruPath); in collectSingleFruVpd()
515 // Get D-bus object map from worker class in collectSingleFruVpd()
517 m_worker->populateDbus(l_parsedVpd, l_dbusObjectMap, l_fruPath); in collectSingleFruVpd()
522 "Failed to create D-bus object map. Single FRU VPD collection failed for " + in collectSingleFruVpd()
559 m_worker->deleteFruVpd(std::string(i_dbusObjPath)); in deleteSingleFruVpd()
579 (i_unexpandedLocationCode.find("-") != 4))) in isValidUnexpandedLocationCode()
599 const nlohmann::json& l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in getExpandedLocationCode()
608 for (const auto& l_frus : l_listOfFrus.items()) in getExpandedLocationCode()
610 for (const auto& l_aFru : l_frus.value()) in getExpandedLocationCode()
643 const nlohmann::json& l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in getFrusByUnexpandedLocationCode()
652 for (const auto& l_frus : l_listOfFrus.items()) in getFrusByUnexpandedLocationCode()
654 for (const auto& l_aFru : l_frus.value()) in getFrusByUnexpandedLocationCode()
707 auto l_fcKwdValue = dbusUtility::readDbusProperty( in getUnexpandedLocationCode()
712 if (auto l_kwdValue = std::get_if<types::BinaryVector>(&l_fcKwdValue)) in getUnexpandedLocationCode()
714 l_fcKwd.assign(l_kwdValue->begin(), l_kwdValue->end()); in getUnexpandedLocationCode()
751 l_nodeStartPos + 3, (l_nodeEndPos - l_nodeStartPos - 3))); in getUnexpandedLocationCode()
775 auto l_tmKwdValue = dbusUtility::readDbusProperty( in getUnexpandedLocationCode()
780 if (auto l_kwdValue = std::get_if<types::BinaryVector>(&l_tmKwdValue)) in getUnexpandedLocationCode()
782 l_tmKwd.assign(l_kwdValue->begin(), l_kwdValue->end()); in getUnexpandedLocationCode()
843 const auto l_itr = l_propMap.find("CurrentHostState"); in hostStateChangeCallBack()
851 if (auto l_hostState = std::get_if<std::string>(&(l_itr->second))) in hostStateChangeCallBack()
883 nlohmann::json l_sysCfgJsonObj = m_worker->getSysCfgJsonObj(); in performVpdRecollection()
892 const auto& l_frusReplaceableAtStandby = in performVpdRecollection()
895 for (const auto& l_fruInventoryPath : l_frusReplaceableAtStandby) in performVpdRecollection()