parser: Publish FRU Number For DIMMs
Make the memory VPD parser publish com.ibm.ipzvd.VINI FN.
This is the FRU number and for DDIMMs it is the same as the part number.
This ensures that the same is published over Redfish as the
SparePartNumber.
Tested:
Made sure that when the DIMM VPD is collected, we see both
com.ibm.ipzvpd.VINI FN as well as
xyz.openbmc_project.Inventory.Decorator.Asset SparePartNumber
show up on D-Bus.
Also verified that the SparePartNumber shows up in the GUI.
Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Ic825c7a5b345ff05e4bfbfe5a2d39ad030b369ad
diff --git a/vpd-parser/memory_vpd_parser.cpp b/vpd-parser/memory_vpd_parser.cpp
index 9551e33..1ce495c 100644
--- a/vpd-parser/memory_vpd_parser.cpp
+++ b/vpd-parser/memory_vpd_parser.cpp
@@ -126,6 +126,7 @@
advance(iterator, SERIAL_NUM_LEN);
Binary ccin(iterator, iterator + CCIN_LEN);
+ map.emplace("FN", partNumber);
map.emplace("PN", move(partNumber));
map.emplace("SN", move(serialNumber));
map.emplace("CC", move(ccin));