control: Zone configuration framework and basic attrs
The zone class contains the configuration attributes for each zone
within a system. Each zone is a logical grouping of fans as configured
within the `fans.json` file.
Tested:
Parsed each basic attribute from `zones.json` file
Zone objects created per profile configured
Change-Id: I85f52661831ec201a1b0ee1358c239dbc22c8e49
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json_parser.cpp b/control/json_parser.cpp
index 5e43de0..65773c1 100644
--- a/control/json_parser.cpp
+++ b/control/json_parser.cpp
@@ -18,6 +18,7 @@
#include "json/fan.hpp"
#include "json/manager.hpp"
#include "json/profile.hpp"
+#include "json/zone.hpp"
#include "types.hpp"
#include <sdbusplus/bus.hpp>
@@ -33,6 +34,8 @@
auto profiles = getConfig<json::Profile>(bus, true);
// Fans to be controlled
auto fans = getConfig<json::Fan>(bus);
+ // Zones within the system
+ auto zones = getConfig<json::Zone>(bus);
// TODO Create zone groups after loading all JSON config files