Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement vpd-tool mfgClean #569

Conversation

souvik1914581
Copy link

@souvik1914581 souvik1914581 commented Jan 9, 2025

This commit implements vpd-tool --mfgClean option.
This API resets specific System VPD keywords to default value.

  1. The specified keyword values are reset on:

    • Primary EEPROM path.
    • Redundant EEPROM path(if any)
    • D-Bus cache.
    • Backup path.
  2. The specific System VPD keywords are maintained as a static read only
    map in the code.

@souvik1914581 souvik1914581 marked this pull request as draft January 9, 2025 04:28
Souvik Roy added 2 commits January 9, 2025 05:48
This commit implements vpd-tool mfgClean stub which allows the user to
select --mfgClean option. The actual implementation of mfgClean is yet
to be implemented.

This commit also adds the list of system VPD keywords which can be reset using
--mfgClean option. These keywords are added as a const map along with
their default values.

Test:

'''
root@p10bmc:/tmp# ./vpd-tool --mfgClean --yes
root@p10bmc:~# echo $?
0
root@p10bmc:/tmp# ./vpd-tool --mfgClean
This option resets some of the system VPD keywords to their default
values. Do you really wish to proceed further?[yes/no]:yes
root@p10bmc:~# echo $?
0
'''

Change-Id: I472c1000ad2fd769a28d11b93cb52687628a215b
Signed-off-by: Souvik Roy <souvik.roy10@ibm.com>
This commit implements vpd-tool --mfgClean option.
This API resets specific System VPD keywords to default value.

The specified keyword values are reset on:
  - Primary EEPROM path.
  - Redundant EEPROM path(if any)
  - D-Bus cache.
  - Backup path.

The specific System VPD keywords are maintained as a static read only
map in the code.

Change-Id: I18fffc04a5fbf7a972074621dd817049b89b5860
Signed-off-by: Souvik Roy <souvik.roy10@ibm.com>
@souvik1914581 souvik1914581 force-pushed the sr_vpdToolMfgClean_Local_map_Implementation branch from 797f011 to 0503e13 Compare January 9, 2025 11:49
@souvik1914581
Copy link
Author

Deprecated by #573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant