Implement VPD recollection
This commit implements functionality to recollect VPD for a hardware
by triggering VPD parser for that hardware in case there is a
replacement.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: Ia0d377b554299faac3b46a4dc8dd96f964f07bd2
diff --git a/vpd-manager/manager.hpp b/vpd-manager/manager.hpp
index 6846c6e..41d3ad7 100644
--- a/vpd-manager/manager.hpp
+++ b/vpd-manager/manager.hpp
@@ -118,6 +118,12 @@
/** @brief Start processing DBus messages. */
void run();
+ /** @brief Api to perform VPD recollection.
+ * This api will trigger parser to perform VPD recollection for FRUs that
+ * can be replaced at standby.
+ */
+ void performVPDRecollection();
+
private:
/** @brief process the given JSON file
*/
@@ -138,6 +144,9 @@
// map to hold the mapping of location code and inventory path
inventory::LocationCodeMap fruLocationCode;
+
+ // map to hold FRUs which can be replaced at standby
+ inventory::ReplaceableFrus replaceableFrus;
};
} // namespace manager