Inventory Associations

Matt Spinler mspinler at linux.ibm.com
Thu Mar 7 05:57:57 AEDT 2019


Hi,

I put some functionality into phosphor-inventor-manager (almost up for 
review)
to be able to add mapper associations for inventory objects that it 
hosts based
on a system specific JSON File.

The associations that get created should probably be common across inventory
implementations, so I propose:

1) Associating sensors to the inventory entry they sense for using the
    'inventory' and 'sensors' association types:

#forward association:
"/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm8/sensors": {
     "endpoints": [
     "/xyz/openbmc_project/sensors/temperature/dimm8_temp"
     ]
},

#reverse association:
"/xyz/openbmc_project/sensors/temperature/dimm8_temp/inventory": {
     "endpoints": [
"/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm8"
     ]
},

2) Associating LEDs to the entries they indicate for using the 
'inventory' and
    'leds' association types:

#forward association:
"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan0/leds": {
     "endpoints": [
     "/xyz/openbmc_project/led/physical/fan0"
     ]
},

#reverse association:
"/xyz/openbmc_project/led/physical/fan0/inventory"
     "endpoints": [
"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan0"
     ]


Does this meet the Redfish needs?

Thanks,
Matt



More information about the openbmc mailing list