summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-yosemite4/recipes-phosphor/dbus/fan-fault-led/board-0-fan-8.yaml
blob: 92df2dee2c75a990ea6a238f25df703d2c7d2c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
- name: board 0 fan 8 current critical alarm path group
  class: group
  group: path
  members:
      - meta: PATH
        path: /xyz/openbmc_project/sensors/fan_tach/FANBOARD0_FAN8_TACH_IL
      - meta: PATH
        path: /xyz/openbmc_project/sensors/fan_tach/FANBOARD0_FAN8_TACH_OL

- name: current fan critical alarm property
  class: group
  group: property
  type: boolean
  members:
      - interface: xyz.openbmc_project.Sensor.Threshold.Critical
        meta: PROPERTY
        property: CriticalAlarmHigh
      - interface: xyz.openbmc_project.Sensor.Threshold.Critical
        meta: PROPERTY
        property: CriticalAlarmLow

- name: board 0 fan 8 critical alarm assert
  class: watch
  watch: property
  paths: board 0 fan 8 current critical alarm path group
  properties: current fan critical alarm property
  callback: check if fan critical threshold assert

- name: board 0 fan 8 critical alarm deassert
  class: watch
  watch: property
  paths: board 0 fan 8 current critical alarm path group
  properties: current fan critical alarm property
  callback: check if fan critical threshold deassert

- name: check if fan critical threshold assert
  class: condition
  condition: count
  paths: board 0 fan 8 current critical alarm path group
  properties: current fan critical alarm property
  callback: set fan fail
  countop: ">="
  countbound: 1
  op: "=="
  bound: true

- name: check if fan critical threshold deassert
  class: condition
  condition: count
  paths: board 0 fan 8 current critical alarm path group
  properties: current fan critical alarm property
  callback: set fan ok
  countop: "<"
  countbound: 1
  op: "=="
  bound: true

- name: set fan ok group assert
  class: callback
  callback: method
  service: org.freedesktop.systemd1
  path: /org/freedesktop/systemd1
  interface: org.freedesktop.systemd1.Manager
  method: StartUnit
  args:
      - value: obmc-led-group-start@fan8_ok.service
        type: string
      - value: replace
        type: string

- name: set fan ok group deassert
  class: callback
  callback: method
  service: org.freedesktop.systemd1
  path: /org/freedesktop/systemd1
  interface: org.freedesktop.systemd1.Manager
  method: StartUnit
  args:
      - value: obmc-led-group-stop@fan8_ok.service
        type: string
      - value: replace
        type: string

- name: set fan fail group assert
  class: callback
  callback: method
  service: org.freedesktop.systemd1
  path: /org/freedesktop/systemd1
  interface: org.freedesktop.systemd1.Manager
  method: StartUnit
  args:
      - value: obmc-led-group-start@fan8_fail.service
        type: string
      - value: replace
        type: string

- name: set fan fail group deassert
  class: callback
  callback: method
  service: org.freedesktop.systemd1
  path: /org/freedesktop/systemd1
  interface: org.freedesktop.systemd1.Manager
  method: StartUnit
  args:
      - value: obmc-led-group-stop@fan8_fail.service
        type: string
      - value: replace
        type: string

- name: set fan ok
  class: callback
  callback: group
  members:
      - set fan ok group assert
      - set fan fail group deassert

- name: set fan fail
  class: callback
  callback: group
  members:
      - set fan fail group assert
      - set fan ok group deassert