aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/vnfapi/src/main/xml/VNF-API_preload-vnf-instance-topology-operation.xml
blob: 5b0e0f0c5774a8356fdd382503857f76fa13e41a (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-vnf-instance-topology-operation" mode="sync"><block atomic="true"><switch test="`$preload-vnf-instance-topology-operation-input.request-information.request-action`">

<outcome value='PreloadVnfInstanceRequest'><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-vnf-instance-topology-operation-input.vnf-instance-topology-information.vnf-instance-identifiers.vnf-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="vnf-instance-preload-data." value="" />
</set><set>
<parameter name="vnf-instance-preload-data." value="preload-vnf-instance-topology-operation-input." />
</set><set>
	<parameter name="vnf-instance-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='DeletePreloadVnfInstanceRequest'><block atomic="true"><set>
<parameter name="vnf-instance-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-vnf-instance-topology-operation-input.request-information.request-action`'/>

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