Delphine CC Chiu | 40ad51c | 2024-05-21 18:05:59 +0800 | [diff] [blame] | 1 | - name: board 0 fan 9 current critical alarm path group |
| 2 | class: group |
| 3 | group: path |
| 4 | members: |
| 5 | - meta: PATH |
| 6 | path: /xyz/openbmc_project/sensors/fan_tach/FANBOARD0_FAN9_TACH_IL |
| 7 | - meta: PATH |
| 8 | path: /xyz/openbmc_project/sensors/fan_tach/FANBOARD0_FAN9_TACH_OL |
| 9 | |
| 10 | - name: current fan critical alarm property |
| 11 | class: group |
| 12 | group: property |
| 13 | type: boolean |
| 14 | members: |
| 15 | - interface: xyz.openbmc_project.Sensor.Threshold.Critical |
| 16 | meta: PROPERTY |
| 17 | property: CriticalAlarmHigh |
| 18 | - interface: xyz.openbmc_project.Sensor.Threshold.Critical |
| 19 | meta: PROPERTY |
| 20 | property: CriticalAlarmLow |
| 21 | |
| 22 | - name: board 0 fan 9 critical alarm assert |
| 23 | class: watch |
| 24 | watch: property |
| 25 | paths: board 0 fan 9 current critical alarm path group |
| 26 | properties: current fan critical alarm property |
| 27 | callback: check if fan critical threshold assert |
| 28 | |
| 29 | - name: board 0 fan 9 critical alarm deassert |
| 30 | class: watch |
| 31 | watch: property |
| 32 | paths: board 0 fan 9 current critical alarm path group |
| 33 | properties: current fan critical alarm property |
| 34 | callback: check if fan critical threshold deassert |
| 35 | |
| 36 | - name: check if fan critical threshold assert |
| 37 | class: condition |
| 38 | condition: count |
| 39 | paths: board 0 fan 9 current critical alarm path group |
| 40 | properties: current fan critical alarm property |
| 41 | callback: set fan fail |
| 42 | countop: ">=" |
| 43 | countbound: 1 |
| 44 | op: "==" |
| 45 | bound: true |
| 46 | |
| 47 | - name: check if fan critical threshold deassert |
| 48 | class: condition |
| 49 | condition: count |
| 50 | paths: board 0 fan 9 current critical alarm path group |
| 51 | properties: current fan critical alarm property |
| 52 | callback: set fan ok |
| 53 | countop: "<" |
| 54 | countbound: 1 |
| 55 | op: "==" |
| 56 | bound: true |
| 57 | |
| 58 | - name: set fan ok group assert |
| 59 | class: callback |
| 60 | callback: method |
| 61 | service: org.freedesktop.systemd1 |
| 62 | path: /org/freedesktop/systemd1 |
| 63 | interface: org.freedesktop.systemd1.Manager |
| 64 | method: StartUnit |
| 65 | args: |
| 66 | - value: obmc-led-group-start@fan9_ok.service |
| 67 | type: string |
| 68 | - value: replace |
| 69 | type: string |
| 70 | |
| 71 | - name: set fan ok group deassert |
| 72 | class: callback |
| 73 | callback: method |
| 74 | service: org.freedesktop.systemd1 |
| 75 | path: /org/freedesktop/systemd1 |
| 76 | interface: org.freedesktop.systemd1.Manager |
| 77 | method: StartUnit |
| 78 | args: |
| 79 | - value: obmc-led-group-stop@fan9_ok.service |
| 80 | type: string |
| 81 | - value: replace |
| 82 | type: string |
| 83 | |
| 84 | - name: set fan fail group assert |
| 85 | class: callback |
| 86 | callback: method |
| 87 | service: org.freedesktop.systemd1 |
| 88 | path: /org/freedesktop/systemd1 |
| 89 | interface: org.freedesktop.systemd1.Manager |
| 90 | method: StartUnit |
| 91 | args: |
| 92 | - value: obmc-led-group-start@fan9_fail.service |
| 93 | type: string |
| 94 | - value: replace |
| 95 | type: string |
| 96 | |
| 97 | - name: set fan fail group deassert |
| 98 | class: callback |
| 99 | callback: method |
| 100 | service: org.freedesktop.systemd1 |
| 101 | path: /org/freedesktop/systemd1 |
| 102 | interface: org.freedesktop.systemd1.Manager |
| 103 | method: StartUnit |
| 104 | args: |
| 105 | - value: obmc-led-group-stop@fan9_fail.service |
| 106 | type: string |
| 107 | - value: replace |
| 108 | type: string |
| 109 | |
| 110 | - name: set fan ok |
| 111 | class: callback |
| 112 | callback: group |
| 113 | members: |
| 114 | - set fan ok group assert |
| 115 | - set fan fail group deassert |
| 116 | |
| 117 | - name: set fan fail |
| 118 | class: callback |
| 119 | callback: group |
| 120 | members: |
| 121 | - set fan fail group assert |
| 122 | - set fan ok group deassert |