summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2016-10-19 17:52:42 +0800
committerLuji <lu.ji3@zte.com.cn>2016-10-19 10:02:17 +0000
commit80c5f95a92fa087be0a329d795b579a372f9966e (patch)
tree4cdad90b796d918342c7a7889acc3eba322f95da /openo-portal/portal-lifecyclemgr
parent0c05ae98dff8400cfdc76129c4306b1e14361618 (diff)
GSO-26 Fix the wrong url sent to service gateway. Modify the codes for deleting service to be consistent with the api.
Change-Id: If9242f8c956d5e93f49c4359a959343ed34cfefb Signed-off-by: Luji7 <lu.ji3@zte.com.cn> (cherry picked from commit cddbebf090d52a234e536bef5f7e6dbd6ddcc9e0)
Diffstat (limited to 'openo-portal/portal-lifecyclemgr')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
index 30231fca..37cb05f3 100644
--- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
+++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js
@@ -357,7 +357,7 @@ function formatDate(date) {
function deleteNe(rowId, row) {
var instanceId = row.serviceId;
var serviceType = row.serviceType;
- var gatewayService = '/openoapi/servicegateway/v1/services';
+ var gatewayService = '/openoapi/servicegateway/v1/services/' + instanceId + '/terminate';
var remove = function () {
$('#sai').bootstrapTable('remove', {field: 'serviceId', values: [instanceId]});
};
@@ -404,7 +404,7 @@ function deleteNetworkServiceInstance(gatewayService, nsUri, instanceId) {
'gatewayUri': instanceUri
};
return $.ajax({
- type: "DELETE",
+ type: "POST",
url: gatewayService,
contentType: "application/json",
dataType: "json",
@@ -423,7 +423,7 @@ function terminateNetworkServiceInstance(gatewayService, nsUri, instanceId) {
'gatewayUri': nsTerminateUri
};
return $.ajax({
- type: "DELETE",
+ type: "POST",
url: gatewayService,
contentType: "application/json",
dataType: "json",