sensor_yaml_config.py: Add support for P8
P8 rpt has some different items in rpt and yaml:
1. occ active sensor's path is different;
2. P8 systems has centaur/membuf.
Add support for the above differences.
Tested: Verify it generates yaml config with Palmetto's config and rpt;
Verify it does not break Romulus' config
Change-Id: Ib0002194655c0b3ccce0f31592cccc4f6b875353
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/leiyu/obmc-utils/sensor_map.yaml b/leiyu/obmc-utils/sensor_map.yaml
index b1db9d1..4af0405 100644
--- a/leiyu/obmc-utils/sensor_map.yaml
+++ b/leiyu/obmc-utils/sensor_map.yaml
@@ -11,6 +11,10 @@
- !!python/tuple [xyz.openbmc_project.Object.Enable]
: {entityID: 33, sensorNamePattern: nameLeaf}
? !!python/tuple
+- /system/chassis/motherboard/cpu
+- !!python/tuple [xyz.openbmc_project.Inventory.Item, xyz.openbmc_project.State.Decorator.OperationalStatus]
+: {entityID: 3, sensorNamePattern: nameLeaf}
+? !!python/tuple
- /system/chassis/motherboard/cpu0
- !!python/tuple [xyz.openbmc_project.Inventory.Item, xyz.openbmc_project.State.Decorator.OperationalStatus]
: {entityID: 3, sensorNamePattern: nameLeaf}