diff options
author | Luji <lu.ji3@zte.com.cn> | 2016-09-28 04:00:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@open-o.org> | 2016-09-28 04:00:17 +0000 |
commit | 14cd93a7a53d1c654986d7c8b25c96d40d19c308 (patch) | |
tree | aff1d1aa9c7da948dce812afcbfb09e77f7f715b /openo-portal | |
parent | b07b187780cc1cec935dcd0161abf98aeb41d56b (diff) | |
parent | 5762404814e1b3ab6730da1f8bdf6b28065cf874 (diff) |
Merge "Fix bug, alert serviceInstance is undefined after creating service instance"
Diffstat (limited to 'openo-portal')
-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>'); |