149d45bcdSMatthew Barth# rpolicy
249d45bcdSMatthew Barth
349d45bcdSMatthew Barth## Description
4*a49e3f19SPatrick Williams
549d45bcdSMatthew BarthThe type of redundancy policy to use against the methods of presence detection.
649d45bcdSMatthew BarthWhen there are more than one method of detecting a fan, the policy in which to
749d45bcdSMatthew Barthuse those methods can be configured based on system expectations.
849d45bcdSMatthew Barth
949d45bcdSMatthew Barth## Attribute Value(s)
10*a49e3f19SPatrick Williams
1149d45bcdSMatthew BarthPolicy `type`:
12*a49e3f19SPatrick Williams
13*a49e3f19SPatrick Williams- ["anyof"](#anyof)
14*a49e3f19SPatrick Williams- ["fallback"](#fallback)
1549d45bcdSMatthew Barth
1649d45bcdSMatthew Barth### "anyof"
17*a49e3f19SPatrick Williams
1849d45bcdSMatthew BarthA policy where if any method of fan presence detection denotes the fan is
1949d45bcdSMatthew Barthpresent, results in the fan being marked present. All methods of detection must
2049d45bcdSMatthew Barthdenote the fan as missing to have a fan be not present.
2149d45bcdSMatthew Barth
2249d45bcdSMatthew Barth```
2349d45bcdSMatthew Barth"type": "anyof"
2449d45bcdSMatthew Barth```
2549d45bcdSMatthew Barth
2649d45bcdSMatthew Barth### "fallback"
27*a49e3f19SPatrick Williams
28*a49e3f19SPatrick WilliamsA policy to use the first method of fan presence detection and then use the next
29*a49e3f19SPatrick Williamsmethod only when the first method denotes the fan is missing.
3049d45bcdSMatthew Barth
3149d45bcdSMatthew Barth```
3249d45bcdSMatthew Barth"type": "fallback"
3349d45bcdSMatthew Barth```
3449d45bcdSMatthew Barth
3549d45bcdSMatthew Barth## Example
36*a49e3f19SPatrick Williams
3749d45bcdSMatthew Barth<pre><code>
3849d45bcdSMatthew Barth[
3949d45bcdSMatthew Barth  {
4049d45bcdSMatthew Barth    "name": "fan0",
4149d45bcdSMatthew Barth    "path": "/system/chassis/motherboard/fan0",
4249d45bcdSMatthew Barth    "methods": [
4349d45bcdSMatthew Barth      {
4449d45bcdSMatthew Barth        "type": "tach",
4549d45bcdSMatthew Barth        "sensors": [
4649d45bcdSMatthew Barth          "fan0_0"
4749d45bcdSMatthew Barth        ]
4849d45bcdSMatthew Barth      }
4949d45bcdSMatthew Barth    ],
5049d45bcdSMatthew Barth    <b><i>"rpolicy": {
5149d45bcdSMatthew Barth      "type": "anyof"
5249d45bcdSMatthew Barth    }"</i></b>
5349d45bcdSMatthew Barth  }
5449d45bcdSMatthew Barth]
5549d45bcdSMatthew Barth</code></pre>
56