Add support for new keywords
Add support for the VS and VP keywords. These
are the serial number and part number keywords for
OpenPower systems.
Change-Id: If22c99b3e6c36649e6a2d4afffe8318cf8fc493c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/defines.hpp b/defines.hpp
index 84ddae3..dda0530 100644
--- a/defines.hpp
+++ b/defines.hpp
@@ -53,7 +53,9 @@
VN, /**< FRU manufacturer name */
MB, /**< FRU manufacture date */
MM, /**< FRU model */
- UD /**< System UUID */
+ UD, /**< System UUID */
+ VS, /**< OpenPower serial number */
+ VP /**< OpenPower part number */
};
/** @brief Convert VPD Keyword name from enum to string
@@ -123,6 +125,18 @@
return "UD";
}
+template<>
+constexpr const char* getKeyword<Keyword::VS>()
+{
+ return "VS";
+}
+
+template<>
+constexpr const char* getKeyword<Keyword::VP>()
+{
+ return "VP";
+}
+
} // namespace record
/** @brief FRUs whose VPD we're interested in