Collect all FRUs VPD Dbus method in vpd-manager
This commit adds code to expose new dbus method CollectAllFRUVPD under
vpd-manager service for VPD collection for all the FRUs present in the
system config JSON.
Change-Id: I393ffc15d684d6a0934d12a7f4bc1e23fdda054d
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
diff --git a/vpd-manager/include/manager.hpp b/vpd-manager/include/manager.hpp
index 120b4bb..88e328b 100644
--- a/vpd-manager/include/manager.hpp
+++ b/vpd-manager/include/manager.hpp
@@ -219,6 +219,21 @@
std::tuple<std::string, uint16_t> getUnexpandedLocationCode(
const std::string& i_expandedLocationCode);
+ /**
+ * @brief API to collect all FRUs VPD.
+ *
+ * This api will call OEM handler API to perform VPD collection for all FRUs
+ * present in the system config JSON.
+ *
+ * Note:
+ * System VPD collection will always be skipped.
+ * If host is in power on state, FRUs marked as 'powerOffOnly' in the
+ * system config JSON will be skipped.
+ *
+ * @return true on successful request made, false otherwise.
+ */
+ bool collectAllFruVpd() const noexcept;
+
private:
/**
* @brief An api to check validity of unexpanded location code.