diff options
author | Jonathan Doman <jonathan.doman@intel.com> | 2021-01-08 04:54:17 +0300 |
---|---|---|
committer | Jonathan Doman <jonathan.doman@intel.com> | 2021-02-25 23:58:19 +0300 |
commit | 15124765dad8076bdfae224b5463e0aa3c26b6a7 (patch) | |
tree | de101fe6b35d9d6a75575ff196e1d684f2938c20 /redfish-core/lib/log_services.hpp | |
parent | 4fbaf64a931675f57382eef9cf1c6cd88c75ad1e (diff) | |
download | bmcweb-15124765dad8076bdfae224b5463e0aa3c26b6a7.tar.xz |
log_services: Update PostCode D-Bus names
PostCode D-Bus service and object names are updated to include 0 suffix,
based on updated POST code design for single host systems (see docs
change Ibb0389c880243bf3a7c9de12bf409eee2eac9ad7).
This change does not add any support for multi-host systems.
Tested: With
phosphor-host-postd: I89ab5f2eef7eab59823df3a063414f3ca3b2949f
phosphor-post-code-manager: I59ed514f28c2bb9b159f51367c38557bf55bf226
1. Cleared POST code history by sending (HTTP)POST to
/redfish/v1/Systems/system/LogServices/PostCodes/Actions/LogService.ClearLog/,
and verify it returns 200 OK.
2. Verified the Entries collection was now empty at
/redfish/v1/Systems/system/LogServices/PostCodes/Entries.
3. Power cycled host and repeat step 2 to verify that new entries are
added.
Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
Change-Id: I2fdf97b7aaf8d6471d162f8ed1b72143491ac23f
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index e970523561..a4e483ea14 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -3031,8 +3031,8 @@ class PostCodesClear : public Node return; } }, - "xyz.openbmc_project.State.Boot.PostCode", - "/xyz/openbmc_project/State/Boot/PostCode", + "xyz.openbmc_project.State.Boot.PostCode0", + "/xyz/openbmc_project/State/Boot/PostCode0", "xyz.openbmc_project.Collection.DeleteAll", "DeleteAll"); } }; @@ -3180,8 +3180,8 @@ static void getPostCodeForEntry(const std::shared_ptr<AsyncResp>& aResp, aResp->res.jsonValue["Members@odata.count"] = aResp->res.jsonValue["Members"].size(); }, - "xyz.openbmc_project.State.Boot.PostCode", - "/xyz/openbmc_project/State/Boot/PostCode", + "xyz.openbmc_project.State.Boot.PostCode0", + "/xyz/openbmc_project/State/Boot/PostCode0", "xyz.openbmc_project.State.Boot.PostCode", "GetPostCodesWithTimeStamp", bootIndex); } @@ -3235,8 +3235,8 @@ static void getPostCodeForBoot(const std::shared_ptr<AsyncResp>& aResp, std::to_string(skip + top); } }, - "xyz.openbmc_project.State.Boot.PostCode", - "/xyz/openbmc_project/State/Boot/PostCode", + "xyz.openbmc_project.State.Boot.PostCode0", + "/xyz/openbmc_project/State/Boot/PostCode0", "xyz.openbmc_project.State.Boot.PostCode", "GetPostCodesWithTimeStamp", bootIndex); } @@ -3265,8 +3265,8 @@ static void getCurrentBootNumber(const std::shared_ptr<AsyncResp>& aResp, BMCWEB_LOG_DEBUG << "Post code boot index failed."; } }, - "xyz.openbmc_project.State.Boot.PostCode", - "/xyz/openbmc_project/State/Boot/PostCode", + "xyz.openbmc_project.State.Boot.PostCode0", + "/xyz/openbmc_project/State/Boot/PostCode0", "org.freedesktop.DBus.Properties", "Get", "xyz.openbmc_project.State.Boot.PostCode", "CurrentBootCycleCount"); } |