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>
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 @@
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({