xref: /openbmc/phosphor-fan-presence/control/example/zone_conditions.yaml (revision 63605cd3b7c66f2fbfeb40f85a1fb3ce1ab87424)
1*63605cd3SGunnar Mills#Example zone conditions for phosphor-fan-control
2*63605cd3SGunnar Mills
3*63605cd3SGunnar Mills#conditions:
4*63605cd3SGunnar Mills#    - name: [A unique name for this condition.]
5*63605cd3SGunnar Mills#      type: [The type of condition. Currently, the only supported type is
6*63605cd3SGunnar Mills#             getProperty]
7*63605cd3SGunnar Mills#      properties:
8*63605cd3SGunnar Mills#          - property: [The Dbus property name on the interface.]
9*63605cd3SGunnar Mills#            interface: [The Dbus interface that contains the property.]
10*63605cd3SGunnar Mills#            path: [The Dbus path where the interface is located.]
11*63605cd3SGunnar Mills#            type: [The property type for this property.]
12*63605cd3SGunnar Mills#            value: [The property value for this condition to be set.]
13*63605cd3SGunnar Mills
14*63605cd3SGunnar Mills#Example:
15*63605cd3SGunnar Mills#conditions:
16*63605cd3SGunnar Mills#  - name: air_cooled_chassis
17*63605cd3SGunnar Mills#    type: getProperty
18*63605cd3SGunnar Mills#    properties:
19*63605cd3SGunnar Mills#      - property: WaterCooled
20*63605cd3SGunnar Mills#        interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
21*63605cd3SGunnar Mills#        path: /xyz/openbmc_project/inventory/system/chassis
22*63605cd3SGunnar Mills#        type: bool
23*63605cd3SGunnar Mills#        value: false
24*63605cd3SGunnar Mills#
25*63605cd3SGunnar Mills#  - name: water_and_air_cooled_chassis
26*63605cd3SGunnar Mills#    type: getProperty
27*63605cd3SGunnar Mills#    properties:
28*63605cd3SGunnar Mills#      - property: WaterCooled
29*63605cd3SGunnar Mills#        interface: xyz.openbmc_project.Inventory.Decorator.CoolingType
30*63605cd3SGunnar Mills#        path: /xyz/openbmc_project/inventory/system/chassis
31*63605cd3SGunnar Mills#        type: bool
32*63605cd3SGunnar Mills#        value: true
33