summaryrefslogtreecommitdiff
path: root/psu-manager/include/utility.hpp
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-11-19 13:25:01 +0300
committerLi, Yong B <yong.b.li@intel.com>2019-11-22 07:22:23 +0300
commit62d865faae2c183a64455abed5114d67aa61b311 (patch)
treebda3d55ad6f802977b76d944003fbe45e83c7a75 /psu-manager/include/utility.hpp
parentd095ccea8df74f9de228ab83b658d80b4fb79460 (diff)
downloadprovingground-62d865faae2c183a64455abed5114d67aa61b311.tar.xz
Sync configuration data between settings and PSU redundancy service
Add support for reading configuration from settings service, and store all these data into dbus; Rank order configuration needs to be queried from PSU redundancy service, since it will be changed from time to time. Tested: Applied https://gerrit.openbmc-project.xyz/#/c/openbmc/intel-ipmi-oem/+/27220/, With two PSUs, AC cycle the board, // two PSUs available ipmitool raw 0x30 0x2E 0x05 05 02 // Return the default order 0,0, instead of the default settings is 0 root@intel-obmc:~# ipmitool raw 0x30 0x2E 0x03 03 01 00 00 Wait for 2 minutes, the order will be changed to ascending order, and start the rotation ipmitool raw 0x30 0x2e 0x3 03 00 01 02 // Set a new order 1,2 root@intel-obmc:~# ipmitool raw 0x30 0x2d 0x03 0x01 0x01 0x02 00 // Return the new order root@intel-obmc:~# ipmitool raw 0x30 0x2E 0x03 03 01 01 02 Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I50c469ae7b2f089d3e7cc70932e5eed4f7164f74
Diffstat (limited to 'psu-manager/include/utility.hpp')
-rw-r--r--psu-manager/include/utility.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/psu-manager/include/utility.hpp b/psu-manager/include/utility.hpp
index d0df858..33bca75 100644
--- a/psu-manager/include/utility.hpp
+++ b/psu-manager/include/utility.hpp
@@ -28,9 +28,9 @@ static const constexpr std::array<const char*, 1> psuEventInterface = {
"xyz.openbmc_project.State.Decorator.OperationalStatus"};
using BasicVariantType =
- std::variant<std::vector<std::string>, std::vector<uint64_t>, std::string,
- int64_t, uint64_t, double, int32_t, uint32_t, int16_t,
- uint16_t, uint8_t, bool>;
+ std::variant<std::vector<std::string>, std::vector<uint64_t>,
+ std::vector<uint8_t>, std::string, int64_t, uint64_t, double,
+ int32_t, uint32_t, int16_t, uint16_t, uint8_t, bool>;
using PropertyMapType =
boost::container::flat_map<std::string, BasicVariantType>;