IPZ VPD Parser support
This commit enables the app ibm-read-vpd to read the
IPZ format vpd. To build this app, the application
build must be configured with the "--enable-ibm-parser"
option.
The application populates the Inventory with the parsed
VPD data. The parser relies on a JSON config file
that maps the input VPD file path to the Inventory D-Bus
object that hosts the VPD data as properties.
The JSON file also supplies any additional interfaces
and properties that the D-Bus object should implement.
Argument required to run this application-
ibm-read-vpd --file vpd_file
Tested:
Also tested this on Rainier simulation model and verified that VPD
for FRUs is properly published as properties of D-Bus objects in the
Inventory.
Change-Id: Ic9305f25625adced7f64123589dd083e2679afbb
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
diff --git a/parser.hpp b/parser.hpp
index e131c46..097b14a 100644
--- a/parser.hpp
+++ b/parser.hpp
@@ -9,11 +9,11 @@
namespace vpd
{
-/** @brief API to parse OpenPOWER VPD
+/** @brief API to parse VPD
*
- * @param [in] vpd - OpenPOWER VPD in binary format
+ * @param [in] vpd - VPD in binary format
* @returns A Store object, which provides access to
- * the parsed VPD
+ * the parsed VPD.
*/
Store parse(Binary&& vpd);