API to check powerVS configuration
The commit implements change to check for powerVS configuration.
It is a combination of system series and driver running on the system.
Once that is established, only after that VPD vpdate will take place
w.r.t powerVS system.
Change-Id: I93fefcb79ced4f89bd6f5143666b4cd487897ac8
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/vpd-manager/src/manager.cpp b/vpd-manager/src/manager.cpp
index eca1588..b608e0b 100644
--- a/vpd-manager/src/manager.cpp
+++ b/vpd-manager/src/manager.cpp
@@ -335,6 +335,13 @@
{
throw DbusException("Invalid IM value read from Dbus");
}
+
+ if (!vpdSpecificUtility::isPowerVsConfiguration(l_imValue))
+ {
+ // TODO: Should booting be blocked in case of some
+ // misconfigurations?
+ return;
+ }
}
catch (const std::exception& l_ex)
{