aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/vnfapi/src/main/xml/VNF-API_rollback-eipam-ip-assignment.xml
blob: e400b420e16016d4ad785b970259268fee5a8672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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='rollback-eipam-ip-assignment' mode='sync'>
<block atomic="true"><set>
<parameter name='tmp.status' 
	value="`'PENDING_DELETE_' + $vnf-topology-operation-input.vnf-request-information.vnf-id`" />
<parameter name='service-data.service-information.service-type' 
	value='NOT_APPLICABLE' />
	
</set><update plugin="org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource" resource="SQL"
	key="UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status 
		WHERE info = $vnf-topology-operation-input.vnf-request-information.vnf-id" ><outcome value='failure'>
<return status='failure'>
	<parameter name='ack-final' value='Y'/>
	<parameter name="error-code" value="500" />
    <parameter name="error-message" value="Error updating EIPAM_IP_ASSIGNMENTS table on rollback." />
</return></outcome></update><execute plugin="com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin" method="unassignIPAddress">
<parameter name="deleteEIPAM_status" value="`$tmp.status`" />
<outcome value='failure'>
<return status='failure'>
	<parameter name='ack-final' value='Y'/>
	<parameter name="error-code" value="500" />
    <parameter name="error-message" value="Error in EIPAM unassign IP address on rollback." />
</return></outcome></execute></block></method></service-logic>