1# rpolicy
2
3## Description
4The type of redundancy policy to use against the methods of presence detection.
5When there are more than one method of detecting a fan, the policy in which to
6use those methods can be configured based on system expectations.
7
8## Attribute Value(s)
9Policy `type`:
10* ["anyof"](#anyof)
11* ["fallback"](#fallback)
12
13### "anyof"
14A policy where if any method of fan presence detection denotes the fan is
15present, results in the fan being marked present. All methods of detection must
16denote the fan as missing to have a fan be not present.
17
18```
19"type": "anyof"
20```
21
22### "fallback"
23A policy to use the first method of fan presence detection and then use the
24next method only when the first method denotes the fan is missing.
25
26```
27"type": "fallback"
28```
29
30## Example
31<pre><code>
32[
33  {
34    "name": "fan0",
35    "path": "/system/chassis/motherboard/fan0",
36    "methods": [
37      {
38        "type": "tach",
39        "sensors": [
40          "fan0_0"
41        ]
42      }
43    ],
44    <b><i>"rpolicy": {
45      "type": "anyof"
46    }"</i></b>
47  }
48]
49</code></pre>
50