Lines Matching defs:i_vpdFilePath

692 bool Worker::primeInventory(const std::string& i_vpdFilePath)
694 if (i_vpdFilePath.empty())
702 logging::logMessage("Empty JSON detected for " + i_vpdFilePath);
705 else if (!m_parsedJson["frus"].contains(i_vpdFilePath))
707 logging::logMessage("File " + i_vpdFilePath +
713 for (const auto& l_Fru : m_parsedJson["frus"][i_vpdFilePath])
756 /*if (std::filesystem::exists(i_vpdFilePath))
791 logging::logMessage("Call to PIM failed for VPD file " + i_vpdFilePath);
1184 bool Worker::processPreAction(const std::string& i_vpdFilePath,
1188 if (i_vpdFilePath.empty() || i_flagToProcess.empty())
1195 i_vpdFilePath, i_flagToProcess,
1213 m_parsedJson["frus"][i_vpdFilePath].at(0).value("inventoryPath",
1226 "Call to PIM failed for file " + i_vpdFilePath);
1232 "Inventory path is empty in Json for file " + i_vpdFilePath);
1293 types::VPDMapVariant Worker::parseVpdFile(const std::string& i_vpdFilePath)
1299 if (i_vpdFilePath.empty())
1307 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath,
1312 if (!processPreAction(i_vpdFilePath, "collection", l_errCode))
1318 i_vpdFilePath);
1334 i_vpdFilePath +
1338 if (!std::filesystem::exists(i_vpdFilePath))
1344 i_vpdFilePath + "Skipping parser trigger for the EEPROM");
1350 std::make_shared<Parser>(i_vpdFilePath, m_parsedJson);
1360 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath,
1364 if (!processPostAction(i_vpdFilePath, "collection", l_parsedVpd))
1372 i_vpdFilePath + "]"),
1380 i_vpdFilePath +
1391 i_vpdFilePath + " due to error: " + l_ex.what()};
1394 if (jsonUtility::isActionRequired(m_parsedJson, i_vpdFilePath,
1398 if (!jsonUtility::executePostFailAction(m_parsedJson, i_vpdFilePath,
1426 const std::string& i_vpdFilePath)
1439 setCollectionStatusProperty(i_vpdFilePath,
1442 const types::VPDMapVariant& parsedVpdMap = parseVpdFile(i_vpdFilePath);
1446 populateDbus(parsedVpdMap, objectInterfaceMap, i_vpdFilePath);
1459 i_vpdFilePath + "]. Check PEL for reason.");
1468 setCollectionStatusProperty(i_vpdFilePath,
1482 m_parsedJson, i_vpdFilePath, l_errCode);
1488 i_vpdFilePath +
1499 return std::make_tuple(false, i_vpdFilePath);
1521 m_parsedJson["frus"][i_vpdFilePath].at(0)))
1523 setPresentProperty(i_vpdFilePath, false);
1527 return std::make_tuple(false, i_vpdFilePath);
1530 setCollectionStatusProperty(i_vpdFilePath,
1533 return std::make_tuple(true, i_vpdFilePath);
1536 bool Worker::skipPathForCollection(const std::string& i_vpdFilePath)
1538 if (i_vpdFilePath.empty())
1544 if (i_vpdFilePath == SYSTEM_VPD_FILE_PATH)
1555 if (jsonUtility::isFruPowerOffOnly(m_parsedJson, i_vpdFilePath,
1564 i_vpdFilePath +
1570 m_parsedJson, i_vpdFilePath, l_errCode);
1576 i_vpdFilePath +