commit | c6e7ea925e1d8e1322a9820498532bdd3679c42f | [log] [tgz] |
---|---|---|
author | Sunny Srivastava <55740008+SunnySrivastava1984@users.noreply.github.com> | Fri Nov 03 21:10:43 2023 +0530 |
committer | SunnySrivastava <sunnsr25@in.ibm.com> | Thu Jan 04 05:53:13 2024 +0000 |
tree | e8e4180ccc3471482b54134fe2a5bbb3a9e79214 | |
parent | e2b0383a10c8e9511ebd443737cbeb0b8f065f5b [diff] |
Clear inventory data on removal In case any FRU is removed from the system, the data w.r.t the FRU, as it is persisted continues to stay on DBus. This sometimes can be mis-leading as data is displayed for FRU which is actually not present in the system. The commit, in case the FRU is removed via delete FRU procedure, clears all the VPD related data for the FRU and update its present and functional status. Test: Delete any FRU using "deleteFRUVPD" exposed via VPD-Manager, check the DBus, data related to VPD should be cleared. Change-Id: Ic61e9a9934333ef9558ac4294a1935575042cb11 Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
This repository hosts code for OpenPower and IBM IPZ format VPD parsers. Both OpenPower VPD and IPZ VPD formats are structured binaries that consist of records and keywords. A record is a collection of multiple keywords. More information about the format can be found here.
The repository consists of two distinct applications, which are:
This is a build-time YAML driven application that parses the OpenPower VPD format and uses the YAML configuration (see extra-properties-example.yaml and writefru.yaml) to determine:
The application instance must be passed in the file path to the VPD (this can, for example, be a sysfs path exposed by the EEPROM device driver) and also the D-Bus object path(s) that EEPROM data needs to be published under.
This parser is can be built by passing in the --enable-ibm-parser
configure option. This parser differs from the OpenPower VPD parser in the following ways:
#
and are > 255 bytes in length).Making the application runtime JSON driven allows us to support multiple systems (with different FRU configurations) to be supported in a single code image as well as making the application more flexible for future improvements.