PEL: Save BMC Version ID in UserData section

When creating a PEL, save the VERSION_ID value from the /etc/os-release
file in the UserData section that keeps useful system information.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I6d9008b15c5347239bf8c21ef79219d3b6ee08e6
diff --git a/extensions/openpower-pels/data_interface.hpp b/extensions/openpower-pels/data_interface.hpp
index e690542..e139c07 100644
--- a/extensions/openpower-pels/data_interface.hpp
+++ b/extensions/openpower-pels/data_interface.hpp
@@ -137,6 +137,16 @@
     }
 
     /**
+     * @brief Returns the BMC FW version ID
+     *
+     * @return std::string - The BMC FW version ID
+     */
+    virtual std::string getBMCFWVersionID() const
+    {
+        return _bmcFWVersionID;
+    }
+
+    /**
      * @brief Returns the process name given its PID.
      *
      * @param[in] pid - The PID value as a string
@@ -221,6 +231,11 @@
      * @brief The server firmware version string
      */
     std::string _serverFWVersion;
+
+    /**
+     * @brief The BMC firmware version ID string
+     */
+    std::string _bmcFWVersionID;
 };
 
 /**
@@ -291,6 +306,12 @@
     void readServerFWVersion();
 
     /**
+     * @brief Reads the BMC firmware version ID and puts it into
+     *        _bmcFWVersionID.
+     */
+    void readBMCFWVersionID();
+
+    /**
      * @brief Finds the D-Bus service name that hosts the
      *        passed in path and interface.
      *