inventory : implement VPD write
Define and implement API to write parsed OpenPOWER VPD for a FRU to the
inventory.
The API needs as input the FRU type, FRU object path and
parsed VPD. It makes use of the inventory manager to then create the
desired FRU object, populated with the VPD.
Change-Id: I97ec7e1f0cd7b28b5ccb5d8e7dbeb2cad2a7093e
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/defines.hpp b/defines.hpp
index 6b0ce45..e391879 100644
--- a/defines.hpp
+++ b/defines.hpp
@@ -117,5 +117,17 @@
}
} // namespace record
+
+/** @brief FRUs whose VPD we're interested in
+ *
+ * BMC The VPD on the BMC planar, for eg
+ * ETHERNET The ethernet card on the BMC
+ */
+enum Fru
+{
+ BMC,
+ ETHERNET
+};
+
} // namespace vpd
} // namespace openpower