Lines Matching refs:i_vpdFilePath

673 bool Worker::processPreAction(const std::string& i_vpdFilePath,  in processPreAction()  argument
678 if (i_vpdFilePath.empty() || i_flagToProcess.empty()) in processPreAction()
685 i_vpdFilePath, i_flagToProcess, in processPreAction()
703 m_parsedJson["frus"][i_vpdFilePath].at(0).value("inventoryPath", in processPreAction()
716 "Call to PIM failed for file " + i_vpdFilePath); in processPreAction()
722 "Inventory path is empty in Json for file " + i_vpdFilePath); in processPreAction()
792 types::VPDMapVariant Worker::parseVpdFile(const std::string& i_vpdFilePath) in parseVpdFile() argument
798 if (i_vpdFilePath.empty()) in parseVpdFile()
806 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath, in parseVpdFile()
810 if (!processPreAction(i_vpdFilePath, "collection", l_errCode)) in parseVpdFile()
816 i_vpdFilePath); in parseVpdFile()
832 i_vpdFilePath + in parseVpdFile()
836 if (!std::filesystem::exists(i_vpdFilePath)) in parseVpdFile()
842 i_vpdFilePath + "Skipping parser trigger for the EEPROM"); in parseVpdFile()
848 std::make_shared<Parser>(i_vpdFilePath, m_parsedJson); in parseVpdFile()
856 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath, in parseVpdFile()
860 if (!processPostAction(i_vpdFilePath, "collection", l_parsedVpd)) in parseVpdFile()
868 i_vpdFilePath + "]"), in parseVpdFile()
876 i_vpdFilePath + in parseVpdFile()
887 i_vpdFilePath + " due to error: " + l_ex.what()}; in parseVpdFile()
890 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath, in parseVpdFile()
894 if (!jsonUtility::executePostFailAction(m_parsedJson, i_vpdFilePath, in parseVpdFile()
922 const std::string& i_vpdFilePath) in parseAndPublishVPD() argument
936 i_vpdFilePath, types::VpdCollectionStatus::InProgress, m_parsedJson, in parseAndPublishVPD()
941 "Failed to set collection status for path " + i_vpdFilePath + in parseAndPublishVPD()
945 const types::VPDMapVariant& parsedVpdMap = parseVpdFile(i_vpdFilePath); in parseAndPublishVPD()
949 populateDbus(parsedVpdMap, objectInterfaceMap, i_vpdFilePath); in parseAndPublishVPD()
962 i_vpdFilePath + "]. Check PEL for reason.", in parseAndPublishVPD()
973 i_vpdFilePath, types::VpdCollectionStatus::Failed, m_parsedJson, in parseAndPublishVPD()
978 "Failed to set collection status for path " + i_vpdFilePath + in parseAndPublishVPD()
993 m_parsedJson, i_vpdFilePath, l_errCode); in parseAndPublishVPD()
999 i_vpdFilePath + "], error: " + in parseAndPublishVPD()
1011 return std::make_tuple(false, i_vpdFilePath); in parseAndPublishVPD()
1040 m_parsedJson["frus"][i_vpdFilePath].at(0))) in parseAndPublishVPD()
1042 setPresentProperty(i_vpdFilePath, false); in parseAndPublishVPD()
1046 return std::make_tuple(false, i_vpdFilePath); in parseAndPublishVPD()
1050 i_vpdFilePath, types::VpdCollectionStatus::Completed, m_parsedJson, in parseAndPublishVPD()
1055 "Failed to set collection status for path " + i_vpdFilePath + in parseAndPublishVPD()
1060 return std::make_tuple(true, i_vpdFilePath); in parseAndPublishVPD()
1063 bool Worker::skipPathForCollection(const std::string& i_vpdFilePath) in skipPathForCollection() argument
1065 if (i_vpdFilePath.empty()) in skipPathForCollection()
1071 if (i_vpdFilePath == SYSTEM_VPD_FILE_PATH) in skipPathForCollection()
1082 if (jsonUtility::isFruPowerOffOnly(m_parsedJson, i_vpdFilePath, in skipPathForCollection()
1091 i_vpdFilePath + in skipPathForCollection()
1097 m_parsedJson, i_vpdFilePath, l_errCode); in skipPathForCollection()
1103 i_vpdFilePath + in skipPathForCollection()