summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-05-21 19:19:32 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-06-06 22:05:18 +0000
commitfd4d3cc662f7126e31ffdb074fb1f6d531af88e6 (patch)
tree041d2af3b6bcaa8b676b66a6af920e0dcb4e0f16 /meta-openbmc-machines
parent0e6bbf8edc6abfda067a023a0be599040e0b4243 (diff)
downloadtalos-openbmc-fd4d3cc662f7126e31ffdb074fb1f6d531af88e6.tar.gz
talos-openbmc-fd4d3cc662f7126e31ffdb074fb1f6d531af88e6.zip
Add fan zone conditions YAML
Define the conditions that may be used when defining fan zones. The current conditions check the cooling types on the chassis because the Witherspoon fan zones are different based on if water cooling is used or not. Change-Id: I850b9f04bafb79f36526b6d355b556005b2336be Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-conditions/zone_conditions.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-conditions/zone_conditions.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-conditions/zone_conditions.yaml
new file mode 100644
index 000000000..0c8b3c5ff
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-conditions/zone_conditions.yaml
@@ -0,0 +1,18 @@
+conditions:
+ - name: air_cooled_chassis
+ type: getProperty
+ properties:
+ - property: WaterCooled
+ interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
+ path: /xyz/openbmc_project/inventory/system/chassis
+ type: bool
+ value: false
+
+ - name: water_and_air_cooled_chassis
+ type: getProperty
+ properties:
+ - property: WaterCooled
+ interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
+ path: /xyz/openbmc_project/inventory/system/chassis
+ type: bool
+ value: true
OpenPOWER on IntegriCloud