[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vf-module-topology-changeassign.json
index d12a01c..1c51955 100644 (file)
@@ -1,4 +1,694 @@
-
-
-
-[{"id":"74fb79ea.032e48","type":"dgstart","name":"DGSTART","outputs":1,"x":122.85714721679688,"y":60,"z":"82b724af.168de8","wires":[["1f56866e.5a45aa"]]},{"id":"1f56866e.5a45aa","type":"service-logic","name":"VNF-API 1.0.0","module":"VNF-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.att.com/sdnctl/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.att.com/sdnctl/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>","outputs":1,"x":288.0238037109375,"y":60.16667175292969,"z":"82b724af.168de8","wires":[["7d1ef972.4819e8"]]},{"id":"ded9641e.047bb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":200.3571548461914,"y":163,"z":"82b724af.168de8","wires":[["74023518.66a7dc","53b04d88.f911e4","ee20442e.3ca3d8","4e4ca37c.97abbc","3db50ae5.43abb6","6af9e30c.118d8c","64e590aa.7bcaa","490cb041.34c72","3520790.e294188","8646627b.abeda","df4daff8.410d8"]]},{"id":"74023518.66a7dc","type":"set","name":"set: order-status = PendingUpdate","xml":"<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"PendingUpdate\"/>","comments":"","outputs":1,"x":495.8020248413086,"y":887.4610958099365,"z":"82b724af.168de8","wires":[[]]},{"id":"53b04d88.f911e4","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":434.07183837890625,"y":1022.2609748840332,"z":"82b724af.168de8","wires":[]},{"id":"ee20442e.3ca3d8","type":"switchNode","name":"switch: service-data order-status = Active","xml":"<switch test=\"`$vf-module-service-data.oper-status.order-status == Active`\">","comments":"","outputs":1,"x":515.5238189697266,"y":162.88889145851135,"z":"82b724af.168de8","wires":[["6f57b256.79d63c"]]},{"id":"2efaeb27.a894b4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid service-data order status'/>","comments":"","x":920.2736358642578,"y":162.72226548194885,"z":"82b724af.168de8","wires":[]},{"id":"6f57b256.79d63c","type":"other","name":"false","xml":"<outcome value='false'>","comments":"","outputs":1,"x":761.6904449462891,"y":162.47214341163635,"z":"82b724af.168de8","wires":[["2efaeb27.a894b4"]]},{"id":"7d1ef972.4819e8","type":"method","name":"method vf-module-topology-changeassign","xml":"<method rpc='vf-module-topology-changeassign' mode='sync'>\n","comments":"","outputs":1,"x":222.85714721679688,"y":111,"z":"82b724af.168de8","wires":[["ded9641e.047bb8"]]},{"id":"4e4ca37c.97abbc","type":"set","name":"set: last-action ","xml":"<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-module-service-data.request-information.request-action`\"/>","comments":"","outputs":1,"x":433.80957794189453,"y":933.476110458374,"z":"82b724af.168de8","wires":[[]]},{"id":"3db50ae5.43abb6","type":"set","name":"set: last-order-status = order-status","xml":"<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>","comments":"","outputs":1,"x":497.80957794189453,"y":841.476110458374,"z":"82b724af.168de8","wires":[[]]},{"id":"6af9e30c.118d8c","type":"call","name":"call: vf-module-topology-assign-vnf-neworks","xml":"<call module='VNF-API' rpc='vf-module-topology-assign-vnf-networks' mode='sync' >","comments":"","outputs":1,"x":523.7460479736328,"y":208.66666793823242,"z":"82b724af.168de8","wires":[[]]},{"id":"490cb041.34c72","type":"save","name":"delete l3-network relationship","xml":"<delete plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >","comments":"","outputs":1,"x":478.7778015136719,"y":339.9049777984619,"z":"82b724af.168de8","wires":[["9028380b.6c4ac8"]]},{"id":"557a38ee.a802f8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while deleting existing vf-module l3-network relationship in AnAI with with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id + ' vf-module update FAILED.'`\"/>","comments":"","x":880.6347961425781,"y":340.1903476715088,"z":"82b724af.168de8","wires":[]},{"id":"64e590aa.7bcaa","type":"save","name":"get AnAI - vf-module","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" \n\t\tpfx=\"tmp.AnAI.vfmodule\">","comments":"","outputs":1,"x":452.63490295410156,"y":253.55555725097656,"z":"82b724af.168de8","wires":[["6fd52d0e.ed4644","85739c68.20d2c"]]},{"id":"795ec745.e145d8","type":"save","name":"save l3-network relationship","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />","comments":"","outputs":1,"x":799.5909881591797,"y":429.90022468566895,"z":"82b724af.168de8","wires":[["c6d96495.8cf3e8"]]},{"id":"c6d96495.8cf3e8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1012.7352294921875,"y":429.94725704193115,"z":"82b724af.168de8","wires":[["fc96e652.96f9f8"]]},{"id":"3520790.e294188","type":"for","name":"for i : SERVICE_DATA vnf-networks","xml":"<for index=\"i\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">","comments":"","outputs":1,"x":495.80943298339844,"y":429.44017601013184,"z":"82b724af.168de8","wires":[["795ec745.e145d8"]]},{"id":"cbdefadd.2eea08","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update vf-module l3-network relationship in AnAI. ' + $error-message`\"/>","comments":"","x":1368.928123474121,"y":789.1421012878418,"z":"82b724af.168de8","wires":[]},{"id":"fc96e652.96f9f8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1181.713981628418,"y":429.1780004501343,"z":"82b724af.168de8","wires":[["cbdefadd.2eea08","c910e4b6.a9df08","434af9d5.0675a8","264625a3.d0bf3a","52f02717.530ac8"]]},{"id":"434af9d5.0675a8","type":"save","name":"delete relationship: vf-module","xml":"<delete plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >","comments":"","outputs":1,"x":1421.2140502929688,"y":477.10680198669434,"z":"82b724af.168de8","wires":[[]]},{"id":"d3e9f0df.7a967","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying vf-module from AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>","comments":"","x":833.9204864501953,"y":254.2696990966797,"z":"82b724af.168de8","wires":[]},{"id":"9028380b.6c4ac8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":694.6349182128906,"y":340.3333225250244,"z":"82b724af.168de8","wires":[["557a38ee.a802f8"]]},{"id":"8646627b.abeda","type":"set","name":"Set final indicator to Y","xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","outputs":1,"x":455.4286117553711,"y":979.4286098480225,"z":"82b724af.168de8","wires":[[]]},{"id":"264625a3.d0bf3a","type":"for","name":"for i : tmp.AnAI.vfmodule.relationship","xml":"<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">","comments":"","outputs":1,"x":1445.1783752441406,"y":568.0000343322754,"z":"82b724af.168de8","wires":[["e2842577.e43338"]]},{"id":"e2842577.e43338","type":"switchNode","name":"switch: relationship.related-to","xml":"<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].related-to`\">","comments":"","outputs":1,"x":1756.1783447265625,"y":567.7143545150757,"z":"82b724af.168de8","wires":[["6c2ffb96.bbe484"]]},{"id":"6c2ffb96.bbe484","type":"other","name":"l3-network","xml":"<outcome value='l3-network'>","comments":"","outputs":1,"x":1984.1783447265625,"y":567.7143545150757,"z":"82b724af.168de8","wires":[["ee9c3f17.36cc2"]]},{"id":"a605f7c0.31a3b8","type":"for","name":"for j : tmp.AnAI.vfmodule.relationship-data","xml":"<for index=\"j\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">","comments":"","outputs":1,"x":1884.1783752441406,"y":702.6071891784668,"z":"82b724af.168de8","wires":[["75b5e472.e4c3ac"]]},{"id":"75b5e472.e4c3ac","type":"save","name":"save l3-network relationship","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\" />","comments":"","outputs":1,"x":2241.7498321533203,"y":702.750072479248,"z":"82b724af.168de8","wires":[["706c56b8.8643e8","5f66312e.f434f"]]},{"id":"706c56b8.8643e8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2499.7498321533203,"y":702.750072479248,"z":"82b724af.168de8","wires":[["7dd21ad6.da13b4"]]},{"id":"6fd52d0e.ed4644","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":642.4920768737793,"y":253.69842529296875,"z":"82b724af.168de8","wires":[["d3e9f0df.7a967"]]},{"id":"c910e4b6.a9df08","type":"set","name":"set error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`' | An error occurred while saving l3-network relationship with network-id = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id + ' for vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n","comments":"","outputs":1,"x":1386.2141189575195,"y":429.10716819763184,"z":"82b724af.168de8","wires":[[]]},{"id":"7dd21ad6.da13b4","type":"set","name":"set error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`$error-message + ' | An error occurred while during rollback of l3-network relationship for vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n","comments":"","outputs":1,"x":2697.7141494750977,"y":702.285717010498,"z":"82b724af.168de8","wires":[[]]},{"id":"85739c68.20d2c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":649.3849029541016,"y":296.1388702392578,"z":"82b724af.168de8","wires":[["d3e9f0df.7a967"]]},{"id":"5f66312e.f434f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2510.0355377197266,"y":743.9285688400269,"z":"82b724af.168de8","wires":[["7dd21ad6.da13b4"]]},{"id":"75eb4741.287e38","type":"switchNode","name":"set: vf-module-service-data...vnf-networks_length = 0","xml":"<set>\n\t<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />","comments":"","outputs":1,"x":1134.9840469360352,"y":384.7142581939697,"z":"82b724af.168de8","wires":[[]]},{"id":"6c3f0f76.71273","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":836.2340469360352,"y":384.7142581939697,"z":"82b724af.168de8","wires":[["75eb4741.287e38"]]},{"id":"df4daff8.410d8","type":"switchNode","name":"switch: vf-module-service-data...vnf-networks_length","xml":"<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">","comments":"","outputs":1,"x":548.7340545654297,"y":384.7142581939697,"z":"82b724af.168de8","wires":[["6c3f0f76.71273"]]},{"id":"7ee2d878.734fd8","type":"switchNode","name":"set: tmp.AnAI.vfmodule.relationship-list.relationship_length = 0","xml":"<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship_length\" value = \"0\" />","comments":"","outputs":1,"x":2168.9999923706055,"y":524.0000495910645,"z":"82b724af.168de8","wires":[[]]},{"id":"a0c959dc.928788","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1851.2499923706055,"y":524.0000495910645,"z":"82b724af.168de8","wires":[["7ee2d878.734fd8"]]},{"id":"52f02717.530ac8","type":"switchNode","name":"switch: tmp.AnAI.vfmodule.relationship-list.relationship_length","xml":"<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">","comments":"","outputs":1,"x":1530.75,"y":524.0000495910645,"z":"82b724af.168de8","wires":[["a0c959dc.928788"]]},{"id":"767a5f43.e2cc1","type":"switchNode","name":"set: tmp.AnAI.vfmodulerelationship-list.relationship[$i].relationship-data_length = 0","xml":"<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length\" value = \"0\" />","comments":"","outputs":1,"x":2777.0000228881836,"y":655.0000133514404,"z":"82b724af.168de8","wires":[[]]},{"id":"4e18247d.2004dc","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2392.2500228881836,"y":655.0000133514404,"z":"82b724af.168de8","wires":[["767a5f43.e2cc1"]]},{"id":"a926fa42.76f768","type":"switchNode","name":"switch: tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length","xml":"<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">","comments":"","outputs":1,"x":2008.7500305175781,"y":655.0000133514404,"z":"82b724af.168de8","wires":[["4e18247d.2004dc"]]},{"id":"ee9c3f17.36cc2","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1596.2500228881836,"y":654.7500095367432,"z":"82b724af.168de8","wires":[["a926fa42.76f768","a605f7c0.31a3b8"]]}]
+[
+    {
+        "id": "74fb79ea.032e48",
+        "type": "dgstart",
+        "name": "DGSTART",
+        "outputs": 1,
+        "x": 122.85714721679688,
+        "y": 60,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "1f56866e.5a45aa"
+            ]
+        ]
+    },
+    {
+        "id": "1f56866e.5a45aa",
+        "type": "service-logic",
+        "name": "VNF-API ${project.version}",
+        "module": "VNF-API",
+        "version": "${project.version}",
+        "comments": "",
+        "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
+        "outputs": 1,
+        "x": 288.0238037109375,
+        "y": 60.16667175292969,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "7d1ef972.4819e8"
+            ]
+        ]
+    },
+    {
+        "id": "ded9641e.047bb8",
+        "type": "block",
+        "name": "block : atomic",
+        "xml": "<block atomic=\"true\">",
+        "atomic": "true",
+        "outputs": 1,
+        "x": 200.3571548461914,
+        "y": 163,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "74023518.66a7dc",
+                "53b04d88.f911e4",
+                "ee20442e.3ca3d8",
+                "4e4ca37c.97abbc",
+                "3db50ae5.43abb6",
+                "6af9e30c.118d8c",
+                "64e590aa.7bcaa",
+                "490cb041.34c72",
+                "3520790.e294188",
+                "8646627b.abeda",
+                "df4daff8.410d8"
+            ]
+        ]
+    },
+    {
+        "id": "74023518.66a7dc",
+        "type": "set",
+        "name": "set: order-status = PendingUpdate",
+        "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"PendingUpdate\"/>",
+        "comments": "",
+        "outputs": 1,
+        "x": 495.8020248413086,
+        "y": 887.4610958099365,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "53b04d88.f911e4",
+        "type": "returnSuccess",
+        "name": "return success",
+        "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
+        "comments": "",
+        "x": 434.07183837890625,
+        "y": 1022.2609748840332,
+        "z": "82b724af.168de8",
+        "wires": []
+    },
+    {
+        "id": "ee20442e.3ca3d8",
+        "type": "switchNode",
+        "name": "switch: service-data order-status = Active",
+        "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == Active`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 515.5238189697266,
+        "y": 162.88889145851135,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "6f57b256.79d63c"
+            ]
+        ]
+    },
+    {
+        "id": "2efaeb27.a894b4",
+        "type": "returnFailure",
+        "name": "return failure",
+        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid service-data order status'/>",
+        "comments": "",
+        "x": 920.2736358642578,
+        "y": 162.72226548194885,
+        "z": "82b724af.168de8",
+        "wires": []
+    },
+    {
+        "id": "6f57b256.79d63c",
+        "type": "other",
+        "name": "false",
+        "xml": "<outcome value='false'>",
+        "comments": "",
+        "outputs": 1,
+        "x": 761.6904449462891,
+        "y": 162.47214341163635,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "2efaeb27.a894b4"
+            ]
+        ]
+    },
+    {
+        "id": "7d1ef972.4819e8",
+        "type": "method",
+        "name": "method vf-module-topology-changeassign",
+        "xml": "<method rpc='vf-module-topology-changeassign' mode='sync'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 222.85714721679688,
+        "y": 111,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "ded9641e.047bb8"
+            ]
+        ]
+    },
+    {
+        "id": "4e4ca37c.97abbc",
+        "type": "set",
+        "name": "set: last-action ",
+        "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-module-service-data.request-information.request-action`\"/>",
+        "comments": "",
+        "outputs": 1,
+        "x": 433.80957794189453,
+        "y": 933.476110458374,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "3db50ae5.43abb6",
+        "type": "set",
+        "name": "set: last-order-status = order-status",
+        "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>",
+        "comments": "",
+        "outputs": 1,
+        "x": 497.80957794189453,
+        "y": 841.476110458374,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "6af9e30c.118d8c",
+        "type": "call",
+        "name": "call: vf-module-topology-assign-vnf-neworks",
+        "xml": "<call module='VNF-API' rpc='vf-module-topology-assign-vnf-networks' mode='sync' >",
+        "comments": "",
+        "outputs": 1,
+        "x": 523.7460479736328,
+        "y": 208.66666793823242,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "490cb041.34c72",
+        "type": "save",
+        "name": "delete l3-network relationship",
+        "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
+        "comments": "",
+        "outputs": 1,
+        "x": 478.7778015136719,
+        "y": 339.9049777984619,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "9028380b.6c4ac8"
+            ]
+        ]
+    },
+    {
+        "id": "557a38ee.a802f8",
+        "type": "returnFailure",
+        "name": "return failure",
+        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while deleting existing vf-module l3-network relationship in AnAI with with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id + ' vf-module update FAILED.'`\"/>",
+        "comments": "",
+        "x": 880.6347961425781,
+        "y": 340.1903476715088,
+        "z": "82b724af.168de8",
+        "wires": []
+    },
+    {
+        "id": "64e590aa.7bcaa",
+        "type": "save",
+        "name": "get AnAI - vf-module",
+        "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" \n\t\tpfx=\"tmp.AnAI.vfmodule\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 452.63490295410156,
+        "y": 253.55555725097656,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "6fd52d0e.ed4644",
+                "85739c68.20d2c"
+            ]
+        ]
+    },
+    {
+        "id": "795ec745.e145d8",
+        "type": "save",
+        "name": "save l3-network relationship",
+        "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
+        "comments": "",
+        "outputs": 1,
+        "x": 799.5909881591797,
+        "y": 429.90022468566895,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "c6d96495.8cf3e8"
+            ]
+        ]
+    },
+    {
+        "id": "c6d96495.8cf3e8",
+        "type": "failure",
+        "name": "failure",
+        "xml": "<outcome value='failure'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1012.7352294921875,
+        "y": 429.94725704193115,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "fc96e652.96f9f8"
+            ]
+        ]
+    },
+    {
+        "id": "3520790.e294188",
+        "type": "for",
+        "name": "for i : SERVICE_DATA vnf-networks",
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 495.80943298339844,
+        "y": 429.44017601013184,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "795ec745.e145d8"
+            ]
+        ]
+    },
+    {
+        "id": "cbdefadd.2eea08",
+        "type": "returnFailure",
+        "name": "return failure",
+        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update vf-module l3-network relationship in AnAI. ' + $error-message`\"/>",
+        "comments": "",
+        "x": 1368.928123474121,
+        "y": 789.1421012878418,
+        "z": "82b724af.168de8",
+        "wires": []
+    },
+    {
+        "id": "fc96e652.96f9f8",
+        "type": "block",
+        "name": "block : atomic",
+        "xml": "<block atomic='true'>",
+        "atomic": "true",
+        "comments": "",
+        "outputs": 1,
+        "x": 1181.713981628418,
+        "y": 429.1780004501343,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "cbdefadd.2eea08",
+                "c910e4b6.a9df08",
+                "434af9d5.0675a8",
+                "264625a3.d0bf3a",
+                "52f02717.530ac8"
+            ]
+        ]
+    },
+    {
+        "id": "434af9d5.0675a8",
+        "type": "save",
+        "name": "delete relationship: vf-module",
+        "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
+        "comments": "",
+        "outputs": 1,
+        "x": 1421.2140502929688,
+        "y": 477.10680198669434,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "d3e9f0df.7a967",
+        "type": "returnFailure",
+        "name": "return failure",
+        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying vf-module from AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
+        "comments": "",
+        "x": 833.9204864501953,
+        "y": 254.2696990966797,
+        "z": "82b724af.168de8",
+        "wires": []
+    },
+    {
+        "id": "9028380b.6c4ac8",
+        "type": "failure",
+        "name": "failure",
+        "xml": "<outcome value='failure'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 694.6349182128906,
+        "y": 340.3333225250244,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "557a38ee.a802f8"
+            ]
+        ]
+    },
+    {
+        "id": "8646627b.abeda",
+        "type": "set",
+        "name": "Set final indicator to Y",
+        "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
+        "comments": "",
+        "outputs": 1,
+        "x": 455.4286117553711,
+        "y": 979.4286098480225,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "264625a3.d0bf3a",
+        "type": "for",
+        "name": "for i : tmp.AnAI.vfmodule.relationship",
+        "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 1445.1783752441406,
+        "y": 568.0000343322754,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "e2842577.e43338"
+            ]
+        ]
+    },
+    {
+        "id": "e2842577.e43338",
+        "type": "switchNode",
+        "name": "switch: relationship.related-to",
+        "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].related-to`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 1756.1783447265625,
+        "y": 567.7143545150757,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "6c2ffb96.bbe484"
+            ]
+        ]
+    },
+    {
+        "id": "6c2ffb96.bbe484",
+        "type": "other",
+        "name": "l3-network",
+        "xml": "<outcome value='l3-network'>",
+        "comments": "",
+        "outputs": 1,
+        "x": 1984.1783447265625,
+        "y": 567.7143545150757,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "ee9c3f17.36cc2"
+            ]
+        ]
+    },
+    {
+        "id": "a605f7c0.31a3b8",
+        "type": "for",
+        "name": "for j : tmp.AnAI.vfmodule.relationship-data",
+        "xml": "<for index=\"j\" start=\"0\" end=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 1884.1783752441406,
+        "y": 702.6071891784668,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "75b5e472.e4c3ac"
+            ]
+        ]
+    },
+    {
+        "id": "75b5e472.e4c3ac",
+        "type": "save",
+        "name": "save l3-network relationship",
+        "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data[$j].relationship-value`\" />",
+        "comments": "",
+        "outputs": 1,
+        "x": 2241.7498321533203,
+        "y": 702.750072479248,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "706c56b8.8643e8",
+                "5f66312e.f434f"
+            ]
+        ]
+    },
+    {
+        "id": "706c56b8.8643e8",
+        "type": "failure",
+        "name": "failure",
+        "xml": "<outcome value='failure'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 2499.7498321533203,
+        "y": 702.750072479248,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "7dd21ad6.da13b4"
+            ]
+        ]
+    },
+    {
+        "id": "6fd52d0e.ed4644",
+        "type": "failure",
+        "name": "failure",
+        "xml": "<outcome value='failure'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 642.4920768737793,
+        "y": 253.69842529296875,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "d3e9f0df.7a967"
+            ]
+        ]
+    },
+    {
+        "id": "c910e4b6.a9df08",
+        "type": "set",
+        "name": "set error-message",
+        "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`' | An error occurred while saving l3-network relationship with network-id = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id + ' for vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1386.2141189575195,
+        "y": 429.10716819763184,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "7dd21ad6.da13b4",
+        "type": "set",
+        "name": "set error-message",
+        "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`$error-message + ' | An error occurred while during rollback of l3-network relationship for vf-module with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and generic-vnf-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\" />\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 2697.7141494750977,
+        "y": 702.285717010498,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "85739c68.20d2c",
+        "type": "not-found",
+        "name": "not-found",
+        "xml": "<outcome value='not-found'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 649.3849029541016,
+        "y": 296.1388702392578,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "d3e9f0df.7a967"
+            ]
+        ]
+    },
+    {
+        "id": "5f66312e.f434f",
+        "type": "not-found",
+        "name": "not-found",
+        "xml": "<outcome value='not-found'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 2510.0355377197266,
+        "y": 743.9285688400269,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "7dd21ad6.da13b4"
+            ]
+        ]
+    },
+    {
+        "id": "75eb4741.287e38",
+        "type": "switchNode",
+        "name": "set: vf-module-service-data...vnf-networks_length = 0",
+        "xml": "<set>\n\t<parameter name=\"vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length\" value = \"0\" />",
+        "comments": "",
+        "outputs": 1,
+        "x": 1134.9840469360352,
+        "y": 384.7142581939697,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "6c3f0f76.71273",
+        "type": "other",
+        "name": "NULL",
+        "xml": "<outcome value=''>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 836.2340469360352,
+        "y": 384.7142581939697,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "75eb4741.287e38"
+            ]
+        ]
+    },
+    {
+        "id": "df4daff8.410d8",
+        "type": "switchNode",
+        "name": "switch: vf-module-service-data...vnf-networks_length",
+        "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 548.7340545654297,
+        "y": 384.7142581939697,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "6c3f0f76.71273"
+            ]
+        ]
+    },
+    {
+        "id": "7ee2d878.734fd8",
+        "type": "switchNode",
+        "name": "set: tmp.AnAI.vfmodule.relationship-list.relationship_length = 0",
+        "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship_length\" value = \"0\" />",
+        "comments": "",
+        "outputs": 1,
+        "x": 2168.9999923706055,
+        "y": 524.0000495910645,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "a0c959dc.928788",
+        "type": "other",
+        "name": "NULL",
+        "xml": "<outcome value=''>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1851.2499923706055,
+        "y": 524.0000495910645,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "7ee2d878.734fd8"
+            ]
+        ]
+    },
+    {
+        "id": "52f02717.530ac8",
+        "type": "switchNode",
+        "name": "switch: tmp.AnAI.vfmodule.relationship-list.relationship_length",
+        "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 1530.75,
+        "y": 524.0000495910645,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "a0c959dc.928788"
+            ]
+        ]
+    },
+    {
+        "id": "767a5f43.e2cc1",
+        "type": "switchNode",
+        "name": "set: tmp.AnAI.vfmodulerelationship-list.relationship[$i].relationship-data_length = 0",
+        "xml": "<set>\n\t<parameter name=\"tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length\" value = \"0\" />",
+        "comments": "",
+        "outputs": 1,
+        "x": 2777.0000228881836,
+        "y": 655.0000133514404,
+        "z": "82b724af.168de8",
+        "wires": [
+            []
+        ]
+    },
+    {
+        "id": "4e18247d.2004dc",
+        "type": "other",
+        "name": "NULL",
+        "xml": "<outcome value=''>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 2392.2500228881836,
+        "y": 655.0000133514404,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "767a5f43.e2cc1"
+            ]
+        ]
+    },
+    {
+        "id": "a926fa42.76f768",
+        "type": "switchNode",
+        "name": "switch: tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length",
+        "xml": "<switch test=\"`$tmp.AnAI.vfmodule.relationship-list.relationship[$i].relationship-data_length`\">",
+        "comments": "",
+        "outputs": 1,
+        "x": 2008.7500305175781,
+        "y": 655.0000133514404,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "4e18247d.2004dc"
+            ]
+        ]
+    },
+    {
+        "id": "ee9c3f17.36cc2",
+        "type": "block",
+        "name": "block : atomic",
+        "xml": "<block atomic='true'>",
+        "atomic": "true",
+        "comments": "",
+        "outputs": 1,
+        "x": 1596.2500228881836,
+        "y": 654.7500095367432,
+        "z": "82b724af.168de8",
+        "wires": [
+            [
+                "a926fa42.76f768",
+                "a605f7c0.31a3b8"
+            ]
+        ]
+    }
+]
\ No newline at end of file