[PATCH phosphor-event] Add association interface to each event log

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat Feb 27 05:20:33 AEDT 2016


When a new event log is created we will create a interface with a name of org.openbmc.association.  That will have a single property named "association" which will be an a(s).  That will be enough information for the rest server to present it.

Lets say you want to run the acceptTestMessage method.  It will create an association between the event log and 2 dimms.

So
/org/openbmc/inventory/system/chassis/motherboard/dimm2
/org/openbmc/inventory/system/chassis/motherboard/dimm3

/org/openbmc/records/events/1/assoc
should return
data : {/org/openbmc/inventory/system/chassis/motherboard/dimm2 , /org/openbmc/inventory/system/chassis/motherboard/dimm3}

You should also be able to go to the dimm and get the association in reverse

/org/openbmc/inventory/system/chassis/motherboard/dimm2/assoc
should return
data : {/org/openbmc/records/events/1/}

https://github.com/openbmc/phosphor-event/pull/12

Chris Austen (1):
  Add association interface to each event log

 event_messaged_sdbus.c | 96 ++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 82 insertions(+), 14 deletions(-)

-- 
2.7.1




More information about the openbmc mailing list