diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-25 19:59:46 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-02 20:18:19 +0000 |
commit | fcbedca0d847c27fdeab59cda9c6659d8640b6dd (patch) | |
tree | 165fe3c760f9896979eefc0f0732551abd75a2ea /presence/example | |
parent | 00b520827e5d16fc8262783e1ccf8de89a213006 (diff) | |
download | phosphor-fan-presence-fcbedca0d847c27fdeab59cda9c6659d8640b6dd.tar.gz phosphor-fan-presence-fcbedca0d847c27fdeab59cda9c6659d8640b6dd.zip |
presence: Add parser support for any of
Add support for the anyof yaml keyword.
Change-Id: Ib28ca8ef9959cec29cb2d15a0bf758668375895f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'presence/example')
-rw-r--r-- | presence/example/example.yaml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/presence/example/example.yaml b/presence/example/example.yaml index aea0139..140e1ec 100644 --- a/presence/example/example.yaml +++ b/presence/example/example.yaml @@ -64,3 +64,20 @@ rpolicy: type: fallback +- name: Example Fan3 + description: > + 'Example fan with anyof redundancy policy. + + The anyof algorithm reports true if any redundancy set + component sensors report true.' + path: /system/chassis/motherboard/fan3 + methods: + - type: gpio + key: 125 + physpath: /sys/devices/foo/bar + - type: tach + sensors: + - fan3 + rpolicy: + type: anyof + |