diff options
| author | Jennifer Lee <jennifer1.lee@intel.com> | 2018-08-10 11:29:45 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2018-11-02 15:20:07 -0700 |
| commit | ed5befbd3c70d1e1da8d243ed0830849abfce014 (patch) | |
| tree | 90c359e36de68d6e2c7bc70bb256d9ed703406f4 /redfish-core/include | |
| parent | 27826b5f6a4e886a5d4c1b3775b5d62d0438da95 (diff) | |
| download | bmcweb-ed5befbd3c70d1e1da8d243ed0830849abfce014.tar.gz bmcweb-ed5befbd3c70d1e1da8d243ed0830849abfce014.zip | |
Managers: Actions object: Support Reset property
cherry-picked from:
https://github.com/ampere-openbmc/bmcweb/commit/dfb534ab5db1bb0bcdc9a6519f1e1ccfede6f363
Add URI of Reset Actions:
/redfish/v1/Managers/openbmc/Actions/Manager.Reset for handling the HTTP POST
method.
We're only able to issue GracefulRestart for OpenBMC therefore the
bmcweb supports for ResetType property with "GracefulRestart" value.
Tested: Using redfishtool command to test:
python3 redfishtool.py -A Basic -S Always --rhost=$bmc_ip -u $bmc_user
-p $bmc_password -d '{"ResetType": "GracefulRestart"}' raw POST
/redfish/v1/Managers/openbmc/Actions/Manager.Reset
Change-Id: I2bbc172d43c3244cc304934618c0c5d1e21d9c08
Signed-off-by: Jennifer Lee <jennifer1.lee@intel.com>
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/include')
| -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 4627aa6..8a8b656 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -61,6 +61,7 @@ class RedfishService nodes.emplace_back(std::make_unique<Thermal>(app)); nodes.emplace_back(std::make_unique<ManagerCollection>(app)); nodes.emplace_back(std::make_unique<Manager>(app)); + nodes.emplace_back(std::make_unique<ManagerActionsReset>(app)); nodes.emplace_back(std::make_unique<Power>(app)); nodes.emplace_back(std::make_unique<ChassisCollection>(app)); nodes.emplace_back(std::make_unique<Chassis>(app)); |

