aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/xml
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2022-02-06 10:05:53 -0500
committerHesam Rahimi <hesam.rahimi@huawei.com>2022-02-06 10:28:57 -0500
commit2a546f93ac1c3686f099549fc88cd8bf2d39bd20 (patch)
tree46bf1012faa8f3a9b30789e82bdfc0831d88ab75 /platform-logic/generic-resource-api/src/main/xml
parent3163302061acd65bafb5a1f9ab954e467d858186 (diff)
- Support for the Transport Slicing use-case to work with the updated YANG models
and ACTN PNC simulator. - Mark service-instance as "Activated" and "Deactivated" accordingly when a slice is getting activated or deactivated. Issue-ID: SDNC-1665 Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com> Change-Id: I185272d8b9e9c38729e2d687a854b3be9eac3cfd Former-commit-id: b7aecf8c2e75f444d096f950cfdc0844610795aa
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml')
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml14
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml7
2 files changed, 21 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
index 787741e9..b01a60c9 100644
--- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.xml
@@ -242,6 +242,13 @@
<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />
<parameter name='operational-status' value='Activated' />
</update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Activated' />
+ </update>
</block>
</outcome>
</execute>
@@ -553,6 +560,13 @@
<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />
<parameter name='operational-status' value='Activated' />
</update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Activated' />
+ </update>
</block>
</outcome>
</execute>
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml
index 6f263361..3997add7 100644
--- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-deactivate.xml
@@ -186,6 +186,13 @@
<parameter name='connectivity-id' value='`$tmp.aai.connectivity.connectivity-id`' />
<parameter name='operational-status' value='Deactivated' />
</update>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance'
+ key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
+ AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id
+ AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>
+ <parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />
+ <parameter name='orchestration-status' value='Deactivated' />
+ </update>
</block>
</outcome>
</execute>