diff options
author | Luji7 <lu.ji3@zte.com.cn> | 2016-10-27 13:38:11 +0800 |
---|---|---|
committer | Luji7 <lu.ji3@zte.com.cn> | 2016-10-27 13:38:11 +0800 |
commit | 320b831367c168e0067ba58b765d709020fee64e (patch) | |
tree | fa7c942573a8b5ef6df6486b3e943e37d1d18ddf /openo-portal/portal-lifecyclemgr | |
parent | 6af003878a185b12e65f0a15ce83e8ea4bab5433 (diff) |
Fix Issue#GSO-63
Change-Id: I7ebe25e26b6384482b6444c6e6272260131dee8b
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 | 9 |
1 files changed, 6 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 3df70f70..9549d6f4 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 @@ -114,6 +114,7 @@ function fetchServiceTemplateBy(templateId) { function(response) { template.name = response.templateName; template.gsarId = response.csarId; + template.id = response.id; return fetchCsar(template.gsarId); } ).then( @@ -393,7 +394,7 @@ function createNetworkServiceInstance(template, serviceInstance, gatewayService) if (template.serviceType === 'GSO') { return createGsoServiceInstance(gatewayService, serviceInstance, template); } else if (template.serviceType === 'NFVO') { - return createNfvoServiceInstance(gatewayService, serviceInstance); + return createNfvoServiceInstance(gatewayService, serviceInstance, template); } else if (template.serviceType === 'SDNO') { return createSdnoServiceInstance(gatewayService, serviceInstance); } @@ -426,20 +427,22 @@ function createGsoServiceInstance(gatewayService, serviceInstance, serviceTempla return defer; } -function createNfvoServiceInstance(gatewayService, serviceInstance) { +function createNfvoServiceInstance(gatewayService, serviceInstance, template) { var nfvoLcmNsUri = '/openoapi/nslcm/v1/ns'; + serviceInstance.nsdId = template.id; return createServiceInstance(gatewayService, nfvoLcmNsUri, serviceInstance); } function createSdnoServiceInstance(gatewayService, serviceInstance) { var sdnoLcmNsUri = '/openoapi/sdnonslcm/v1/ns'; + serviceInstance.nsdId = serviceInstance.serviceTemplateId; return createServiceInstance(gatewayService, sdnoLcmNsUri, serviceInstance); } function createServiceInstance(gatewayService, nsUri, serviceInstance) { var defer = $.Deferred(); var sParameter = { - 'nsdId': serviceInstance.serviceTemplateId, + 'nsdId': serviceInstance.nsdId, 'nsName': serviceInstance.serviceName, 'description': serviceInstance.description, 'gatewayUri': nsUri |