Populate com.ibm.ipzvpd.Location interface
Populate com.ibm.ipzvpd.Location interface on dbus until
it gets deprecated.
Test:
Tested on rain57bmc.
Before this change: dimm location code left unexpanded
Partial output of dimm dbus introspect
root@rain57bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
com.ibm.ipzvpd.Location interface - - -
.LocationCode property s "Ufcs-P0-C12" emits-change writable
com.ibm.ipzvpd.VINI interface - - -
.B3 property ay 0 emits-change writable
.B4 property ay 0 emits-change writable
.B7 property ay 0 emits-change writable
.CC property ay 4 51 50 55 66 emits-change writable
.CE property ay 0
After this change: dimm location code has expanded version
root@rain57bmc:/tmp# ./ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom
root@rain57bmc:/tmp# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
com.ibm.ipzvpd.Location interface - - -
.LocationCode property s "U78DA.ND0.WZS002T-P0-C12" emits-change writable
com.ibm.ipzvpd.VINI interface - - -
.B3 property ay 0 emits-change writable
.B4 property ay 0 emits-change writable
.B7 property ay 0 emits-change writable
.CC property ay 4 51 50 55 66
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: I977bbdabe369ddbf1dcb2354cc77c42019ab17cc
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index cb842fa..2fa1ae7 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -249,6 +249,7 @@
itr.value().get<string>(), vpdMap, isSystemVpd);
props.emplace(busProp, prop);
interfaces.emplace(XYZ_LOCATION_CODE_INF, props);
+ interfaces.emplace(IBM_LOCATION_CODE_INF, props);
}
else
{