summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-20 16:28:31 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-21 10:29:37 +0800
commit52682bdf7ebddc6ccc5455e3b988ff7d5949601a (patch)
tree29594dedf126369171d81f450e7ab7ff93956b97
parent510efe24bd92616d621f47650b64110f71776cb2 (diff)
Fix instance instantiation for NS
Change-Id: I96ebbaf680aa7f0976785a9ee478d1fac052f4c2 Issue-ID: USECASEUI-255 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts b/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts
index cfcaae6c..554f25c6 100644
--- a/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts
+++ b/usecaseui-portal/src/app/components/e2e-detail/e2e-detail.component.ts
@@ -124,17 +124,17 @@ export class E2eDetailComponent implements OnInit {
}
}else if(this.detailParams.serviceDomain == 'Network Service'){
this.ns_service = {
- name:this.detailParams.name,
- description: this.detailParams.description,
+ name:this.detailParams.name || this.detailParams['service-instance-name'],
+ description: this.detailParams.description || null
};
if(this.detailParams.requestInputs!=undefined && Object.keys(this.detailParams.requestInputs).length>0){
this.ns_requestInputs = this.detailParams.requestInputs;
}
- this.ns_nestedTemplates = this.detailParams.vnfInfo;
+ this.ns_nestedTemplates = this.detailParams.childServiceInstances;
this.rootns.children=this.ns_nestedTemplates.map((item,index) => {
return {
"name": "vnf",
- "type": "vnf",
+ "type": "vnf"
}
});
console.log(this.ns_nestedTemplates);