diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-05-17 19:56:36 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-05-30 00:16:03 +0300 |
commit | 489640c6e8db3d1aa999cd9429e41329cf22cd47 (patch) | |
tree | ddb629561f15cbd674c14eb2bb2d8d0172eb2012 /redfish-core/include/redfish.hpp | |
parent | 086be23838e3b516ce405a41e3ffb7f3bce18e21 (diff) | |
download | bmcweb-489640c6e8db3d1aa999cd9429e41329cf22cd47.tar.xz |
Add ClearLog support for the Redfish Event Log Service
This change adds support for the LogService.ClearLog action to
clear the Redfish Event Log.
Tested:
1. Added entries to the EventLog
2. Sent the ClearLog action using Postman:
/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog
3. Confirmed that the EventLog was empty
4. Added entries to the EventLog
5. Confirmed that the new entries logged successfully
Change-Id: I6ac4ea4aff8d7defbea693a2c8a755a712fb39a6
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/include/redfish.hpp')
-rw-r--r-- | redfish-core/include/redfish.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index 6237e47673..91578f13c3 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -76,6 +76,7 @@ class RedfishService nodes.emplace_back(std::make_unique<SystemLogServiceCollection>(app)); nodes.emplace_back(std::make_unique<EventLogService>(app)); + nodes.emplace_back(std::make_unique<EventLogClear>(app)); nodes.emplace_back(std::make_unique<EventLogEntryCollection>(app)); nodes.emplace_back(std::make_unique<EventLogEntry>(app)); |