diff options
Diffstat (limited to 'platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml')
-rw-r--r-- | platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml b/platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml index 99d52408..ad23cacb 100644 --- a/platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml +++ b/platform-logic/vnfapi/src/main/xml/VNF-API_vf-module-topology-assign.xml @@ -17,10 +17,10 @@ ============LICENSE_END========================================================= --> -<service-logic xmlns="http://www.openecomp.org/sdnc/svclogic" +<service-logic xmlns="http://www.onap.org/sdnc/svclogic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd" module='VNF-API' version='${project.version}'><method rpc='vf-module-topology-assign' mode='sync'> -<block atomic="true"><get-resource plugin="org.openecomp.sdnc.sli.aai.AAIService" + xsi:schemaLocation="http://www.onap.org/sdnc/svclogic ./svclogic.xsd" module='VNF-API' version='${project.version}'><method rpc='vf-module-topology-assign' mode='sync'> +<block atomic="true"><get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="vf-module" key="vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id and generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id" @@ -32,26 +32,26 @@ <parameter name='error-code' value='500'/> <parameter name='error-message' value="`'vf-module not found in AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`"/></return></outcome></get-resource><call module='VNF-API' rpc='vf-module-topology-assign-vnf-networks' mode='sync' ></call><switch test="`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`"><outcome value=''><set> <parameter name='vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length' value='0' /> -</set></outcome></switch><for index="i" start="0" end="`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`"><save plugin="org.openecomp.sdnc.sli.aai.AAIService" +</set></outcome></switch><for index="i" start="0" end="`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`"><save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="vf-module:relationship-list" key="vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id and generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id" > <parameter name="relationship-list.relationship[0].related-to" value="l3-network" /> <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="l3-network.network-id" /> <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`" /><outcome value='failure'> -<block atomic='true'><delete plugin="org.openecomp.sdnc.sli.aai.AAIService" +<block atomic='true'><delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="vf-module:relationship-list" key="vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id AND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id AND related-to = l3-network" ></delete><return status='failure'> <parameter name='error-code' value='500'/> - <parameter name='error-message' value="`'An error occurred while saving vf-module l3-network relationship in AnAI with network-id = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`"/></return></block></outcome></save></for><update plugin="org.openecomp.sdnc.sli.aai.AAIService" + <parameter name='error-message' value="`'An error occurred while saving vf-module l3-network relationship in AnAI with network-id = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`"/></return></block></outcome></save></for><update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="vf-module" key="vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id and generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id" > <parameter name="orchestration-status" value="pending-create" /><outcome value='failure'> <block atomic="true"> -<delete plugin="org.openecomp.sdnc.sli.aai.AAIService" +<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="vf-module:relationship-list" key="vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id AND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id |