diff options
author | 2020-04-16 15:23:14 +0000 | |
---|---|---|
committer | 2020-04-16 15:23:22 +0000 | |
commit | 019903f16007d6f35117c45076d6b0c963db5cef (patch) | |
tree | 75e0c139b441851464076d4f828c6da0a634c051 /platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml | |
parent | 94fcc571a06ceab8b2119fc0d802340ba0086a70 (diff) |
Inter Domain DG'S modified
Change-Id: I9f1653ae010fe9d0a06b32ee5818147af685c015
Issue-ID: SDNC-1144
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Former-commit-id: 4ec43a3a9a249c104281dbfb4318848ca224185c
Diffstat (limited to 'platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml')
-rw-r--r-- | platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml b/platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml index ce1937f3..2bbd79e3 100644 --- a/platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml +++ b/platform-logic/optical-service/src/main/xml/optical-service_optical-service-delete.xml @@ -15,6 +15,7 @@ pfx='detail-db'> <outcome value='success'>
<set>
<parameter name='domain-req' value='`$detail-db.domain-requests`' />
+ <parameter name='delete-acc-svc-id' value='`$detail-db.service-instance-id`' />
</set>
</outcome>
</get-resource>
@@ -28,9 +29,6 @@ pfx='detail-db'> <parameter name='domain-service1' value='`$param-prefix1[0]`' />
<parameter name='domain-service2' value='`$param-prefix1[1]`' />
</set>
- <set>
- <parameter name='access-id' value="`$optical-service-delete-input.request-id`" />
- </set>
<for index='ppx' start='0' end='`$param-prefix1_length`' >
<switch test='`$param-prefix1_length`'>
<outcome value='1'>
@@ -55,7 +53,7 @@ pfx='detail-db1'> <parameter name='domain-type' value='`$param-prefix[0]`' />
<parameter name='controller-ip' value='`$param-prefix[1]`' />
<parameter name='optical-service-delete-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'`"/>
+ <parameter name='optical-service-delete-input.payload.service-name' value="`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`"/>
</set>
<switch test='`$domain-type`'>
<outcome value='MSA'>
@@ -128,7 +126,7 @@ pfx='detail-db11'> </execute>
<set>
<parameter name='optical-service-delete-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-TAPI-1'`"/>
+ <parameter name='optical-service-delete-input.payload.service-name' value="`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`"/>
<parameter name='domain-type' value='`$domain1[0]`' />
<parameter name='controller-ip' value='`$domain1[1]`' />
</set>
@@ -182,7 +180,7 @@ pfx='detail-db22'> </execute>
<set>
<parameter name='optical-service-delete-input.request-id' value="`$domain-service2`" />
- <parameter name='optical-service-delete-input.payload.service-name' value="`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN-TAPI-2'`"/>
+ <parameter name='optical-service-delete-input.payload.service-name' value="`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`"/>
<parameter name='domain-type' value='`$domain2[0]`' />
<parameter name='controller-ip' value='`$domain2[1]`' />
</set>
@@ -256,6 +254,28 @@ pfx='detail-db22'> <delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'
resource="SQL"
key="DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id"></delete>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
+ <parameter name="file" value="/opt/opendaylight/current/data/log/optical-service-create.log" />
+ <parameter name="level" value="info" />
+ <parameter name="field1" value="`'domain rquest_' + $domain-requests`"/>
+ <parameter name="field2" value="`'Access rquest_' + $as-request-id`"/>
+ </record>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+ key='customer.global-customer-id = $output.global-customer-id AND
+ service-subscription.service-type = $output.service-type AND
+ service-instance.service-instance-id = $delete-acc-svc-id'
+pfx='acc-serv-dl' local-only='false'></get-resource>
+ <set>
+ <parameter name='link-name' value='`$acc-serv-dl.relationship-list.relationship[0].relationship-data[0].relationship-value`' />
+ </set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService'
+force='true'
+resource='logical-link'
+ key='logical-link.link-name = $link-name '
+ local-only='false'>
+ <parameter name='operational-status' value='available' />
+ </update>
<return status='success'>
<parameter name="error-code" value="200" />
<parameter name="error-message" value="Service Deleted Successfully" />
|