diff options
author | 2020-04-03 05:50:12 +0000 | |
---|---|---|
committer | 2020-04-03 05:50:29 +0000 | |
commit | 98c82621446df1902b136b2a67eba68cfa8e1507 (patch) | |
tree | f86335aac678d211270be36739faeb90461bb84c /platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml | |
parent | deb729cf3099ad58cb8c243101c37904da4fe349 (diff) |
Changes in MSA service flow
to support MDONs use case
Change-Id: I11244d58d6adc3400d3a97e294c0f914ab6192a1
Issue-ID: SDNC-1144
Signed-off-by: Franklin Dsilva <franklin.dsilva@us.fujitsu.com>
Former-commit-id: 64490238f742f486d4ab5ede3b49140d2859cbcd
Diffstat (limited to 'platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml')
-rw-r--r-- | platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml b/platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml index 562195a0..a4233171 100644 --- a/platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml +++ b/platform-logic/optical-service/src/main/xml/optical-service_service-delete-msa.xml @@ -3,10 +3,6 @@ xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='optical-service' version='${project.version}'>
<method rpc='service-delete-msa' mode='sync'>
<block atomic="true">
- <set>
- <parameter name='optical-service-create-input.request-id' value="`$domain-service1`" />
- <parameter name='optical-service-delete-input.payload.service-name' value="`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN-MSA'`"/>
- </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/optical-service-delete-msa.json'`" />
<parameter name="restapiUrl" value="`$controller-ip + '/cxf/openroadm/openroadm-services/' + $optical-service-delete-input.payload.service-name`"/>
@@ -49,32 +45,15 @@ <parameter name="level" value="info" />
<parameter name="field1" value="Inside controller"/>
</record>
- <save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
-resource='SQL'
-key='UPDATE REQUEST_DETAILS SET status = "DELETING" WHERE request_id = $optical-service-delete-input.request-id'
-force='true' pfx='save-result'></save>
<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'
key='SELECT *
from REQUEST_DETAILS
WHERE request_id = $optical-service-delete-input.request-id'
-pfx='db.request-details'>
- <outcome value='success'>
- <set>
- <parameter name='instance-id' value='`$db.request-details.service-instance-id`' />
- <parameter name='customer-id' value='`$db.request-details.global-customer-id`' />
- <parameter name='service-id' value='`$db.request-details.service-type`' />
- </set>
- </outcome>
- </get-resource>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
-force='true'
-resource='service-instance'
-key = 'customer.global-customer-id = $customer-id AND
- service-subscription.service-type = $service-id AND
- service-instance.service-instance-id = $instance-id'
-local-only='false'>
- <parameter name='orchestration-status' value='DELETING' />
- </update>
+pfx='output'></get-resource>
+ <set>
+ <parameter name='request-id' value='`$optical-service-create-input.request-id`' />
+ </set>
+ <call module='optical-service' rpc='aai-delete-service-handling' mode='sync' ></call>
<set>
<parameter name='final-response-code' value="200" />
</set>
|