summaryrefslogtreecommitdiffstats
path: root/platform-logic/vnfapi/src/main/xml/VNF-API_preload-vf-module-topology-operation.xml
blob: c19b0969c8305420990e2ef01e634f56ed99f845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<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='VNF-API' version='${project.version}'><method rpc="preload-vf-module-topology-operation" mode="sync"><block atomic="true"><switch test="`$preload-vf-module-topology-operation-input.request-information.request-action`">

<outcome value='PreloadVfModuleRequest'><block atomic="true"><get-resource plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" 
	resource="vnf-profile" key="SELECT * from VNF_PROFILE where vnf_type = $preload-vf-module-topology-operation-input.vf-module-topology-information.vf-module-identifiers.vf-module-model-id">
<outcome value='not-found'>
<return status='failure'>
	<parameter name="error-code" value="404" />
	<parameter name="error-message" value="preload vnf-model-id not found. New vnf-model-id can be added via admin portal" /></return></outcome><outcome value='failure'>
<return status='failure'>
	<parameter name="error-code" value="404" />
	<parameter name="error-message" value="preload vnf-model-id not found. New vnf-model-id can be added via admin portal" /></return></outcome></get-resource><set>
<parameter name="vf-module-preload-data." value="" />
</set><set>
<parameter name="vf-module-preload-data." value="preload-vf-module-topology-operation-input." />
</set><set>
	<parameter name="vf-module-preload-data.oper-status.order-status" value="PendingAssignment"/></set><block>
<set>
<parameter name="ack-final" value="Y"/></set><return status="success">
	<parameter name="error-code" value="200" /></return></block></block></outcome><outcome value='DeletePreloadVfModuleRequest'><block atomic="true"><set>
<parameter name="vf-module-preload-data." value="" />
</set><block>
<set>
<parameter name="ack-final" value="Y"/></set><return status="success">
	<parameter name="error-code" value="200" /></return></block></block></outcome><outcome value="Other">

 <return status="failure">
	<parameter name='error-code' value='2000'/>
	<parameter name='error-message' value="`'Invalid Request, ' + $preload-vf-module-topology-operation-input.request-information.request-action`"/>

 
</return></outcome></switch></block></method></service-logic>