})
this.nsTemplateParameters.vnfs.forEach((vnf)=>{
let vnfparams = {
- vnfProfileId: vnf.vnf_id,
+ vnfProfileId: vnf.properties.id,
locationConstraints: {
vimid: vnf.value.id,
- accessinfo: {
- tenant: ""
- },
- accessInfo: {
- tenant: ""
- }
}
}
this.ns_service2.locationConstraints.push(vnfparams);
let createParams = "?ns_instance_id=" + data.nsInstanceId +
"&customerId="+this.customerSelected.id +
"&serviceType="+this.serviceTypeSelected.name +
- "&serviceDomain="+"SITE" +
- "&parentServiceInstanceId="+this.parentServiceInstanceId;
+ "&serviceDomain="+ this.templateTypeSelected +
+ "&parentServiceInstanceId=";
// step2
this.createNsService(createParams,obj.step2).then((jobid)=>{
let mypromise = new Promise((res,rej)=>{
this.myhttp.nsCreateInstance2(id,obj)
.subscribe((data)=>{
+ if(data.status == "FAILED"){
+ console.log("instantiate ns service data :" + JSON.stringify(data));
+ return false;
+ }
res(data.jobId);
})
})