From e345cac548dfc846d0630d3cb43ad60d34e1d662 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Tue, 20 Feb 2018 11:16:53 -0600 Subject: 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 --- app/common/services/api-utils.js | 4 ++-- 1 file 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({ -- cgit v1.2.1