diff options
author | 2020-04-27 09:44:02 +0000 | |
---|---|---|
committer | 2020-04-28 07:08:46 +0000 | |
commit | 263c5b346ab61103b8fe92f72e1ee62f3f9df833 (patch) | |
tree | 885324f8bfe0e5c4d35a5b4690470a8dabb8ab06 /usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | |
parent | 46c4844ebb561c9f879c8fe74ce4d8a688eef486 (diff) |
Changes for MDONS usecase
Change-Id: I9c795fa2041c195ca29300398fb89b1cc3606ae7
Issue-ID: USECASEUI-371
Signed-off-by: root <preethamshyam.sathiyaseelan@us.fujitsu.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts index 88d99b3a..e6aa64fb 100644 --- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts +++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts @@ -240,7 +240,41 @@ export class ServicesListComponent implements OnInit { return vnfInfo; }) } - } else { + } else if(item["serviceDomain"] === "MDONS") { + if (item["relationship-list"] && item["relationship-list"]["relationship"]) { + let domainServiceList = []; + + for(let i = 0; i < item["relationship-list"]["relationship"].length; i++){ + let domainServiceInfo = { + domainServiceRealtedTo:"", + domainServiceId:"", + domainServiceName:"", + logicalLinkName:"" + } + + if(item["relationship-list"]["relationship"][i]["related-to"] === 'service-instance') { + domainServiceInfo.domainServiceRealtedTo = "Domain Service Instance"; + domainServiceInfo.domainServiceName = item["relationship-list"]["relationship"][i]["related-to-property"][0]["property-value"]; + } else if(item["relationship-list"]["relationship"][i]["related-to"] === 'logical-link'){ + domainServiceInfo.domainServiceRealtedTo = "Logical Link"; + } + let relationshipdata = item["relationship-list"]["relationship"][i]["relationship-data"]; + for (let j=0;j< relationshipdata.length;j++ ) { + if(relationshipdata[j]["relationship-key"] === "service-instance.service-instance-id"){ + domainServiceInfo.domainServiceId = relationshipdata[j]["relationship-value"]; + } + if(relationshipdata[j]["relationship-key"] === "logical-link.link-name"){ + domainServiceInfo.logicalLinkName = relationshipdata[j]["relationship-value"]; + } + } + + domainServiceList.splice(i,0,domainServiceInfo); + } + item["childServiceInstances"]= domainServiceList; + } else { + item["childServiceInstances"] = []; + } + } else{ item["childServiceInstances"] = []; } |