@@ -245,7 +245,14 @@ nlohmann::json VpdTool::getInventoryPropertyJson(
245245int VpdTool::fixSystemVpd () noexcept
246246{
247247 int l_rc = constants::FAILURE;
248+
249+ printFixSystemVpdOption (types::UserOption::UseBackupDataForAll);
250+ printFixSystemVpdOption (types::UserOption::UseSystemBackplaneDataForAll);
251+ printFixSystemVpdOption (types::UserOption::MoreOptions);
252+ printFixSystemVpdOption (types::UserOption::Exit);
253+
248254 // ToDo: Implementation needs to be added
255+
249256 return l_rc;
250257}
251258
@@ -394,4 +401,49 @@ bool VpdTool::isFruPresent(const std::string& i_objectPath) const noexcept
394401 return l_returnValue;
395402}
396403
404+ void VpdTool::printFixSystemVpdOption (
405+ const types::UserOption& i_option) const noexcept
406+ {
407+ switch (i_option)
408+ {
409+ case types::UserOption::Exit:
410+ std::cout << " Enter 0 => To exit successfully : " ;
411+ break ;
412+ case types::UserOption::UseBackupDataForAll:
413+ std::cout << " Enter 1 => If you choose the data on backup for all "
414+ " mismatching record-keyword pairs"
415+ << std::endl;
416+ break ;
417+ case types::UserOption::UseSystemBackplaneDataForAll:
418+ std::cout << " Enter 2 => If you choose the data on primary for all "
419+ " mismatching record-keyword pairs"
420+ << std::endl;
421+ break ;
422+ case types::UserOption::MoreOptions:
423+ std::cout << " Enter 3 => If you wish to explore more options"
424+ << std::endl;
425+ break ;
426+ case types::UserOption::UseBackupDataForCurrent:
427+ std::cout << " Enter 4 => If you choose the data on backup as the "
428+ " right value"
429+ << std::endl;
430+ break ;
431+ case types::UserOption::UseSystemBackplaneDataForCurrent:
432+ std::cout << " Enter 5 => If you choose the data on primary as the "
433+ " right value"
434+ << std::endl;
435+ break ;
436+ case types::UserOption::NewValueOnBoth:
437+ std::cout
438+ << " Enter 6 => If you wish to enter a new value to update "
439+ " both on backup and primary"
440+ << std::endl;
441+ break ;
442+ case types::UserOption::SkipCurrent:
443+ std::cout << " Enter 7 => If you wish to skip the above "
444+ " record-keyword pair"
445+ << std::endl;
446+ break ;
447+ }
448+ }
397449} // namespace vpd
0 commit comments