diff options
author | 2020-06-30 16:22:34 +0000 | |
---|---|---|
committer | 2020-07-02 06:06:28 +0000 | |
commit | d11a3e9608178a9b2ccc8249a3263c571783f69d (patch) | |
tree | f1725c0a3c42f3dbc1684af9c7b62cc5f51cc2f4 /platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml | |
parent | 279a547642166a05a8f1ca246a785ba978096558 (diff) |
DG changes for the closed loop and async
support in MDONS
Change-Id: Ibb16b84cd37d8d41dd0f511fea81ec329a0f8021
Issue-ID: SDNC-1233
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Former-commit-id: 225e1b887423a6a5972cf90216156eebc727a41d
Diffstat (limited to 'platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml')
-rw-r--r-- | platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml b/platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml index 669f3800..9e4a8759 100644 --- a/platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml +++ b/platform-logic/optical-service/src/main/xml/optical-service_create-service-relationship.xml @@ -6,7 +6,7 @@ <get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
key='SELECT *
from REQUEST_DETAILS
-WHERE request_id = $as-request-id'
+WHERE request_id = $access-request-id'
pfx='access-service'></get-resource>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
<parameter name="original_string" value='`$access-service.domain-requests`'/>
@@ -33,17 +33,19 @@ pfx='ds-details'></get-resource> </block>
</block>
</for>
- <switch test='`$domain-services_length`'>
- <outcome value='2'>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ <switch test='`$domain-services_length == 1`'>
+ <outcome value='false'>
+ <for index='idml' start='0' end='`$oof-response.solutions.routeInfo.linkList_length`' >
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND
service-subscription.service-type = $optical-service-create-input.service-type AND
service-instance.service-instance-id = $access-service.service-instance-id' force="true" pfx="tmp.AnAI-data">
- <parameter name="relationship-list.relationship[0].related-to" value="service-instance" />
- <parameter name="relationship-list.relationship[0].related-link" value="`'/network/logical-links/logical-link/' + $inter.logical-link[$ida].link-name`" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="logical-link.link-name" />
- <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$inter.logical-link[$ida].link-name`" />
- </save>
+ <parameter name="relationship-list.relationship[0].related-to" value="service-instance" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/logical-links/logical-link/' + $oof-response.solutions.routeInfo.linkList[$idml]`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="logical-link.link-name" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$oof-response.solutions.routeInfo.linkList[$idml]`" />
+ </save>
+ </for>
</outcome>
</switch>
</block>
|