vpd source: enable choosing one of many keywords
Invert the property,keyword map. For example, change MACAddress: VINI,B1
to VINI,B1: MACAddress. Change the mako template to handle this.
This will allow us to pick VPD information from one of many
record/keyword combinations that can source an individual property.
Change-Id: I9785652addb88388751fd9f031f8e96e6d7d9df1
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/writefru.yaml b/writefru.yaml
index 0b4802d..eb7f827 100644
--- a/writefru.yaml
+++ b/writefru.yaml
@@ -1,17 +1,15 @@
BMC:
xyz.openbmc_project.Inventory.Decorator.Asset:
- PartNumber: VINI,PN
- SerialNumber: VINI,SN
- Manufacturer: OPFR,VN
- org.openpower_project.Inventory.Decorator.Asset:
- CCIN: VINI,CC
+ VINI,PN: PartNumber
+ VINI,SN: SerialNumber
+ OPFR,VN: Manufacturer
xyz.openbmc_project.Inventory.Item:
- PrettyName: VINI,DR
- xyz.openbmc_project.Inventory.Decorator.Revision:
- Version: VINI,HW
+ VINI,DR: PrettyName
xyz.openbmc_project.Common.UUID:
- UUID: OPFR,UD
+ OPFR,UD: UUID
+
ETHERNET:
xyz.openbmc_project.Inventory.Item.NetworkInterface:
- MACAddress: VINI,B1
+ VINI,B1: MACAddress
+ OPFR,B1: MACAddress