Enhance system VPD map
This commit enhances system VPD map to incorporate useful
information about each critical keywords like the default
keyword value, if the keyword is restorable or not, if the
keyword is resettable at manufacturing or not, if a PEL
required or not when failed to restore the keywords.
Tested the following,
1. system VPD restore on cache via parser
2. system VPD restore on hardware via vpd-manager
3. system VPD restore via vpd-tool
4. system VPD reset via vpd-tool
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: I29ae6016f6d84342a8ad91ba72617a45121cf8a6
diff --git a/vpd_tool_impl.cpp b/vpd_tool_impl.cpp
index c15647c..ef7ad0b 100644
--- a/vpd_tool_impl.cpp
+++ b/vpd_tool_impl.cpp
@@ -696,8 +696,10 @@
string busStr{}, hwValStr{};
string mismatch = "NO"; // no mismatch
- for (const auto& keyword : recordKw.second)
+ for (const auto& keywordInfo : recordKw.second)
{
+ const auto& keyword = get<0>(keywordInfo);
+
string hardwareValue{};
auto recItr = vpdMap.find(record);
@@ -953,4 +955,4 @@
}
} while (true);
-}
+}
\ No newline at end of file