Correlated JSON config file for DBus properties
This commit adds the new JSON file, the file contains set of DBus
properties which are correlated with properties from other interfaces.
This correlated property information is used for syncing DBus property
value, where the same property(data) can be reflected data under
different interface(s) property.
The correlated JSON has the following format,
```
{
"<dbus_service_name>": {
"<src_interface_name>": {
"<src_property_name>": {
"pathsPair": {
"<src_inventory_object_path>": {
"destinationInventoryPath": ["<dst_inv_path>", "<dst_inv_path>"],
"interfaces": {
"<dst_interface_name>": "<dst_interface_name>"
}
}
}//paths pair end
"defaultInterfaces": {
"<dst_interface_name>": "<dst_roperty_name>"
}
}//src property end
}//src interface end
}//dbus service end
}//end
```
More information about this correlation property JSON can be found
in README file under the doc folder path.
Change-Id: I269f1ed0d7a0f63f9ef8d89328b4139726096e51
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
diff --git a/configuration/ibm/correlated_properties.json b/configuration/ibm/correlated_properties.json
new file mode 100644
index 0000000..2f6255d
--- /dev/null
+++ b/configuration/ibm/correlated_properties.json
@@ -0,0 +1,199 @@
+{
+ "xyz.openbmc_project.Inventory.Manager": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "PartNumber": {
+ "defaultInterfaces": {
+ "com.ibm.ipzvpd.VINI": "PN"
+ }
+ },
+ "SerialNumber": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system",
+ "/xyz/openbmc_project/inventory/system/chassis",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery"
+ ],
+ "interfaces": {
+ "com.ibm.ipzvpd.VSYS": "SE"
+ }
+ }
+ },
+ "defaultInterfaces": {
+ "com.ibm.ipzvpd.VINI": "SN"
+ }
+ },
+ "Model": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system",
+ "/xyz/openbmc_project/inventory/system/chassis",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery"
+ ],
+ "interfaces": {
+ "com.ibm.ipzvpd.VSYS": "TM"
+ }
+ }
+ },
+ "defaultInterfaces": {
+ "com.ibm.ipzvpd.VINI": "CC"
+ }
+ },
+ "SparePartNumber": {
+ "defaultInterfaces": {
+ "com.ibm.ipzvpd.VINI": "FN"
+ }
+ },
+ "SubModel": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system",
+ "/xyz/openbmc_project/inventory/system/chassis",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard",
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery"
+ ],
+ "interfaces": {
+ "com.ibm.ipzvpd.VSYS": "BR"
+ }
+ }
+ }
+ }
+ },
+ "com.ibm.ipzvpd.VINI": {
+ "PN": {
+ "defaultInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "PartNumber"
+ }
+ },
+ "SN": {
+ "defaultInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SerialNumber"
+ }
+ },
+ "CC": {
+ "defaultInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "Model"
+ }
+ },
+ "FN": {
+ "defaultInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SparePartNumber"
+ }
+ }
+ },
+ "com.ibm.ipzvpd.VSYS": {
+ "SE": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SerialNumber"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SerialNumber"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SerialNumber"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SerialNumber"
+ }
+ }
+ }
+ },
+ "TM": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "Model"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "Model"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "Model"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "Model"
+ }
+ }
+ }
+ },
+ "BR": {
+ "pathsPair": {
+ "/xyz/openbmc_project/inventory/system": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SubModel"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SubModel"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SubModel"
+ }
+ },
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/tod_battery": {
+ "destinationInventoryPath": [
+ "/xyz/openbmc_project/inventory/system"
+ ],
+ "interfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": "SubModel"
+ }
+ }
+ }
+ }
+ }
+ }
+}