summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-02-20 11:16:53 -0600
committerGunnar Mills <gmills@us.ibm.com>2018-02-23 11:40:30 -0600
commite345cac548dfc846d0630d3cb43ad60d34e1d662 (patch)
tree57162b17374107e1f5dcd788f2880e05e87dd2a4
parentdddb1497a5fecd7bb8b51b6ce47534fea2af7414 (diff)
downloadphosphor-webui-e345cac548dfc846d0630d3cb43ad60d34e1d662.tar.gz
phosphor-webui-e345cac548dfc846d0630d3cb43ad60d34e1d662.zip
Move to "xyz" Download via TFTP
Move from the old "org" Download via TFTP to the new "xyz" Download via TFTP interface. Tested: Downloaded several images to a Witherspoon system. Change-Id: Id556a3a56d06bfc3400f905a58e9a76964056d68 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--app/common/services/api-utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index dc6de50..1b26b93 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -783,13 +783,13 @@ window.angular && (function (angular) {
var deferred = $q.defer();
$http({
method: 'POST',
- url: DataService.getHost() + "/org/openbmc/control/flash/bmc/action/updateViaTftp",
+ url: DataService.getHost() + "/xyz/openbmc_project/software/action/DownloadViaTFTP",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
withCredentials: true,
- data: JSON.stringify({"data": [host, filename]}),
+ data: JSON.stringify({"data": [filename, host]}),
responseType: 'arraybuffer'
}).then(function(response, status, headers){
deferred.resolve({
OpenPOWER on IntegriCloud