sensor: Modify config for sensor to add additional fields
Added entity ID, entity instance and sensor naming pattern to the
generated sensor yaml.
Resolves openbmc/openbmc#2612
Change-Id: Ie4dc9548833cb30126e873a7597b2be9b1ea7f79
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/occ_sensors.hardcoded.yaml b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/occ_sensors.hardcoded.yaml
index 8628060..2855b0e 100644
--- a/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/occ_sensors.hardcoded.yaml
+++ b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/occ_sensors.hardcoded.yaml
@@ -1,9 +1,12 @@
0x08:
+ entityID: 0xD2
+ entityInstance: 1
sensorType: 0x09
path: /org/open_power/control/occ0
sensorReadingType: 0x09
serviceInterface: org.freedesktop.DBus.Properties
readingType: assertion
+ sensorNamePattern: nameLeaf
interfaces:
org.open_power.OCC.Status:
OccActive:
@@ -17,11 +20,14 @@
deassert: false
type: bool
0x09:
+ entityID: 0xD2
+ entityInstance: 2
sensorType: 0x09
path: /org/open_power/control/occ1
sensorReadingType: 0x09
serviceInterface: org.freedesktop.DBus.Properties
readingType: assertion
+ sensorNamePattern: nameLeaf
interfaces:
org.open_power.OCC.Status:
OccActive: