summaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorCheng C Yang <cheng.c.yang@intel.com>2019-06-27 13:02:18 +0300
committerThomaiyar, Richard Marian <richard.marian.thomaiyar@intel.com>2019-06-27 06:07:09 +0300
commita011351418dd6e59a8fa35522c76fe0425125169 (patch)
tree4600dfd86ca673a73f0a171835456fd165418635 /settings
parent525175aea621c9d85c78c6bdea9c3c9bd2e07991 (diff)
downloadprovingground-a011351418dd6e59a8fa35522c76fe0425125169.tar.xz
Add SOL Channel Support to Settings
Add SOL channel support sol eth0, sol eth1, sol eth2 to phosphor-settings, so that phosphor-settings can store different channel config for SOL. Tested: SOL configuration are stored in xyz.openbmc_project.Settings path /xyz/openbmc_project/ipmi/sol/eth0 /xyz/openbmc_project/ipmi/sol/eth1 /xyz/openbmc_project/ipmi/sol/eth2 And with ipmi-host and ipmi-net patch, SOL Set/Get config parameter command can work correctly. Change-Id: I5ab31c9ab30d8c212b061c9aa3205c8a6fd9fe23 Signed-off-by: Cheng C Yang <cheng.c.yang@intel.com>
Diffstat (limited to 'settings')
-rw-r--r--settings/include/defaults.hpp36
1 files changed, 32 insertions, 4 deletions
diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp
index 2c8915c..8c16a20 100644
--- a/settings/include/defaults.hpp
+++ b/settings/include/defaults.hpp
@@ -205,12 +205,40 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer,
setting->addProperty("Limit", static_cast<double>(0));
- setting =
- &settings.emplace_back(objectServer, "/xyz/openbmc_project/ipmi/sol",
- "xyz.openbmc_project.Ipmi.SOL");
+ setting = &settings.emplace_back(objectServer,
+ "/xyz/openbmc_project/ipmi/sol/eth0",
+ "xyz.openbmc_project.Ipmi.SOL");
+
+ setting->addProperty("Progress", static_cast<uint8_t>(0));
+ setting->addProperty("Enable", false);
+ setting->addProperty("ForceEncryption", true);
+ setting->addProperty("ForceAuthentication", true);
+ setting->addProperty("Privilege", static_cast<uint8_t>(4));
+ setting->addProperty("AccumulateIntervalMS", static_cast<uint8_t>(12));
+ setting->addProperty("Threshold", static_cast<uint8_t>(96));
+ setting->addProperty("RetryCount", static_cast<uint8_t>(6));
+ setting->addProperty("RetryIntervalMS", static_cast<uint8_t>(20));
+
+ setting = &settings.emplace_back(objectServer,
+ "/xyz/openbmc_project/ipmi/sol/eth1",
+ "xyz.openbmc_project.Ipmi.SOL");
+
+ setting->addProperty("Progress", static_cast<uint8_t>(0));
+ setting->addProperty("Enable", false);
+ setting->addProperty("ForceEncryption", true);
+ setting->addProperty("ForceAuthentication", true);
+ setting->addProperty("Privilege", static_cast<uint8_t>(4));
+ setting->addProperty("AccumulateIntervalMS", static_cast<uint8_t>(12));
+ setting->addProperty("Threshold", static_cast<uint8_t>(96));
+ setting->addProperty("RetryCount", static_cast<uint8_t>(6));
+ setting->addProperty("RetryIntervalMS", static_cast<uint8_t>(20));
+
+ setting = &settings.emplace_back(objectServer,
+ "/xyz/openbmc_project/ipmi/sol/eth2",
+ "xyz.openbmc_project.Ipmi.SOL");
setting->addProperty("Progress", static_cast<uint8_t>(0));
- setting->addProperty("Enable", true);
+ setting->addProperty("Enable", false);
setting->addProperty("ForceEncryption", true);
setting->addProperty("ForceAuthentication", true);
setting->addProperty("Privilege", static_cast<uint8_t>(4));