[PATCH skeleton] Add update rest interface to bmc

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat May 21 08:01:46 AEST 2016


Currentling /org/openbmc/control/flash/bmc only has updateViaTftp
I am adding the update method to allow for bmc code updates with
requiring a remote tftp server.

Something like this will now work.  Ofcourse the update method is not in charge of getting the code on to the bmc server.  That's the job of something else (i.e. scp)
curl -k -H "Content-Type: application/json" -x POST -d "{\"data\": [\"/tmp/flash-barreleye\"]}" https://<ip>/org/openbmc/control/flash/bmc/action/update

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/skeleton/87)
<!-- Reviewable:end -->


https://github.com/openbmc/skeleton/pull/87

Chris Austen (1):
  Add update rest interface to bmc

 bin/bmc_update.py | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.8.2




More information about the openbmc mailing list