Merge "Dublin release"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-unassign.json
index 505d3a2..6a50796 100755 (executable)
@@ -1 +1,2262 @@
-[{"id":"3634132b.aae9cc","type":"dgstart","name":"DGSTART","outputs":1,"x":111.42857360839844,"y":85.27079892158508,"z":"4bbef54d.3c199c","wires":[["b811bd8c.58626"]]},{"id":"b811bd8c.58626","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<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='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":226.7142791748047,"y":124.8422462940216,"z":"4bbef54d.3c199c","wires":[["903f1211.d11ba"]]},{"id":"903f1211.d11ba","type":"method","name":"method vf-module-topology-operation-unassign","xml":"<method rpc='vf-module-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":233.52387237548828,"y":165.27079510688782,"z":"4bbef54d.3c199c","wires":[["3e241fed.dce8d"]]},{"id":"4bbac542.26042c","type":"comment","name":"vf-module-topology-operation-unassign","info":"","comments":"","x":505.77342987060547,"y":32.85714268684387,"z":"4bbef54d.3c199c","wires":[]},{"id":"7d0a0f77.67fe3","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":514.9523849487305,"y":264.1279366016388,"z":"4bbef54d.3c199c","wires":[["858f056.ea102f8","69293fca.60217"]]},{"id":"858f056.ea102f8","type":"outcome","name":"DeleteVfModuleInstance","xml":"<outcome value='DeleteVfModuleInstance'>\n","comments":"","outputs":1,"x":777,"y":241.270822763443,"z":"4bbef54d.3c199c","wires":[["bd986f3d.05e4d"]]},{"id":"69293fca.60217","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":720.6666450500488,"y":286.65181183815,"z":"4bbef54d.3c199c","wires":[["4b2c39f.c1425c8"]]},{"id":"bd986f3d.05e4d","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":966.8571643829346,"y":241.27085423469543,"z":"4bbef54d.3c199c","wires":[[]]},{"id":"4b2c39f.c1425c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeleteVfModuleInstance'\" />\n","comments":"","x":985.6666526794434,"y":286.9851243495941,"z":"4bbef54d.3c199c","wires":[]},{"id":"3e241fed.dce8d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":134.76190948486328,"y":548.6040890216827,"z":"4bbef54d.3c199c","wires":[["7d0a0f77.67fe3","4fda8279.7e1a2c","54011fb9.04278","dd0c290.fa2dfd8","cf3cb3a4.71148","c7d85a41.4cf3c8","3700f1e7.c7a0de","d32fc0f1.b0335","face273e.1dbef8","3cafd812.76e3b8","ea148e30.283d3","12418747.0556a9","177346be.1e3b89","7391d4c.0a61d2c","9e6f1a75.404bf8"]]},{"id":"54011fb9.04278","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":561.4285583496094,"y":408.60411190986633,"z":"4bbef54d.3c199c","wires":[["2f8b9c68.d88264","801d20e1.503d5"]]},{"id":"2f8b9c68.d88264","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":802.1428298950195,"y":385.7468521595001,"z":"4bbef54d.3c199c","wires":[["9a288953.c31b18"]]},{"id":"801d20e1.503d5","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":801.904670715332,"y":426.6993706226349,"z":"4bbef54d.3c199c","wires":[["b9fd5234.dea25"]]},{"id":"9a288953.c31b18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs defined in MD-SAL\" />\n","comments":"","x":968.8094444274902,"y":385.0326073169708,"z":"4bbef54d.3c199c","wires":[]},{"id":"b9fd5234.dea25","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":964.1428146362305,"y":426.36598896980286,"z":"4bbef54d.3c199c","wires":[["37afdfcf.8df9b"]]},{"id":"37afdfcf.8df9b","type":"switchNode","name":"switch service data vnf == input vnf","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":1215.47603225708,"y":426.0326759815216,"z":"4bbef54d.3c199c","wires":[["4d313f64.53af3"]]},{"id":"4d313f64.53af3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1445.4761238098145,"y":425.36602997779846,"z":"4bbef54d.3c199c","wires":[["743dde83.7b049"]]},{"id":"4fda8279.7e1a2c","type":"set","name":"set vnf-index to -1","xml":"<set>\n<parameter name='vnf-index' value='-1' />\n","comments":"","x":510.47618103027344,"y":340.0326111316681,"z":"4bbef54d.3c199c","wires":[]},{"id":"955acb16.2e9198","type":"set","name":"set vnf-index to idx","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1767.1427612304688,"y":396.36598801612854,"z":"4bbef54d.3c199c","wires":[]},{"id":"dd0c290.fa2dfd8","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":500.47618865966797,"y":476.69930768013,"z":"4bbef54d.3c199c","wires":[["7a7787fa.85d6c8"]]},{"id":"7a7787fa.85d6c8","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":678.8095741271973,"y":476.03268361091614,"z":"4bbef54d.3c199c","wires":[["b1e4fb77.0ad6d8"]]},{"id":"b1e4fb77.0ad6d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n","comments":"","x":838.8094825744629,"y":475.3659870624542,"z":"4bbef54d.3c199c","wires":[]},{"id":"743dde83.7b049","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1593.809585571289,"y":424.2857286930084,"z":"4bbef54d.3c199c","wires":[["955acb16.2e9198","227b40bb.b89e1"]]},{"id":"227b40bb.b89e1","type":"break","name":"break","xml":"<break>\n","comments":"","x":1728.8095512390137,"y":445.95231461524963,"z":"4bbef54d.3c199c","wires":[]},{"id":"c7d85a41.4cf3c8","type":"switchNode","name":"switch service-data...vf-module_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n","comments":"","outputs":1,"x":574.7618713378906,"y":598.6041367053986,"z":"4bbef54d.3c199c","wires":[["1d3ba2f9.4d00cd","b4ccb8c5.aa3838"]]},{"id":"1d3ba2f9.4d00cd","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":825.4761810302734,"y":577.4135401248932,"z":"4bbef54d.3c199c","wires":[["f4f84ccb.bce1a"]]},{"id":"b4ccb8c5.aa3838","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":825.2380218505859,"y":618.366058588028,"z":"4bbef54d.3c199c","wires":[["f90e4678.074348"]]},{"id":"f4f84ccb.bce1a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'There are no VF modules defined in MD-SAL for VNF ' + $vf-module-topology-operation-input.vnf-information.vnf-id`\" />\n","comments":"","x":992.1427955627441,"y":576.6992952823639,"z":"4bbef54d.3c199c","wires":[]},{"id":"f90e4678.074348","type":"for","name":"for each vf-module","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n","comments":"","outputs":1,"x":987.4761657714844,"y":618.0326769351959,"z":"4bbef54d.3c199c","wires":[["7b6c52f9.40101c"]]},{"id":"7b6c52f9.40101c","type":"switchNode","name":"switch service data vf-module == input vf-module","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n","comments":"","outputs":1,"x":1293.809326171875,"y":617.6994125843048,"z":"4bbef54d.3c199c","wires":[["63e22dc4.06f384"]]},{"id":"63e22dc4.06f384","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1563.8093795776367,"y":615.3660175800323,"z":"4bbef54d.3c199c","wires":[["84f0d1b4.6509b"]]},{"id":"cf3cb3a4.71148","type":"set","name":"set vf-module-index to -1","xml":"<set>\n<parameter name='vf-module-index' value='-1' />\n","comments":"","x":530.4761657714844,"y":533.3659737110138,"z":"4bbef54d.3c199c","wires":[]},{"id":"feddd314.78bc1","type":"set","name":"set vf-module-index to idx","xml":"<set>\n<parameter name='vf-module-index' value='`$idx`' />\n","comments":"","x":1893.809471130371,"y":586.3659965991974,"z":"4bbef54d.3c199c","wires":[]},{"id":"3700f1e7.c7a0de","type":"switchNode","name":"switch vf-module-index","xml":"<switch test='`$vf-module-index`'>\n","comments":"","outputs":1,"x":522.1428489685059,"y":670.0326864719391,"z":"4bbef54d.3c199c","wires":[["30d75429.dce6dc"]]},{"id":"30d75429.dce6dc","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":700.4762344360352,"y":669.3660624027252,"z":"4bbef54d.3c199c","wires":[["dc3fcd3f.7fb5a"]]},{"id":"dc3fcd3f.7fb5a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unable to find VF module ID ' + $vf-module-topology-operation-input.vf-module-information.vf-module-id + ' in MD-SAL'`\" />\n","comments":"","x":860.4761428833008,"y":668.6993658542633,"z":"4bbef54d.3c199c","wires":[]},{"id":"84f0d1b4.6509b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1697.142921447754,"y":614.2857573032379,"z":"4bbef54d.3c199c","wires":[["feddd314.78bc1","bb579fe6.15d06"]]},{"id":"bb579fe6.15d06","type":"break","name":"break","xml":"<break>\n","comments":"","x":1832.1428871154785,"y":635.9523432254791,"z":"4bbef54d.3c199c","wires":[]},{"id":"d32fc0f1.b0335","type":"switchNode","name":"switch order-status","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":511.42855072021484,"y":738.6041233539581,"z":"4bbef54d.3c199c","wires":[["a6a4bb26.1f3248","3d378319.cd568c"]]},{"id":"a6a4bb26.1f3248","type":"outcome","name":"Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":689.7619361877441,"y":713.604165315628,"z":"4bbef54d.3c199c","wires":[["586d3384.e6473c"]]},{"id":"3d378319.cd568c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":686.428539276123,"y":758.6041061878204,"z":"4bbef54d.3c199c","wires":[["9f24bb12.d8e6c8"]]},{"id":"586d3384.e6473c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Order status must not be Created\" />\n","comments":"","x":858.0951766967773,"y":713.6040947437286,"z":"4bbef54d.3c199c","wires":[]},{"id":"9f24bb12.d8e6c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":861.4285507202148,"y":758.2707817554474,"z":"4bbef54d.3c199c","wires":[[]]},{"id":"3cafd812.76e3b8","type":"update","name":"update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id\" >","comments":"","outputs":1,"x":638.0952758789062,"y":855.2707741260529,"z":"4bbef54d.3c199c","wires":[["29a4dd2c.571cc2"]]},{"id":"face273e.1dbef8","type":"set","name":"set status variable","xml":"<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`\" />\n","comments":"","x":508.0952453613281,"y":808.6041061878204,"z":"4bbef54d.3c199c","wires":[]},{"id":"29a4dd2c.571cc2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":943.0951843261719,"y":853.6040737628937,"z":"4bbef54d.3c199c","wires":[["7b359e3e.4af98"]]},{"id":"7b359e3e.4af98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating EIPAM_IP_ASSIGNMENTS table\" />\n","comments":"","x":1133.0952110290527,"y":853.4138090610504,"z":"4bbef54d.3c199c","wires":[]},{"id":"7391d4c.0a61d2c","type":"execute","name":"execute EIPAM unassign IP addresses","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n","comments":"","outputs":1,"x":571.4285736083984,"y":950.2707951068878,"z":"4bbef54d.3c199c","wires":[["f775a31f.14032"]]},{"id":"f775a31f.14032","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":808.0951995849609,"y":950.2707378864288,"z":"4bbef54d.3c199c","wires":[["fbea9023.f0a21"]]},{"id":"fbea9023.f0a21","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error in EIPAM unassign IP address\" />\n","comments":"","x":998.0952262878418,"y":950.0804731845856,"z":"4bbef54d.3c199c","wires":[]},{"id":"ea148e30.283d3","type":"for","name":"for each vm-type","xml":"<for silentFailure='true' index='vm-type-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":503.09523010253906,"y":995.2707560062408,"z":"4bbef54d.3c199c","wires":[["dd94f1e3.ff795"]]},{"id":"dd94f1e3.ff795","type":"for","name":"for each vm","xml":"<for silentFailure='true' index='vm-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n","comments":"","outputs":1,"x":698.0952606201172,"y":994.6037638187408,"z":"4bbef54d.3c199c","wires":[["ec57ffa3.2de6d"]]},{"id":"5d88eeac.72f3c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1446.4289016723633,"y":992.9364054203033,"z":"4bbef54d.3c199c","wires":[["6706540e.3756bc"]]},{"id":"cd37cc6b.08ecc","type":"comment","name":"Not a failure","info":"","comments":"","x":1769.7619552612305,"y":991.2702276706696,"z":"4bbef54d.3c199c","wires":[]},{"id":"6706540e.3756bc","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n","comments":"","outputs":1,"x":1592.4288368225098,"y":992.9370386600494,"z":"4bbef54d.3c199c","wires":[[]]},{"id":"ec57ffa3.2de6d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":866.428653717041,"y":993.6036083698273,"z":"4bbef54d.3c199c","wires":[["6b0a27e8.69d2a8"]]},{"id":"6b0a27e8.69d2a8","type":"delete","name":"delete any records in VIPR_CONFIGURATION","xml":"<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n     AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n     AND vm_name = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >","comments":"","outputs":1,"x":1153.0953674316406,"y":993.2710382938385,"z":"4bbef54d.3c199c","wires":[["5d88eeac.72f3c"]]},{"id":"e25e36f2.2bb898","type":"for","name":"for each vf module","xml":"<for index='idx' start='`$vf-module-index + 1`' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n","comments":"","outputs":1,"x":1079.2696990966797,"y":1083.6039497852325,"z":"4bbef54d.3c199c","wires":[["50854db5.0c09d4"]]},{"id":"54369fbe.68bda","type":"comment","name":"Remove VF Module from service data","info":"","comments":"","x":458.09519958496094,"y":1038.8423902988434,"z":"4bbef54d.3c199c","wires":[]},{"id":"50854db5.0c09d4","type":"set","name":"move vf module to remove one","xml":"<set>\n\t<parameter name=\"tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmpidx].\" value=\"$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].\" />\n\t\n","comments":"","x":1322.8608322143555,"y":1082.6279156208038,"z":"4bbef54d.3c199c","wires":[]},{"id":"12418747.0556a9","type":"switchNode","name":"switch vf-module_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n","comments":"","outputs":1,"x":525.5276184082031,"y":1094.9456207752228,"z":"4bbef54d.3c199c","wires":[["96160dc8.1f5f6","66823801.7689b8"]]},{"id":"96160dc8.1f5f6","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":720.8609848022461,"y":1045.8502275943756,"z":"4bbef54d.3c199c","wires":[["12a46b54.143dd5"]]},{"id":"12a46b54.143dd5","type":"set","name":"Remove vf modules","xml":"<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.\" value=\"\"/>\n\n","comments":"","x":892.8607559204102,"y":1045.8503468036652,"z":"4bbef54d.3c199c","wires":[]},{"id":"66823801.7689b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":719.5277404785156,"y":1140.6120369434357,"z":"4bbef54d.3c199c","wires":[["2bcfe8b8.486238"]]},{"id":"e9f7f8ad.ae21a8","type":"set","name":"set new vf module length","xml":"<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length\" value=\"`$lastidx`\"/>\n\n\t\n","comments":"","x":1098.1572341918945,"y":1211.326426744461,"z":"4bbef54d.3c199c","wires":[]},{"id":"74efe5f4.b4841c","type":"set","name":"Remove the last vf module in the list","xml":"<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lastidx].\" value=\"\"/>\n","comments":"","x":1133.8608474731445,"y":1167.4375641345978,"z":"4bbef54d.3c199c","wires":[]},{"id":"2bcfe8b8.486238","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":876.7656707763672,"y":1139.850038766861,"z":"4bbef54d.3c199c","wires":[["e25e36f2.2bb898","74efe5f4.b4841c","e9f7f8ad.ae21a8","97e35dd8.d7e27"]]},{"id":"177346be.1e3b89","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":498.09523010253906,"y":1271.4612438678741,"z":"4bbef54d.3c199c","wires":[]},{"id":"9e6f1a75.404bf8","type":"set","name":"set service-type","xml":"<set>\n<parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\n","comments":"EIPAM plug-in needs this attribute set with this name","x":499.7618865966797,"y":901.1904366016388,"z":"4bbef54d.3c199c","wires":[]},{"id":"97e35dd8.d7e27","type":"set","name":"set lastidx","xml":"<set>\n<parameter name='lastidx' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length - 1`' />\n","comments":"EIPAM plug-in needs this attribute set with this name","x":1052.000015258789,"y":1123.8422634601593,"z":"4bbef54d.3c199c","wires":[]}]
+[\r
+    {\r
+        "id": "b1376276.19b7a",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 153.75,\r
+        "y": 73.75,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "7de7be4b.3d07e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7de7be4b.3d07e",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 269.03570556640625,\r
+        "y": 113.32144737243652,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "95fa486d.37e488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95fa486d.37e488",\r
+        "type": "method",\r
+        "name": "method vf-module-topology-operation-unassign",\r
+        "xml": "<method rpc='vf-module-topology-operation-unassign' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 275.84529876708984,\r
+        "y": 153.74999618530273,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "899e894a.a15b88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7f5605f.01389",\r
+        "type": "comment",\r
+        "name": "vf-module-topology-operation-unassign",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 548.094856262207,\r
+        "y": 21.33634376525879,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8d19f16.02d9",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.9404602050781,\r
+        "y": 370.94047355651855,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a16d41de.fdf37",\r
+                "3b724a86.e852d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a16d41de.fdf37",\r
+        "type": "outcome",\r
+        "name": "DeleteVfModuleInstance",\r
+        "xml": "<outcome value='DeleteVfModuleInstance'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 820.9880752563477,\r
+        "y": 348.08335971832275,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "f4130065.1b2d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b724a86.e852d6",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 764.6547203063965,\r
+        "y": 393.4643487930298,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "86c9269e.57f0e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4130065.1b2d6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1010.8452396392822,\r
+        "y": 348.0833911895752,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "86c9269e.57f0e8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeleteVfModuleInstance'\" />\n",\r
+        "comments": "",\r
+        "x": 1029.654727935791,\r
+        "y": 393.7976613044739,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99d54dd7.bac17",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 181.36910247802734,\r
+        "y": 1465.6547031402588,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "be7c08d6.b7fa78",\r
+                "33647515.ff88ea",\r
+                "c0e122eb.07451",\r
+                "7c7a95cf.960aec",\r
+                "dfd06feb.ff6ed",\r
+                "739034c9.2b1aac",\r
+                "5878a219.db4e8c",\r
+                "59360709.c66608",\r
+                "858b4f7.87351b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed32804a.e1a1f",\r
+        "type": "set",\r
+        "name": "set vnf-index to -1",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='-1' />\n",\r
+        "comments": "",\r
+        "x": 554.4642562866211,\r
+        "y": 446.84514808654785,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2837eda.666b812",\r
+        "type": "switchNode",\r
+        "name": "switch order-status",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 558.0357437133789,\r
+        "y": 1268.9880828857422,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "8a2f7c28.f48a4",\r
+                "cc7bf29.51df51"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a2f7c28.f48a4",\r
+        "type": "outcome",\r
+        "name": "Created",\r
+        "xml": "<outcome value='Created'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 733.8691139221191,\r
+        "y": 1231.4881148338318,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "dbdbf33c.f14c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc7bf29.51df51",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 733.0357322692871,\r
+        "y": 1288.9880657196045,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "e72b13ca.99788"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbdbf33c.f14c2",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Order status must not be Created\" />\n",\r
+        "comments": "",\r
+        "x": 902.2023544311523,\r
+        "y": 1231.4880442619324,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e72b13ca.99788",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 908.0357437133789,\r
+        "y": 1288.6547412872314,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "33647515.ff88ea",\r
+        "type": "update",\r
+        "name": "update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 684.7024688720703,\r
+        "y": 1385.654733657837,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "8e4f49fb.bc44b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be7c08d6.b7fa78",\r
+        "type": "set",\r
+        "name": "set status variable",\r
+        "xml": "<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`\" />\n",\r
+        "comments": "",\r
+        "x": 554.7024383544922,\r
+        "y": 1338.9880657196045,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8e4f49fb.bc44b8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 989.7023773193359,\r
+        "y": 1383.9880332946777,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "13abc175.87ad4f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13abc175.87ad4f",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating EIPAM_IP_ASSIGNMENTS table\" />\n",\r
+        "comments": "",\r
+        "x": 1179.7024040222168,\r
+        "y": 1383.7977685928345,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c7a95cf.960aec",\r
+        "type": "execute",\r
+        "name": "execute EIPAM unassign IP addresses",\r
+        "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 618.0357666015625,\r
+        "y": 1480.6547546386719,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "3527442c.98799c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3527442c.98799c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 854.702392578125,\r
+        "y": 1480.654697418213,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6bf2e362.4819cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bf2e362.4819cc",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error in EIPAM unassign IP address\" />\n",\r
+        "comments": "",\r
+        "x": 1044.7024192810059,\r
+        "y": 1480.4644327163696,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c0e122eb.07451",\r
+        "type": "for",\r
+        "name": "for each vm-type",\r
+        "xml": "<for silentFailure='true' index='vm-type-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 549.7024230957031,\r
+        "y": 1525.654715538025,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "2a98414e.b2fd6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a98414e.b2fd6e",\r
+        "type": "for",\r
+        "name": "for each vm",\r
+        "xml": "<for silentFailure='true' index='vm-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 744.7024536132812,\r
+        "y": 1524.987723350525,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "b1136fdc.257c9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37c4231.32254dc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1451.3695220947266,\r
+        "y": 1523.3203258514404,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "8584cb05.406b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85031a7.a928fe8",\r
+        "type": "comment",\r
+        "name": "Not a failure",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1729.7025184631348,\r
+        "y": 1521.654128074646,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8584cb05.406b38",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1597.369457244873,\r
+        "y": 1523.3209590911865,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1136fdc.257c9",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 913.0358467102051,\r
+        "y": 1523.9875679016113,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a0575bd.48cada8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a0575bd.48cada8",\r
+        "type": "delete",\r
+        "name": "delete any records in VIPR_CONFIGURATION",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n     AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n     AND vm_name = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1199.7025604248047,\r
+        "y": 1523.6549978256226,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "37c4231.32254dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f60d84c.fb5928",\r
+        "type": "comment",\r
+        "name": "Remove VF Module from service data",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 654.0357360839844,\r
+        "y": 2706.2263040542603,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3813429f.be706e",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.4681549072266,\r
+        "y": 2762.3295345306396,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "7c4378ea.a15b28",\r
+                "532c6a72.d9fff4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c4378ea.a15b28",\r
+        "type": "outcome",\r
+        "name": "1",\r
+        "xml": "<outcome value='1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 935.1349182128906,\r
+        "y": 2666.5673971176147,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "494887d.7d6dc78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "494887d.7d6dc78",\r
+        "type": "set",\r
+        "name": "Remove vf modules",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.\" value=\"\"/>\n\n",\r
+        "comments": "",\r
+        "x": 1107.1346893310547,\r
+        "y": 2666.5675163269043,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "532c6a72.d9fff4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 935.4682159423828,\r
+        "y": 2856.662570953369,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "eef5a74e.f28dd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd2d4dd2.91285",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 694.0357666015625,\r
+        "y": 2938.845157623291,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfd06feb.ff6ed",\r
+        "type": "set",\r
+        "name": "set service-type",\r
+        "xml": "<set>\n<parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\n",\r
+        "comments": "EIPAM plug-in needs this attribute set with this name",\r
+        "x": 546.3690795898438,\r
+        "y": 1431.5743961334229,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "370b0e3d.3ff8b2",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1568.5356903076172,\r
+        "y": 1842.7411737442017,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "5ba8b449.8e391c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ba8b449.8e391c",\r
+        "type": "outcome",\r
+        "name": "1",\r
+        "xml": "<outcome value='1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1752.8213958740234,\r
+        "y": 1842.7411603927612,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "aa8c9f37.4bce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e11fc780.b18798",\r
+        "type": "update",\r
+        "name": "update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $aai.instance-group.instance-group[$ig-index].id\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2182.8213500976562,\r
+        "y": 1842.5508184432983,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f93d876b.e7d198",\r
+        "type": "set",\r
+        "name": "set status variable",\r
+        "xml": "<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $aai.instance-group.instance-group[$ig-index].id`\" />\n",\r
+        "comments": "",\r
+        "x": 2052.8213119506836,\r
+        "y": 1795.8841905593872,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4ad69f8c.fd9c",\r
+        "type": "execute",\r
+        "name": "execute EIPAM unassign IP addresses",\r
+        "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2117.821319580078,\r
+        "y": 1887.550862312317,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd83f99f.5833e8",\r
+        "type": "comment",\r
+        "name": "roll back EIPAM floating addresses",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2162.1070404052734,\r
+        "y": 1749.6940167744951,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "739034c9.2b1aac",\r
+        "type": "switchNode",\r
+        "name": "switch network-instance-group-function",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vlan-vnfc-instance-groups.vlan-vnfc-instance-group[0].vnfcs.vnfc[0].vnic-groups.vnic-group[0].network-instance-group-function`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 616.3691024780273,\r
+        "y": 1658.2411069869995,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a7739829.bdaca8",\r
+                "e35d14ad.4989f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a7739829.bdaca8",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 841.3690719604492,\r
+        "y": 1626.5744400024414,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "4ed1de62.95a2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e35d14ad.4989f8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 841.1309356689453,\r
+        "y": 1697.5268354415894,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "4c983dc2.77aa64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ed1de62.95a2a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 968.0358085632324,\r
+        "y": 1624.907772064209,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c983dc2.77aa64",\r
+        "type": "get-resource",\r
+        "name": "get-resource instance group",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n  resource=\"instance-groups\" \n  key=\"instance-group.instance-group-function = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vlan-vnfc-instance-groups.vlan-vnfc-instance-group[0].vnfcs.vnfc[0].vnic-groups.vnic-group[0].network-instance-group-function\n    AND instance-group.instance-group-type = 'L3-NETWORK'\"\n  pfx='aai.instance-group' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1037.202491760254,\r
+        "y": 1696.5744123458862,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "ddac01f.3923f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddac01f.3923f",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1238.8691215515137,\r
+        "y": 1697.4077863693237,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "7a32823c.a674bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7107e45f.25e14c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1388.8691101074219,\r
+        "y": 1895.741319656372,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "370b0e3d.3ff8b2",\r
+                "d7a2d2c6.caa96"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa8c9f37.4bce",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1878.8690299987793,\r
+        "y": 1842.4078741073608,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "f93d876b.e7d198",\r
+                "e11fc780.b18798",\r
+                "4ad69f8c.fd9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7a2d2c6.caa96",\r
+        "type": "for",\r
+        "name": "for each network-instance-group",\r
+        "xml": "<for index='nig-index' start='0' end='`$service-data.network-instance-groups.network-instance-group_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1588.869041442871,\r
+        "y": 1950.7412090301514,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "612f4ca4.68c134"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "612f4ca4.68c134",\r
+        "type": "switchNode",\r
+        "name": "network-instance-group-ids match?",\r
+        "xml": "<switch test='`$aai.instance-group.instance-group[$ig-index].id\n  == $service-data.network-instance-groups.network-instance-group[$nig-index].network-instance-group-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1893.868881225586,\r
+        "y": 1950.7412548065186,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "829c6209.93b3d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "829c6209.93b3d",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2115.5356521606445,\r
+        "y": 1949.4080333709717,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "d2319297.5eefb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2319297.5eefb",\r
+        "type": "for",\r
+        "name": "for each network",\r
+        "xml": "<for index='network-index' start='0' end='`$service-data.network-instance-groups.network-instance-group[$nig-index].networks.network_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2271.249988555908,\r
+        "y": 1948.1221590042114,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "adc6d40c.0d2aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "adc6d40c.0d2aa8",\r
+        "type": "set",\r
+        "name": "clear vlan-tag-id and set network-status to unassigned",\r
+        "xml": "<set>\n<parameter name='service-data.network-instance-groups.network-instance-group[$nig-index].networks.network[$network-index].vlan-tag-id'\n  value='' />\n<parameter name='service-data.network-instance-groups.network-instance-group[$nig-index].networks.network[$network-index].network-status'\n  value='unassigned' />\n",\r
+        "comments": "",\r
+        "x": 2582.678421020508,\r
+        "y": 1946.693621635437,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7a32823c.a674bc",\r
+        "type": "for",\r
+        "name": "for each returned instance-group",\r
+        "xml": "<for index='ig-index' start='0' end='`$aai.instance-group.instance-group_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1462.369125366211,\r
+        "y": 1694.407790184021,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "7f3d0cd9.9335a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f3d0cd9.9335a4",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1714.0357666015625,\r
+        "y": 1693.4077892303467,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "e7616a37.994598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e7616a37.994598",\r
+        "type": "for",\r
+        "name": "for each relationship-data",\r
+        "xml": "<for index='reldata-index' start='0' end='`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship[$rel-index].relationship-data_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1940.7024383544922,\r
+        "y": 1692.7411632537842,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "5e1c0be4.f2c024"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e1c0be4.f2c024",\r
+        "type": "switchNode",\r
+        "name": "switch relationship-key == service-instance.service-instance-id",\r
+        "xml": "<switch test=\"`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship[$rel-index].relationship-data[$reldata-index].relationship-key\n  == 'service-instance.service-instance-id'`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2299.0360260009766,\r
+        "y": 1692.7410821914673,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "8aa0de51.9fee1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8aa0de51.9fee1",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2595.7024841308594,\r
+        "y": 1692.741114616394,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "5d06f26a.4726bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d06f26a.4726bc",\r
+        "type": "switchNode",\r
+        "name": "switch relationship-value == this service-instance-id",\r
+        "xml": "<switch test='`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship[$rel-index].relationship-data[$reldata-index].relationship-value\n  == $service-data.service-information.service-instance-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2860.702308654785,\r
+        "y": 1692.741084098816,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "acfd65c3.377028"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acfd65c3.377028",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3120.702278137207,\r
+        "y": 1692.7410745620728,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "7107e45f.25e14c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5878a219.db4e8c",\r
+        "type": "for",\r
+        "name": "for each vm-type",\r
+        "xml": "<for silentFailure='true' index='vm-type-index' start='0'\n  end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 557.2024383544922,\r
+        "y": 2261.4879655838013,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "5c388a57.8451f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74f3496a.11f5e8",\r
+        "type": "for",\r
+        "name": "for each vnfc",\r
+        "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 908.8692054748535,\r
+        "y": 2355.8692111968994,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6e31430a.e7046c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db59b482.778a68",\r
+        "type": "save",\r
+        "name": "delete vnfc in A&AI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vnfc\"\n   key=\"vnfc.vnfc-name = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1220.2977104187012,\r
+        "y": 2398.39275932312,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3b5957.afe4668",\r
+        "type": "comment",\r
+        "name": "check removed with US622450",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1112.3214569091797,\r
+        "y": 1258.955403804779,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba151b16.c9aed8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1516.368709564209,\r
+        "y": 2345.654547691345,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "65b58039.7e2b7",\r
+                "f646ff88.473e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f646ff88.473e7",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1828.6544456481934,\r
+        "y": 2370.226065635681,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "65b58039.7e2b7",\r
+        "type": "set",\r
+        "name": "set variables for deleting VNFC name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNFC' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`' />\n<parameter name='naming-policy-generate-name-input.vm-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vnfc-index]`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 1748.4164009094238,\r
+        "y": 2323.0831356048584,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5760ffaf.f2c0b",\r
+        "type": "switchNode",\r
+        "name": "switch vnfc-name",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names[$vnfc-index].vnfc-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1216.7023811340332,\r
+        "y": 2318.987804412842,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "e34267dd.8616f8",\r
+                "c505b4ad.08ec78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e34267dd.8616f8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.7023582458496,\r
+        "y": 2288.987837791443,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a953cb8a.ae16d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c505b4ad.08ec78",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.7023162841797,\r
+        "y": 2345.1783514022827,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "ba151b16.c9aed8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a953cb8a.ae16d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1516.7022018432617,\r
+        "y": 2287.321189880371,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1fd43a0.c5972",\r
+        "type": "comment",\r
+        "name": "Rollback any generated VM and VNFC names",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 605.035514831543,\r
+        "y": 2213.9879760742188,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5c388a57.8451f4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.1066665649414,\r
+        "y": 2261.8932523727417,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "658e7b54.c4ae14",\r
+                "74f3496a.11f5e8",\r
+                "80a95d2.4a1e6a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "658e7b54.c4ae14",\r
+        "type": "for",\r
+        "name": "for each vm-name",\r
+        "xml": "<for silentFailure='true' index='vm-name-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 929.4399032592773,\r
+        "y": 2181.893494606018,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "715a9489.5a448c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "715a9489.5a448c",\r
+        "type": "switchNode",\r
+        "name": "switch vm-name",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-name-index]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1124.4399490356445,\r
+        "y": 2183.560133934021,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "e42ca586.c51bb8",\r
+                "1036f257.67822e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e42ca586.c51bb8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1277.7732620239258,\r
+        "y": 2155.226799964905,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "d2cff0c6.47fcb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2cff0c6.47fcb",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1407.773105621338,\r
+        "y": 2153.560152053833,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f381303a.a670f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1409.4400100708008,\r
+        "y": 2213.560112953186,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "b0dc6051.1f8f1",\r
+                "df5d3e87.b20c4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1036f257.67822e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1279.7736167907715,\r
+        "y": 2213.0839166641235,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "f381303a.a670f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df5d3e87.b20c4",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1709.4398880004883,\r
+        "y": 2238.560112953186,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0dc6051.1f8f1",\r
+        "type": "set",\r
+        "name": "set variables for deleting VM name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VM' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 1624.2017822265625,\r
+        "y": 2191.4171447753906,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e31430a.e7046c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1056.3691139221191,\r
+        "y": 2354.654592514038,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "5760ffaf.f2c0b",\r
+                "db59b482.778a68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59360709.c66608",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-name",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 569.7024002075195,\r
+        "y": 2052.321430206299,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "d70ace55.0e268",\r
+                "7a1e6069.0b283"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d70ace55.0e268",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746.369026184082,\r
+        "y": 2078.1546630859375,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6ae7c451.d31f5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a1e6069.0b283",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 748.4642868041992,\r
+        "y": 2026.9405679702759,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "bec41233.959f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bec41233.959f6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 871.0357055664062,\r
+        "y": 2025.3214282989502,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ae7c451.d31f5c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 893.3689918518066,\r
+        "y": 2078.654703140259,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "11d19708.2605d9",\r
+                "1c96b59.8b9804a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1c96b59.8b9804a",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:naming-policy-generate-unique-name",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-unique-name' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1243.0356826782227,\r
+        "y": 2098.988037109375,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "11d19708.2605d9",\r
+        "type": "set",\r
+        "name": "set variables for deleting VF module name",\r
+        "xml": "<set>\n<parameter name='generate-unique-name-input.name-table-type' value='VF_MODULE_INSTANCE' />\n<parameter name='generate-unique-name-input.context-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='generate-unique-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 1156.130615234375,\r
+        "y": 2054.7023277282715,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80a95d2.4a1e6a",\r
+        "type": "for",\r
+        "name": "for each vm-network",\r
+        "xml": "<for silentFailure='true' index='network-role-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 933.0357284545898,\r
+        "y": 2493.9879322052,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "980c72c7.494c9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "980c72c7.494c9",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1122.8690490722656,\r
+        "y": 2493.487371444702,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "cf69a581.5413f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf69a581.5413f8",\r
+        "type": "for",\r
+        "name": "for each vnfc",\r
+        "xml": "<for silentFailure='true' index='vnfc-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vnfc-names_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1276.8691101074219,\r
+        "y": 2492.154196739197,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "1fbaedb2.ea9ee2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fbaedb2.ea9ee2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1435.2024955749512,\r
+        "y": 2492.1541900634766,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "17e1ea1a.d384e6",\r
+                "909f2090.db662"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17e1ea1a.d384e6",\r
+        "type": "for",\r
+        "name": "for each floating ipv4 address",\r
+        "xml": "<for silentFailure='true' index='ipv4-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1640.035514831543,\r
+        "y": 2461.3208141326904,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6394face.442c04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "909f2090.db662",\r
+        "type": "for",\r
+        "name": "for each floating ipv6 address",\r
+        "xml": "<for silentFailure='true' index='ipv6-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1640.7021102905273,\r
+        "y": 2518.3205738067627,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "84f82fa2.f216d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6394face.442c04",\r
+        "type": "delete",\r
+        "name": "delete vip-ipv4-address-list from A&AI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n   resource=\"vip-ipv4-address-list\" \n   key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t  AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t  AND vip-ipv4-address-list.vip-ipv4-address = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v4[$ipv4-index]\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1944.035514831543,\r
+        "y": 2461.3208141326904,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84f82fa2.f216d",\r
+        "type": "delete",\r
+        "name": "delete vip-ipv6-address-list from A&AI",\r
+        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n   resource=\"vip-ipv6-address-list\" \n   key=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner\n\t  AND cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\n\t  AND vip-ipv6-address-list.vip-ipv6-address = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$vm-network-index].floating-ips.floating-ip-v6[$ipv6-index]\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1942.7021102905273,\r
+        "y": 2516.98744392395,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "899e894a.a15b88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 219.7023696899414,\r
+        "y": 514.2887477874756,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "b8d19f16.02d9",\r
+                "ed32804a.e1a1f",\r
+                "89b50ae8.304b48",\r
+                "efe19694.cf14a8",\r
+                "dbf21792.0d5298",\r
+                "e4ce59e9.5f1898",\r
+                "abfb427b.7db89",\r
+                "a8421811.799508",\r
+                "49d11446.002fcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89b50ae8.304b48",\r
+        "type": "execute",\r
+        "name": "execute PropertiesNode",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 569.9404449462891,\r
+        "y": 219.70235919952393,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "efe19694.cf14a8",\r
+        "type": "switchNode",\r
+        "name": "switch input cloud-owner",\r
+        "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 571.6070175170898,\r
+        "y": 290.0589847564697,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "2032739b.f3a73c",\r
+                "ff58ea7d.ed47d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2032739b.f3a73c",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754.9403915405273,\r
+        "y": 260.05897331237793,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "3b19e144.46d70e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff58ea7d.ed47d8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 754.7022972106934,\r
+        "y": 301.01146697998047,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a2e4951.0f1b868"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b19e144.46d70e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 889.9403457641602,\r
+        "y": 258.39231300354004,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2e4951.0f1b868",\r
+        "type": "set",\r
+        "name": "set prop.cloud-region.cloud-owner",\r
+        "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$vf-module-topology-operation-input.vf-module-request-input.cloud-owner`' />\n",\r
+        "comments": "",\r
+        "x": 971.6070022583008,\r
+        "y": 300.0589942932129,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dbf21792.0d5298",\r
+        "type": "switchNode",\r
+        "name": "switch service-data.vnfs.vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 611.25,\r
+        "y": 516.25,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "e305ef89.1e18e",\r
+                "29032343.b8eb2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e305ef89.1e18e",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.9642715454102,\r
+        "y": 493.3927402496338,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "ac34ef76.dbb8b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29032343.b8eb2c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.7261123657227,\r
+        "y": 534.3452587127686,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "4d389e13.b5d61"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d389e13.b5d61",\r
+        "type": "for",\r
+        "name": "for each vnf",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1013.9642562866211,\r
+        "y": 534.0118770599365,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "3cfeeac7.22cf66"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3cfeeac7.22cf66",\r
+        "type": "switchNode",\r
+        "name": "switch service data vnf == input vnf",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1265.2974739074707,\r
+        "y": 533.6785640716553,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "8a49adca.71697"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a49adca.71697",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1495.297565460205,\r
+        "y": 533.0119180679321,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6824cd21.d641d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6afedd28.dd1d04",\r
+        "type": "set",\r
+        "name": "set vnf-index to idx",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
+        "comments": "",\r
+        "x": 1816.9642028808594,\r
+        "y": 504.0118761062622,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4ce59e9.5f1898",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-index",\r
+        "xml": "<switch test='`$vnf-index`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 550.2976303100586,\r
+        "y": 584.3451957702637,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "dbce9105.cee94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbce9105.cee94",\r
+        "type": "outcome",\r
+        "name": "-1",\r
+        "xml": "<outcome value='-1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 728.6310157775879,\r
+        "y": 583.6785717010498,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "2c771b68.925e04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6824cd21.d641d4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1643.6310272216797,\r
+        "y": 531.9316167831421,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6afedd28.dd1d04",\r
+                "cde0307.04f64d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cde0307.04f64d",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 1778.6309928894043,\r
+        "y": 553.5982027053833,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a8421811.799508",\r
+        "type": "for",\r
+        "name": "for each vf-module",\r
+        "xml": "<for silentFailure='true' index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 562.297607421875,\r
+        "y": 692.3452224731445,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "297d0391.8efebc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "297d0391.8efebc",\r
+        "type": "switchNode",\r
+        "name": "switch service data vf-module == input vf-module",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 868.6307678222656,\r
+        "y": 692.0119581222534,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "b0f6d863.2828c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0f6d863.2828c8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1138.6308212280273,\r
+        "y": 689.678563117981,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6f6e1b3e.330ad4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abfb427b.7db89",\r
+        "type": "set",\r
+        "name": "set vf-module-index to -1",\r
+        "xml": "<set>\n<parameter name='vf-module-index' value='-1' />\n",\r
+        "comments": "",\r
+        "x": 575.2975997924805,\r
+        "y": 636.0118446350098,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dbc23243.91781",\r
+        "type": "set",\r
+        "name": "set vf-module-index to idx",\r
+        "xml": "<set>\n<parameter name='vf-module-index' value='`$idx`' />\n",\r
+        "comments": "",\r
+        "x": 1468.6309127807617,\r
+        "y": 660.678542137146,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49d11446.002fcc",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-index",\r
+        "xml": "<switch test='`$vf-module-index`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 571.9643173217773,\r
+        "y": 774.3452033996582,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "94c2cc90.d7c67",\r
+                "2b442f49.22e12"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "94c2cc90.d7c67",\r
+        "type": "outcome",\r
+        "name": "-1",\r
+        "xml": "<outcome value='-1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746.96435546875,\r
+        "y": 752.0119342803955,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "4fb6a202.51b5ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f6e1b3e.330ad4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1271.9643630981445,\r
+        "y": 688.5983028411865,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "dbc23243.91781",\r
+                "e2ba61fd.88025"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2ba61fd.88025",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 1406.9643287658691,\r
+        "y": 710.2648887634277,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "603196d.f2e4768",\r
+        "type": "call",\r
+        "name": "call self-serve-vf-module-unassign",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-unassign' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1539.7975006103516,\r
+        "y": 898.5864009857178,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "df597e81.6e9d5",\r
+                "c5575003.8a646"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df597e81.6e9d5",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1784.5474853515625,\r
+        "y": 898.836389541626,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "a1670d6c.ed7bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1670d6c.ed7bf",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error while unassigning self-serve vf-moldule esources with error: '+ $error-message`\" />\n",\r
+        "comments": "",\r
+        "x": 1950.118911743164,\r
+        "y": 898.479284286499,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5575003.8a646",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1789.1546592712402,\r
+        "y": 949.391923904419,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "858b4f7.87351b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74ee7664.954418",\r
+        "type": "comment",\r
+        "name": "SELF-SERVE FORK",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1559.154670715332,\r
+        "y": 860.2650318145752,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ecd70ab.5a23b",\r
+        "type": "call",\r
+        "name": "call self-serve-vf-module-forking-logic",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-forking-logic' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1120.5037994384766,\r
+        "y": 833.4202389717102,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e852bb2.f601e4",\r
+        "type": "switchNode",\r
+        "name": "switch ss.self-serve-flag",\r
+        "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1078.8846588134766,\r
+        "y": 961.1345653533936,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "b3e2a3f2.f065e",\r
+                "fdb1470f.907b58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3e2a3f2.f065e",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1303.5511360168457,\r
+        "y": 1021.9913191795349,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "99d54dd7.bac17"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdb1470f.907b58",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1301.5988540649414,\r
+        "y": 899.1821556091309,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "603196d.f2e4768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fb6a202.51b5ec",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",\r
+        "comments": "",\r
+        "x": 897.9166984558105,\r
+        "y": 750.5029640197754,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2b442f49.22e12",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 746.2500495910645,\r
+        "y": 798.8363151550293,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "2f3217af.e4bc58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f3217af.e4bc58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 859.5833129882812,\r
+        "y": 900.5030097961426,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "9ecd70ab.5a23b",\r
+                "4e852bb2.f601e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac34ef76.dbb8b",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",\r
+        "comments": "",\r
+        "x": 1006.0118713378906,\r
+        "y": 493.3601493835449,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c771b68.925e04",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n",\r
+        "comments": "",\r
+        "x": 882.6785583496094,\r
+        "y": 583.3601493835449,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "858b4f7.87351b",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 501.6666717529297,\r
+        "y": 2761.6668910980225,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "3813429f.be706e",\r
+                "dd2d4dd2.91285"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28df9967.9df256",\r
+        "type": "for",\r
+        "name": "for each vf module",\r
+        "xml": "<for index='idx' start='`$vf-module-index + 1`' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1346.6665649414062,\r
+        "y": 2799.9999980926514,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "6f3d3130.57afd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50c34629.2df598",\r
+        "type": "set",\r
+        "name": "set tmpidx",\r
+        "xml": "<set>\n<parameter name=\"tmpidx\" value=\"`$idx - 1`\"/>\n",\r
+        "comments": "",\r
+        "x": 1706.5909271240234,\r
+        "y": 2760.6906309127808,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d58ca164.6a90c",\r
+        "type": "set",\r
+        "name": "set new vf module length",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length\" value=\"`$lastidx`\"/>\n\n\t\n",\r
+        "comments": "",\r
+        "x": 1365.554100036621,\r
+        "y": 2927.72247505188,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "78c411a4.44c59",\r
+        "type": "set",\r
+        "name": "Remove the last vf module in the list",\r
+        "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lastidx].\" value=\"\"/>\n",\r
+        "comments": "",\r
+        "x": 1401.257713317871,\r
+        "y": 2883.8336124420166,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eef5a74e.f28dd8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1114.1625366210938,\r
+        "y": 2856.24608707428,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "28df9967.9df256",\r
+                "78c411a4.44c59",\r
+                "d58ca164.6a90c",\r
+                "fe410b04.6fd318"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe410b04.6fd318",\r
+        "type": "set",\r
+        "name": "set lastidx",\r
+        "xml": "<set>\n<parameter name='lastidx' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length - 1`' />\n",\r
+        "comments": "EIPAM plug-in needs this attribute set with this name",\r
+        "x": 1319.3968811035156,\r
+        "y": 2840.238311767578,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6f3d3130.57afd",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1532.3016510009766,\r
+        "y": 2799.872272491455,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": [\r
+            [\r
+                "50c34629.2df598",\r
+                "c39ae3a3.509e4",\r
+                "d83d8b04.2f5018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c39ae3a3.509e4",\r
+        "type": "set",\r
+        "name": "copy vf module down",\r
+        "xml": "<set>\n<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmpidx].\" value=\"$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].\" />\n\t\n",\r
+        "comments": "",\r
+        "x": 1737.9681205749512,\r
+        "y": 2846.5390224456787,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d83d8b04.2f5018",\r
+        "type": "set",\r
+        "name": "erase entry at tmpidx",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmpidx].' value='' />\n",\r
+        "comments": "",\r
+        "x": 1739.6349906921387,\r
+        "y": 2803.205931663513,\r
+        "z": "2b0e89c2.6d8016",\r
+        "wires": []\r
+    }\r
+]
\ No newline at end of file