diff options
author | Luji7 <lu.ji3@zte.com.cn> | 2016-09-28 11:53:03 +0800 |
---|---|---|
committer | Luji7 <lu.ji3@zte.com.cn> | 2016-09-28 11:53:03 +0800 |
commit | 5762404814e1b3ab6730da1f8bdf6b28065cf874 (patch) | |
tree | 76070d0db7ca762c0c94e5c299646b64a32f9e70 /openo-portal/portal-lifecyclemgr | |
parent | 4f059e8395868c4b9a65fbbf6fb9320bcd5d2f59 (diff) |
Fix bug, alert serviceInstance is undefined after creating service instance
Change-Id: I6bb3120e2ef16614e304a6fdab68af691a58c87e
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'openo-portal/portal-lifecyclemgr')
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 10 |
1 files changed, 5 insertions, 5 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 a47ee74e..08f257de 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 @@ -40,7 +40,7 @@ lcmHandler.prototype = { serviceParameters: collectServiceParameters(templateParameters), vimLocation: $('#vim_location').val() } - var gatewayService = '/openoapi/servicegateway/v1/services'; + var gatewayService = 'http://localhost:8080/openoapi/servicegateway/v1/services'; var serviceTemplate = fetchServiceTemplateBy(serviceInstance.serviceTemplateId); if (serviceTemplate === undefined) { return; @@ -69,7 +69,7 @@ function collectServiceParameters(parameters) { } function fetchServiceTemplateBy(templateId) { - var serviceTemplateUri = '/openoapi/catalog/v1/servicetemplates/' + templateId; + var serviceTemplateUri = 'http://localhost:8080/openoapi/catalog/v1/servicetemplates/' + templateId; var template; $.ajax({ type: "GET", @@ -90,7 +90,7 @@ function fetchServiceTemplateBy(templateId) { if (template === undefined) { return template; } - var queryCsarUri = '/openoapi/catalog/v1/csars/' + template.gsarId; + var queryCsarUri = 'http://localhost:8080/openoapi/catalog/v1/csars/' + template.gsarId; $.ajax({ type: "GET", async: false, @@ -320,11 +320,11 @@ function createSdnoServiceInstance(gatewayService, serviceInstance) { } function updateTable(serviceInstance) { - appendOenRow(); + appendOenRow(serviceInstance); addDeleteEventRegistration(); } -function appendOenRow() { +function appendOenRow(serviceInstance) { var index = service_instance_insert_index; var creator = ''; $('#sai').append('<tr id="service_instance_' + index + '"></tr>'); |