sensor SDRs: lookup Board to set IPMI info

Looks up the board object, if there is an association, and if that board
object specifies an EntityId or EntityInstance, it will use those values
in the SDR.  If the configuration of the sensor also implements one or
both of those properties, then those are used instead.

Tested: Validated if the json Board file has EntityId and
EntityInstance, those values are used in the SDR.  Validated if the
configuration for the sensor has those values, then those are used
instead.  Verified it works in cases where these values are not set,
etc.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I998eff9b0145ede7b386041b35f488fa6dd6714f
diff --git a/include/commandutils.hpp b/include/commandutils.hpp
index cad6e2d..e2f6523 100644
--- a/include/commandutils.hpp
+++ b/include/commandutils.hpp
@@ -18,6 +18,7 @@
 
 #include <iostream>
 #include <ipmid/api.hpp>
+#include <map>
 #include <sdbusplus/bus.hpp>
 #include <string>
 #include <tuple>
@@ -64,4 +65,6 @@
 using GetSubTreeType = std::vector<
     std::pair<std::string,
               std::vector<std::pair<std::string, std::vector<std::string>>>>>;
+
+using SensorMap = std::map<std::string, std::map<std::string, DbusVariant>>;
 } // namespace ipmi