GRAPI DG enhancement
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
index 2eac997..cbe137c 100644 (file)
@@ -1 +1,5798 @@
-[{"id":"f07e5af5.2a81a8","type":"dgstart","name":"DGSTART","outputs":1,"x":100,"y":80.74699592590332,"z":"4e44f4dc.d3fbac","wires":[["7dfb89c0.30c288"]]},{"id":"7dfb89c0.30c288","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":215.28570556640625,"y":122.65177536010742,"z":"4e44f4dc.d3fbac","wires":[["1bd914ea.94267b"]]},{"id":"1bd914ea.94267b","type":"method","name":"method vnf-topology-operation-assign","xml":"<method rpc='vnf-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":188.09530639648438,"y":165.41365909576416,"z":"4e44f4dc.d3fbac","wires":[["11bf25d2.bdb8da"]]},{"id":"2e619ce7.bf2e34","type":"comment","name":"vnf-topology-operation-assign","info":"","comments":"","x":476.0115280151367,"y":30,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b32ac93e.aaa508","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":486.3809509277344,"y":313.8898277282715,"z":"4e44f4dc.d3fbac","wires":[["95fe5c1b.234a3","1c086997.eb74d6"]]},{"id":"95fe5c1b.234a3","type":"outcome","name":"CreateVnfInstance","xml":"<outcome value='CreateVnfInstance'>\n","comments":"","outputs":1,"x":740.0952453613281,"y":291.0327091217041,"z":"4e44f4dc.d3fbac","wires":[["b3d6c559.f5a1f8"]]},{"id":"1c086997.eb74d6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":702.0952110290527,"y":336.7470369338989,"z":"4e44f4dc.d3fbac","wires":[["3d3a9ebb.853872"]]},{"id":"b3d6c559.f5a1f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":924.9523735046387,"y":291.0327386856079,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"3d3a9ebb.853872","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 'assign' then request-action must be 'CreateVnfInstance'\" />\n","comments":"","x":942.0952186584473,"y":336.746994972229,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ae713fba.3df7f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":186.07147216796875,"y":1577.7707920074463,"z":"4e44f4dc.d3fbac","wires":[["78a8ab8d.e4a224","766c94ea.b9611c","434cb265.75e27c","a6c6204f.95895","b69f4291.61fa5","f416891b.c49b38","b1c5abc7.29b208","c969fd25.a5dbc","5551cb18.77a4d4","27e79a76.199b26","68282397.14338c","4cef2e4e.2eeb7","b4645e2b.83793","19423cf4.442143","59cc3158.776f9","2eaa370.dfe9cca","ab5ed0d2.dee8c","2dd176ed.0041ba","acbd5170.3e4c4","60684400.780c7c","31bebad4.8a5896","438000d4.31b1e","6f6caf00.d957c","277ce9ee.277656","56e0bd4b.bd3f64","58f81e72.df87b","719fd6d4.9a4d78","1fd770ea.bfd8af","183d18f7.8083e7","537d84c0.249e5c","4cc45d68.737674","ed7dcd3d.7a64c","d4e45ae3.95e8e8","569d159b.7974ac"]]},{"id":"3e444c8d.9a16f4","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":498.7142562866211,"y":405.0326976776123,"z":"4e44f4dc.d3fbac","wires":[["474b191f.eb1888","e8e33d1a.e987"]]},{"id":"f4e1f5bf.f95318","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=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":940.1427345275879,"y":428.46118354797363,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"474b191f.eb1888","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":699.4999542236328,"y":385.413535118103,"z":"4e44f4dc.d3fbac","wires":[["bd82a433.1ab928"]]},{"id":"e8e33d1a.e987","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":708.0713844299316,"y":429.6992483139038,"z":"4e44f4dc.d3fbac","wires":[["f4e1f5bf.f95318"]]},{"id":"bd82a433.1ab928","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 reading VF_MODEL table\" />\n","comments":"","x":939.4999351501465,"y":383.5564422607422,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"78a8ab8d.e4a224","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":532.3809204101562,"y":1155.9851322174072,"z":"4e44f4dc.d3fbac","wires":[["120eef5e.ea3881","a22c3ff8.e2fb3"]]},{"id":"120eef5e.ea3881","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":758.0952491760254,"y":1123.1279201507568,"z":"4e44f4dc.d3fbac","wires":[["b7dbc5c1.1c67c8"]]},{"id":"b7dbc5c1.1c67c8","type":"set","name":"set vnf-index=0","xml":"<set>\n<parameter name='vnf-index' value='0' />\n","comments":"","x":922.3809700012207,"y":1122.1279983520508,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a22c3ff8.e2fb3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":759.523811340332,"y":1187.4137382507324,"z":"4e44f4dc.d3fbac","wires":[["41b7f789.ac4538"]]},{"id":"93cbad48.90b08","type":"set","name":"set vnf-index = vnf_length","xml":"<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n","comments":"","x":1098.3809661865234,"y":1165.699426651001,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a06ff958.ca8818","type":"for","name":"for each existing VNF","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1083.8094787597656,"y":1211.6993656158447,"z":"4e44f4dc.d3fbac","wires":[["8b898020.e1666"]]},{"id":"41b7f789.ac4538","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":895.2380714416504,"y":1187.413703918457,"z":"4e44f4dc.d3fbac","wires":[["93cbad48.90b08","a06ff958.ca8818"]]},{"id":"8b898020.e1666","type":"switchNode","name":"switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n","comments":"","outputs":1,"x":1438.0952453613281,"y":1211.270845413208,"z":"4e44f4dc.d3fbac","wires":[["b372ccf2.90f5f"]]},{"id":"b372ccf2.90f5f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1732.3810005187988,"y":1210.8423299789429,"z":"4e44f4dc.d3fbac","wires":[["2889470.ea41bba"]]},{"id":"2889470.ea41bba","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=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists'`\" />\n","comments":"","x":1880.9523620605469,"y":1210.8422775268555,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"11adb872.3cc0d8","type":"comment","name":"make sure this VNF doesn't exist already","info":"","comments":"","x":1425.2379760742188,"y":1168.8422756195068,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"766c94ea.b9611c","type":"set","name":"set vnf-topology data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n","comments":"","x":498.0952033996582,"y":1687.6518993377686,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"434cb265.75e27c","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n","comments":"","outputs":1,"x":510.59522247314453,"y":2049.770956993103,"z":"4e44f4dc.d3fbac","wires":[["e8e240a8.b6802","9b1fc0be.8fa7"]]},{"id":"a6c6204f.95895","type":"get-resource","name":"get-resource cloud region","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t     cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t     depth='all'\"\n        pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":542.738166809082,"y":2945.7706928253174,"z":"4e44f4dc.d3fbac","wires":[["8e720469.5e8cb8","7b05d3d.76e1b2c"]]},{"id":"7b05d3d.76e1b2c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":767.9843597412109,"y":2963.921548843384,"z":"4e44f4dc.d3fbac","wires":[["a42ab710.cce278"]]},{"id":"4676d832.85c178","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 retrieving cloud region from AAI\" />\n","comments":"","x":1069.6510314941406,"y":2963.9215660095215,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8e720469.5e8cb8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":776.912956237793,"y":2922.207282066345,"z":"4e44f4dc.d3fbac","wires":[["e0c152ab.e7e04"]]},{"id":"f16260c8.4591b","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=\"Cloud region not found in AAI\" />\n","comments":"","x":1069.9289321899414,"y":2921.512840270996,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b69f4291.61fa5","type":"get-resource","name":"get-resource VF_TO_NETWORK_ROLE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-network-role-mapping[]'>\n\n","comments":"","outputs":1,"x":607.9762496948242,"y":3256.8182125091553,"z":"4e44f4dc.d3fbac","wires":[["60a87727.b01328","35785ae2.8b74a6"]]},{"id":"60a87727.b01328","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":903.7619209289551,"y":3235.532377243042,"z":"4e44f4dc.d3fbac","wires":[["7f628377.de20fc"]]},{"id":"35785ae2.8b74a6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.3333511352539,"y":3279.818090438843,"z":"4e44f4dc.d3fbac","wires":[["cb783055.50a9a"]]},{"id":"7fcd46cd.478d88","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 reading VF_TO_NETWORK_ROLE_MAPPING table\" />\n","comments":"","x":1220.428544998169,"y":3235.342109680176,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7b16dda0.235334","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1039.5716705322266,"y":3728.1274967193604,"z":"4e44f4dc.d3fbac","wires":[["9c162cfb.04057","32d1bfdb.27738","7cbe8d03.77d1c4","9ecaa4ff.23c328","4bcf8a69.ae8c44","8025807.9d68d8","ccd49d85.073d1","cdefc051.a04bf"]]},{"id":"7cbe8d03.77d1c4","type":"get-resource","name":"get-resource l3-network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-networks\" \n\t\tkey=\"l3-network.network-role = $db.vf-network-role-mapping[$role-index].network-role\"\n        pfx='aai.l3-network' local-only='false'\n>\n","comments":"","outputs":1,"x":1272.4287300109863,"y":3409.080026626587,"z":"4e44f4dc.d3fbac","wires":[["9891f515.8ee1c8","94d72e9b.4db64"]]},{"id":"94d72e9b.4db64","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1476.4764442443848,"y":3431.2228660583496,"z":"4e44f4dc.d3fbac","wires":[["22276dbf.92cb12"]]},{"id":"91d086d5.905598","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 retrieving l3-network from AAI\" />\n","comments":"","x":1791.476474761963,"y":3431.556209564209,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9891f515.8ee1c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1485.4050407409668,"y":3389.508599281311,"z":"4e44f4dc.d3fbac","wires":[["85a5708b.39733"]]},{"id":"b5a9325f.8e06e","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=\"`'No active l3-network found in AAI with cloud_region_id '\n          + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + ' and network_role '\n          + $db.vf-network-role-mapping[$network-index].network-role`\" />\n","comments":"","x":1790.087670326233,"y":3390.4807357788086,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9c162cfb.04057","type":"set","name":"set vnf-network data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-role'\n    value='`$db.vf-network-role-mapping[$role-index].network-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-name'\n    value='`$aai.l3-network.l3-network[$db-network-index].network-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].neutron-id'\n    value='`$aai.l3-network.l3-network[$db-network-index].neutron-network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-id'\n    value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].contrail-network-fqdn'\n    value='`$aai.l3-network.l3-network[$db-network-index].contrail-network-fqdn`' />\n","comments":"","x":1261.6193199157715,"y":3896.0802698135376,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5551cb18.77a4d4","type":"for","name":"for each cloud-region availability zone","xml":"<for index='idx' start='0' end='`$aai.cloud-region.availability-zones.availability-zone_length`' >\n","comments":"","outputs":1,"x":535.0003356933594,"y":4313.199224472046,"z":"4e44f4dc.d3fbac","wires":[["858bb9df.ef0b98"]]},{"id":"420bf10a.3f71f","type":"set","name":"set availability-zone","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[$idx]'\n  value='`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`' />\n","comments":"","x":996.6670188903809,"y":4282.532638549805,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"27e79a76.199b26","type":"set","name":"set vnf-parameters-data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n  value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n","comments":"","x":494.6192626953125,"y":4163.151584625244,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cbb1f011.821ee","type":"save","name":"save generic-vnf l3-network relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-nw-index].network-id`\" />\n","comments":"","outputs":1,"x":961.1907958984375,"y":4456.961437225342,"z":"4e44f4dc.d3fbac","wires":[["32a6aa28.4d7b46","22485f0b.22ad6"]]},{"id":"b4645e2b.83793","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":454.4288101196289,"y":4922.579827308655,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4cef2e4e.2eeb7","type":"set","name":"set vnf-level-oper-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":544.2422561645508,"y":4824.917307853699,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b1c5abc7.29b208","type":"for","name":"for each network-role","xml":"<for index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>","comments":"","outputs":1,"x":499.57160568237305,"y":3701.4611654281616,"z":"4e44f4dc.d3fbac","wires":[["ed4c9615.d61838"]]},{"id":"f416891b.c49b38","type":"set","name":"set network-index = 0","xml":"<set>\n<parameter name='network-index' value='0' />\n","comments":"","x":510.40474700927734,"y":3310.8660068511963,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"32d1bfdb.27738","type":"set","name":"increment network-index","xml":"<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n","comments":"","x":1271.95267868042,"y":4050.842246055603,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"c969fd25.a5dbc","type":"set","name":"set vnf-network_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length'\n  value='`$network-index`' />\n","comments":"","x":493.4763488769531,"y":4113.151628494263,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"68282397.14338c","type":"set","name":"copy input data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n","comments":"","x":459.7620849609375,"y":4772.580139160156,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"19423cf4.442143","type":"for","name":"for each vnf-network","xml":"<for index='vnf-nw-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n","comments":"","outputs":1,"x":484.1907043457031,"y":4455.961353302002,"z":"4e44f4dc.d3fbac","wires":[["5f481128.d6fd6"]]},{"id":"5f481128.d6fd6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":687.8573455810547,"y":4455.961314201355,"z":"4e44f4dc.d3fbac","wires":[["cbb1f011.821ee"]]},{"id":"59cc3158.776f9","type":"set","name":"set new vnf_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n","comments":"","x":481.02384185791016,"y":1208.0090227127075,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"2eaa370.dfe9cca","type":"for","name":"for each cloud-region relationship","xml":"<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":555.5952911376953,"y":3033.008864402771,"z":"4e44f4dc.d3fbac","wires":[["e5925a76.815c58"]]},{"id":"e5925a76.815c58","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n","comments":"","outputs":1,"x":803.2738342285156,"y":3032.7587938308716,"z":"4e44f4dc.d3fbac","wires":[["3699dec9.348a82"]]},{"id":"3699dec9.348a82","type":"outcome","name":"complex","xml":"<outcome value='complex'>\n","comments":"","outputs":1,"x":972.7381553649902,"y":3032.1516160964966,"z":"4e44f4dc.d3fbac","wires":[["ed1ad94c.99ecb8"]]},{"id":"98e2f8af.a2f578","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli'\n  value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n","comments":"","x":1293.4524536132812,"y":3031.8182735443115,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ab5ed0d2.dee8c","type":"switchNode","name":"switch aic-clli","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n","comments":"","outputs":1,"x":488.64291763305664,"y":3146.1039962768555,"z":"4e44f4dc.d3fbac","wires":[["cd42ad7f.c7287"]]},{"id":"cd42ad7f.c7287","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":636.7857513427734,"y":3146.103979110718,"z":"4e44f4dc.d3fbac","wires":[["b6ad7e13.cbdb8"]]},{"id":"f7a16dbf.78dcf","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 aic-clli in AAI for aic-cloud-region ' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n","comments":"","x":927.2619438171387,"y":3147.3420248031616,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"817e056c.b110d8","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-model.invariant-uuid`' />\n","comments":"","x":915.0954627990723,"y":2504.9612531661987,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4527349c.9a52ec","type":"for","name":"for each l3-network","xml":"<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n","comments":"","outputs":1,"x":1381.8812980651855,"y":3720.6516485214233,"z":"4e44f4dc.d3fbac","wires":[["45b722b6.db776c"]]},{"id":"2b805935.a35cb6","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n","comments":"","outputs":1,"x":1800.4524688720703,"y":3655.2231130599976,"z":"4e44f4dc.d3fbac","wires":[["b291cd89.5e04","688efdb4.26b7f4","1dbdf0e3.6d4c4f","3bfc9f47.c3df5","8f5abb8c.6c74f8"]]},{"id":"b291cd89.5e04","type":"outcome","name":"Pending Delete","xml":"<outcome value='Pending Delete'>\n","comments":"","outputs":1,"x":2041.1193389892578,"y":3696.8896169662476,"z":"4e44f4dc.d3fbac","wires":[["757bdd4d.6abe74"]]},{"id":"688efdb4.26b7f4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2013.9764785766602,"y":3747.8895978927612,"z":"4e44f4dc.d3fbac","wires":[["47f9fe3b.cd325"]]},{"id":"9833efbf.69304","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n","comments":"","outputs":1,"x":2549.6909255981445,"y":3716.460892677307,"z":"4e44f4dc.d3fbac","wires":[["440449fc.68ede8"]]},{"id":"47f9fe3b.cd325","type":"for","name":"for each relationship","xml":"<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":2183.976390838623,"y":3747.4609746932983,"z":"4e44f4dc.d3fbac","wires":[["46c88819.e15b38"]]},{"id":"440449fc.68ede8","type":"outcome","name":"cloud-region","xml":"<outcome value='cloud-region'>\n","comments":"","outputs":1,"x":2723.9765663146973,"y":3716.0323390960693,"z":"4e44f4dc.d3fbac","wires":[["3d11cc80.c4e0c4"]]},{"id":"3d11cc80.c4e0c4","type":"for","name":"for each relationship data","xml":"<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n","comments":"","outputs":1,"x":2921.1192665100098,"y":3716.4608068466187,"z":"4e44f4dc.d3fbac","wires":[["ced7a748.131728"]]},{"id":"ced7a748.131728","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n","comments":"","outputs":1,"x":3152.547866821289,"y":3716.032181739807,"z":"4e44f4dc.d3fbac","wires":[["92fbe3e9.e193d"]]},{"id":"92fbe3e9.e193d","type":"outcome","name":"cloud-region.cloud-region-id","xml":"<outcome value='cloud-region.cloud-region-id'>\n","comments":"","outputs":1,"x":3393.976432800293,"y":3716.032278060913,"z":"4e44f4dc.d3fbac","wires":[["3d76bce7.883fc4"]]},{"id":"3d76bce7.883fc4","type":"switchNode","name":"switch relationship-value == cloud-region-id","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value == $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":3698.262351989746,"y":3715.8893337249756,"z":"4e44f4dc.d3fbac","wires":[["5f95e58e.702e5c"]]},{"id":"5f95e58e.702e5c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3403.2624893188477,"y":3833.5322875976562,"z":"4e44f4dc.d3fbac","wires":[["a7f11203.5d359"]]},{"id":"9ecaa4ff.23c328","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1218.0954704284668,"y":3651.9372930526733,"z":"4e44f4dc.d3fbac","wires":[["4527349c.9a52ec","be0cee42.5ab7e"]]},{"id":"4bcf8a69.ae8c44","type":"set","name":"set l3-network-id = -1","xml":"<set>\n<parameter name='l3-network-id' value='-1' />\n","comments":"","x":1262.4288291931152,"y":3523.8419466018677,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a7f11203.5d359","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3549.0954666137695,"y":3833.0083961486816,"z":"4e44f4dc.d3fbac","wires":[["afc40b2f.c29e28","6f9b0a93.f694a4","2a1ad752.bfcd38"]]},{"id":"afc40b2f.c29e28","type":"set","name":"set l3-network-id = this l3-network","xml":"<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n","comments":"","x":3784.333469390869,"y":3795.1513652801514,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8025807.9d68d8","type":"switchNode","name":"switch l3-network-id","xml":"<switch test='`$l3-network-id`'>\n","comments":"","outputs":1,"x":1259.42875289917,"y":3847.508988380432,"z":"4e44f4dc.d3fbac","wires":[["aa114731.395c08"]]},{"id":"aa114731.395c08","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":1429.4287033081055,"y":3847.508744239807,"z":"4e44f4dc.d3fbac","wires":[["2fba815e.79c32e"]]},{"id":"6395a483.342b9c","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 l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n","comments":"","x":1712.7620658874512,"y":3847.5089931488037,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"2dd176ed.0041ba","type":"switchNode","name":"switch input model-invariant-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":558.9525375366211,"y":2527.7856969833374,"z":"4e44f4dc.d3fbac","wires":[["d5c66a20.2113f8","4eb518d2.0c93e8"]]},{"id":"d5c66a20.2113f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":764.6192092895508,"y":2504.9286603927612,"z":"4e44f4dc.d3fbac","wires":[["817e056c.b110d8"]]},{"id":"4eb518d2.0c93e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":766.0478057861328,"y":2549.2142515182495,"z":"4e44f4dc.d3fbac","wires":[["7ce719fb.9a6228"]]},{"id":"7ce719fb.9a6228","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n","comments":"","x":920.3335418701172,"y":2548.6428236961365,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ef5faa7d.94cb58","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$db.vf-model.uuid`' />\n","comments":"","x":916.0477333068848,"y":2593.4999294281006,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"acbd5170.3e4c4","type":"switchNode","name":"switch input model-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":531.5715560913086,"y":2616.3244342803955,"z":"4e44f4dc.d3fbac","wires":[["ce65d89f.20afc8","34fc501b.a39a8"]]},{"id":"ce65d89f.20afc8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":765.5715293884277,"y":2593.467366218567,"z":"4e44f4dc.d3fbac","wires":[["ef5faa7d.94cb58"]]},{"id":"34fc501b.a39a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":767.0001258850098,"y":2637.752957344055,"z":"4e44f4dc.d3fbac","wires":[["f5981394.788ef"]]},{"id":"f5981394.788ef","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n","comments":"","x":921.2858619689941,"y":2637.181529521942,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"538946a2.181668","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$db.vf-model.version`' />\n","comments":"","x":913.1906661987305,"y":2682.3571367263794,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"60684400.780c7c","type":"switchNode","name":"switch input model-version","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n","comments":"","outputs":1,"x":539.714427947998,"y":2705.1815814971924,"z":"4e44f4dc.d3fbac","wires":[["e137a9dc.787888","5fc591ca.bc88b"]]},{"id":"e137a9dc.787888","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":762.714412689209,"y":2682.324543952942,"z":"4e44f4dc.d3fbac","wires":[["538946a2.181668"]]},{"id":"5fc591ca.bc88b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.143009185791,"y":2726.61013507843,"z":"4e44f4dc.d3fbac","wires":[["b9a36199.dc978"]]},{"id":"b9a36199.dc978","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n","comments":"","x":918.4287452697754,"y":2726.038707256317,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"855b2ca8.132f9","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$db.vf-model.name`' />\n","comments":"","x":913.1906661987305,"y":2769.4999589920044,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"31bebad4.8a5896","type":"switchNode","name":"switch input model-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":534.714427947998,"y":2792.3244037628174,"z":"4e44f4dc.d3fbac","wires":[["7a7f7561.1b9f2c","af9f8b2b.cd7db8"]]},{"id":"7a7f7561.1b9f2c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":762.714412689209,"y":2769.467366218567,"z":"4e44f4dc.d3fbac","wires":[["855b2ca8.132f9"]]},{"id":"af9f8b2b.cd7db8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.143009185791,"y":2813.752957344055,"z":"4e44f4dc.d3fbac","wires":[["f010777f.4fc4a8"]]},{"id":"f010777f.4fc4a8","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n","comments":"","x":918.4287452697754,"y":2813.181529521942,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"757bdd4d.6abe74","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2194.3334312438965,"y":3697.666494369507,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"8f5abb8c.6c74f8","type":"outcome","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":2039.000072479248,"y":3652.6664085388184,"z":"4e44f4dc.d3fbac","wires":[["689950a3.df60a"]]},{"id":"689950a3.df60a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2194.2141647338867,"y":3653.4432859420776,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"3bfc9f47.c3df5","type":"outcome","name":"Pending Create","xml":"<outcome value='Pending Create'>\n","comments":"","outputs":1,"x":2041.000072479248,"y":3609.3329124450684,"z":"4e44f4dc.d3fbac","wires":[["ea88d2ba.493d6"]]},{"id":"ea88d2ba.493d6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2194.2141647338867,"y":3610.1097898483276,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"1dbdf0e3.6d4c4f","type":"outcome","name":"PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":2041.000072479248,"y":3565.9996604919434,"z":"4e44f4dc.d3fbac","wires":[["8104066e.259008"]]},{"id":"8104066e.259008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2194.2141647338867,"y":3566.7765378952026,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"fe91b2bf.8c099","type":"for","name":"for each A&AI subnet","xml":"<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[0].subnets.subnet_length`' >\n","comments":"","outputs":1,"x":1727.3810997009277,"y":3986.7138295173645,"z":"4e44f4dc.d3fbac","wires":[["b10f2375.b9afa"]]},{"id":"53c17453.f0880c","type":"set","name":"set subnet_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n   value='`$aai.l3-network.l3-network[0].subnets.subnet_length`' />\n","comments":"","x":1716.047664642334,"y":4031.7139115333557,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"438000d4.31b1e","type":"set","name":"set availability-zones.max-count and length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.max-count'\n   value='`$db.vf-model.avail-zone-max-count`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length'\n   value='`$aai.cloud-region.availability-zones.availability-zone_length`' />\n","comments":"","x":554.6668395996094,"y":4401.214692115784,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6f6caf00.d957c","type":"set","name":"set vnf-name","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name'\n   value='`$tmp.vnf-name`' />\n","comments":"","x":495.8333511352539,"y":2461.8334608078003,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"277ce9ee.277656","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vnf-name\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<!-- <parameter name=\"operational-status\" value=\"out-of-service-path\" /> -->\n<parameter name=\"equipment-role\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role`\" />\n<parameter name=\"model-invariant-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n","comments":"","outputs":1,"x":475.00010681152344,"y":4610.88045501709,"z":"4e44f4dc.d3fbac","wires":[["7a3c612.03fada","d92cf5a6.33b858"]]},{"id":"56e0bd4b.bd3f64","type":"set","name":"set vnf-object-path","xml":"<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>\n\n","comments":"","x":475.0001449584961,"y":4540.880937576294,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"58f81e72.df87b","type":"set","name":"set vnf-id","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n   value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n","comments":"","x":484.1666946411133,"y":2413.5000038146973,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"719fd6d4.9a4d78","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-viprend.log' />\n","comments":"","outputs":1,"x":449.3335380554199,"y":4871.3570766448975,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"9263c515.503118","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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1511.66695022583,"y":4477.547351837158,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"32a6aa28.4d7b46","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1211.0241508483887,"y":4434.500012397766,"z":"4e44f4dc.d3fbac","wires":[["672f3870.869518"]]},{"id":"22485f0b.22ad6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1219.5955810546875,"y":4478.785725593567,"z":"4e44f4dc.d3fbac","wires":[["6e62ccc6.dc7f34"]]},{"id":"32930b6a.86e284","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 generic-vnf in AAI\" />\n","comments":"","x":1514.3575439453125,"y":4434.30955696106,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3c4d390f.0ff276","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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":946.6668853759766,"y":4630.8808879852295,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7a3c612.03fada","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":649.3574371337891,"y":4589.500050544739,"z":"4e44f4dc.d3fbac","wires":[["db6c1834.e91948"]]},{"id":"d92cf5a6.33b858","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":657.9288673400879,"y":4633.78576374054,"z":"4e44f4dc.d3fbac","wires":[["ec9973e.c6a799"]]},{"id":"7baf675.e9c2498","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 selflink in generic-vnf in AAI\" />\n","comments":"","x":949.357479095459,"y":4587.643093109131,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"1fd770ea.bfd8af","type":"set","name":"set model-customization-uuid","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n","comments":"","x":547.5000152587891,"y":2865.1666078567505,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"703de5d6.b6b11c","type":"execute","name":"split related-link","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n   <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n   <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n   <parameter name='regex' value='/' />\n","comments":"","outputs":1,"x":1312.8333129882812,"y":2986.5801916122437,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"ed1ad94c.99ecb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1132.500015258789,"y":3033.24697971344,"z":"4e44f4dc.d3fbac","wires":[["703de5d6.b6b11c","98e2f8af.a2f578","62cd4dc6.bccf24"]]},{"id":"62cd4dc6.bccf24","type":"break","name":"break","xml":"<break>\n","comments":"","x":1282.4999771118164,"y":3076.580276489258,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"858bb9df.ef0b98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":786.6667785644531,"y":4312.294808387756,"z":"4e44f4dc.d3fbac","wires":[["420bf10a.3f71f","e9021688.b099b8"]]},{"id":"e9021688.b099b8","type":"save","name":"save generic-vnf availability-zone relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`\" />\n","comments":"","outputs":1,"x":1080.0001678466797,"y":4335.628262519836,"z":"4e44f4dc.d3fbac","wires":[["3a86920a.c74fce","85b44524.f59068"]]},{"id":"2639188b.f42278","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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1637.1428298950195,"y":4359.547591209412,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3a86920a.c74fce","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1344.8334197998047,"y":4316.500084877014,"z":"4e44f4dc.d3fbac","wires":[["c2464793.9ffc08"]]},{"id":"85b44524.f59068","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1353.4048500061035,"y":4360.785798072815,"z":"4e44f4dc.d3fbac","wires":[["9d10abef.aa9d68"]]},{"id":"2754abb3.b85874","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 generic-vnf in AAI\" />\n","comments":"","x":1639.833423614502,"y":4316.309796333313,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cb783055.50a9a","type":"set","name":"set mapping rows to 0","xml":"<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n","comments":"","x":1106.3094863891602,"y":3279.437578201294,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"183d18f7.8083e7","type":"switchNode","name":"switch AAI availability-zone_length","xml":"<switch test='`$aai.cloud-region.availability-zones.availability-zone_length`'>\n","comments":"","outputs":1,"x":527.3810653686523,"y":4216.10439491272,"z":"4e44f4dc.d3fbac","wires":[["bd16fb24.0fe038"]]},{"id":"bd16fb24.0fe038","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":745.9524841308594,"y":4215.675804138184,"z":"4e44f4dc.d3fbac","wires":[["44f8e0c6.bf172"]]},{"id":"a4deaa00.e82908","type":"set","name":"set availability-zone_length to 0","xml":"<set>\n<parameter name='aai.cloud-region.availability-zones.availability-zone_length' value='0' />\n","comments":"","x":1347.3811264038086,"y":4234.2470417022705,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"44f8e0c6.bf172","type":"switchNode","name":"switch AZ max count > 0","xml":"<switch test='`$db.vf-model.avail-zone-max-count &gt; 0`'>\n","comments":"","outputs":1,"x":934.5239562988281,"y":4216.104115962982,"z":"4e44f4dc.d3fbac","wires":[["d06ce29c.e7c56","91254f4.8fe1bb"]]},{"id":"d06ce29c.e7c56","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1137.3810634613037,"y":4190.389865875244,"z":"4e44f4dc.d3fbac","wires":[["2bf16ac7.c29516"]]},{"id":"91254f4.8fe1bb","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1138.809684753418,"y":4234.67561340332,"z":"4e44f4dc.d3fbac","wires":[["a4deaa00.e82908"]]},{"id":"66145063.39707","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=\"`'No availability zones found in AAI for cloud region '\n       + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n","comments":"","x":1428.8095703125,"y":4188.437558174133,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a0fc8588.9798e8","type":"execute","name":"execute PropertiesNode","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","comments":"","outputs":1,"x":495.95240020751953,"y":233.84224128723145,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"e8e240a8.b6802","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":712.6190414428711,"y":1863.2470073699951,"z":"4e44f4dc.d3fbac","wires":[["fda0d94d.246058"]]},{"id":"6ba58c99.3d6c54","type":"switchNode","name":"switch ecomp-naming","xml":"<switch test='`$db.vf-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1090.2384300231934,"y":1763.961443901062,"z":"4e44f4dc.d3fbac","wires":[["6bc3ca08.30d814","1bd7e0e4.afcd3f","59311d10.015684"]]},{"id":"fda0d94d.246058","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":858.3335418701172,"y":1863.247124671936,"z":"4e44f4dc.d3fbac","wires":[["6ba58c99.3d6c54","68402099.cbb6e"]]},{"id":"1bd7e0e4.afcd3f","type":"outcome","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1276.6668167114258,"y":1764.4375705718994,"z":"4e44f4dc.d3fbac","wires":[["8abd4d2f.9ce9"]]},{"id":"8abd4d2f.9ce9","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=\"No vnf-name was received but ecomp-generated-naming is not Y\" />\n","comments":"","x":1430.9526023864746,"y":1783.009015083313,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6bc3ca08.30d814","type":"outcome","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1276.6668090820312,"y":1723.0090246200562,"z":"4e44f4dc.d3fbac","wires":[["d6abe0cd.f17a7"]]},{"id":"59311d10.015684","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1276.6667556762695,"y":1807.2947025299072,"z":"4e44f4dc.d3fbac","wires":[["8abd4d2f.9ce9"]]},{"id":"d6abe0cd.f17a7","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1413.809726715088,"y":1723.151891708374,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"9b1fc0be.8fa7","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":697.8097686767578,"y":2217.866183280945,"z":"4e44f4dc.d3fbac","wires":[["68621ac1.29c734"]]},{"id":"68621ac1.29c734","type":"set","name":"set tmp.vnf-name","xml":"<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-request-input.vnf-name`\" />\n","comments":"","x":863.5717315673828,"y":2216.7234535217285,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e954ebf6.540d38","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n","comments":"","outputs":1,"x":1748.643009185791,"y":1913.0089440345764,"z":"4e44f4dc.d3fbac","wires":[["e58cf0cd.381b5","7d1e3ef3.b14f9"]]},{"id":"e58cf0cd.381b5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2025.7858123779297,"y":1886.5804772377014,"z":"4e44f4dc.d3fbac","wires":[["f78aa92e.072f88"]]},{"id":"7d1e3ef3.b14f9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2030.5475578308105,"y":1931.9613881111145,"z":"4e44f4dc.d3fbac","wires":[["67192240.ef86fc"]]},{"id":"8e80323.5aec3d","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.action' value='ASSIGN' />\n<parameter name='generate-unique-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='generate-unique-name-input.index-table-name' value='VNF_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`'z' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + $db.vf-model.nf-code`\" />\n","comments":"","x":1703.6432609558105,"y":1864.1042637825012,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"67192240.ef86fc","type":"set","name":"set tmp.vnf-name to generated name","xml":"<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n","comments":"","x":2253.4519538879395,"y":1931.4374632835388,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f78aa92e.072f88","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=\"`$generate-unique-name-output.error-message`\" />\n","comments":"","x":2179.3572731018066,"y":1886.0089869499207,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"68402099.cbb6e","type":"switchNode","name":"switch naming-policy","xml":"<switch test='`$db.vf-model.naming-policy`'>\n","comments":"","outputs":1,"x":1088.024013519287,"y":1972.2470607757568,"z":"4e44f4dc.d3fbac","wires":[["a1c920b0.57e32","54eaf052.a1d45"]]},{"id":"a1c920b0.57e32","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1278.0239448547363,"y":1893.675615310669,"z":"4e44f4dc.d3fbac","wires":[["bccad88.6a02328"]]},{"id":"54eaf052.a1d45","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1278.2621841430664,"y":2021.056559562683,"z":"4e44f4dc.d3fbac","wires":[["334f9686.9dd50a"]]},{"id":"bccad88.6a02328","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1430.8812141418457,"y":1892.2470817565918,"z":"4e44f4dc.d3fbac","wires":[["8e80323.5aec3d","e954ebf6.540d38"]]},{"id":"f9872f82.e6538","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":1769.9291381835938,"y":2036.7709412574768,"z":"4e44f4dc.d3fbac","wires":[["63e66d57.ad35d4","47bb6c9e.5da7d4"]]},{"id":"334f9686.9dd50a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1432.786033630371,"y":2021.056559562683,"z":"4e44f4dc.d3fbac","wires":[["7ca84586.ce108c","f9872f82.e6538"]]},{"id":"7ca84586.ce108c","type":"set","name":"set variables for generating name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.policy-instance-name' value='`$db.vf-model.naming-policy`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='ASSIGN' />\n<parameter name='naming-policy-generate-name-input.query-parameter' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />","comments":"","x":1679.929054260254,"y":1991.05659532547,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"1c84fc68.b37734","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 generate VNF name\" />\n","comments":"","x":2212.786087036133,"y":2010.6278791427612,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7fa1a5bb.63414c","type":"set","name":"set tmp.vnf-name to generated name","xml":"<set>\n<parameter name='tmp.vnf-name' value='`$naming-policy-generate-name-output.vnf-name`' />\n","comments":"","x":2291.214656829834,"y":2055.3421812057495,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"159fe4a1.e3dfcb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1802.6188735961914,"y":2735.746706008911,"z":"4e44f4dc.d3fbac","wires":[["10cd1a1d.c198e6","1a70e102.4df24f"]]},{"id":"1a70e102.4df24f","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":2126.9045791625977,"y":2762.3182373046875,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"10cd1a1d.c198e6","type":"set","name":"set variables for deleting name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n","comments":"","x":2028.3331985473633,"y":2715.175308227539,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b587067c.c12fd8","type":"comment","name":"Unassign the VNF name","info":"","comments":"","x":1894.2855224609375,"y":2655.746808052063,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e0c152ab.e7e04","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":914.2857818603516,"y":2922.4135060310364,"z":"4e44f4dc.d3fbac","wires":[["f16260c8.4591b","159fe4a1.e3dfcb"]]},{"id":"a42ab710.cce278","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":912.6190643310547,"y":2964.080258369446,"z":"4e44f4dc.d3fbac","wires":[["4676d832.85c178","159fe4a1.e3dfcb"]]},{"id":"b6ad7e13.cbdb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":769.2857360839844,"y":3145.7468881607056,"z":"4e44f4dc.d3fbac","wires":[["f7a16dbf.78dcf","159fe4a1.e3dfcb"]]},{"id":"7f628377.de20fc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1060.9524230957031,"y":3235.7468881607056,"z":"4e44f4dc.d3fbac","wires":[["7fcd46cd.478d88","159fe4a1.e3dfcb"]]},{"id":"85a5708b.39733","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1620.9524421691895,"y":3389.7467555999756,"z":"4e44f4dc.d3fbac","wires":[["b5a9325f.8e06e","159fe4a1.e3dfcb"]]},{"id":"22276dbf.92cb12","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1619.2857246398926,"y":3431.413507938385,"z":"4e44f4dc.d3fbac","wires":[["91d086d5.905598","159fe4a1.e3dfcb"]]},{"id":"2fba815e.79c32e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1562.619068145752,"y":3847.4135036468506,"z":"4e44f4dc.d3fbac","wires":[["6395a483.342b9c","159fe4a1.e3dfcb"]]},{"id":"2bf16ac7.c29516","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1272.6190872192383,"y":4189.080174446106,"z":"4e44f4dc.d3fbac","wires":[["66145063.39707","159fe4a1.e3dfcb"]]},{"id":"c2464793.9ffc08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1492.6190872192383,"y":4317.080174446106,"z":"4e44f4dc.d3fbac","wires":[["2754abb3.b85874","159fe4a1.e3dfcb"]]},{"id":"9d10abef.aa9d68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1490.9523696899414,"y":4360.746926784515,"z":"4e44f4dc.d3fbac","wires":[["2639188b.f42278","159fe4a1.e3dfcb"]]},{"id":"672f3870.869518","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1355.9524612426758,"y":4434.080174446106,"z":"4e44f4dc.d3fbac","wires":[["32930b6a.86e284","159fe4a1.e3dfcb"]]},{"id":"6e62ccc6.dc7f34","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1354.285743713379,"y":4477.746926784515,"z":"4e44f4dc.d3fbac","wires":[["9263c515.503118","159fe4a1.e3dfcb"]]},{"id":"db6c1834.e91948","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":802.6191215515137,"y":4589.080289840698,"z":"4e44f4dc.d3fbac","wires":[["7baf675.e9c2498","159fe4a1.e3dfcb"]]},{"id":"ec9973e.c6a799","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":800.9524040222168,"y":4632.747042179108,"z":"4e44f4dc.d3fbac","wires":[["3c4d390f.0ff276","159fe4a1.e3dfcb"]]},{"id":"63e66d57.ad35d4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2068.095184326172,"y":2011.6994485855103,"z":"4e44f4dc.d3fbac","wires":[["1c84fc68.b37734"]]},{"id":"47bb6c9e.5da7d4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2072.8569297790527,"y":2057.0803594589233,"z":"4e44f4dc.d3fbac","wires":[["7fa1a5bb.63414c"]]},{"id":"3e07f67c.a7124a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":723.3332824707031,"y":1366.666666984558,"z":"4e44f4dc.d3fbac","wires":[["baf35ab4.de3628","1a10c87.b7e5338"]]},{"id":"537d84c0.249e5c","type":"for","name":"for each instance group id","xml":"<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n","comments":"","outputs":1,"x":506.66662979125977,"y":1367.333312034607,"z":"4e44f4dc.d3fbac","wires":[["3e07f67c.a7124a"]]},{"id":"baf35ab4.de3628","type":"get-resource","name":"get-resource instance-group","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"instance-group\" \n\t\tkey=\"instance-group.id = $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\"\n        pfx='aai.instance-group' local-only='false' >\n\n","comments":"","outputs":1,"x":954.6666412353516,"y":1290.0000486373901,"z":"4e44f4dc.d3fbac","wires":[["5a73dff4.a3a92","1cc3de9c.f21291"]]},{"id":"1cc3de9c.f21291","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1168.9128494262695,"y":1308.150897026062,"z":"4e44f4dc.d3fbac","wires":[["8ab060f.9d1f2a"]]},{"id":"5a73dff4.a3a92","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1177.8414459228516,"y":1266.4366302490234,"z":"4e44f4dc.d3fbac","wires":[["6cb384a2.611ddc"]]},{"id":"6cb384a2.611ddc","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=\"`'Cannot find instance group id ' +\n      $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n      + ' in AAI'`\" />\n","comments":"","x":1350.6666564941406,"y":1264.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8ab060f.9d1f2a","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 retrieving instance-group from AAI\" />\n","comments":"","x":1350.6666564941406,"y":1308.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4cc45d68.737674","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnf.log' />\n","comments":"","outputs":1,"x":485.8095016479492,"y":2334.2858095169067,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"1a10c87.b7e5338","type":"for","name":"for each relationship","xml":"<for index='rel-index' start='0' end='`$aai.instance-group.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":928.3332977294922,"y":1438.3333644866943,"z":"4e44f4dc.d3fbac","wires":[["334e1afb.9c1a56"]]},{"id":"334e1afb.9c1a56","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.instance-group.relationship-list.relationship[$rel-index].related-to`'>\n","comments":"","outputs":1,"x":1141.6667404174805,"y":1438.333303451538,"z":"4e44f4dc.d3fbac","wires":[["9ec622df.a4f79"]]},{"id":"9ec622df.a4f79","type":"outcome","name":"collection","xml":"<outcome value='collection'>\n","comments":"","outputs":1,"x":1313.3333778381348,"y":1438.3333854675293,"z":"4e44f4dc.d3fbac","wires":[["f0af7cfb.630f1"]]},{"id":"f0af7cfb.630f1","type":"get-resource","name":"get-resource collection","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"collection\" \n\t\tkey=\"collection.collection-id = $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n        pfx='aai.collection' local-only='false' >\n\n","comments":"","outputs":1,"x":1533.3332824707031,"y":1436.6666469573975,"z":"4e44f4dc.d3fbac","wires":[["5a9a2b.446c05d4","ed35d4f2.f5a3d8","86f300a3.7cafb"]]},{"id":"ed35d4f2.f5a3d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1747.579475402832,"y":1388.1508359909058,"z":"4e44f4dc.d3fbac","wires":[["58b0fdde.ff35b4"]]},{"id":"5a9a2b.446c05d4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1756.508071899414,"y":1346.4365692138672,"z":"4e44f4dc.d3fbac","wires":[["a61328d2.f754c8"]]},{"id":"a61328d2.f754c8","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=\"`'Cannot find collection ' +\n      $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\n      + ' in AAI'`\" />\n","comments":"","x":1913.3332824707031,"y":1345.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"58b0fdde.ff35b4","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=\"System error retrieving collection from AAI\" />\n","comments":"","x":1913.3332824707031,"y":1389.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"86f300a3.7cafb","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1746.6666831970215,"y":1525.000012397766,"z":"4e44f4dc.d3fbac","wires":[["81df8930.31e0f8"]]},{"id":"81df8930.31e0f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.9998245239258,"y":1524.3333082199097,"z":"4e44f4dc.d3fbac","wires":[["8a522d26.71257","a4f68cb7.668a2","8d0504d7.cdc028","cc147160.20bfe","3198ae9f.e95542"]]},{"id":"8a522d26.71257","type":"for","name":"for each network-instance-group","xml":"<for silentFailure='true' index='nig-index' start='0' end='`$service-data.network-instance-groups.network-instance-group_length`' >\n","comments":"","outputs":1,"x":2138.333168029785,"y":1475.0000562667847,"z":"4e44f4dc.d3fbac","wires":[["9063a8ee.f7faa8"]]},{"id":"a4f68cb7.668a2","type":"set","name":"set found-network-instance-group to false","xml":"<set>\n<parameter name='found-network-instance-group' value='false' />\n","comments":"","x":2168.3331298828125,"y":1428.3334283828735,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9063a8ee.f7faa8","type":"switchNode","name":"network-instance-group-id matches?","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n  == $service-data.network-instance-groups.network-instance-group[$nig-index].network-instance-group-id`'>\n","comments":"","outputs":1,"x":2454.9996795654297,"y":1475.0000553131104,"z":"4e44f4dc.d3fbac","wires":[["98d54f6d.c932"]]},{"id":"98d54f6d.c932","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2676.666458129883,"y":1475.0000200271606,"z":"4e44f4dc.d3fbac","wires":[["a9385545.8b31c8"]]},{"id":"a9385545.8b31c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2806.666488647461,"y":1475.000096321106,"z":"4e44f4dc.d3fbac","wires":[["85ee6cee.1bd2a","a14aee8f.5893a"]]},{"id":"85ee6cee.1bd2a","type":"set","name":"set found-network-instance-group to true","xml":"<set>\n<parameter name='found-network-instance-group' value='true' />\n","comments":"","x":3039.9996643066406,"y":1446.6667213439941,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a14aee8f.5893a","type":"break","name":"break","xml":"<break>\n","comments":"","x":2933.333278656006,"y":1495.0000915527344,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8d0504d7.cdc028","type":"switchNode","name":"switch found-network-instance-group","xml":"<switch test='`$found-network-instance-group`'>\n","comments":"","outputs":1,"x":2149.999786376953,"y":1525.0000371932983,"z":"4e44f4dc.d3fbac","wires":[["9189bba.faf6f48"]]},{"id":"9189bba.faf6f48","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2371.666633605957,"y":1525.0000596046448,"z":"4e44f4dc.d3fbac","wires":[["520b2234.8e265c"]]},{"id":"520b2234.8e265c","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=\"`'Could not find network instance group ' +\n      $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n      + ' in MD-SAL'`\" />\n","comments":"","x":2518.333206176758,"y":1523.3333940505981,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ed7dcd3d.7a64c","type":"set","name":"set tmp.vnf-network-collection_length to 0","xml":"<set>\n<parameter name='tmp.vnf-network-collection_length' value='0' />\n","comments":"","x":554.9999694824219,"y":1318.3334436416626,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cc147160.20bfe","type":"set","name":"set vnf-network-collection data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-function'\n  value='`$aai.instance-group.instance-group-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-id'\n  value='`$aai.instance-group.id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-service-instance-id'\n  value='`$service-data.network-instance-groups.network-instance-group[$nig-index].service-instance-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-customization-uuid'\n  value='`$aai.collection.collection-customization-id`' />\n","comments":"","x":2130.0001106262207,"y":1573.3333730697632,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3198ae9f.e95542","type":"set","name":"increment tmp.vnf-network-collection_length","xml":"<set>\n<parameter name='tmp.vnf-network-collection_length' value='`$tmp.vnf-network-collection_length + 1`' />\n","comments":"","x":2171.666816711426,"y":1620.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"d4e45ae3.95e8e8","type":"set","name":"set vnf-network-collection_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection_length'\n  value='`$tmp.vnf-network-collection_length`' />\n","comments":"","x":534.1666641235352,"y":1575.8333930969238,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5602ea58.f558a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":711.6667289733887,"y":4705.476315498352,"z":"4e44f4dc.d3fbac","wires":[["f145731.7dc939"]]},{"id":"569d159b.7974ac","type":"for","name":"for each instance group id","xml":"<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n","comments":"","outputs":1,"x":495.0000762939453,"y":4706.142960548401,"z":"4e44f4dc.d3fbac","wires":[["5602ea58.f558a4"]]},{"id":"f145731.7dc939","type":"save","name":"save generic-vnf relationship to instance-group","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-information.vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"instance-group\" />\n    <parameter name=\"relationship-list.relationship[0].related-link\"\n      value=\"`'/aai/v$/network/instance-groups/instance-group/'\n        + $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id`\" />\n","comments":"","outputs":1,"x":995.000057220459,"y":4704.999996185303,"z":"4e44f4dc.d3fbac","wires":[["aa364f8f.633a1","d50f251f.b38a38"]]},{"id":"2c0352e1.886b8e","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=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1551.6667289733887,"y":4723.333249092102,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"aa364f8f.633a1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1254.3572807312012,"y":4681.952411651611,"z":"4e44f4dc.d3fbac","wires":[["b6ef2322.ecde1"]]},{"id":"d50f251f.b38a38","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1262.9287109375,"y":4726.238124847412,"z":"4e44f4dc.d3fbac","wires":[["c25bd07f.ba3dc"]]},{"id":"39611e1d.841192","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 relationship in generic-vnf in AAI\" />\n","comments":"","x":1554.3573303222656,"y":4680.095512390137,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b6ef2322.ecde1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1407.6189651489258,"y":4681.532650947571,"z":"4e44f4dc.d3fbac","wires":[["39611e1d.841192","159fe4a1.e3dfcb"]]},{"id":"c25bd07f.ba3dc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1405.952247619629,"y":4725.19940328598,"z":"4e44f4dc.d3fbac","wires":[["2c0352e1.886b8e","159fe4a1.e3dfcb"]]},{"id":"ccd49d85.073d1","type":"switchNode","name":"switch subnet_length","xml":"<switch test='`$aai.l3-network.l3-network[0].subnets.subnet_length`'>\n","comments":"","outputs":1,"x":1263.5714988708496,"y":3968.095386505127,"z":"4e44f4dc.d3fbac","wires":[["13f8461f.02754a","4f0f1832.9d6238","4a7eee29.bdad1"]]},{"id":"13f8461f.02754a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1436.4286613464355,"y":3930.9524459838867,"z":"4e44f4dc.d3fbac","wires":[["d7fec3a.cf03e4"]]},{"id":"4f0f1832.9d6238","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1437.8572311401367,"y":3969.523609161377,"z":"4e44f4dc.d3fbac","wires":[["d7fec3a.cf03e4"]]},{"id":"4a7eee29.bdad1","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1436.428695678711,"y":4008.095001220703,"z":"4e44f4dc.d3fbac","wires":[["7e5c1302.e8982c"]]},{"id":"7e5c1302.e8982c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1557.857250213623,"y":4008.0952682495117,"z":"4e44f4dc.d3fbac","wires":[["fe91b2bf.8c099","53c17453.f0880c"]]},{"id":"d7fec3a.cf03e4","type":"set","name":"set subnet_length to 0","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n   value='0' />\n","comments":"","x":1629.2858543395996,"y":3939.523609161377,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6d2f55b8.a2759c","type":"switchNode","name":"switch: sdnc-model-name && sdnc-artifact-name != null","xml":"<switch test=\"`$db.vf-model.sdnc-model-name != '' and $db.vf-model.sdnc-artifact-name != ''`\">","comments":"","outputs":1,"x":1539.8175621032715,"y":949.9999332427979,"z":"4e44f4dc.d3fbac","wires":[["6dd97b97.b67924","7c6a046e.7cc64c"]]},{"id":"6dd97b97.b67924","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1842.8889503479004,"y":922.6785984039307,"z":"4e44f4dc.d3fbac","wires":[["5b2ce020.a36b2"]]},{"id":"86ca6d15.0e146","type":"switchNode","name":"switch: param[].name","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$p].name`\">\n","comments":"","outputs":1,"x":1053.9484024047852,"y":598.2024068832397,"z":"4e44f4dc.d3fbac","wires":[["af0da8d9.d8ece8","6b384f33.32a78"]]},{"id":"63f83908.751498","type":"for","name":"for p in vnf-input-parameters,param[]","xml":"<for silentFailure='true' index='p' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n","comments":"","outputs":1,"x":760.055549621582,"y":598.7024393081665,"z":"4e44f4dc.d3fbac","wires":[["86ca6d15.0e146"]]},{"id":"e3aa680f.7c2008","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1250.2581176757812,"y":949.9521970748901,"z":"4e44f4dc.d3fbac","wires":[["6d2f55b8.a2759c"]]},{"id":"542091af.e959d","type":"call","name":"call self-serve-vnf-assign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-assign' mode='sync' >\n","comments":"","outputs":1,"x":2132.257625579834,"y":717.845365524292,"z":"4e44f4dc.d3fbac","wires":[["a34d6a59.d39c18"]]},{"id":"ecba7f02.a0e2c","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=\"`'Failed to create self-serve assignment for vnf with vnf-id=' + $vnf-topology-operation-input.vnf-information.vnf-id`\" />\n","comments":"","x":2516.329002380371,"y":717.8453159332275,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7c6a046e.7cc64c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1845.78169631958,"y":979.2856025695801,"z":"4e44f4dc.d3fbac","wires":[["ae713fba.3df7f"]]},{"id":"84263c0c.96c43","type":"set","name":"set tmp.exist.sdnc-artifact-name = true","xml":"<set>\n<parameter name='tmp.exist.sdnc-artifact-name' value='true' />","comments":"","x":1595.8413314819336,"y":648.0595769882202,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ae12ffc.41b2a","type":"set","name":"set tmp.exist.sdnc-model-name = true","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='true' />\n","comments":"","x":1592.5554389953613,"y":598.0595922470093,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3f17b073.bbbcb","type":"switchNode","name":"switch: tmp.exist.sdnc-model-name && tmp.exist.sdnc-artifact-name == true","xml":"<switch test=\"`$tmp.exist.sdnc-model-name == 'true' and $tmp.exist.sdnc-artifact-name == 'true'`\">\n","comments":"","outputs":1,"x":877.9960327148438,"y":767.0237197875977,"z":"4e44f4dc.d3fbac","wires":[["d1f392c4.1dab8","e3aa680f.7c2008"]]},{"id":"d1f392c4.1dab8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1246.5079917907715,"y":719.1427278518677,"z":"4e44f4dc.d3fbac","wires":[["5b2ce020.a36b2"]]},{"id":"cd40e494.6d16b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":453.65077209472656,"y":500.8691177368164,"z":"4e44f4dc.d3fbac","wires":[["63f83908.751498","3f17b073.bbbcb","e38b7cc3.75e77","806e0f23.0111b"]]},{"id":"d5dac1e.b0d824","type":"comment","name":"SELF-SERVE FORK","info":"","comments":"","x":442.2221984863281,"y":624.6786069869995,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"af0da8d9.d8ece8","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1310.1269781930105,"y":598.1072013037544,"z":"4e44f4dc.d3fbac","wires":[["ae12ffc.41b2a"]]},{"id":"6b384f33.32a78","type":"outcome","name":"sdnc_artifact_name","xml":"<outcome value='sdnc_artifact_name'>\n","comments":"","outputs":1,"x":1312.9841003417969,"y":647.5357732772827,"z":"4e44f4dc.d3fbac","wires":[["84263c0c.96c43"]]},{"id":"a34d6a59.d39c18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2337.555206298828,"y":717.3333969116211,"z":"4e44f4dc.d3fbac","wires":[["ecba7f02.a0e2c"]]},{"id":"11bf25d2.bdb8da","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":233.4126968383789,"y":234.2857322692871,"z":"4e44f4dc.d3fbac","wires":[["a0fc8588.9798e8","b32ac93e.aaa508","3e444c8d.9a16f4","cd40e494.6d16b8"]]},{"id":"b10f2375.b9afa","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1899.047706604004,"y":3986.6994638442993,"z":"4e44f4dc.d3fbac","wires":[["5bcbda97.98c4e4","3b85bc8c.02f794","e6ea74fb.9af718","f638c11c.6fd0e"]]},{"id":"cdefc051.a04bf","type":"set","name":"clear aai.l3-network","xml":"<set>\n<parameter name='aai.l3-network.' value='' />\n","comments":"","x":1257.6191520690918,"y":3359.5565824508667,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6f9b0a93.f694a4","type":"break","name":"break","xml":"<break>\n","comments":"","x":3699.3330879211426,"y":3886.699146270752,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"be0cee42.5ab7e","type":"set","name":"set found-network to false","xml":"<set>\n<parameter name='found-network' value='false' />\n","comments":"","x":1399.047679901123,"y":3592.413550376892,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"46c88819.e15b38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2370.7619857788086,"y":3746.6993465423584,"z":"4e44f4dc.d3fbac","wires":[["9833efbf.69304","5f2e36ac.da9228"]]},{"id":"5f2e36ac.da9228","type":"switchNode","name":"switch found-network","xml":"<switch test='`$found-network`'>\n","comments":"","outputs":1,"x":2562.190532684326,"y":3776.6994009017944,"z":"4e44f4dc.d3fbac","wires":[["66e2cd5f.2e0f04"]]},{"id":"2a1ad752.bfcd38","type":"set","name":"set found-network to true","xml":"<set>\n<parameter name='found-network' value='true' />\n","comments":"","x":3755.047966003418,"y":3840.984827041626,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"66e2cd5f.2e0f04","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2730.7620239257812,"y":3776.699330329895,"z":"4e44f4dc.d3fbac","wires":[["10d190b5.dcecdf"]]},{"id":"10d190b5.dcecdf","type":"break","name":"break","xml":"<break>\n","comments":"","x":2860.762092590332,"y":3775.27072429657,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"45b722b6.db776c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1571.0477027893066,"y":3720.4136247634888,"z":"4e44f4dc.d3fbac","wires":[["2b805935.a35cb6","c7e830d3.e9283"]]},{"id":"c7e830d3.e9283","type":"switchNode","name":"switch found-network","xml":"<switch test='`$found-network`'>\n","comments":"","outputs":1,"x":1781.0476570129395,"y":3792.413508415222,"z":"4e44f4dc.d3fbac","wires":[["24156eb7.6d1de2"]]},{"id":"24156eb7.6d1de2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1949.6191482543945,"y":3792.4134378433228,"z":"4e44f4dc.d3fbac","wires":[["25a3a86e.400be8"]]},{"id":"25a3a86e.400be8","type":"break","name":"break","xml":"<break>\n","comments":"","x":2079.6192169189453,"y":3790.9848318099976,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e38b7cc3.75e77","type":"set","name":"initialize tmp.exist.sdnc-model-name && tmp.exist.sdnc-artifact-name = false","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='false' />\n<parameter name='tmp.exist.sdnc-artifact-name' value='false' />","comments":"","x":880.1429061889648,"y":501.33330821990967,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"fb1b0696.2b0118","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":2098.666561126709,"y":879.9999332427979,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"893e0d25.a86ef","type":"set","name":"set vnf-level-oper-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":2188.480007171631,"y":782.3374137878418,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f4cb36d0.800108","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnfend.log' />\n","comments":"","outputs":1,"x":2093.5712890625,"y":828.7771825790405,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"5b2ce020.a36b2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.6664695739746,"y":718.3333206176758,"z":"4e44f4dc.d3fbac","wires":[["542091af.e959d","893e0d25.a86ef","f4cb36d0.800108","fb1b0696.2b0118"]]},{"id":"e6ea74fb.9af718","type":"set","name":"set subnet data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].ip-version'\n   value='`$tmp.ip-version`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-id'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].neutron-subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].sdnc-subnet-id'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-role'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-name'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-name`' />\n","comments":"","x":2053.3334732055664,"y":4017.3812103271484,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f638c11c.6fd0e","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].dhcp-enabled`'>\n","comments":"","outputs":1,"x":2067.8572540283203,"y":4070.2241640090942,"z":"4e44f4dc.d3fbac","wires":[["1616a214.4d52fe","6cb55598.b5519c"]]},{"id":"1616a214.4d52fe","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2230.714418683733,"y":4048.795521736145,"z":"4e44f4dc.d3fbac","wires":[["9228e480.6386e8"]]},{"id":"6cb55598.b5519c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2229.2857513427734,"y":4094.5099477767944,"z":"4e44f4dc.d3fbac","wires":[["10fd862a.7096da"]]},{"id":"9228e480.6386e8","type":"set","name":"set dhcp-enabled to Y","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n   value='Y' />\n","comments":"","x":2403.571617126465,"y":4047.3669176101685,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"10fd862a.7096da","type":"set","name":"set dhcp-enabled to N","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n   value='N' />\n","comments":"","x":2400.714385986328,"y":4094.5099477767944,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5bcbda97.98c4e4","type":"switchNode","name":"switch subnet-role","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`'>\n","comments":"","outputs":1,"x":2068.333423614502,"y":3899.2718362808228,"z":"4e44f4dc.d3fbac","wires":[["2f3e4a5d.7c3b36"]]},{"id":"2f3e4a5d.7c3b36","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2235.000026702881,"y":3899.2714881896973,"z":"4e44f4dc.d3fbac","wires":[["24afcaa5.1defa6"]]},{"id":"24afcaa5.1defa6","type":"set","name":"set subnet-role to NONE","xml":"<set>\n<parameter name='aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role' value='NONE' />\n","comments":"","x":2416.6668128967285,"y":3898.605140686035,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3b85bc8c.02f794","type":"switchNode","name":"switch ip-version","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].ip-version`'>\n","comments":"","outputs":1,"x":2063.5717582702637,"y":3963.762942314148,"z":"4e44f4dc.d3fbac","wires":[["1c2233e9.20214c","e680d1ed.d7f9c"]]},{"id":"1c2233e9.20214c","type":"outcome","name":"4","xml":"<outcome value='4'>\n","comments":"","outputs":1,"x":2229.285900115967,"y":3945.191339492798,"z":"4e44f4dc.d3fbac","wires":[["f01b1452.dd9f88"]]},{"id":"e680d1ed.d7f9c","type":"outcome","name":"6","xml":"<outcome value='6'>\n","comments":"","outputs":1,"x":2229.285861968994,"y":3986.6200828552246,"z":"4e44f4dc.d3fbac","wires":[["319040e.ea0d5c"]]},{"id":"f01b1452.dd9f88","type":"set","name":"set tmp.ip-version to ipv4","xml":"<set>\n<parameter name='tmp.ip-version' value='ipv4' />\n","comments":"","x":2416.428665161133,"y":3944.3342666625977,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"319040e.ea0d5c","type":"set","name":"set tmp.ip-version to ipv6","xml":"<set>\n<parameter name='tmp.ip-version' value='ipv6' />\n","comments":"","x":2415.000217437744,"y":3986.6200847625732,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"806e0f23.0111b","type":"switchNode","name":"switch: vnf-input-parameters.param_length","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n","comments":"","outputs":1,"x":778.5714645385742,"y":547.1428127288818,"z":"4e44f4dc.d3fbac","wires":[["f780fd19.5435b"]]},{"id":"f780fd19.5435b","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1042.1428833007812,"y":547.4285526275635,"z":"4e44f4dc.d3fbac","wires":[["7fdf9810.65be18"]]},{"id":"7fdf9810.65be18","type":"set","name":"set vnf-input-parameters.param_length = 0","xml":"<set>\n<parameter name='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length' value='0' />\n","comments":"","x":1315.8571243286133,"y":547.2857141494751,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ed4c9615.d61838","type":"switchNode","name":"switch network-role","xml":"<switch test='`$db.vf-network-role-mapping[$role-index].network-role`'>\n","comments":"","outputs":1,"x":719.9999656677246,"y":3700.0000677108765,"z":"4e44f4dc.d3fbac","wires":[["43bb48c2.19f5b8","be93f82a.71aa68"]]},{"id":"43bb48c2.19f5b8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":886.666561126709,"y":3668.333317756653,"z":"4e44f4dc.d3fbac","wires":[["1443f6c4.ddb499"]]},{"id":"be93f82a.71aa68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":886.6666069030762,"y":3726.666666984558,"z":"4e44f4dc.d3fbac","wires":[["7b16dda0.235334"]]},{"id":"1443f6c4.ddb499","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1018.3333129882812,"y":3666.66650390625,"z":"4e44f4dc.d3fbac","wires":[[]]}]
\ No newline at end of file
+[\r
+    {\r
+        "id": "fa733965.8e1b48",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 116.66666412353516,\r
+        "y": 70.74699592590332,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "daf6d1e0.f0a85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "daf6d1e0.f0a85",\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": 231.9523696899414,\r
+        "y": 112.65177536010742,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3a6f31b4.299cee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a6f31b4.299cee",\r
+        "type": "method",\r
+        "name": "method vnf-topology-operation-assign",\r
+        "xml": "<method rpc='vnf-topology-operation-assign' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 204.76197052001953,\r
+        "y": 155.41365909576416,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9ab83872.914ab8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21dff779.bf4cc8",\r
+        "type": "comment",\r
+        "name": "vnf-topology-operation-assign",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 492.6781921386719,\r
+        "y": 20,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49a698b9.947698",\r
+        "type": "switchNode",\r
+        "name": "switch request-action",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 503.04761505126953,\r
+        "y": 303.8898277282715,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "725cf24d.8d4b4c",\r
+                "abc6c6e8.654018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "725cf24d.8d4b4c",\r
+        "type": "outcome",\r
+        "name": "CreateVnfInstance",\r
+        "xml": "<outcome value='CreateVnfInstance'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 756.7619094848633,\r
+        "y": 281.0327091217041,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b07fe8dd.932d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abc6c6e8.654018",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 718.7618751525879,\r
+        "y": 326.7470369338989,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "97a46274.9df5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b07fe8dd.932d38",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 941.6190376281738,\r
+        "y": 281.0327386856079,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c8588b9c.b0d898",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 174.4048080444336,\r
+        "y": 3352.7708625793457,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "50e14066.4a8fb",\r
+                "945671e8.3d2b7",\r
+                "7054feb2.2900b",\r
+                "25919575.6cb00a",\r
+                "10583438.2574cc",\r
+                "9cd27ab5.524f18",\r
+                "13077d8a.632752",\r
+                "8c40a330.8c84",\r
+                "996bdc9d.0d63b",\r
+                "2dd23fff.89a8d",\r
+                "f2f609da.bd9858",\r
+                "1b9bd518.29100b",\r
+                "4eb737ee.442a38",\r
+                "3530cc21.a0c0d4",\r
+                "2fcd14d0.0b537c",\r
+                "4796fba2.d51144",\r
+                "42f099e.9f61568",\r
+                "ab296e58.94c7",\r
+                "8dc1e7e0.9d5668",\r
+                "d03eeca7.23711",\r
+                "494fd3fe.881b4c",\r
+                "31dc7765.4b4208",\r
+                "ae22f7f9.632468",\r
+                "530dfe10.6f29",\r
+                "2f250d1f.126482",\r
+                "3c27d937.bf75c6",\r
+                "6ae8e0f.7c6952",\r
+                "dfdec27.324004",\r
+                "dc580d36.feec6",\r
+                "87cefff2.af896",\r
+                "9e4b2f5.d8554d",\r
+                "5563a4c5.a199ec",\r
+                "97421a9a.865f98",\r
+                "59c331da.0d09b",\r
+                "b01ba289.b4c4d",\r
+                "ebd11f4a.d9ea2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ade9f393.c1d96",\r
+        "type": "get-resource",\r
+        "name": "get-resource VF_MODEL",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-model'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 515.3809204101562,\r
+        "y": 395.0326976776123,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1e3f6d8d.668b62",\r
+                "270acedb.4b2862"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e3f6d8d.668b62",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 716.166618347168,\r
+        "y": 375.413535118103,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "df6715d9.ce37d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "270acedb.4b2862",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 724.7380485534668,\r
+        "y": 419.6992483139038,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "e48fe633.d5a078"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "50e14066.4a8fb",\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": 549.0475845336914,\r
+        "y": 1145.9851322174072,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a52ad9f3.5409f8",\r
+                "f1a27d38.307e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a52ad9f3.5409f8",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 774.7619132995605,\r
+        "y": 1113.1279201507568,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5a889bed.1fd0a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a889bed.1fd0a4",\r
+        "type": "set",\r
+        "name": "set vnf-index=0",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 939.0476341247559,\r
+        "y": 1112.1279983520508,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f1a27d38.307e4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776.1904754638672,\r
+        "y": 1177.4137382507324,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ff49d41f.68ca58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "742d47cf.681298",\r
+        "type": "set",\r
+        "name": "set vnf-index = vnf_length",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",\r
+        "comments": "",\r
+        "x": 1194.0476303100586,\r
+        "y": 1155.699426651001,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "841debf7.ded508",\r
+        "type": "for",\r
+        "name": "for each existing VNF",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1179.4761428833008,\r
+        "y": 1201.6993656158447,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7d0d1ffd.f9c63"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff49d41f.68ca58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 949.9047355651855,\r
+        "y": 1177.413703918457,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "742d47cf.681298",\r
+                "841debf7.ded508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d0d1ffd.f9c63",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1533.7619094848633,\r
+        "y": 1201.270845413208,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8c6a6fdd.7581b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c6a6fdd.7581b",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1828.047664642334,\r
+        "y": 1200.8423299789429,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "67d1f32e.64262c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7be2c7fd.7f9938",\r
+        "type": "comment",\r
+        "name": "make sure this VNF doesn't exist already",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1520.904640197754,\r
+        "y": 1158.8422756195068,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "945671e8.3d2b7",\r
+        "type": "set",\r
+        "name": "set vnf-topology data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n",\r
+        "comments": "",\r
+        "x": 514.7618675231934,\r
+        "y": 1677.6518993377686,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7054feb2.2900b",\r
+        "type": "switchNode",\r
+        "name": "switch input vnf-name",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 527.2618865966797,\r
+        "y": 2039.770956993103,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "794a160e.b68c48",\r
+                "109f5318.f22f2d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25919575.6cb00a",\r
+        "type": "get-resource",\r
+        "name": "get-resource cloud region",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t     cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t     depth='all'\"\n        pfx='aai.cloud-region' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 559.4048309326172,\r
+        "y": 2935.7706928253174,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "da5da517.ae2e18",\r
+                "54304dd.70307b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54304dd.70307b4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 767.5081481933594,\r
+        "y": 2954.921399116516,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "cbecda63.60f978"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da5da517.ae2e18",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 776.4367446899414,\r
+        "y": 2912.2071323394775,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "55ab3764.a14138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10583438.2574cc",\r
+        "type": "get-resource",\r
+        "name": "get-resource VF_TO_NETWORK_ROLE_MAPPING",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-network-role-mapping[]'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 624.6429138183594,\r
+        "y": 3246.8182125091553,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b9431e3d.b421d",\r
+                "395440a1.5e6de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9431e3d.b421d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 920.4285850524902,\r
+        "y": 3225.532377243042,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5be8614b.d2283"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "395440a1.5e6de",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 929.0000152587891,\r
+        "y": 3269.818090438843,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4f0a7869.c1d018"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fde1d716.a4a0e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1025.5716133117676,\r
+        "y": 4363.460702896118,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "abcfb9a1.c41368",\r
+                "912ecbf0.ffa438",\r
+                "c223a2fd.f4871",\r
+                "7e1ee9f5.bc8198",\r
+                "c6001282.4b6e1",\r
+                "ea99e7e9.ed0b98",\r
+                "c41b6137.b6d4b",\r
+                "8dc14ff8.fbd57",\r
+                "4e569933.c14918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c223a2fd.f4871",\r
+        "type": "get-resource",\r
+        "name": "get-resource l3-network",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-networks\" \n\t\tkey=\"l3-network.network-role = $db.vf-network-role-mapping[$role-index].network-role\"\n        pfx='aai.l3-network' local-only='false'\n>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1275.2858123779297,\r
+        "y": 3453.8417415618896,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ede95f4d.859fa",\r
+                "3e760d07.8da062"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e760d07.8da062",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1480.7621269226074,\r
+        "y": 3483.1273441314697,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4fcc2ec6.5268d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ede95f4d.859fa",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1488.2621231079102,\r
+        "y": 3434.2703142166138,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1b9558ce.3c84a7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abcfb9a1.c41368",\r
+        "type": "set",\r
+        "name": "set vnf-network data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-role'\n    value='`$db.vf-network-role-mapping[$role-index].network-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-name'\n    value='`$aai.l3-network.l3-network[$db-network-index].network-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].neutron-id'\n    value='`$aai.l3-network.l3-network[$db-network-index].neutron-network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-id'\n    value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].contrail-network-fqdn'\n    value='`$aai.l3-network.l3-network[$db-network-index].contrail-network-fqdn`' />\n",\r
+        "comments": "",\r
+        "x": 1271.6192779541016,\r
+        "y": 4259.413550376892,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "996bdc9d.0d63b",\r
+        "type": "for",\r
+        "name": "for each cloud-region availability zone",\r
+        "xml": "<for index='idx' start='0' end='`$aai.cloud-region.availability-zones.availability-zone_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 492.00031661987305,\r
+        "y": 5506.532527923584,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b2e77d6f.5c88e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cab1cdc0.80552",\r
+        "type": "set",\r
+        "name": "set availability-zone",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[$idx]'\n  value='`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`' />\n",\r
+        "comments": "",\r
+        "x": 953.6669998168945,\r
+        "y": 5475.865942001343,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2dd23fff.89a8d",\r
+        "type": "set",\r
+        "name": "set vnf-parameters-data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n  value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n",\r
+        "comments": "",\r
+        "x": 451.6192436218262,\r
+        "y": 5356.484888076782,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c622b6f5.5fb0e8",\r
+        "type": "save",\r
+        "name": "save generic-vnf l3-network relationships",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-nw-index].network-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 918.1907768249512,\r
+        "y": 5650.29474067688,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "72e530eb.ef2a9",\r
+                "560ad615.6ebaf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4eb737ee.442a38",\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": 405.7145233154297,\r
+        "y": 6313.055904388428,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b9bd518.29100b",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to PendingCreate",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
+        "comments": "",\r
+        "x": 501.24223709106445,\r
+        "y": 6018.250611305237,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13077d8a.632752",\r
+        "type": "for",\r
+        "name": "for each network-role",\r
+        "xml": "<for silentFailure='true' index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 485.57154846191406,\r
+        "y": 4336.794371604919,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b7e5144f.5264b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cd27ab5.524f18",\r
+        "type": "set",\r
+        "name": "set network-index = 0",\r
+        "xml": "<set>\n<parameter name='network-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 527.0714111328125,\r
+        "y": 3300.8660068511963,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "912ecbf0.ffa438",\r
+        "type": "set",\r
+        "name": "increment network-index",\r
+        "xml": "<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n",\r
+        "comments": "",\r
+        "x": 1253.6192665100098,\r
+        "y": 5307.175491333008,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8c40a330.8c84",\r
+        "type": "set",\r
+        "name": "set vnf-network_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length'\n  value='`$network-index`' />\n",\r
+        "comments": "",\r
+        "x": 450.4763298034668,\r
+        "y": 5306.484931945801,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2f609da.bd9858",\r
+        "type": "set",\r
+        "name": "copy input data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",\r
+        "comments": "",\r
+        "x": 416.7620658874512,\r
+        "y": 5965.913442611694,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3530cc21.a0c0d4",\r
+        "type": "for",\r
+        "name": "for each vnf-network",\r
+        "xml": "<for index='vnf-nw-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 441.1906852722168,\r
+        "y": 5649.29465675354,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b6d2730a.405db"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b6d2730a.405db",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 644.8573265075684,\r
+        "y": 5649.294617652893,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c622b6f5.5fb0e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fcd14d0.0b537c",\r
+        "type": "set",\r
+        "name": "set new vnf_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",\r
+        "comments": "",\r
+        "x": 497.6905059814453,\r
+        "y": 1198.0090227127075,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4796fba2.d51144",\r
+        "type": "for",\r
+        "name": "for each cloud-region relationship",\r
+        "xml": "<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 572.2619552612305,\r
+        "y": 3023.008864402771,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "de35f354.4a026"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de35f354.4a026",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 819.9404983520508,\r
+        "y": 3022.7587938308716,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9753c9fc.ee6548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9753c9fc.ee6548",\r
+        "type": "outcome",\r
+        "name": "complex",\r
+        "xml": "<outcome value='complex'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 989.4048194885254,\r
+        "y": 3022.1516160964966,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f1d0780c.c74608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49d47361.e5235c",\r
+        "type": "set",\r
+        "name": "set aic-clli",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli'\n  value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",\r
+        "comments": "",\r
+        "x": 1366.976203918457,\r
+        "y": 3020.389811515808,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42f099e.9f61568",\r
+        "type": "switchNode",\r
+        "name": "switch aic-clli",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 505.3095817565918,\r
+        "y": 3136.1039962768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "18989148.50f10f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18989148.50f10f",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653.4524154663086,\r
+        "y": 3136.103979110718,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9a466e25.4156f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56b5f776.c4c628",\r
+        "type": "set",\r
+        "name": "set from DB",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-model.invariant-uuid`' />\n",\r
+        "comments": "",\r
+        "x": 931.7621269226074,\r
+        "y": 2494.9612531661987,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c7e1c13d.03db5",\r
+        "type": "for",\r
+        "name": "for each l3-network",\r
+        "xml": "<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1391.8812561035156,\r
+        "y": 4083.984929084778,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c1ed15e6.f88648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e75f10eb.ced4f",\r
+        "type": "switchNode",\r
+        "name": "switch orchestration-status",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1810.4524269104004,\r
+        "y": 4018.556393623352,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "acbbb297.0a07e",\r
+                "18131921.5c40e7",\r
+                "84ce6f22.6e9ac",\r
+                "a5969f85.edad",\r
+                "8306b63a.7a6a88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acbbb297.0a07e",\r
+        "type": "outcome",\r
+        "name": "Pending Delete",\r
+        "xml": "<outcome value='Pending Delete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2051.119297027588,\r
+        "y": 4060.222897529602,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "bcc48c45.57047"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18131921.5c40e7",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2023.9764366149902,\r
+        "y": 4111.222878456116,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f846017e.0f7b7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d24ce0d7.c8619",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2559.6907386779785,\r
+        "y": 4056.460795402527,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c028438.b008bc",\r
+                "225c2fa8.b622f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f846017e.0f7b7",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2193.976348876953,\r
+        "y": 4110.794255256653,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3979a64c.84ab9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c028438.b008bc",\r
+        "type": "outcome",\r
+        "name": "cloud-region",\r
+        "xml": "<outcome value='cloud-region'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2733.9765243530273,\r
+        "y": 4079.365619659424,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "24abd19e.88186e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24abd19e.88186e",\r
+        "type": "for",\r
+        "name": "for each relationship data",\r
+        "xml": "<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2931.11922454834,\r
+        "y": 4079.794087409973,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6e6e70c9.1f47f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e6e70c9.1f47f",\r
+        "type": "switchNode",\r
+        "name": "switch relationship-key",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3162.547824859619,\r
+        "y": 4079.3654623031616,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "41f73a04.000a34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41f73a04.000a34",\r
+        "type": "outcome",\r
+        "name": "cloud-region.cloud-region-id",\r
+        "xml": "<outcome value='cloud-region.cloud-region-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3403.976390838623,\r
+        "y": 4079.3655586242676,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ec6b1424.dae298"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec6b1424.dae298",\r
+        "type": "switchNode",\r
+        "name": "switch relationship-value == cloud-region-id",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value == $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3708.262310028076,\r
+        "y": 4079.22261428833,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "76d1c220.996b9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "76d1c220.996b9c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3413.2624473571777,\r
+        "y": 4196.865568161011,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1de3d6a.5295a29"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e1ee9f5.bc8198",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1228.0954284667969,\r
+        "y": 4015.270573616028,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c7e1c13d.03db5",\r
+                "85730c77.85f6e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6001282.4b6e1",\r
+        "type": "set",\r
+        "name": "set l3-network-id = -1",\r
+        "xml": "<set>\n<parameter name='l3-network-id' value='-1' />\n",\r
+        "comments": "",\r
+        "x": 1272.4287872314453,\r
+        "y": 3887.175227165222,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1de3d6a.5295a29",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3559.0954246520996,\r
+        "y": 4196.341676712036,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f676c278.1ddf2",\r
+                "6ee99534.f9db3c",\r
+                "133789d2.fbdb36"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f676c278.1ddf2",\r
+        "type": "set",\r
+        "name": "set l3-network-id = this l3-network",\r
+        "xml": "<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n",\r
+        "comments": "",\r
+        "x": 3794.333427429199,\r
+        "y": 4158.484645843506,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ea99e7e9.ed0b98",\r
+        "type": "switchNode",\r
+        "name": "switch l3-network-id",\r
+        "xml": "<switch test='`$l3-network-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1269.4287109375,\r
+        "y": 4210.842268943787,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8b18bc8b.1ecc5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b18bc8b.1ecc5",\r
+        "type": "outcome",\r
+        "name": "-1",\r
+        "xml": "<outcome value='-1'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1439.4286613464355,\r
+        "y": 4210.842024803162,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d03cff5b.4eae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab296e58.94c7",\r
+        "type": "switchNode",\r
+        "name": "switch input model-invariant-uuid",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 575.6192016601562,\r
+        "y": 2517.7856969833374,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a6d2444d.170f18",\r
+                "d0c4e96a.f0e598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6d2444d.170f18",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 781.2858734130859,\r
+        "y": 2494.9286603927612,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "56b5f776.c4c628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0c4e96a.f0e598",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 782.714469909668,\r
+        "y": 2539.2142515182495,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "53133cb6.18d844"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53133cb6.18d844",\r
+        "type": "set",\r
+        "name": "set from input",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n",\r
+        "comments": "",\r
+        "x": 937.0002059936523,\r
+        "y": 2538.6428236961365,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6f1bca5a.057ce4",\r
+        "type": "set",\r
+        "name": "set from DB",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$db.vf-model.uuid`' />\n",\r
+        "comments": "",\r
+        "x": 932.7143974304199,\r
+        "y": 2583.4999294281006,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8dc1e7e0.9d5668",\r
+        "type": "switchNode",\r
+        "name": "switch input model-uuid",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 548.2382202148438,\r
+        "y": 2606.3244342803955,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8002dd41.ae1f",\r
+                "896eccc9.b25eb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8002dd41.ae1f",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 782.2381935119629,\r
+        "y": 2583.467366218567,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6f1bca5a.057ce4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "896eccc9.b25eb",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 783.6667900085449,\r
+        "y": 2627.752957344055,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "17701e26.510582"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17701e26.510582",\r
+        "type": "set",\r
+        "name": "set from input",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",\r
+        "comments": "",\r
+        "x": 937.9525260925293,\r
+        "y": 2627.181529521942,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b6fbf29a.0df09",\r
+        "type": "set",\r
+        "name": "set from DB",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$db.vf-model.version`' />\n",\r
+        "comments": "",\r
+        "x": 929.8573303222656,\r
+        "y": 2672.3571367263794,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d03eeca7.23711",\r
+        "type": "switchNode",\r
+        "name": "switch input model-version",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 556.3810920715332,\r
+        "y": 2695.1815814971924,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6aa27ca4.a61d34",\r
+                "1ae6e106.ea9c7f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6aa27ca4.a61d34",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 779.3810768127441,\r
+        "y": 2672.324543952942,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b6fbf29a.0df09"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ae6e106.ea9c7f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 780.8096733093262,\r
+        "y": 2716.61013507843,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "56c362db.13020c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "56c362db.13020c",\r
+        "type": "set",\r
+        "name": "set from input",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n",\r
+        "comments": "",\r
+        "x": 935.0954093933105,\r
+        "y": 2716.038707256317,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fcfee3c.f2226",\r
+        "type": "set",\r
+        "name": "set from DB",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$db.vf-model.name`' />\n",\r
+        "comments": "",\r
+        "x": 929.8573303222656,\r
+        "y": 2759.4999589920044,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "494fd3fe.881b4c",\r
+        "type": "switchNode",\r
+        "name": "switch input model-name",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 551.3810920715332,\r
+        "y": 2782.3244037628174,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3f7d112e.5f72ee",\r
+                "6e803b0d.a54dc4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f7d112e.5f72ee",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 779.3810768127441,\r
+        "y": 2759.467366218567,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9fcfee3c.f2226"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e803b0d.a54dc4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 780.8096733093262,\r
+        "y": 2803.752957344055,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9d0420e8.1e34b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d0420e8.1e34b",\r
+        "type": "set",\r
+        "name": "set from input",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n",\r
+        "comments": "",\r
+        "x": 935.0954093933105,\r
+        "y": 2803.181529521942,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bcc48c45.57047",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2204.3333892822266,\r
+        "y": 4060.9997749328613,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8306b63a.7a6a88",\r
+        "type": "outcome",\r
+        "name": "PendingDelete",\r
+        "xml": "<outcome value='PendingDelete'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2049.000030517578,\r
+        "y": 4015.999689102173,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ea893bb0.586278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea893bb0.586278",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2204.214122772217,\r
+        "y": 4016.776566505432,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5969f85.edad",\r
+        "type": "outcome",\r
+        "name": "Pending Create",\r
+        "xml": "<outcome value='Pending Create'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2051.000030517578,\r
+        "y": 3972.666193008423,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "bab4140b.02b308"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bab4140b.02b308",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2204.214122772217,\r
+        "y": 3973.443070411682,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84ce6f22.6e9ac",\r
+        "type": "outcome",\r
+        "name": "PendingCreate",\r
+        "xml": "<outcome value='PendingCreate'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2051.000030517578,\r
+        "y": 3929.332941055298,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fc3367.845aac98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc3367.845aac98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2204.214122772217,\r
+        "y": 3930.109818458557,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a129d9ae.667dd8",\r
+        "type": "for",\r
+        "name": "for each A&AI subnet",\r
+        "xml": "<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1737.3810577392578,\r
+        "y": 4350.047110080719,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "26e050ad.0575e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84d519bc.318478",\r
+        "type": "set",\r
+        "name": "set subnet_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet_length`' />\n",\r
+        "comments": "",\r
+        "x": 1726.047622680664,\r
+        "y": 4395.04719209671,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "31dc7765.4b4208",\r
+        "type": "set",\r
+        "name": "set availability-zones.max-count and length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.max-count'\n   value='`$db.vf-model.avail-zone-max-count`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length'\n   value='`$aai.cloud-region.availability-zones.availability-zone_length`' />\n",\r
+        "comments": "",\r
+        "x": 511.66682052612305,\r
+        "y": 5594.547995567322,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ae22f7f9.632468",\r
+        "type": "set",\r
+        "name": "set vnf-name",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name'\n   value='`$tmp.vnf-name`' />\n",\r
+        "comments": "",\r
+        "x": 512.5000152587891,\r
+        "y": 2451.8334608078003,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "530dfe10.6f29",\r
+        "type": "save",\r
+        "name": "update generic-vnf",\r
+        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vnf-name\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<!-- <parameter name=\"operational-status\" value=\"out-of-service-path\" /> -->\n<parameter name=\"equipment-role\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role`\" />\n<parameter name=\"model-invariant-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"in-maint\" value=\"true\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 432.0000877380371,\r
+        "y": 5804.213758468628,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8c964a5c.697478",\r
+                "9e7283af.92a1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f250d1f.126482",\r
+        "type": "set",\r
+        "name": "set vnf-object-path",\r
+        "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
+        "comments": "",\r
+        "x": 432.00012588500977,\r
+        "y": 5734.214241027832,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3c27d937.bf75c6",\r
+        "type": "set",\r
+        "name": "set vnf-id",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n   value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",\r
+        "comments": "",\r
+        "x": 500.83335876464844,\r
+        "y": 2403.5000038146973,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ae8e0f.7c6952",\r
+        "type": "execute",\r
+        "name": "printContext",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnf.log' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 397.76210021972656,\r
+        "y": 6178.976177215576,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "72e530eb.ef2a9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1168.0241317749023,\r
+        "y": 5627.833315849304,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1d23943a.cc401c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "560ad615.6ebaf8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1176.5955619812012,\r
+        "y": 5672.119029045105,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "48b115c8.09c9bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c964a5c.697478",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 606.3574180603027,\r
+        "y": 5782.833353996277,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b5f5454e.605518"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e7283af.92a1c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 614.9288482666016,\r
+        "y": 5827.119067192078,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fb7909b7.07d3a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfdec27.324004",\r
+        "type": "set",\r
+        "name": "set model-customization-uuid",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n",\r
+        "comments": "",\r
+        "x": 564.1666793823242,\r
+        "y": 2855.1666078567505,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f7d7f0fa.89cd2",\r
+        "type": "execute",\r
+        "name": "split related-link",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n   <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n   <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n   <parameter name='regex' value='/' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1386.357063293457,\r
+        "y": 2975.1517295837402,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1d0780c.c74608",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1172.0237655639648,\r
+        "y": 3021.8185176849365,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f7d7f0fa.89cd2",\r
+                "49d47361.e5235c",\r
+                "68e794dc.43eb9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68e794dc.43eb9c",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 1356.0237274169922,\r
+        "y": 3065.1518144607544,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2e77d6f.5c88e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 743.6667594909668,\r
+        "y": 5505.628111839294,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "cab1cdc0.80552",\r
+                "2c7d624d.a1567e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c7d624d.a1567e",\r
+        "type": "save",\r
+        "name": "save generic-vnf availability-zone relationship",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n    <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1037.0001487731934,\r
+        "y": 5528.9615659713745,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7e45c7a1.1fc228",\r
+                "7cb74929.a6a798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e45c7a1.1fc228",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1301.8334007263184,\r
+        "y": 5509.833388328552,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ac3d2a38.193128"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cb74929.a6a798",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1310.4048309326172,\r
+        "y": 5554.119101524353,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "edd6eeb3.58833"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f0a7869.c1d018",\r
+        "type": "set",\r
+        "name": "set mapping rows to 0",\r
+        "xml": "<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1122.9761505126953,\r
+        "y": 3269.437578201294,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dc580d36.feec6",\r
+        "type": "switchNode",\r
+        "name": "switch AAI availability-zone_length",\r
+        "xml": "<switch test='`$aai.cloud-region.availability-zones.availability-zone_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 484.381046295166,\r
+        "y": 5409.437698364258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "65cd03d3.cd933c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65cd03d3.cd933c",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 702.952465057373,\r
+        "y": 5409.009107589722,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5cdda0db.c6c79"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55344fcf.542e2",\r
+        "type": "set",\r
+        "name": "set availability-zone_length to 0",\r
+        "xml": "<set>\n<parameter name='aai.cloud-region.availability-zones.availability-zone_length' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1304.3811073303223,\r
+        "y": 5427.580345153809,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5cdda0db.c6c79",\r
+        "type": "switchNode",\r
+        "name": "switch AZ max count > 0",\r
+        "xml": "<switch test='`$db.vf-model.avail-zone-max-count &gt; 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 891.5239372253418,\r
+        "y": 5409.43741941452,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "689f8ebb.877dd",\r
+                "dd9a3b97.b39268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "689f8ebb.877dd",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1094.3810443878174,\r
+        "y": 5383.723169326782,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "63585eee.6f434"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd9a3b97.b39268",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1095.8096656799316,\r
+        "y": 5428.008916854858,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "55344fcf.542e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2bc8145e.9e6d7c",\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": 510.95240020751953,\r
+        "y": 177.1755828857422,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "794a160e.b68c48",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 729.2857055664062,\r
+        "y": 1853.2470073699951,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8d68e064.9148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4c0271b.8d9548",\r
+        "type": "switchNode",\r
+        "name": "switch ecomp-naming",\r
+        "xml": "<switch test='`$db.vf-model.ecomp-generated-naming`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1106.9050941467285,\r
+        "y": 1753.961443901062,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1882b0bf.c2311f",\r
+                "2eeee2ce.d551be",\r
+                "b8c05ccb.47683"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d68e064.9148",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 875.0002059936523,\r
+        "y": 1853.247124671936,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b4c0271b.8d9548",\r
+                "2febaea8.95a862"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2eeee2ce.d551be",\r
+        "type": "outcome",\r
+        "name": "N",\r
+        "xml": "<outcome value='N'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1293.333480834961,\r
+        "y": 1754.4375705718994,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "da3712d9.f41f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1882b0bf.c2311f",\r
+        "type": "outcome",\r
+        "name": "Y",\r
+        "xml": "<outcome value='Y'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1293.3334732055664,\r
+        "y": 1713.0090246200562,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "18523eea.6d6ad1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8c05ccb.47683",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1293.3334197998047,\r
+        "y": 1797.2947025299072,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "da3712d9.f41f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18523eea.6d6ad1",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1430.476390838623,\r
+        "y": 1713.151891708374,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "109f5318.f22f2d",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 714.476432800293,\r
+        "y": 2207.866183280945,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fa97f7fa.540fd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa97f7fa.540fd8",\r
+        "type": "set",\r
+        "name": "set tmp.vnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-information.vnf-name`\" />\n",\r
+        "comments": "",\r
+        "x": 880.238395690918,\r
+        "y": 2206.7234535217285,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8d7fa952.98d108",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:generate-unique-name",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1765.3096733093262,\r
+        "y": 1903.0089440345764,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "681ac6a0.a11838",\r
+                "f4abec22.90002"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "681ac6a0.a11838",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2042.4524765014648,\r
+        "y": 1876.5804772377014,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6d7f13cc.8d975c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4abec22.90002",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2047.2142219543457,\r
+        "y": 1921.9613881111145,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f9e4fa65.eb0968"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5dba753.21ae88",\r
+        "type": "set",\r
+        "name": "set variables for generating unique name",\r
+        "xml": "<set>\n<parameter name='generate-unique-name-input.action' value='ASSIGN' />\n<parameter name='generate-unique-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='generate-unique-name-input.index-table-name' value='VNF_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`'z' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + $db.vf-model.nf-code`\" />\n",\r
+        "comments": "",\r
+        "x": 1720.3099250793457,\r
+        "y": 1854.1042637825012,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f9e4fa65.eb0968",\r
+        "type": "set",\r
+        "name": "set tmp.vnf-name to generated name",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n",\r
+        "comments": "",\r
+        "x": 2270.1186180114746,\r
+        "y": 1921.4374632835388,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2febaea8.95a862",\r
+        "type": "switchNode",\r
+        "name": "switch naming-policy",\r
+        "xml": "<switch test='`$db.vf-model.naming-policy`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1104.6906776428223,\r
+        "y": 1962.2470607757568,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8f7b27bf.e7e3a8",\r
+                "b931038a.dea97"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f7b27bf.e7e3a8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1294.6906089782715,\r
+        "y": 1883.675615310669,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1ce185e2.fb229a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b931038a.dea97",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1294.9288482666016,\r
+        "y": 2011.056559562683,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "42c58d7a.bc5884"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ce185e2.fb229a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1447.5478782653809,\r
+        "y": 1882.2470817565918,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b5dba753.21ae88",\r
+                "8d7fa952.98d108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17d076a4.213ab9",\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": 1786.595802307129,\r
+        "y": 2026.7709412574768,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7ca77e3f.200f2",\r
+                "edded880.2d4e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42c58d7a.bc5884",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1449.4526977539062,\r
+        "y": 2011.056559562683,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9ce0b71c.18bda8",\r
+                "17d076a4.213ab9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ce0b71c.18bda8",\r
+        "type": "set",\r
+        "name": "set variables for generating name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.policy-instance-name' value='`$db.vf-model.naming-policy`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='ASSIGN' />\n<parameter name='naming-policy-generate-name-input.query-parameter' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />",\r
+        "comments": "",\r
+        "x": 1696.595718383789,\r
+        "y": 1981.05659532547,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "efe8f3b.6be4a1",\r
+        "type": "set",\r
+        "name": "set tmp.vnf-name to generated name",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-name' value='`$naming-policy-generate-name-output.vnf-name`' />\n",\r
+        "comments": "",\r
+        "x": 2346.4527740478516,\r
+        "y": 2046.770751953125,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f54d4b54.f29d58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1585.7142028808594,\r
+        "y": 6319.317764282227,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "48898d5.e385374",\r
+                "748556dc.ead268",\r
+                "87f91dc6.de07b",\r
+                "b319ef18.b3bad"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "748556dc.ead268",\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": 1964.285629272461,\r
+        "y": 6294.460662126541,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48898d5.e385374",\r
+        "type": "set",\r
+        "name": "set variables for deleting name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 1865.7142486572266,\r
+        "y": 6247.317733049393,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b779e958.044168",\r
+        "type": "comment",\r
+        "name": "Unassign the VNF name",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1731.6665725708008,\r
+        "y": 6187.889232873917,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ca77e3f.200f2",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2084.761848449707,\r
+        "y": 2001.6994485855103,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "702e58b3.200b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "edded880.2d4e08",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2089.523593902588,\r
+        "y": 2047.0803594589233,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "efe8f3b.6be4a1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e72cfc8.575e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 739.9999465942383,\r
+        "y": 1356.666666984558,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "46dd139e.86081c",\r
+                "761b2c43.67ef34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "87cefff2.af896",\r
+        "type": "for",\r
+        "name": "for each instance group id",\r
+        "xml": "<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 523.3332939147949,\r
+        "y": 1357.333312034607,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8e72cfc8.575e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46dd139e.86081c",\r
+        "type": "get-resource",\r
+        "name": "get-resource instance-group",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"instance-group\" \n\t\tkey=\"instance-group.id = $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\"\n        pfx='aai.instance-group' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 967.9999847412109,\r
+        "y": 1288.3334255218506,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "113b83c3.c5f2cc",\r
+                "1095d6a8.eb1ea9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1095d6a8.eb1ea9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1185.5792770385742,\r
+        "y": 1319.8174781799316,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6b5b96d7.f11058"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "113b83c3.c5f2cc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1194.5081100463867,\r
+        "y": 1256.4366302490234,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3d4ce14c.b56fbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "761b2c43.67ef34",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$aai.instance-group.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 944.9999618530273,\r
+        "y": 1428.3333644866943,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ef07f13d.87a9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef07f13d.87a9",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$aai.instance-group.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1158.3334045410156,\r
+        "y": 1428.333303451538,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "df5b0cc3.ccd9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df5b0cc3.ccd9a",\r
+        "type": "outcome",\r
+        "name": "collection",\r
+        "xml": "<outcome value='collection'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1330.00004196167,\r
+        "y": 1428.3333854675293,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "98da2133.07fbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98da2133.07fbe",\r
+        "type": "get-resource",\r
+        "name": "get-resource collection",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"collection\" \n\t\tkey=\"collection.collection-id = $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n        pfx='aai.collection' local-only='false' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1549.9999465942383,\r
+        "y": 1426.6666469573975,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c6ab56ad.e1e918",\r
+                "c4f813df.f6eb3",\r
+                "fa511cd0.4acf7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4f813df.f6eb3",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1764.2461395263672,\r
+        "y": 1378.1508359909058,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1cfc4c24.ab0124"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6ab56ad.e1e918",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1773.1747360229492,\r
+        "y": 1336.4365692138672,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "75f0b66c.711368"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa511cd0.4acf7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1783.33345413208,\r
+        "y": 1539.9999542236328,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "2caf3e47.5abe82"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2caf3e47.5abe82",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1936.6665954589844,\r
+        "y": 1539.3332500457764,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "889214a0.071c58",\r
+                "61c009cd.371838",\r
+                "1b8b156c.6c083b",\r
+                "79b15187.90b49",\r
+                "67373c69.98b004"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "889214a0.071c58",\r
+        "type": "for",\r
+        "name": "for each network-instance-group",\r
+        "xml": "<for silentFailure='true' index='nig-index' start='0' end='`$service-data.network-instance-groups.network-instance-group_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2249.2857360839844,\r
+        "y": 1488.5715045928955,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "64d1075e.ee3f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61c009cd.371838",\r
+        "type": "set",\r
+        "name": "set found-network-instance-group to false",\r
+        "xml": "<set>\n<parameter name='found-network-instance-group' value='false' />\n",\r
+        "comments": "",\r
+        "x": 2279.2856979370117,\r
+        "y": 1441.9048767089844,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "64d1075e.ee3f48",\r
+        "type": "switchNode",\r
+        "name": "network-instance-group-id matches?",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n  == $service-data.network-instance-groups.network-instance-group[$nig-index].network-instance-group-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2565.952247619629,\r
+        "y": 1488.5715036392212,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "e14a30ad.b266"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e14a30ad.b266",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2787.619026184082,\r
+        "y": 1488.5714683532715,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "338a6e83.74e682"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "338a6e83.74e682",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2917.61905670166,\r
+        "y": 1488.5715446472168,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b65b391.a6cd9c8",\r
+                "5a856f0a.aefef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b65b391.a6cd9c8",\r
+        "type": "set",\r
+        "name": "set found-network-instance-group to true",\r
+        "xml": "<set>\n<parameter name='found-network-instance-group' value='true' />\n",\r
+        "comments": "",\r
+        "x": 3190.952423095703,\r
+        "y": 1463.5715236663818,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5a856f0a.aefef",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3084.2860374450684,\r
+        "y": 1511.904893875122,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b8b156c.6c083b",\r
+        "type": "switchNode",\r
+        "name": "switch found-network-instance-group",\r
+        "xml": "<switch test='`$found-network-instance-group`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2260.9523544311523,\r
+        "y": 1538.5714855194092,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "49805ef2.194a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49805ef2.194a",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2482.6192016601562,\r
+        "y": 1538.5715079307556,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a3ec7ac.ac12b88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9e4b2f5.d8554d",\r
+        "type": "set",\r
+        "name": "set tmp.vnf-network-collection_length to 0",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-network-collection_length' value='0' />\n",\r
+        "comments": "",\r
+        "x": 571.666633605957,\r
+        "y": 1308.3334436416626,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79b15187.90b49",\r
+        "type": "set",\r
+        "name": "set vnf-network-collection data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-function'\n  value='`$aai.instance-group.instance-group-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-id'\n  value='`$aai.instance-group.id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-service-instance-id'\n  value='`$service-data.network-instance-groups.network-instance-group[$nig-index].service-instance-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-customization-uuid'\n  value='`$aai.collection.collection-customization-id`' />\n",\r
+        "comments": "",\r
+        "x": 2240.95267868042,\r
+        "y": 1586.904821395874,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "67373c69.98b004",\r
+        "type": "set",\r
+        "name": "increment tmp.vnf-network-collection_length",\r
+        "xml": "<set>\n<parameter name='tmp.vnf-network-collection_length' value='`$tmp.vnf-network-collection_length + 1`' />\n",\r
+        "comments": "",\r
+        "x": 2282.619384765625,\r
+        "y": 1633.5714893341064,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5563a4c5.a199ec",\r
+        "type": "set",\r
+        "name": "set vnf-network-collection_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection_length'\n  value='`$tmp.vnf-network-collection_length`' />\n",\r
+        "comments": "",\r
+        "x": 550.8333282470703,\r
+        "y": 1565.8333930969238,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a9b7ab72.63a7e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 668.6667098999023,\r
+        "y": 5898.80961894989,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f0f08819.d9d3b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97421a9a.865f98",\r
+        "type": "for",\r
+        "name": "for each instance group id",\r
+        "xml": "<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 452.000057220459,\r
+        "y": 5899.476263999939,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a9b7ab72.63a7e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0f08819.d9d3b8",\r
+        "type": "save",\r
+        "name": "save generic-vnf relationship to instance-group",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"generic-vnf:relationship-list\"\n   key=\"generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-information.vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n    <parameter name=\"relationship-list.relationship[0].related-to\" value=\"instance-group\" />\n    <parameter name=\"relationship-list.relationship[0].related-link\"\n      value=\"`'/aai/v$/network/instance-groups/instance-group/'\n        + $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 952.0000381469727,\r
+        "y": 5898.333299636841,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7a8ee12f.371a6",\r
+                "1be782fa.92bfcd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a8ee12f.371a6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1211.3572616577148,\r
+        "y": 5875.285715103149,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b5b87fb0.590f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1be782fa.92bfcd",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1219.9286918640137,\r
+        "y": 5919.57142829895,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "610d2304.a3d70c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c41b6137.b6d4b",\r
+        "type": "switchNode",\r
+        "name": "switch subnet_length",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1273.5714569091797,\r
+        "y": 4331.428667068481,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f2057e5e.eaee4",\r
+                "f813a06e.cb2a1",\r
+                "ce347497.746558"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2057e5e.eaee4",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1446.4286193847656,\r
+        "y": 4294.285726547241,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "82fb5a4d.e1f5b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f813a06e.cb2a1",\r
+        "type": "outcome",\r
+        "name": "0",\r
+        "xml": "<outcome value='0'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1447.8571891784668,\r
+        "y": 4332.856889724731,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "82fb5a4d.e1f5b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ce347497.746558",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1446.428653717041,\r
+        "y": 4371.428281784058,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7cc4f5b7.8976ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cc4f5b7.8976ac",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1567.8572082519531,\r
+        "y": 4371.428548812866,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a129d9ae.667dd8",\r
+                "84d519bc.318478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "82fb5a4d.e1f5b8",\r
+        "type": "set",\r
+        "name": "set subnet_length to 0",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n   value='0' />\n",\r
+        "comments": "",\r
+        "x": 1639.2858123779297,\r
+        "y": 4302.856889724731,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ab83872.914ab8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 256.74603271484375,\r
+        "y": 395.61908054351807,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "2bc8145e.9e6d7c",\r
+                "49a698b9.947698",\r
+                "ade9f393.c1d96",\r
+                "36f653c4.5383bc",\r
+                "16470885.0e3b37",\r
+                "1caeb411.8cfeac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26e050ad.0575e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1909.047664642334,\r
+        "y": 4350.032744407654,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6613870.b132378",\r
+                "722310bb.9f769",\r
+                "9fd39f7.3cbf46",\r
+                "d3095f31.7d4de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8dc14ff8.fbd57",\r
+        "type": "set",\r
+        "name": "clear aai.l3-network",\r
+        "xml": "<set>\n<parameter name='aai.l3-network.' value='' />\n",\r
+        "comments": "",\r
+        "x": 1260.4762344360352,\r
+        "y": 3404.3182973861694,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ee99534.f9db3c",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3709.3330459594727,\r
+        "y": 4250.032426834106,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "85730c77.85f6e",\r
+        "type": "set",\r
+        "name": "set found-network to false",\r
+        "xml": "<set>\n<parameter name='found-network' value='false' />\n",\r
+        "comments": "",\r
+        "x": 1409.0476379394531,\r
+        "y": 3955.7468309402466,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3979a64c.84ab9a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2380.7619438171387,\r
+        "y": 4110.032627105713,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d24ce0d7.c8619",\r
+                "c4e4f6d8.6939d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4e4f6d8.6939d8",\r
+        "type": "switchNode",\r
+        "name": "switch found-network",\r
+        "xml": "<switch test='`$found-network`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2572.1904907226562,\r
+        "y": 4140.032681465149,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8700444f.d17ae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "133789d2.fbdb36",\r
+        "type": "set",\r
+        "name": "set found-network to true",\r
+        "xml": "<set>\n<parameter name='found-network' value='true' />\n",\r
+        "comments": "",\r
+        "x": 3765.047924041748,\r
+        "y": 4204.3181076049805,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8700444f.d17ae8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2740.7619819641113,\r
+        "y": 4140.0326108932495,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4c345848.e3a208"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c345848.e3a208",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2870.762050628662,\r
+        "y": 4138.604004859924,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c1ed15e6.f88648",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1581.0476608276367,\r
+        "y": 4083.7469053268433,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "e75f10eb.ced4f",\r
+                "be46946a.165bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be46946a.165bb8",\r
+        "type": "switchNode",\r
+        "name": "switch found-network",\r
+        "xml": "<switch test='`$found-network`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1791.0476150512695,\r
+        "y": 4155.746788978577,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "2f6a30a5.92d22"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f6a30a5.92d22",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1959.6191062927246,\r
+        "y": 4155.746718406677,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "587b7976.a36108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "587b7976.a36108",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2089.6191749572754,\r
+        "y": 4154.318112373352,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fd39f7.3cbf46",\r
+        "type": "set",\r
+        "name": "set subnet data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].ip-version'\n   value='`$tmp.ip-version`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-id'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].neutron-subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].sdnc-subnet-id'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-role'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-name'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].network-start-address'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].network-start-address`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].gateway-address'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].gateway-address`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].cidr-mask'\n   value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].cidr-mask`' />\n",\r
+        "comments": "",\r
+        "x": 2063.3334312438965,\r
+        "y": 4380.714490890503,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d3095f31.7d4de",\r
+        "type": "switchNode",\r
+        "name": "switch dhcp-enabled",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].dhcp-enabled`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2077.8572120666504,\r
+        "y": 4433.557444572449,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a8c627c.ce253d8",\r
+                "39879203.ca3c2e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8c627c.ce253d8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2240.714376722063,\r
+        "y": 4412.1288022994995,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "85e1593a.3a1828"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39879203.ca3c2e",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2239.2857093811035,\r
+        "y": 4457.843228340149,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d7a92919.2d05e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85e1593a.3a1828",\r
+        "type": "set",\r
+        "name": "set dhcp-enabled to Y",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n   value='Y' />\n",\r
+        "comments": "",\r
+        "x": 2413.571575164795,\r
+        "y": 4410.700198173523,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d7a92919.2d05e8",\r
+        "type": "set",\r
+        "name": "set dhcp-enabled to N",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n   value='N' />\n",\r
+        "comments": "",\r
+        "x": 2410.714344024658,\r
+        "y": 4457.843228340149,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6613870.b132378",\r
+        "type": "switchNode",\r
+        "name": "switch subnet-role",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2078.333381652832,\r
+        "y": 4262.605116844177,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "75942d08.2adc24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75942d08.2adc24",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2244.999984741211,\r
+        "y": 4262.604768753052,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4010a065.68c26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4010a065.68c26",\r
+        "type": "set",\r
+        "name": "set subnet-role to NONE",\r
+        "xml": "<set>\n<parameter name='aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role' value='NONE' />\n",\r
+        "comments": "",\r
+        "x": 2426.6667709350586,\r
+        "y": 4261.93842124939,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "722310bb.9f769",\r
+        "type": "switchNode",\r
+        "name": "switch ip-version",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].ip-version`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2073.5717163085938,\r
+        "y": 4327.096222877502,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5fa58662.2f38f8",\r
+                "df8a7995.4fde48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fa58662.2f38f8",\r
+        "type": "outcome",\r
+        "name": "4",\r
+        "xml": "<outcome value='4'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2239.285858154297,\r
+        "y": 4308.524620056152,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5516675c.dd67e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df8a7995.4fde48",\r
+        "type": "outcome",\r
+        "name": "6",\r
+        "xml": "<outcome value='6'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2239.285820007324,\r
+        "y": 4349.953363418579,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f2e70afd.b8c238"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5516675c.dd67e8",\r
+        "type": "set",\r
+        "name": "set tmp.ip-version to ipv4",\r
+        "xml": "<set>\n<parameter name='tmp.ip-version' value='ipv4' />\n",\r
+        "comments": "",\r
+        "x": 2426.428623199463,\r
+        "y": 4307.667547225952,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2e70afd.b8c238",\r
+        "type": "set",\r
+        "name": "set tmp.ip-version to ipv6",\r
+        "xml": "<set>\n<parameter name='tmp.ip-version' value='ipv6' />\n",\r
+        "comments": "",\r
+        "x": 2425.000175476074,\r
+        "y": 4349.953365325928,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b7e5144f.5264b8",\r
+        "type": "switchNode",\r
+        "name": "switch network-role",\r
+        "xml": "<switch test='`$db.vf-network-role-mapping[$role-index].network-role`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 705.9999084472656,\r
+        "y": 4335.333273887634,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b3ca721f.fe335",\r
+                "272dba83.a8aed6",\r
+                "83078563.934988",\r
+                "5dd2d1e7.b5782"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3ca721f.fe335",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 874.0951728820801,\r
+        "y": 4233.66668510437,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "15298732.e21cb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "272dba83.a8aed6",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 872.6665496826172,\r
+        "y": 4361.999873161316,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fde1d716.a4a0e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15298732.e21cb9",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1011.4761810302734,\r
+        "y": 4273.42826461792,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e569933.c14918",\r
+        "type": "get-resource",\r
+        "name": "get-resource VNF_RELATED_NETWORK_ROLE",\r
+        "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VNF_RELATED_NETWORK_ROLE where vnf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid\n    and network_role = $db.vf-network-role-mapping[$role-index].network-role'\n  pfx='db.vnf-related-network-role[]'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1368.0000038146973,\r
+        "y": 4665.079788208008,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "231fd20b.4ba7ee",\r
+                "7d447ac2.636e24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "231fd20b.4ba7ee",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1636.6666679382324,\r
+        "y": 4495.746629714966,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c3080a54.9b9f68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d447ac2.636e24",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1639.6666984558105,\r
+        "y": 4858.41314125061,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "75a86f84.f58c6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75a86f84.f58c6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1806.0000038146973,\r
+        "y": 4856.412796020508,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ec2c65f9.047778",\r
+                "ef924ba7.f37c58",\r
+                "13bb35f5.a0401a",\r
+                "e36fed30.43efa",\r
+                "13a6411b.4f65df",\r
+                "e8de30ac.6f904",\r
+                "dc960591.08f438",\r
+                "e90b4b31.6e7908",\r
+                "56b41d87.a09d94"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "225c2fa8.b622f",\r
+        "type": "outcome",\r
+        "name": "service-instance",\r
+        "xml": "<outcome value='service-instance'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2744.285472869873,\r
+        "y": 4028.651467323303,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "99500da8.54e39"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "99500da8.54e39",\r
+        "type": "for",\r
+        "name": "for each relationship data",\r
+        "xml": "<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2969.7613105773926,\r
+        "y": 4029.0800971984863,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ee0dc0db.eb114"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee0dc0db.eb114",\r
+        "type": "switchNode",\r
+        "name": "switch relationship-key",\r
+        "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3204.9998817443848,\r
+        "y": 4027.413528442383,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d270b105.8ac1a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d270b105.8ac1a",\r
+        "type": "outcome",\r
+        "name": "service-instance.service-instance-id",\r
+        "xml": "<outcome value='service-instance.service-instance-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3471.4282417297363,\r
+        "y": 4027.413592338562,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "bda20892.371be8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bda20892.371be8",\r
+        "type": "set",\r
+        "name": "set network-service-instance-id",\r
+        "xml": "<set>\n<parameter name='network-service-instance-id'\n  value='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value`' />\n",\r
+        "comments": "",\r
+        "x": 3765.000026702881,\r
+        "y": 4025.747007369995,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec2c65f9.047778",\r
+        "type": "execute",\r
+        "name": "generate network-topology-identifier-structure url",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.network-topology-identifier-structure`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.part\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$network-service-instance-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2125.3331718444824,\r
+        "y": 4552.080429077148,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "13bb35f5.a0401a",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode - get network-topology-identifier-structure",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ntis-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ntis\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2182.33296585083,\r
+        "y": 4655.509169578552,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3038b18e.e97b7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef924ba7.f37c58",\r
+        "type": "execute",\r
+        "name": "generate network-topology-identifier-structure url (part 2)",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.part`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ntis-url\"/>\n    <parameter name=\"target\" value=\"{network-id}\"/>\n    <parameter name=\"replacement\" value=\"`$l3-network-id`\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2146.9997596740723,\r
+        "y": 4595.413772583008,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "59c331da.0d09b",\r
+        "type": "execute",\r
+        "name": "printContext",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnfa.log' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 452.33337783813477,\r
+        "y": 4502.079788208008,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3038b18e.e97b7e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2511.442153930664,\r
+        "y": 4655.259647369385,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f361b5ff.f38548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e36fed30.43efa",\r
+        "type": "set",\r
+        "name": "set is-trunked and segmentation-id in vnf-network",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].is-trunked'\n    value='`$mdsal-ntis.network-topology-identifier-structure.is-trunked`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].segmentation-id'\n    value='`$mdsal-ntis.network-topology-identifier-structure.segmentation-id`' />\n    ",\r
+        "comments": "",\r
+        "x": 2124.999988555908,\r
+        "y": 4715.746793746948,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e8de30ac.6f904",\r
+        "type": "save",\r
+        "name": "custom query: get owning entity",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n      resource=\"custom-query\"\n      key=\"format = 'resource'\"\n      force=\"true\"\n      local-only=\"false\"\n      pfx=\"tmp.AnAI-data.oe\">\n<parameter name=\"start[0]\" value=\"`'nodes/service-instances/service-instance?service-instance-id=' + $network-service-instance-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"/query/owning-entity-fromService-instance\" /> \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2065.9998817443848,\r
+        "y": 4791.080276489258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "bb11fe98.9b1b9",\r
+                "12e91c7e.074344"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb11fe98.9b1b9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2276.2379302978516,\r
+        "y": 4769.74663066864,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b897f854.8a4f58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12e91c7e.074344",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2283.3808250427246,\r
+        "y": 4815.460855484009,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a1cce433.a5c9a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb288d10.2446b",\r
+        "type": "save",\r
+        "name": "custom query: get tenant network",\r
+        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n      resource=\"custom-query\"\n      key=\"format = 'resource'\"\n      force=\"true\"\n      local-only=\"false\"\n      pfx=\"tmp.AnAI-data.get-networks\">\n<parameter name=\"start[0]\" value=\"`'/business/owning-entities/owning-entity/' + $tmp.AnAI-data.oe.results[0].owning-entity.owning-entity-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"`'/query/getNetworks?networkRole=' + $db.vnf-related-network-role[$rel-network-role-index].related-network-role\n  + '&amp;cloudRegionId=' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" /> \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2515.6666984558105,\r
+        "y": 4964.080413818359,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "23ed24a4.2c91dc",\r
+                "b4f16506.66bd08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23ed24a4.2c91dc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2728.9047470092773,\r
+        "y": 4942.746912956238,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "3e5e2886.704ec8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4f16506.66bd08",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2736.0476417541504,\r
+        "y": 4988.461137771606,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fb3762dd.d74d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e2f76977.fea098",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for index='rel-index' start='0' end='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2482.6666984558105,\r
+        "y": 5090.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "586febb.af11914"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "586febb.af11914",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2680.6666984558105,\r
+        "y": 5090.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1b7b682d.5dd008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b7b682d.5dd008",\r
+        "type": "outcome",\r
+        "name": "vlan-tag",\r
+        "xml": "<outcome value='vlan-tag'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2850.6666984558105,\r
+        "y": 5090.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9b43a30b.ab1c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b43a30b.ab1c1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3018.6666984558105,\r
+        "y": 5088.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "97d76a2c.076008",\r
+                "47618d94.b0d374",\r
+                "1bf4c98d.f9c076"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97d76a2c.076008",\r
+        "type": "set",\r
+        "name": "set vlan-tag-id",\r
+        "xml": "<set>\n<parameter name='vlan-tag-id' value='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value`' />\n",\r
+        "comments": "",\r
+        "x": 3194.6666984558105,\r
+        "y": 5048.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "47618d94.b0d374",\r
+        "type": "get-resource",\r
+        "name": "get-resource vlan-tag",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"vlan-tag\" \n\t\tkey=\"vlan-tag.vlan-tag-id = $vlan-tag-id\"\n        pfx='aai.vlan-tag' local-only='false'\n>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3216.6666984558105,\r
+        "y": 5106.0805587768555,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1f2ba326.d9772d",\r
+                "fbf7fa7c.23d608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f2ba326.d9772d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3396.7143058776855,\r
+        "y": 5088.2236251831055,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "cf0cc9f2.e1c008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13a6411b.4f65df",\r
+        "type": "for",\r
+        "name": "for each related network role",\r
+        "xml": "<for index='rel-network-role-index' start='0' end='`$db.vnf-related-network-role_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2053.6666297912598,\r
+        "y": 5020.414123535156,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "668947e0.2f65c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "668947e0.2f65c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2258.6666297912598,\r
+        "y": 5021.747268676758,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "eb288d10.2446b",\r
+                "e2f76977.fea098",\r
+                "986e7ac7.81d148"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e90b4b31.6e7908",\r
+        "type": "switchNode",\r
+        "name": "switch rn-index",\r
+        "xml": "<switch test='`$rn-index`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2014.6666297912598,\r
+        "y": 4910.080276489258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "896e1959.7fd6a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc960591.08f438",\r
+        "type": "set",\r
+        "name": "set rn-index to related network length",\r
+        "xml": "<set>\n<parameter name='rn-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network_length`' />\n",\r
+        "comments": "",\r
+        "x": 2083.3332176208496,\r
+        "y": 4861.080129623413,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "896e1959.7fd6a8",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2178.6666297912598,\r
+        "y": 4910.080276489258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "83542037.398bf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83542037.398bf",\r
+        "type": "set",\r
+        "name": "set rn-index to 0",\r
+        "xml": "<set>\n<parameter name='rn-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 2338.6666297912598,\r
+        "y": 4910.080276489258,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "986e7ac7.81d148",\r
+        "type": "set",\r
+        "name": "set related-network data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].network-id'\n  value='`$tmp.AnAI-data.get-networks.results[0].l3-network.network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].network-role'\n  value='`$tmp.AnAI-data.get-networks.results[0].l3-network.network-role`' />\n",\r
+        "comments": "",\r
+        "x": 2486.3332862854004,\r
+        "y": 5020.747100830078,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "56b41d87.a09d94",\r
+        "type": "set",\r
+        "name": "set new related network length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network_length'\n  value='`$rn-index + 1`' />\n",\r
+        "comments": "",\r
+        "x": 2048.6666984558105,\r
+        "y": 5164.080413818359,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fbf7fa7c.23d608",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3398.6666984558105,\r
+        "y": 5136.080413818359,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "dc2e5d86.8c21f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc2e5d86.8c21f",\r
+        "type": "set",\r
+        "name": "set related-network data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.vlan-interface'\n  value='`$aai.vlan-tag.vlan-tag-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.upper-tag-id'\n  value='`$aai.vlan-tag.vlan-id-outer`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.lower-tag-id'\n  value='`$aai.vlan-tag.vlan-id-inner`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.is-private'\n  value='`$aai.vlan-tag.is-private`' />\n",\r
+        "comments": "",\r
+        "x": 3590.6666984558105,\r
+        "y": 5136.080413818359,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1bf4c98d.f9c076",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 3168.6666984558105,\r
+        "y": 5174.080413818359,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2f24f627.1d687a",\r
+        "type": "comment",\r
+        "name": "temporary data issue: also ignore string \"null\" and \"NULL\"",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 845.0000114440918,\r
+        "y": 4193.842397689819,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "83078563.934988",\r
+        "type": "outcome",\r
+        "name": "null",\r
+        "xml": "<outcome value='null'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 872.1428337097168,\r
+        "y": 4276.69953918457,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "15298732.e21cb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5dd2d1e7.b5782",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value='NULL'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 872.14284324646,\r
+        "y": 4319.556611061096,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "15298732.e21cb9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "36f653c4.5383bc",\r
+        "type": "switchNode",\r
+        "name": "switch input cloud-owner",\r
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.cloud-owner`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 511.6666564941406,\r
+        "y": 232.41365242004395,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6073cd09.c47954",\r
+                "60806490.79275c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6073cd09.c47954",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 695.0000305175781,\r
+        "y": 202.41364097595215,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "a192c343.146f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60806490.79275c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 694.7619361877441,\r
+        "y": 243.3661346435547,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7907b.f03a3f85"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a192c343.146f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 829.9999847412109,\r
+        "y": 200.74698066711426,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7907b.f03a3f85",\r
+        "type": "set",\r
+        "name": "set prop.cloud-region.cloud-owner",\r
+        "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$vnf-topology-operation-input.vnf-request-input.cloud-owner`' />\n",\r
+        "comments": "",\r
+        "x": 911.6666412353516,\r
+        "y": 242.4136619567871,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16470885.0e3b37",\r
+        "type": "call",\r
+        "name": "call self-serve-vnf-forking-logic",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 529.523811340332,\r
+        "y": 525.7142963409424,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1caeb411.8cfeac",\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": 509.6665267944336,\r
+        "y": 691.2857837677002,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "37f74e26.cb2452",\r
+                "beba854c.d89668"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37f74e26.cb2452",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 721.3806838989258,\r
+        "y": 764.5710678100586,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c8588b9c.b0d898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "beba854c.d89668",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 720.9522018432617,\r
+        "y": 628.1429014205933,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4645b056.44eb1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97a46274.9df5e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 901.111141204834,\r
+        "y": 326.8888826370239,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "2a1c1eb.da980e2",\r
+                "22c02af2.d4ee26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df6715d9.ce37d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 901.111141204834,\r
+        "y": 375.46032428741455,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b8d206be.845728",\r
+                "22c02af2.d4ee26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e48fe633.d5a078",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 903.9682579040527,\r
+        "y": 419.7460298538208,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "da0200d1.6944b",\r
+                "22c02af2.d4ee26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a1c1eb.da980e2",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"If svc-action is 'assign' then request-action must be 'CreateVnfInstance'\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1137.539722442627,\r
+        "y": 326.88887310028076,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8d206be.845728",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error reading VF_MODEL table\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1136.1111335754395,\r
+        "y": 375.6031675338745,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "da0200d1.6944b",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1136.1111335754395,\r
+        "y": 419.74602031707764,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "198f8218.7133ee",\r
+        "type": "call",\r
+        "name": "call self-serve-vnf-assign",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-assign' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1171.9877891540527,\r
+        "y": 525.6072463989258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d458bfd1.de073"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e83e7b2d.1d4268",\r
+        "type": "comment",\r
+        "name": "SELF-SERVE FORK",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 891.4285430908203,\r
+        "y": 579.011926651001,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d458bfd1.de073",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1377.2853698730469,\r
+        "y": 525.0952777862549,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c261dd9e.7394e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da6cb5e4.41c2f8",\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": 1142.7299880981445,\r
+        "y": 727.5396060943604,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "828a78b6.35b498",\r
+        "type": "set",\r
+        "name": "set vnf-level-oper-status to PendingCreate",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
+        "comments": "",\r
+        "x": 1235.099136352539,\r
+        "y": 577.099287033081,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b15ef9f9.2e3088",\r
+        "type": "execute",\r
+        "name": "printContext",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnfend.log' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1134.3014526367188,\r
+        "y": 627.5390634536743,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4645b056.44eb1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 911.5394134521484,\r
+        "y": 627.9999561309814,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "198f8218.7133ee",\r
+                "828a78b6.35b498",\r
+                "b15ef9f9.2e3088",\r
+                "da6cb5e4.41c2f8",\r
+                "86c22cc1.3260c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ec4e3b8.36b40c",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 1959.2064628601074,\r
+        "y": 777.6666669845581,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ae382d33.4ff8e",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1978.5655097961426,\r
+        "y": 729.4661436080933,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "22c02af2.d4ee26",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1766.9843826293945,\r
+        "y": 752.7462320327759,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ae382d33.4ff8e",\r
+                "6ec4e3b8.36b40c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c261dd9e.7394e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1553.301658630371,\r
+        "y": 525.2857141494751,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "6b697ba4.a67094",\r
+                "22c02af2.d4ee26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b697ba4.a67094",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Failed to create self-serve assignment for vnf with vnf-id=' + $vnf-topology-operation-input.vnf-information.vnf-id + ' with error: ' + $error-message`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1761.0795211791992,\r
+        "y": 497.19053077697754,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "86c22cc1.3260c",\r
+        "type": "configure",\r
+        "name": "send success to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"200\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1163.2539367675781,\r
+        "y": 673.6189651489258,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "853dab16.a11508",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists'`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2205.666618347168,\r
+        "y": 1201.666597366333,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e351344c.af7228",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Cannot find instance group id ' +\n      $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n      + ' in AAI'`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1582.7617416381836,\r
+        "y": 1256.476245880127,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "564bf42f.5df9ac",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error retrieving instance-group from AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1582.761703491211,\r
+        "y": 1319.619031906128,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "33ec168e.11b45a",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Unable to find AAI relationship from collection '\n      + $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\n      + ' to service instance'`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2177.333206176758,\r
+        "y": 1335.9523315429688,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "38b03742.d98548",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Failed to get network service instance '\n      + $network-service-instance + ' from MD-SAL'`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2178.8094482421875,\r
+        "y": 1377.666732788086,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "56ab1164.7603f",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Could not find network instance group ' +\n      $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n      + ' in MD-SAL service instance '\n      + $network-service-instance`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2863.3335571289062,\r
+        "y": 1536.1904573440552,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "60b9af41.99ebd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2778.095329284668,\r
+        "y": 1987.6192593574524,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "31b39cbf.523334",\r
+                "706a1140.f4bf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31b39cbf.523334",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2985.787551879883,\r
+        "y": 1964.894714832306,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "706a1140.f4bf2",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 2966.4285049438477,\r
+        "y": 2013.0952382087708,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "67d1f32e.64262c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2000.6664962768555,\r
+        "y": 1199.9998836517334,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "853dab16.a11508",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d4ce14c.b56fbe",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1370.999984741211,\r
+        "y": 1256.6664772033691,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "e351344c.af7228",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b5b96d7.f11058",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1371.666358947754,\r
+        "y": 1319.3331823349,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "564bf42f.5df9ac",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75f0b66c.711368",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1959.9998779296875,\r
+        "y": 1336.3333625793457,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "33ec168e.11b45a",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cfc4c24.ab0124",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1958.333251953125,\r
+        "y": 1378.333251953125,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "38b03742.d98548",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3ec7ac.ac12b88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2652.619094848633,\r
+        "y": 1536.9047193527222,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "56ab1164.7603f",\r
+                "60b9af41.99ebd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da3712d9.f41f4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1459.0475540161133,\r
+        "y": 1771.9046249389648,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "62fa2d49.68c884",\r
+                "5de10e3b.8401c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62fa2d49.68c884",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"No vnf-name was received but ecomp-generated-naming is not Y\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1688.90478515625,\r
+        "y": 1772.3329601287842,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d7f13cc.8d975c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2211.9046783447266,\r
+        "y": 1875.7618045806885,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "4b15fa7b.a37b24",\r
+                "5de10e3b.8401c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b15fa7b.a37b24",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`$generate-unique-name-output.error-message`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2420.0475540161133,\r
+        "y": 1875.3331956863403,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "702e58b3.200b38",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2260.476104736328,\r
+        "y": 2001.9045372009277,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "20b0a05b.f52ee",\r
+                "5de10e3b.8401c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20b0a05b.f52ee",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Unable to generate VNF name\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2483.3331604003906,\r
+        "y": 2002.3332080841064,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5de10e3b.8401c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2515.7144889831543,\r
+        "y": 2183.333490371704,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d15d28b1.ee4e78",\r
+                "5678e145.3766c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d15d28b1.ee4e78",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2688.406749725342,\r
+        "y": 2162.2756242752075,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5678e145.3766c",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 2669.0477027893066,\r
+        "y": 2210.4761476516724,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "55ab3764.a14138",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 952.8571090698242,\r
+        "y": 2912.2857341766357,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f054f599.b671b8",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f054f599.b671b8",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Cloud region not found in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1151.428451538086,\r
+        "y": 2878.0000200271606,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbecda63.60f978",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 956.1904602050781,\r
+        "y": 2955.619020462036,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "7ff32092.da86f",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ff32092.da86f",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error retrieving cloud region from AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1154.7618026733398,\r
+        "y": 2921.333306312561,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a466e25.4156f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 814.5238952636719,\r
+        "y": 3134.619167327881,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9a766ef3.dad01",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a766ef3.dad01",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1024.5238876342773,\r
+        "y": 3113.190655708313,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b319ef18.b3bad",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 1805.047737121582,\r
+        "y": 6390.475831985474,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "87f91dc6.de07b",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1822.692756652832,\r
+        "y": 6342.751573562622,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2115eaa4.e5b146",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1932.8570709228516,\r
+        "y": 3718.5708351135254,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "c740bc4.11d1e4",\r
+                "d11043da.a1cb",\r
+                "acdf260b.352908",\r
+                "a74a208c.91738"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d11043da.a1cb",\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": 2311.428497314453,\r
+        "y": 3693.71373295784,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c740bc4.11d1e4",\r
+        "type": "set",\r
+        "name": "set variables for deleting name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 2212.8571166992188,\r
+        "y": 3646.5708038806915,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "65833.6b4487cd8",\r
+        "type": "comment",\r
+        "name": "Unassign the VNF name",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2230.238021850586,\r
+        "y": 3592.856448173523,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a74a208c.91738",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 2152.190605163574,\r
+        "y": 3789.7289028167725,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "acdf260b.352908",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2169.835624694824,\r
+        "y": 3742.004644393921,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5be8614b.d2283",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1099.9999923706055,\r
+        "y": 3224.714331626892,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "8a74d4c9.f4d158",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a74d4c9.f4d158",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error reading VF_TO_NETWORK_ROLE_MAPPING table\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1302.8571014404297,\r
+        "y": 3191.8572273254395,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b9558ce.3c84a7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1669.9999465942383,\r
+        "y": 3434.285619735718,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "f01f3cd.81c20c",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f01f3cd.81c20c",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Unable to find l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1881.4285507202148,\r
+        "y": 3402.8569107055664,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f361b5ff.f38548",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2690.4761276245117,\r
+        "y": 4655.667684555054,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "87fd5071.f5e61",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "87fd5071.f5e61",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`\n    'Error retrieving network-topology-identifier-structure for service instance '\n    + $network-service-instance-id\n    + ' and network-id '\n    + $l3-network-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2901.9046325683594,\r
+        "y": 4624.238899230957,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3080a54.9b9f68",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1803.1428604125977,\r
+        "y": 4496.048126220703,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "67128ab5.195dd4",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67128ab5.195dd4",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error reading VNF_RELATED_NETWORK_ROLE table\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2017.1428604125977,\r
+        "y": 4477.190979003906,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b897f854.8a4f58",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2447.6190872192383,\r
+        "y": 4771.667268753052,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "90365fab.e2211",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "90365fab.e2211",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error getting owning entity from service instance\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2654.762107849121,\r
+        "y": 4747.381650924683,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1cce433.a5c9a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2462.6190872192383,\r
+        "y": 4816.667268753052,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "1a20c9fe.aa7526",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a20c9fe.aa7526",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Unable to find owning entity from service instance\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2664.0477294921875,\r
+        "y": 4790.953462600708,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e5e2886.704ec8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2906.6664810180664,\r
+        "y": 4942.143200874329,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "474a1c8f.5b8254",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "474a1c8f.5b8254",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error calling getNetworks custom query in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3122.380844116211,\r
+        "y": 4912.143190383911,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fb3762dd.d74d3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2918.3332290649414,\r
+        "y": 4987.143200874329,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "d13c17c6.96baa8",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d13c17c6.96baa8",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No l3-network returned from getNetworks custom query for related network role '\n      + $db.vnf-related-network-role[0].related-network-role`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3134.047592163086,\r
+        "y": 4957.143190383911,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf0cc9f2.e1c008",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3562.618698120117,\r
+        "y": 5088.333766937256,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "583a5088.c3e55",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "583a5088.c3e55",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error getting vlan-tag object from AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3775.475830078125,\r
+        "y": 5061.190900802612,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9615c407.df8ac8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3693.0952529907227,\r
+        "y": 5414.525018692017,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "48c15a99.5b8364",\r
+                "981b8897.27de98",\r
+                "b2a30503.c3f7c8",\r
+                "c725031e.3faf3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c725031e.3faf3",\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-message`\" />\n",\r
+        "comments": "",\r
+        "x": 3903.8097076416016,\r
+        "y": 5474.253993988037,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2a30503.c3f7c8",\r
+        "type": "configure",\r
+        "name": "send error to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3923.168746948242,\r
+        "y": 5429.38673210144,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "981b8897.27de98",\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": 4059.0476684570312,\r
+        "y": 5383.238904953003,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48c15a99.5b8364",\r
+        "type": "set",\r
+        "name": "set variables for deleting name",\r
+        "xml": "<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n",\r
+        "comments": "",\r
+        "x": 3960.476287841797,\r
+        "y": 5336.0959758758545,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4fcc2ec6.5268d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1669.9999313354492,\r
+        "y": 3484.2856159210205,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "75ca8e5d.ce23a",\r
+                "2115eaa4.e5b146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75ca8e5d.ce23a",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error retrieving l3-network from AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1881.4285354614258,\r
+        "y": 3452.856906890869,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "39a027a0.277908",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'Unable to find l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1805.71435546875,\r
+        "y": 4195.714210510254,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d03cff5b.4eae8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1605.71435546875,\r
+        "y": 4210,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "39a027a0.277908",\r
+                "9615c407.df8ac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb9178af.635d68",\r
+        "type": "comment",\r
+        "name": "Unassign the VNF name",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3824.285888671875,\r
+        "y": 5262.857421875,\r
+        "z": "2d523017.81121",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "63585eee.6f434",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1259.9999389648438,\r
+        "y": 5382.856773376465,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "2dd248fd.0355f8",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2dd248fd.0355f8",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No availability zones found in AAI for cloud region '\n       + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1462.8570709228516,\r
+        "y": 5364.28534412384,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac3d2a38.193128",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1487.3811264038086,\r
+        "y": 5509.524040222168,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "fcb662f2.e888c",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcb662f2.e888c",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1688.8096771240234,\r
+        "y": 5489.524041175842,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "edd6eeb3.58833",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1489.047752380371,\r
+        "y": 5552.857048034668,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "ed7e59f3.736ce8",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ed7e59f3.736ce8",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1690.476303100586,\r
+        "y": 5532.857048988342,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d23943a.cc401c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1346.904800415039,\r
+        "y": 5627.618696212769,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5db8f40e.5238ec",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5db8f40e.5238ec",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1544.5833358764648,\r
+        "y": 5606.011522293091,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "48b115c8.09c9bc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1366.9642944335938,\r
+        "y": 5672.678614616394,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "33966a0a.bc1c26",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33966a0a.bc1c26",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1571.2500610351562,\r
+        "y": 5649.821611404419,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5f5454e.605518",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 782.6785583496094,\r
+        "y": 5782.29768371582,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "5a2cf836.80cc88",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a2cf836.80cc88",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating selflink in generic-vnf in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 988.3928985595703,\r
+        "y": 5758.011829376221,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fb7909b7.07d3a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 796.0118713378906,\r
+        "y": 5825.63117980957,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "840ebe47.1002a",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "840ebe47.1002a",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1001.7262115478516,\r
+        "y": 5801.345325469971,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5b87fb0.590f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1376.059555053711,\r
+        "y": 5875.011758804321,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "9605363d.80ae88",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9605363d.80ae88",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error updating relationship in generic-vnf in AAI\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1570.3452758789062,\r
+        "y": 5849.2977504730225,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "610d2304.a3d70c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1391.059555053711,\r
+        "y": 5918.345254898071,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "70fd7745.526758",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70fd7745.526758",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1585.3452758789062,\r
+        "y": 5892.6312465667725,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b01ba289.b4c4d",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode - PUT vnf",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + 'vnf-data-assign.json'`\" />\n    <parameter name='restapiUrl' value=\"`$prop.controller.url + $tmp.vnf.url`\" />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"vnf-assign\" />\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 477.2378692626953,\r
+        "y": 6091.738591194153,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "b8a25bcd.5c5768",\r
+                "336fda4d.6f39d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8a25bcd.5c5768",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 724.4506301879883,\r
+        "y": 6113.069312095642,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "dd704ec0.5452"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "336fda4d.6f39d6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 716.879264831543,\r
+        "y": 6071.569332122803,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "dd704ec0.5452"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd704ec0.5452",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 892.475944519043,\r
+        "y": 6091.499786376953,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            [\r
+                "70b79c9a.11b3d4",\r
+                "f54d4b54.f29d58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70b79c9a.11b3d4",\r
+        "type": "configure",\r
+        "name": "set error-message",\r
+        "xml": "<set>\n<parameter name=\"error-message\" value=\"Error doing PUT of vnf-data\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1098.1902542114258,\r
+        "y": 6057.213903427124,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebd11f4a.d9ea2",\r
+        "type": "configure",\r
+        "name": "send success to MSO",\r
+        "xml": "<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"200\" />\n<parameter name=\"input.svc-request-id\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$vnf-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$vnf-topology-operation-input.service-information.service-instance-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 423.1902313232422,\r
+        "y": 6242.214249610901,\r
+        "z": "2d523017.81121",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file