Have Immediate Shutdown call the chassis object

"Immediate Shutdown" on the GUI should be a hard power off
and differ from the "Orderly shutdown".

From https://github.com/openbmc/docs/blob/master/host-management.md:

To issue a hard power off (accomplished by powering off the chassis):

curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT \
  -d '{"data": "xyz.openbmc_project.State.Chassis.Transition.Off"}' \
  https://${bmc}/xyz/openbmc_project/state/chassis0/attr/RequestedPowerTransition

There was already an unused "chassisPowerOff" function, reworked it to
call the chassis object.

Resolves openbmc/openbmc#2890

Tested: Pointed the local GUI to a Witherspoon system and
verfied the correct rest call was made and the system hard
powered off.
Change-Id: Ibdb712656930a62e34603daa17df0d3116c86d92
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2 files changed
tree: f27ca8dd7360e5290a49c7e65a3a40223c4c0fd0
  1. app/
  2. gulp_tasks/
  3. .babelrc
  4. .gitignore
  5. bower.json
  6. gulp-options.js
  7. gulpfile.js
  8. karma.conf.js
  9. LICENSE
  10. package.json
  11. postcss.config.js
  12. README.md
  13. sonar-project.properties
  14. webpack.config.js
README.md

openbmc

UX Design repo for OpenBMC

OpenBMC

TODO: Write a project description

Requirement

nodejs npm

Installation

npm install

Running

npm run-script server

This will run it locally in http://localhost:8080.

Example Usage with OpenBMC

  1. Browse to https://<bmc-ip> and bypass the secure warning. You will see a JSON response with Login required message.
  2. In the same session, navigate to http://localhost:8080. Enter the BMC IP, Username and Password (defaults: root/0penBmc).

Now you are logged in.