Update IM value for Fuji system
This commit adds the code to update planar IM value to P11 series IM
value with its corresponding IM series for Fuji system.
Change-Id: I97c9800a1412ce9f772e5f4514f838b739c81287
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
diff --git a/vpd-manager/src/single_fab.cpp b/vpd-manager/src/single_fab.cpp
index c823e90..f2c73f8 100644
--- a/vpd-manager/src/single_fab.cpp
+++ b/vpd-manager/src/single_fab.cpp
@@ -142,6 +142,16 @@
bool l_retVal{false};
if (!i_currentImValuePlanar.empty())
{
+ if (i_currentImValuePlanar.compare(
+ constants::VALUE_4, constants::VALUE_1,
+ std::to_string(constants::VALUE_3)) ==
+ constants::STR_CMP_SUCCESS)
+ {
+ i_currentImValuePlanar.replace(constants::VALUE_4,
+ constants::VALUE_1,
+ std::to_string(constants::VALUE_2));
+ }
+
// update the IM value to P11 series(6000x). Replace the first character
// of IM value string with '6'
l_retVal = setImOnPlanar(i_currentImValuePlanar.replace(