diff options
author | 2020-03-02 06:35:43 +0000 | |
---|---|---|
committer | 2020-03-02 06:36:45 +0000 | |
commit | bea938e72991786e13566d9df66b24a102442495 (patch) | |
tree | b10b02e28b4dc9a01e624f234588158381f2b426 /platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml | |
parent | 329b7c6477ec677507b0de33a053f887526b3d84 (diff) |
DG'S added for MDONS use case
Change-Id: Ie9570b9be519e54d43b547bcfbffc16d12b16123
Issue-ID: SDNC-928
Signed-off-by: Mehreen Kaleem <mehreen.kaleem@us.fujitsu.com>
Former-commit-id: 6493900ed7a55ff00b2f31f8802f30f54bf335ae
Diffstat (limited to 'platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml')
-rw-r--r-- | platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml b/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml new file mode 100644 index 00000000..c3b9639b --- /dev/null +++ b/platform-logic/optical-service/src/main/xml/optical-service_success-aai-update-tapi.xml @@ -0,0 +1,36 @@ +<service-logic
+ xmlns='http://www.onap.org/sdnc/svclogic'
+ 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='success-aai-update-tapi' mode='sync'>
+ <block atomic="true">
+ <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 = $optical-service-create-input.service-id' force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="p-interface" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$aend-node-uuid`" />
+ <parameter name="relationship-list.relationship[1].related-to" value="p-interface" />
+ <parameter name="relationship-list.relationship[1].related-link" value="`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-key" value="pnf.pnf-name" />
+ <parameter name="relationship-list.relationship[1].relationship-data[0].relationship-value" value="`$zend-node-uuid`" />
+ </save>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+resource="service-instance"
+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 = $optical-service-create-input.service-id'
+pfx='aai.service' local-only='false'></get-resource>
+ <for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >
+ <block atomic='true'>
+ <set>
+ <parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />
+ <parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />
+ </set>
+ <call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' ></call>
+ </block>
+ </for>
+ </block>
+ </method>
+</service-logic>
\ No newline at end of file |