psu-ng: Update supported configuration properties
The Supported Configuration schema has been updated to have a single
model instead of array of models, and to have an array of input voltages
instead of a single voltage.
In addition, update the name of the supported number of power supplies
from max to count, so that it better reflects that a specific number of
power supplies are expected, and not an 'up to' max number.
Change-Id: I7a4bfa9b195ce7b9d13802dbb234018c6f217fda
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/phosphor-power-supply/psu_manager.hpp b/phosphor-power-supply/psu_manager.hpp
index 9ceeed5..a59b2fc 100644
--- a/phosphor-power-supply/psu_manager.hpp
+++ b/phosphor-power-supply/psu_manager.hpp
@@ -11,8 +11,8 @@
struct sys_properties
{
- int maxPowerSupplies;
- int inputVoltage;
+ int powerSupplyCount;
+ std::vector<uint64_t> inputVoltage;
};
using namespace phosphor::power::psu;
@@ -225,7 +225,7 @@
* @brief Map of supported PSU configurations that include the model name
* and their properties.
*/
- std::multimap<std::string, sys_properties> supportedConfigs;
+ std::map<std::string, sys_properties> supportedConfigs;
/**
* @brief The vector for power supplies.