configurations: Add SlotNumber for multi-host system
Add property `SlotNumber` to Hosts' configuration in Yosemite4 to obtain
Host's slot number by getting the property instead of parsing the string
of Dbus path.
Tested: verify that the properties have been generated.
Change-Id: I0f1412fcb74790d6da9b48f8dbf739d35f34c2c7
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/configurations/yosemite4_sentineldome.json b/configurations/yosemite4_sentineldome.json
index cdfe8bd..383a284 100644
--- a/configurations/yosemite4_sentineldome.json
+++ b/configurations/yosemite4_sentineldome.json
@@ -16,5 +16,8 @@
"Model": "$PRODUCT_PRODUCT_NAME",
"PartNumber": "$PRODUCT_PART_NUMBER",
"SerialNumber": "$PRODUCT_SERIAL_NUMBER"
+ },
+ "xyz.openbmc_project.Inventory.Decorator.Slot": {
+ "SlotNumber": "$bus % 15"
}
}