control: PCIe floors action
This action sets the PCIe floor index by looking up the highest floor
index of all the powered on PCIe cards that are recognized in the PCIe
card JSON files. If a PCIe card has its own temperature sensor then it
doesn't provide a floor index. If a card isn't recognized then it's
just ignored as it isn't considered a hot card.
The class documentation contains additional details on how the action
behaves. It's JSON name is 'pcie_card_floors'.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I474916773476a6232d479119acb4ac2989909cb3
diff --git a/json_config.hpp b/json_config.hpp
index a420ddc..7043e8f 100644
--- a/json_config.hpp
+++ b/json_config.hpp
@@ -311,6 +311,16 @@
return jsonConf;
}
+ /**
+ * @brief Return the compatible values property
+ *
+ * @return const std::vector<std::string>& - The values
+ */
+ static const std::vector<std::string>& getCompatValues()
+ {
+ return _confCompatValues;
+ }
+
private:
/* Load function to call for a fan app to load its config file(s). */
std::function<void()> _loadFunc;