#
3ad14346 |
| 08-Jun-2020 |
Matthew Barth <msbarth@us.ibm.com> |
monitor:JSON: Parse fan monitoring conditions
Optional conditions can be used to include monitoring a fan or not based on the results of the condition function configured. These condition functions
monitor:JSON: Parse fan monitoring conditions
Optional conditions can be used to include monitoring a fan or not based on the results of the condition function configured. These condition functions have their own required set of parameters, so parsing the JSON for these conditions are done per supported condition function. This adds the JSON parsing support for the current condition functions.
Tested: `propertiesMatch` JSON parameters parsed into condition function Any required parameters missing throws an exception The `propertiesMatch` condition functions the same using JSON
Change-Id: I0f843951f4e83f2a5d44068820694010538788c1 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
81748b14 |
| 02-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Support optional conditions on creating fans
This adds the functional infrastructure to optionally attach a condition function to a fan definition. When a condition is defined on a fan, it must be t
Support optional conditions on creating fans
This adds the functional infrastructure to optionally attach a condition function to a fan definition. When a condition is defined on a fan, it must be true for a fan's associated functional properties to be created. When the given condition fails, that fan's functional properties will not be created by fan monitor. A fan without a defined condition will have all of its associated functional properties created.
Example of generated condition (generation commit to follow):
make_condition(condition::propertiesMatch( std::vector<PropertyState>{ PropertyState{ PropertyIdentity{ "/xyz/openbmc_project/inventory/system/chassis", "xyz.openbmc_project.Inventory.Decorator.CoolingType", "WaterCooled" }, static_cast<bool>(false) } } )),
Tested: Fan functional properties are not created when a condition fails Fan functional properties are created when condition passes Fan functional properties are created when no condition exists
Change-Id: I9ced2e520d2f97e6655c9417970b3e976d78fef4 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|