wspoon: Update inventory associations

Make the follow updates to the associations that PIM will create:

Make a new association iface on /system/chassis that contains every
sensor in that chassis, with some exceptions.  The forward association
type is 'sensors', and the reverse type is 'chassis'.

The power supply sensors are not included in this new association list,
as the power supplies also now have a new 'sensors' <-> 'chassis'
association that associates power supplies to their sensors, as bmcweb
treats a power supply as a chassis.

Also not included in the new chassis associations are any remaining
power sensors, as bmcweb currently makes fake power supply responses out
of them and we want to avoid that.

The final change is to change the association type of the associations
that point to the sensors on their inventory item from 'sensors' to
'child_sensors', as 'sensors' is required to be used in bmcweb's chassis
handling as mentioned above.

Change-Id: I5e00c0e0ca0568374a18d6b057dd5fc008dfa25a
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed