aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/xml
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2022-05-02 23:12:38 -0400
committerHesam Rahimi <hesam.rahimi@huawei.com>2022-05-02 23:12:38 -0400
commitc681b93fba0db2aa43b81b904050eb37c749dbc2 (patch)
tree349f7165c2dee5e9d4d2699ba58a7d72452f619a /platform-logic/generic-resource-api/src/main/xml
parent7bd484302cdc29bc758cd9285ea191c17138bbcd (diff)
For CCVPN Cloud leased-Line usecase, make sure to
'update' (instead of 'save') the metadata when a service-instance already has a metadata entry. Issue-ID: SDNC-1694 Signed-off-by: Hesam Rahimi <hesam.rahimi@huawei.com> Change-Id: I17184c718eb01a0d51d58ad1a26359bbfd7f77f5 Former-commit-id: ecf71c7c4ee719fd96661de7b67ca5760fdd960a
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/xml')
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-callbackdg-notification.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-callbackdg-notification.xml b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-callbackdg-notification.xml
index ff1ce989..2d554635 100644
--- a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-callbackdg-notification.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-callbackdg-notification.xml
@@ -23,12 +23,23 @@
<parameter name='rcvd-bandwidth-value' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value`' />
<parameter name='rcvd-service-instance-id' value='`$push-change-update.datastore-changes.payload.parameter-value[0].value-description`' />
</set>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource="service-instance:metadata"
- key="service-instance.service-instance-id = $rcvd-service-instance-id
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource="service-instance:metadata"
+ key="service-instance.service-instance-id = $rcvd-service-instance-id
AND customer.global-customer-id = 'IBNCustomer'
AND service-subscription.service-type = 'IBN'" force="true" pfx="tmp.AnAI-data">
<parameter name="metadata.metadatum[0].metaname" value="`$rcvd-etht-svc-end-point`" />
<parameter name="metadata.metadatum[0].metaval" value="`$rcvd-bandwidth-value`" />
+ </save>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource="service-instance"
+ key="service-instance.service-instance-id = $rcvd-service-instance-id
+ AND customer.global-customer-id = 'IBNCustomer'
+ AND service-subscription.service-type = 'IBN'
+ AND metadatum.metaname = $rcvd-etht-svc-end-point" force="true" pfx="tmp.AnAI-data">
+ <parameter name="metaname" value="`$rcvd-etht-svc-end-point`" />
+ <parameter name="metaval" value="`$rcvd-bandwidth-value`" />
+ <!--AND metadatum.metaname = $rcvd-etht-svc-end-point-->
+ <!--<parameter name="metadata.metadatum[0].metaname" value="`$rcvd-etht-svc-end-point`" />-->
+ <!-- <parameter name="metadata.metadatum[0].metaval" value="`$rcvd-bandwidth-value`" />-->
</update>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >
<parameter name="ctx-destination" value="eventId-uuid"/>