Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-unassign.json
index 7732bac..6a50796 100755 (executable)
@@ -1 +1,2262 @@
-[{"id":"c5287c43.5f3f1","type":"dgstart","name":"DGSTART","outputs":1,"x":122.85714721679688,"y":88.12794303894043,"z":"edca08.43dcd5f8","wires":[["76ae7991.2e2dd8"]]},{"id":"76ae7991.2e2dd8","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":238.14285278320312,"y":127.69939041137695,"z":"edca08.43dcd5f8","wires":[["1e8b6d56.4e5da3"]]},{"id":"1e8b6d56.4e5da3","type":"method","name":"method vf-module-topology-operation-unassign","xml":"<method rpc='vf-module-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":244.95244598388672,"y":168.12793922424316,"z":"edca08.43dcd5f8","wires":[["46c1a821.48d258"]]},{"id":"603dc095.e3be5","type":"comment","name":"vf-module-topology-operation-unassign","info":"","comments":"","x":517.2020034790039,"y":35.71428680419922,"z":"edca08.43dcd5f8","wires":[]},{"id":"877764f1.c72548","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":526.3809585571289,"y":266.98508071899414,"z":"edca08.43dcd5f8","wires":[["f225ee87.6fc45","ef1800ab.a957d"]]},{"id":"f225ee87.6fc45","type":"outcome","name":"DeleteVfModuleInstance","xml":"<outcome value='DeleteVfModuleInstance'>\n","comments":"","outputs":1,"x":788.4285736083984,"y":244.12796688079834,"z":"edca08.43dcd5f8","wires":[["a08696bd.a802e8"]]},{"id":"ef1800ab.a957d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":732.0952186584473,"y":289.50895595550537,"z":"edca08.43dcd5f8","wires":[["3cfd6dc.f729e92"]]},{"id":"a08696bd.a802e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":978.285737991333,"y":244.12799835205078,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"3cfd6dc.f729e92","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":997.0952262878418,"y":289.84226846694946,"z":"edca08.43dcd5f8","wires":[]},{"id":"18261499.1e3fdb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":145.47624969482422,"y":1185.0326652526855,"z":"edca08.43dcd5f8","wires":[["1e283363.50d6bd","213ab44b.d5f03c","ebb914a6.6be4e8","25e098c.2ec0168","f494cdbd.9a967","212261c0.2d1dee","45c51d4.c2a85e4","dde9da09.b2a228","73a90d31.ecce84","edfc93db.b0f24"]]},{"id":"265413e1.39158c","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":572.8571319580078,"y":411.4612560272217,"z":"edca08.43dcd5f8","wires":[["f74b05d0.b35e18","aedec041.8c0be"]]},{"id":"f74b05d0.b35e18","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":813.571403503418,"y":388.60399627685547,"z":"edca08.43dcd5f8","wires":[["39fc82f5.e1dcbe"]]},{"id":"aedec041.8c0be","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":813.3332443237305,"y":429.55651473999023,"z":"edca08.43dcd5f8","wires":[["2eb38eb5.7124a2"]]},{"id":"39fc82f5.e1dcbe","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":980.2380180358887,"y":387.8897514343262,"z":"edca08.43dcd5f8","wires":[]},{"id":"2eb38eb5.7124a2","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":975.5713882446289,"y":429.2231330871582,"z":"edca08.43dcd5f8","wires":[["9f5d1912.359358"]]},{"id":"9f5d1912.359358","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":1226.9046058654785,"y":428.88982009887695,"z":"edca08.43dcd5f8","wires":[["c1d5555a.ade058"]]},{"id":"c1d5555a.ade058","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1456.904697418213,"y":428.2231740951538,"z":"edca08.43dcd5f8","wires":[["aa0b499c.760688"]]},{"id":"1f8899f9.b231e6","type":"set","name":"set vnf-index to -1","xml":"<set>\n<parameter name='vnf-index' value='-1' />\n","comments":"","x":521.9047546386719,"y":342.88975524902344,"z":"edca08.43dcd5f8","wires":[]},{"id":"6aace9e1.3842a8","type":"set","name":"set vnf-index to idx","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1778.5713348388672,"y":399.2231321334839,"z":"edca08.43dcd5f8","wires":[]},{"id":"a5cd088e.80d568","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":511.9047622680664,"y":479.55645179748535,"z":"edca08.43dcd5f8","wires":[["2349c495.c77f4c"]]},{"id":"2349c495.c77f4c","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":690.2381477355957,"y":478.8898277282715,"z":"edca08.43dcd5f8","wires":[["9f767a43.0011a8"]]},{"id":"9f767a43.0011a8","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":850.2380561828613,"y":478.22313117980957,"z":"edca08.43dcd5f8","wires":[]},{"id":"aa0b499c.760688","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1605.2381591796875,"y":427.14287281036377,"z":"edca08.43dcd5f8","wires":[["6aace9e1.3842a8","1cf1261c.75af7a"]]},{"id":"1cf1261c.75af7a","type":"break","name":"break","xml":"<break>\n","comments":"","x":1740.238124847412,"y":448.809458732605,"z":"edca08.43dcd5f8","wires":[]},{"id":"f4f336f5.5dea88","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":536.1904449462891,"y":601.461259841919,"z":"edca08.43dcd5f8","wires":[["3896bab6.2db326","7cb8d84.f65b628"]]},{"id":"3896bab6.2db326","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":720.2380828857422,"y":580.2706642150879,"z":"edca08.43dcd5f8","wires":[["791c3ec1.974fb"]]},{"id":"7cb8d84.f65b628","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":719.9999237060547,"y":621.2231826782227,"z":"edca08.43dcd5f8","wires":[["6d076e62.18418"]]},{"id":"791c3ec1.974fb","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":886.9046974182129,"y":579.5564193725586,"z":"edca08.43dcd5f8","wires":[]},{"id":"6d076e62.18418","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":882.2380676269531,"y":620.8898010253906,"z":"edca08.43dcd5f8","wires":[["90fe8f40.82619"]]},{"id":"90fe8f40.82619","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":1188.5712280273438,"y":620.5565366744995,"z":"edca08.43dcd5f8","wires":[["7a4bf724.30d268"]]},{"id":"7a4bf724.30d268","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1458.5712814331055,"y":618.223141670227,"z":"edca08.43dcd5f8","wires":[["4519a894.e67f48"]]},{"id":"47fc1d3b.5c4464","type":"set","name":"set vf-module-index to -1","xml":"<set>\n<parameter name='vf-module-index' value='-1' />\n","comments":"","x":541.9047393798828,"y":536.2231178283691,"z":"edca08.43dcd5f8","wires":[]},{"id":"f8fd364b.a66e28","type":"set","name":"set vf-module-index to idx","xml":"<set>\n<parameter name='vf-module-index' value='`$idx`' />\n","comments":"","x":1788.5713729858398,"y":589.2231206893921,"z":"edca08.43dcd5f8","wires":[]},{"id":"4a2fa4b4.4280bc","type":"switchNode","name":"switch vf-module-index","xml":"<switch test='`$vf-module-index`'>\n","comments":"","outputs":1,"x":533.5714225769043,"y":672.8898305892944,"z":"edca08.43dcd5f8","wires":[["fff4784.69d9688"]]},{"id":"fff4784.69d9688","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":711.9048080444336,"y":672.2232065200806,"z":"edca08.43dcd5f8","wires":[["a0822a4d.3ed978"]]},{"id":"a0822a4d.3ed978","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":871.9047164916992,"y":671.5565099716187,"z":"edca08.43dcd5f8","wires":[]},{"id":"4519a894.e67f48","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1591.9048233032227,"y":617.1428813934326,"z":"edca08.43dcd5f8","wires":[["f8fd364b.a66e28","a4e65803.370178"]]},{"id":"a4e65803.370178","type":"break","name":"break","xml":"<break>\n","comments":"","x":1726.9047889709473,"y":638.8094673156738,"z":"edca08.43dcd5f8","wires":[]},{"id":"ef5a5aa5.646fa8","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":522.1428909301758,"y":988.366044998169,"z":"edca08.43dcd5f8","wires":[["e22e4cda.57e45","5acfa32e.6102ac"]]},{"id":"e22e4cda.57e45","type":"outcome","name":"Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":697.976261138916,"y":950.8660769462585,"z":"edca08.43dcd5f8","wires":[["8903485a.9e52b8"]]},{"id":"5acfa32e.6102ac","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":697.142879486084,"y":1008.3660278320312,"z":"edca08.43dcd5f8","wires":[["92f3b1b9.5f215"]]},{"id":"8903485a.9e52b8","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":866.3095016479492,"y":950.8660063743591,"z":"edca08.43dcd5f8","wires":[]},{"id":"92f3b1b9.5f215","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":872.1428909301758,"y":1008.0327033996582,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"213ab44b.d5f03c","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":648.8096160888672,"y":1105.0326957702637,"z":"edca08.43dcd5f8","wires":[["cdaabcdd.8298f"]]},{"id":"1e283363.50d6bd","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":518.8095855712891,"y":1058.3660278320312,"z":"edca08.43dcd5f8","wires":[]},{"id":"cdaabcdd.8298f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":953.8095245361328,"y":1103.3659954071045,"z":"edca08.43dcd5f8","wires":[["8bce0bc3.868868"]]},{"id":"8bce0bc3.868868","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":1143.8095512390137,"y":1103.1757307052612,"z":"edca08.43dcd5f8","wires":[]},{"id":"212261c0.2d1dee","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":582.1429138183594,"y":1200.0327167510986,"z":"edca08.43dcd5f8","wires":[["31fbed3d.bb13d2"]]},{"id":"31fbed3d.bb13d2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":818.8095397949219,"y":1200.0326595306396,"z":"edca08.43dcd5f8","wires":[["cd365e8a.c7ba6"]]},{"id":"cd365e8a.c7ba6","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":1008.8095664978027,"y":1199.8423948287964,"z":"edca08.43dcd5f8","wires":[]},{"id":"ebb914a6.6be4e8","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":513.8095703125,"y":1245.0326776504517,"z":"edca08.43dcd5f8","wires":[["81a4a3c8.aa3a3"]]},{"id":"81a4a3c8.aa3a3","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":708.8096008300781,"y":1244.3656854629517,"z":"edca08.43dcd5f8","wires":[["fb5f9b43.404218"]]},{"id":"9293b60a.f4f688","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1415.4766693115234,"y":1242.6982879638672,"z":"edca08.43dcd5f8","wires":[["8c5f749e.c355b8"]]},{"id":"cb8e4288.88df1","type":"comment","name":"Not a failure","info":"","comments":"","x":1693.8096656799316,"y":1241.0320901870728,"z":"edca08.43dcd5f8","wires":[]},{"id":"8c5f749e.c355b8","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":1561.47660446167,"y":1242.6989212036133,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"fb5f9b43.404218","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":877.142993927002,"y":1243.365530014038,"z":"edca08.43dcd5f8","wires":[["200c5e71.a0fd62"]]},{"id":"200c5e71.a0fd62","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":1163.8097076416016,"y":1243.0329599380493,"z":"edca08.43dcd5f8","wires":[["9293b60a.f4f688"]]},{"id":"35e0d06b.13a2e","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":1089.3173828125,"y":2350.3656997680664,"z":"edca08.43dcd5f8","wires":[["3aee46f3.7a0fca"]]},{"id":"fcb0b642.11b048","type":"comment","name":"Remove VF Module from service data","info":"","comments":"","x":468.14288330078125,"y":2305.6041402816772,"z":"edca08.43dcd5f8","wires":[]},{"id":"3aee46f3.7a0fca","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":1332.9085159301758,"y":2349.3896656036377,"z":"edca08.43dcd5f8","wires":[]},{"id":"25e098c.2ec0168","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":535.5753021240234,"y":2361.7073707580566,"z":"edca08.43dcd5f8","wires":[["27d9353f.6c425a","b11ba20f.3a1d3"]]},{"id":"27d9353f.6c425a","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":730.9086685180664,"y":2312.6119775772095,"z":"edca08.43dcd5f8","wires":[["9f2354ed.139ef8"]]},{"id":"9f2354ed.139ef8","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":902.9084396362305,"y":2312.612096786499,"z":"edca08.43dcd5f8","wires":[]},{"id":"b11ba20f.3a1d3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":729.5754241943359,"y":2407.3737869262695,"z":"edca08.43dcd5f8","wires":[["f4ca2943.e1d358"]]},{"id":"47204c51.64f514","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":1108.2049179077148,"y":2478.088176727295,"z":"edca08.43dcd5f8","wires":[]},{"id":"2011f2de.dfeffe","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":1143.9085311889648,"y":2434.1993141174316,"z":"edca08.43dcd5f8","wires":[]},{"id":"f4ca2943.e1d358","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":886.8133544921875,"y":2406.611788749695,"z":"edca08.43dcd5f8","wires":[["35e0d06b.13a2e","2011f2de.dfeffe","47204c51.64f514","d696060d.904598"]]},{"id":"f494cdbd.9a967","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":508.1429138183594,"y":2538.222993850708,"z":"edca08.43dcd5f8","wires":[]},{"id":"45c51d4.c2a85e4","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":510.4762268066406,"y":1150.9523582458496,"z":"edca08.43dcd5f8","wires":[]},{"id":"d696060d.904598","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":1062.0476989746094,"y":2390.604013442993,"z":"edca08.43dcd5f8","wires":[]},{"id":"8933ba69.750ac8","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":1532.642837524414,"y":1562.1191358566284,"z":"edca08.43dcd5f8","wires":[["1a7ae9f.bfc7216"]]},{"id":"1a7ae9f.bfc7216","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1716.9285430908203,"y":1562.119122505188,"z":"edca08.43dcd5f8","wires":[["f468ff3e.ef554"]]},{"id":"c3cb6173.44b2","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 = $aai.instance-group.instance-group[$ig-index].id\" >","comments":"","outputs":1,"x":2146.928497314453,"y":1561.928780555725,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"1f27993e.173167","type":"set","name":"set status variable","xml":"<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $aai.instance-group.instance-group[$ig-index].id`\" />\n","comments":"","x":2016.9284591674805,"y":1515.262152671814,"z":"edca08.43dcd5f8","wires":[]},{"id":"e5c1c0e6.96de7","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":2081.928466796875,"y":1606.9288244247437,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"c3990fef.4555a","type":"comment","name":"roll back EIPAM floating addresses","info":"","comments":"","x":2126.2141876220703,"y":1469.071978886922,"z":"edca08.43dcd5f8","wires":[]},{"id":"dde9da09.b2a228","type":"switchNode","name":"switch network-instance-group-function","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","comments":"","outputs":1,"x":580.4762496948242,"y":1377.6190690994263,"z":"edca08.43dcd5f8","wires":[["4f97f8c2.a0deb8","ca85af42.0739b"]]},{"id":"4f97f8c2.a0deb8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":805.4762191772461,"y":1345.9524021148682,"z":"edca08.43dcd5f8","wires":[["6a988e2a.0b0cc"]]},{"id":"ca85af42.0739b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":805.2380828857422,"y":1416.904797554016,"z":"edca08.43dcd5f8","wires":[["db124cac.14fa7"]]},{"id":"6a988e2a.0b0cc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":932.1429557800293,"y":1344.2857341766357,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"db124cac.14fa7","type":"get-resource","name":"get-resource instance group","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","comments":"","outputs":1,"x":1001.3096389770508,"y":1415.952374458313,"z":"edca08.43dcd5f8","wires":[["384eeb8f.ffb444"]]},{"id":"384eeb8f.ffb444","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1202.9762687683105,"y":1416.7857484817505,"z":"edca08.43dcd5f8","wires":[["c0ba523c.0e6c9"]]},{"id":"8d423e6c.0cf62","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1352.9762573242188,"y":1615.1192817687988,"z":"edca08.43dcd5f8","wires":[["8933ba69.750ac8","afb7d78e.98b0b8"]]},{"id":"f468ff3e.ef554","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1842.9761772155762,"y":1561.7858362197876,"z":"edca08.43dcd5f8","wires":[["1f27993e.173167","c3cb6173.44b2","e5c1c0e6.96de7"]]},{"id":"afb7d78e.98b0b8","type":"for","name":"for each network-instance-group","xml":"<for index='nig-index' start='0' end='`$service-data.network-instance-groups.network-instance-group_length`' >\n","comments":"","outputs":1,"x":1552.976188659668,"y":1670.1191711425781,"z":"edca08.43dcd5f8","wires":[["6df47669.2779f8"]]},{"id":"6df47669.2779f8","type":"switchNode","name":"network-instance-group-ids match?","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","comments":"","outputs":1,"x":1857.9760284423828,"y":1670.1192169189453,"z":"edca08.43dcd5f8","wires":[["c936fde6.ea6b5"]]},{"id":"c936fde6.ea6b5","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2079.6427993774414,"y":1668.7859954833984,"z":"edca08.43dcd5f8","wires":[["d40f9836.6816c8"]]},{"id":"d40f9836.6816c8","type":"for","name":"for each network","xml":"<for index='network-index' start='0' end='`$service-data.network-instance-groups.network-instance-group[$nig-index].networks.network_length`' >\n","comments":"","outputs":1,"x":2235.357135772705,"y":1667.5001211166382,"z":"edca08.43dcd5f8","wires":[["73a6e453.2dc27c"]]},{"id":"73a6e453.2dc27c","type":"set","name":"clear vlan-tag-id and set network-status to unassigned","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","comments":"","x":2546.7855682373047,"y":1666.0715837478638,"z":"edca08.43dcd5f8","wires":[]},{"id":"c0ba523c.0e6c9","type":"for","name":"for each returned instance-group","xml":"<for index='ig-index' start='0' end='`$aai.instance-group.instance-group_length`' >\n","comments":"","outputs":1,"x":1426.4762725830078,"y":1413.7857522964478,"z":"edca08.43dcd5f8","wires":[["b27bb7c.bac2148"]]},{"id":"b27bb7c.bac2148","type":"for","name":"for each relationship","xml":"<for index='rel-index' start='0' end='`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":1678.1429138183594,"y":1412.7857513427734,"z":"edca08.43dcd5f8","wires":[["5676aa24.301644"]]},{"id":"5676aa24.301644","type":"for","name":"for each relationship-data","xml":"<for index='reldata-index' start='0' end='`$aai.instance-group.instance-group[$ig-index].relationship-list.relationship[$rel-index].relationship-data_length`' >\n","comments":"","outputs":1,"x":1904.809585571289,"y":1412.119125366211,"z":"edca08.43dcd5f8","wires":[["722edf98.fcc32"]]},{"id":"722edf98.fcc32","type":"switchNode","name":"switch relationship-key == service-instance.service-instance-id","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","comments":"","outputs":1,"x":2263.1431732177734,"y":1412.119044303894,"z":"edca08.43dcd5f8","wires":[["bb7adcc6.be445"]]},{"id":"bb7adcc6.be445","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2559.8096313476562,"y":1412.1190767288208,"z":"edca08.43dcd5f8","wires":[["565dbbdc.5b1974"]]},{"id":"565dbbdc.5b1974","type":"switchNode","name":"switch relationship-value == this service-instance-id","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","comments":"","outputs":1,"x":2824.809455871582,"y":1412.1190462112427,"z":"edca08.43dcd5f8","wires":[["3623dcb7.0ba5a4"]]},{"id":"3623dcb7.0ba5a4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3084.809425354004,"y":1412.1190366744995,"z":"edca08.43dcd5f8","wires":[["8d423e6c.0cf62"]]},{"id":"73a90d31.ecce84","type":"for","name":"for each vm-type","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","comments":"","outputs":1,"x":521.3095855712891,"y":1980.865927696228,"z":"edca08.43dcd5f8","wires":[["5d05a061.91ad9"]]},{"id":"db962940.0240b8","type":"for","name":"for each vnfc","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","comments":"","outputs":1,"x":872.9763526916504,"y":2075.247173309326,"z":"edca08.43dcd5f8","wires":[["733586cf.315098"]]},{"id":"407d8547.27ee9c","type":"save","name":"delete vnfc in A&AI","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","comments":"","outputs":1,"x":1184.404857635498,"y":2117.770721435547,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"4dea7724.e6e7c8","type":"comment","name":"check removed with US622450","info":"","comments":"","x":1076.4286041259766,"y":978.3333659172058,"z":"edca08.43dcd5f8","wires":[]},{"id":"bd116d68.1b7b1","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1480.4758567810059,"y":2065.032509803772,"z":"edca08.43dcd5f8","wires":[["2161ecb4.8612d4","4b228352.15c6ec"]]},{"id":"4b228352.15c6ec","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":1792.7615928649902,"y":2089.604027748108,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"2161ecb4.8612d4","type":"set","name":"set variables for deleting VNFC name","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","comments":"","x":1712.5235481262207,"y":2042.4610977172852,"z":"edca08.43dcd5f8","wires":[]},{"id":"334d1abd.bce5c6","type":"switchNode","name":"switch vnfc-name","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","comments":"","outputs":1,"x":1180.80952835083,"y":2038.3657665252686,"z":"edca08.43dcd5f8","wires":[["97de8700.c67958","abf72ed3.2ae3d"]]},{"id":"97de8700.c67958","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1350.8095054626465,"y":2008.3657999038696,"z":"edca08.43dcd5f8","wires":[["8aceccf2.324bf"]]},{"id":"abf72ed3.2ae3d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1350.8094635009766,"y":2064.5563135147095,"z":"edca08.43dcd5f8","wires":[["bd116d68.1b7b1"]]},{"id":"8aceccf2.324bf","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1480.8093490600586,"y":2006.6991519927979,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"d790b9f2.093218","type":"comment","name":"Rollback any generated VM and VNFC names","info":"","comments":"","x":569.1426620483398,"y":1933.3659381866455,"z":"edca08.43dcd5f8","wires":[]},{"id":"5d05a061.91ad9","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":685.2138137817383,"y":1981.2712144851685,"z":"edca08.43dcd5f8","wires":[["b4709ea8.e1a46","db962940.0240b8","d8542c95.9e6d4"]]},{"id":"b4709ea8.e1a46","type":"for","name":"for each vm-name","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","comments":"","outputs":1,"x":893.5470504760742,"y":1901.2714567184448,"z":"edca08.43dcd5f8","wires":[["c63cd25e.7f96c"]]},{"id":"c63cd25e.7f96c","type":"switchNode","name":"switch vm-name","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","comments":"","outputs":1,"x":1088.5470962524414,"y":1902.9380960464478,"z":"edca08.43dcd5f8","wires":[["c87987a3.006058","ac104589.688508"]]},{"id":"c87987a3.006058","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1241.8804092407227,"y":1874.6047620773315,"z":"edca08.43dcd5f8","wires":[["b2c06f9a.6b335"]]},{"id":"b2c06f9a.6b335","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1371.8802528381348,"y":1872.9381141662598,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"1835d1da.8d6fbe","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1373.5471572875977,"y":1932.9380750656128,"z":"edca08.43dcd5f8","wires":[["6872fb60.d87f74","6b9ed6d8.a03198"]]},{"id":"ac104589.688508","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1243.8807640075684,"y":1932.4618787765503,"z":"edca08.43dcd5f8","wires":[["1835d1da.8d6fbe"]]},{"id":"6b9ed6d8.a03198","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":1673.5470352172852,"y":1957.9380750656128,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"6872fb60.d87f74","type":"set","name":"set variables for deleting VM name","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","comments":"","x":1588.3089294433594,"y":1910.7951068878174,"z":"edca08.43dcd5f8","wires":[]},{"id":"733586cf.315098","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1020.476261138916,"y":2074.032554626465,"z":"edca08.43dcd5f8","wires":[["334d1abd.bce5c6","407d8547.27ee9c"]]},{"id":"edfc93db.b0f24","type":"switchNode","name":"switch vf-module-name","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","comments":"","outputs":1,"x":533.8095474243164,"y":1771.6993923187256,"z":"edca08.43dcd5f8","wires":[["8273d9f2.da4e78","2f2f0cce.6db7a4"]]},{"id":"8273d9f2.da4e78","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":710.4761734008789,"y":1797.5326251983643,"z":"edca08.43dcd5f8","wires":[["b6cced29.52f11"]]},{"id":"2f2f0cce.6db7a4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":712.5714340209961,"y":1746.3185300827026,"z":"edca08.43dcd5f8","wires":[["68d97b79.44c654"]]},{"id":"68d97b79.44c654","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":835.1428527832031,"y":1744.699390411377,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"b6cced29.52f11","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":857.4761390686035,"y":1798.0326652526855,"z":"edca08.43dcd5f8","wires":[["8de0ac4a.3fc46","8e085c7d.0b77e"]]},{"id":"8e085c7d.0b77e","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-unique-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-unique-name' mode='sync' >\n","comments":"","outputs":1,"x":1207.1428298950195,"y":1818.3659992218018,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"8de0ac4a.3fc46","type":"set","name":"set variables for deleting VF module name","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","comments":"","x":1120.2377624511719,"y":1774.0802898406982,"z":"edca08.43dcd5f8","wires":[]},{"id":"d8542c95.9e6d4","type":"for","name":"for each vm-network","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","comments":"","outputs":1,"x":897.1428756713867,"y":2213.365894317627,"z":"edca08.43dcd5f8","wires":[["9dbaf8be.2c5a78"]]},{"id":"9dbaf8be.2c5a78","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1086.9761962890625,"y":2212.865333557129,"z":"edca08.43dcd5f8","wires":[["b9e9da24.8c82f8"]]},{"id":"b9e9da24.8c82f8","type":"for","name":"for each vnfc","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","comments":"","outputs":1,"x":1240.9762573242188,"y":2211.5321588516235,"z":"edca08.43dcd5f8","wires":[["e2b9d78b.cc4bf8"]]},{"id":"e2b9d78b.cc4bf8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1399.309642791748,"y":2211.5321521759033,"z":"edca08.43dcd5f8","wires":[["bc08d54a.866b08","f2f380ca.fd766"]]},{"id":"bc08d54a.866b08","type":"for","name":"for each floating ipv4 address","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","comments":"","outputs":1,"x":1604.1426620483398,"y":2180.698776245117,"z":"edca08.43dcd5f8","wires":[["84da1564.384538"]]},{"id":"f2f380ca.fd766","type":"for","name":"for each floating ipv6 address","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","comments":"","outputs":1,"x":1604.8092575073242,"y":2237.6985359191895,"z":"edca08.43dcd5f8","wires":[["f7a702cd.67dd4"]]},{"id":"84da1564.384538","type":"delete","name":"delete vip-ipv4-address-list from A&AI","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]\" >","comments":"","outputs":1,"x":1908.1426620483398,"y":2180.698776245117,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"f7a702cd.67dd4","type":"delete","name":"delete vip-ipv6-address-list from A&AI","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]\" >","comments":"","outputs":1,"x":1906.8092575073242,"y":2236.365406036377,"z":"edca08.43dcd5f8","wires":[[]]},{"id":"46c1a821.48d258","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":187.14285278320312,"y":479.99999618530273,"z":"edca08.43dcd5f8","wires":[["877764f1.c72548","1f8899f9.b231e6","265413e1.39158c","a5cd088e.80d568","47fc1d3b.5c4464","f4f336f5.5dea88","4a2fa4b4.4280bc","b03149b9.a4a018"]]},{"id":"b03149b9.a4a018","type":"switchNode","name":"switch: sdnc-generated-cloud-resources","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.sdnc-generated-cloud-resources`'>\n","comments":"","outputs":1,"x":584.2857055664062,"y":745.7142944335938,"z":"edca08.43dcd5f8","wires":[["f52095ab.b5aa28","4cbc82c3.2a450c"]]},{"id":"f52095ab.b5aa28","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":844.0357513427734,"y":745.7142963409424,"z":"edca08.43dcd5f8","wires":[["a838eae6.120f88"]]},{"id":"a838eae6.120f88","type":"call","name":"call self-serve-vf-module-unassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-unassign' mode='sync' >\n","comments":"","outputs":1,"x":1063.0713653564453,"y":745.4642925262451,"z":"edca08.43dcd5f8","wires":[["48b43ca2.72b954","6980526.c2eb1ac"]]},{"id":"48b43ca2.72b954","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1307.8213500976562,"y":745.7142810821533,"z":"edca08.43dcd5f8","wires":[["737083a6.fa25bc"]]},{"id":"737083a6.fa25bc","type":"returnFailure","name":"return failure","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","comments":"","x":1473.3927764892578,"y":745.3571758270264,"z":"edca08.43dcd5f8","wires":[]},{"id":"4cbc82c3.2a450c","type":"other","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":845.4285278320312,"y":789.1269626617432,"z":"edca08.43dcd5f8","wires":[["18261499.1e3fdb"]]},{"id":"6980526.c2eb1ac","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1312.428524017334,"y":796.2698154449463,"z":"edca08.43dcd5f8","wires":[["9574322f.8a1c2"]]},{"id":"9574322f.8a1c2","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":1480.9999389648438,"y":795.8412570953369,"z":"edca08.43dcd5f8","wires":[]}]
\ No newline at end of file
+[\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