Skip to contentSkip to conversation

Inventory Associations

DISCUSSION Matt Spinler 1 participant 1 message Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

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