GRAPI DG enhancement
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
old mode 100755 (executable)
new mode 100644 (file)
index a628130..cbe137c
@@ -1 +1,5798 @@
-[{"id":"8241aacb.08cdd8","type":"dgstart","name":"DGSTART","outputs":1,"x":115,"y":90,"z":"5083bb91.cbb384","wires":[["6555006a.2f30f"]]},{"id":"6555006a.2f30f","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":228.61902618408203,"y":130.2381134033203,"z":"5083bb91.cbb384","wires":[["eeb39a2.ad04a68"]]},{"id":"eeb39a2.ad04a68","type":"method","name":"method vnf-topology-operation-assign","xml":"<method rpc='vnf-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":206.42862701416016,"y":170,"z":"5083bb91.cbb384","wires":[["6a42140c.de8f7c"]]},{"id":"34ceabd.5e7b554","type":"comment","name":"vnf-topology-operation-assign","info":"","comments":"","x":509.34485626220703,"y":37.58634376525879,"z":"5083bb91.cbb384","wires":[]},{"id":"77d708f5.8001e8","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":516.8571395874023,"y":367.19043922424316,"z":"5083bb91.cbb384","wires":[["b5d89b76.8690d8","3602a403.88e53c"]]},{"id":"b5d89b76.8690d8","type":"outcome","name":"CreateVnfInstance","xml":"<outcome value='CreateVnfInstance'>\n","comments":"","outputs":1,"x":770.5714340209961,"y":344.3333206176758,"z":"5083bb91.cbb384","wires":[["2f2a6b54.bc4ad4"]]},{"id":"3602a403.88e53c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":732.5713996887207,"y":390.0476484298706,"z":"5083bb91.cbb384","wires":[["9d45573f.a70cf8"]]},{"id":"2f2a6b54.bc4ad4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":955.4285621643066,"y":344.3333501815796,"z":"5083bb91.cbb384","wires":[[]]},{"id":"9d45573f.a70cf8","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":972.5714073181152,"y":390.0476064682007,"z":"5083bb91.cbb384","wires":[]},{"id":"6a42140c.de8f7c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":145.11905670166016,"y":1701.7857055664062,"z":"5083bb91.cbb384","wires":[["77d708f5.8001e8","aa948e3b.dc6f4","70905004.44daf","db6678a0.606738","a8c695f6.0babf8","b4d76448.66e818","d6dc9daa.dab27","d09af1c.f6ecc1","59e68b20.a9f1d4","ee6fbe81.c9b8d","e15d873e.f3a578","859c6fc2.42cc1","161882c2.0524bd","e0aec656.73c228","fb26450c.7d69d8","8fe9a7cd.91ae28","92cd0a7d.aee888","b405840f.b908e8","555188e7.5bae08","c7f99789.bdf418","ed2bee8b.f19af","10b2b5e7.5b556a","b6894e3b.427f7","7eb11b41.3e53d4","76228b8.6690274","bf0a4f73.3427c","780bff7b.fe23","b4297c00.0fc6b8","74cb887a.748ed8","83344e86.aa812","a6739756.d975f8","b3f8a06f.e304d"]]},{"id":"aa948e3b.dc6f4","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.ecomp-model-information.model-customization-uuid'\n  pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":529.1904449462891,"y":458.333309173584,"z":"5083bb91.cbb384","wires":[["fd105869.f2cd08","af0a7eb5.ee8e2"]]},{"id":"ec0cf350.8477c","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.ecomp-model-information.model-customization-uuid`\" />\n","comments":"","x":970.6189231872559,"y":481.7617950439453,"z":"5083bb91.cbb384","wires":[]},{"id":"fd105869.f2cd08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":729.9761428833008,"y":438.7141466140747,"z":"5083bb91.cbb384","wires":[["12a688b3.3440a7"]]},{"id":"af0a7eb5.ee8e2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":738.5475730895996,"y":482.9998598098755,"z":"5083bb91.cbb384","wires":[["ec0cf350.8477c"]]},{"id":"12a688b3.3440a7","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":969.9761238098145,"y":436.85705375671387,"z":"5083bb91.cbb384","wires":[]},{"id":"70905004.44daf","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":559.2857131958008,"y":648.5714282989502,"z":"5083bb91.cbb384","wires":[["84321624.bc90b8","e6e198eb.7d5308"]]},{"id":"84321624.bc90b8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":785.0000419616699,"y":615.7142162322998,"z":"5083bb91.cbb384","wires":[["df34205c.2330c"]]},{"id":"df34205c.2330c","type":"set","name":"set vnf-index=0","xml":"<set>\n<parameter name='vnf-index' value='0' />\n","comments":"","x":949.2857627868652,"y":614.7142944335938,"z":"5083bb91.cbb384","wires":[]},{"id":"e6e198eb.7d5308","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":786.4286041259766,"y":680.0000343322754,"z":"5083bb91.cbb384","wires":[["910f819c.16efe"]]},{"id":"e34a45aa.608f38","type":"set","name":"set vnf-index = vnf_length","xml":"<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n","comments":"","x":1125.285758972168,"y":658.285722732544,"z":"5083bb91.cbb384","wires":[]},{"id":"4446fa6b.76c4b4","type":"for","name":"for each existing VNF","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1110.7142715454102,"y":704.2856616973877,"z":"5083bb91.cbb384","wires":[["9e71792a.51a8b8"]]},{"id":"910f819c.16efe","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":922.1428642272949,"y":680,"z":"5083bb91.cbb384","wires":[["e34a45aa.608f38","4446fa6b.76c4b4"]]},{"id":"9e71792a.51a8b8","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":1465.0000381469727,"y":703.857141494751,"z":"5083bb91.cbb384","wires":[["ca44cc94.301af"]]},{"id":"ca44cc94.301af","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1759.2857475280762,"y":703.4286136627197,"z":"5083bb91.cbb384","wires":[["e7127b80.39ffd8"]]},{"id":"e7127b80.39ffd8","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, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n","comments":"","x":1907.8571548461914,"y":703.4285736083984,"z":"5083bb91.cbb384","wires":[]},{"id":"2ca7efa9.3b66e","type":"comment","name":"make sure this VNF doesn't exist already","info":"","comments":"","x":1452.1427688598633,"y":661.4285717010498,"z":"5083bb91.cbb384","wires":[]},{"id":"db6678a0.606738","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":514.9999694824219,"y":810.238115310669,"z":"5083bb91.cbb384","wires":[]},{"id":"a8c695f6.0babf8","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n","comments":"","outputs":1,"x":521.4285507202148,"y":1052.8571615219116,"z":"5083bb91.cbb384","wires":[["487e7f2b.8ad47","68310aa2.d2de84"]]},{"id":"487e7f2b.8ad47","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":789.6427726745605,"y":975.8333864212036,"z":"5083bb91.cbb384","wires":[["c340356a.783268"]]},{"id":"429caac2.6d56a4","type":"switchNode","name":"switch ecomp-generated-naming","xml":"<switch test='`$db.vf-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1206.071662902832,"y":882.5002059936523,"z":"5083bb91.cbb384","wires":[["2e7aef6.82a371","9b8210cc.7778e","8ab384c2.20be78"]]},{"id":"c340356a.783268","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":935.3572692871094,"y":975.833498954773,"z":"5083bb91.cbb384","wires":[["9fd7e5b5.625518","ed228289.17a95","429caac2.6d56a4"]]},{"id":"9b8210cc.7778e","type":"outcome","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1455.357322692871,"y":884.404914855957,"z":"5083bb91.cbb384","wires":[["1d994a90.016b85"]]},{"id":"1d994a90.016b85","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":1609.64310836792,"y":902.9763593673706,"z":"5083bb91.cbb384","wires":[]},{"id":"2e7aef6.82a371","type":"outcome","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1455.3572883605957,"y":840.1192359924316,"z":"5083bb91.cbb384","wires":[["45a6a073.f42c1"]]},{"id":"8ab384c2.20be78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1455.357250213623,"y":930.119234085083,"z":"5083bb91.cbb384","wires":[["1d994a90.016b85"]]},{"id":"45a6a073.f42c1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1592.5002326965332,"y":840.1192359924316,"z":"5083bb91.cbb384","wires":[[]]},{"id":"68310aa2.d2de84","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":792.2144546508789,"y":1122.119125366211,"z":"5083bb91.cbb384","wires":[["e79898f0.209a58"]]},{"id":"9ffe9f0c.29d4f","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":1751.0715306599936,"y":1189.5476417541504,"z":"5083bb91.cbb384","wires":[]},{"id":"9fd7e5b5.625518","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":1274.4763259887695,"y":1048.8333959579468,"z":"5083bb91.cbb384","wires":[["d8e6a254.be4f7","6860527.6c3eeac"]]},{"id":"d8e6a254.be4f7","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1570.1906140645347,"y":1021.6906585693359,"z":"5083bb91.cbb384","wires":[["6bce88ea.dd4c08"]]},{"id":"6860527.6c3eeac","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1573.5239639282227,"y":1073.3573017120361,"z":"5083bb91.cbb384","wires":[["ec3565fb.6ebb98"]]},{"id":"ed228289.17a95","type":"set","name":"set variables for generating unique name","xml":"<set>\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<parameter name='generate-unique-name-input.index-length' value='2' />\n","comments":"","x":1231.1430130004883,"y":997.1668043136597,"z":"5083bb91.cbb384","wires":[]},{"id":"ec3565fb.6ebb98","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":1814.7143491109214,"y":1073.8333930969238,"z":"5083bb91.cbb384","wires":[]},{"id":"6bce88ea.dd4c08","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":1738.0477269490561,"y":1021.1191701889038,"z":"5083bb91.cbb384","wires":[]},{"id":"e79898f0.209a58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":940.1429824829102,"y":1120.7858123779297,"z":"5083bb91.cbb384","wires":[["1af0159f.6f1e5a","5ec1ca2.9ad0934"]]},{"id":"5ec1ca2.9ad0934","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":1270.1429824829102,"y":1168.7858123779297,"z":"5083bb91.cbb384","wires":[["2aa25520.67d72a","37668d9a.952f52"]]},{"id":"2aa25520.67d72a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1568.7143987019858,"y":1138.785837173462,"z":"5083bb91.cbb384","wires":[["ab10d68f.515008"]]},{"id":"37668d9a.952f52","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1572.0477485656738,"y":1190.452480316162,"z":"5083bb91.cbb384","wires":[["9ffe9f0c.29d4f"]]},{"id":"1af0159f.6f1e5a","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.supplied-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-name`' />\n","comments":"","x":1226.8096542358398,"y":1117.1191844940186,"z":"5083bb91.cbb384","wires":[]},{"id":"ab10d68f.515008","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":1736.5715115865073,"y":1138.2143487930298,"z":"5083bb91.cbb384","wires":[]},{"id":"b4d76448.66e818","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 = 'att-aic' AND \n\t\t     cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t     depth='0'\"\n        pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":543.5714492797852,"y":1730.8569984436035,"z":"5083bb91.cbb384","wires":[["63136ca0.2aa6a4","38b39166.261e2e"]]},{"id":"38b39166.261e2e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":768.8176422119141,"y":1749.00785446167,"z":"5083bb91.cbb384","wires":[["c8785277.db74c"]]},{"id":"c8785277.db74c","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":943.8176155090332,"y":1749.007890701294,"z":"5083bb91.cbb384","wires":[]},{"id":"63136ca0.2aa6a4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":777.7462387084961,"y":1707.2935876846313,"z":"5083bb91.cbb384","wires":[["734e45d0.a54dbc"]]},{"id":"734e45d0.a54dbc","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":944.095516204834,"y":1706.5991649627686,"z":"5083bb91.cbb384","wires":[]},{"id":"d6dc9daa.dab27","type":"get-resource","name":"get-resource VF_TO_NETWORK_ROLE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.ecomp-model-information.model-customization-uuid'\n  pfx='db.vf-network-role-mapping[]'>\n\n","comments":"","outputs":1,"x":608.8095321655273,"y":2041.9045181274414,"z":"5083bb91.cbb384","wires":[["fb8ff7f3.9c6578","21c9fd46.cdb8b2"]]},{"id":"2a8c3297.b95dbe","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 entries found in VF_TO_NETWORK_ROLE_MAPPING for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.ecomp-model-information.model-customization-uuid`\" />\n","comments":"","x":1344.5237121582031,"y":2059.618698120117,"z":"5083bb91.cbb384","wires":[]},{"id":"fb8ff7f3.9c6578","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":904.5952033996582,"y":2020.6186828613281,"z":"5083bb91.cbb384","wires":[["3531361a.0233ba"]]},{"id":"21c9fd46.cdb8b2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":913.166633605957,"y":2064.904396057129,"z":"5083bb91.cbb384","wires":[["bf344dbf.57e7d"]]},{"id":"3531361a.0233ba","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":1079.5951843261719,"y":2020.4283332824707,"z":"5083bb91.cbb384","wires":[]},{"id":"e1fffb5d.139e58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":709.5715866088867,"y":2490.71391582489,"z":"5083bb91.cbb384","wires":[["611b38f2.51f0b8","37408b0a.59aa74","8956c374.edb43","fbd0fea8.b0301","dd0ec04d.0901","c56cd3a7.e3e8d","8d1a1df.f9acde","1905c415.59545c"]]},{"id":"8956c374.edb43","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":942.4286041259766,"y":2169.999779701233,"z":"5083bb91.cbb384","wires":[["c79e82cf.08146","59d32d05.f01e74"]]},{"id":"59d32d05.f01e74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1146.476318359375,"y":2192.1426191329956,"z":"5083bb91.cbb384","wires":[["7d74e0ae.ec3dc"]]},{"id":"7d74e0ae.ec3dc","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":1321.4762916564941,"y":2192.1426553726196,"z":"5083bb91.cbb384","wires":[]},{"id":"c79e82cf.08146","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1155.404914855957,"y":2150.428352355957,"z":"5083bb91.cbb384","wires":[["a3dc9d39.f743"]]},{"id":"a3dc9d39.f743","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":1321.754192352295,"y":2149.7339296340942,"z":"5083bb91.cbb384","wires":[]},{"id":"611b38f2.51f0b8","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":931.6191940307617,"y":2657.0000228881836,"z":"5083bb91.cbb384","wires":[]},{"id":"e15d873e.f3a578","type":"for","name":"for each cloud-region availability zone","xml":"<for index='idx' start='0' end='`$aai.az.availability-zone_length`' >\n","comments":"","outputs":1,"x":543.3335571289062,"y":3071.618803024292,"z":"5083bb91.cbb384","wires":[["e9252ccb.d2705"]]},{"id":"b1db1f98.d448e","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.az.availability-zone[$idx].availability-zone-name`' />\n","comments":"","x":1005.0002403259277,"y":3040.952217102051,"z":"5083bb91.cbb384","wires":[]},{"id":"859c6fc2.42cc1","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":502.9524841308594,"y":2921.5711631774902,"z":"5083bb91.cbb384","wires":[]},{"id":"15c078e.5c6e387","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":969.5240173339844,"y":3215.381015777588,"z":"5083bb91.cbb384","wires":[["8c9a1ab5.ce5b08","e70903d4.4bb15"]]},{"id":"fb26450c.7d69d8","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":466.0953674316406,"y":3602.1901140213013,"z":"5083bb91.cbb384","wires":[]},{"id":"e0aec656.73c228","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":555.9088134765625,"y":3504.527594566345,"z":"5083bb91.cbb384","wires":[]},{"id":"59e68b20.a9f1d4","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":492.90489196777344,"y":2490.7141189575195,"z":"5083bb91.cbb384","wires":[["e1fffb5d.139e58"]]},{"id":"d09af1c.f6ecc1","type":"set","name":"set network-index = 0","xml":"<set>\n<parameter name='network-index' value='0' />\n","comments":"","x":511.2380676269531,"y":2108.8094577789307,"z":"5083bb91.cbb384","wires":[]},{"id":"37408b0a.59aa74","type":"set","name":"increment network-index","xml":"<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n","comments":"","x":941.9525146484375,"y":2794.6189250946045,"z":"5083bb91.cbb384","wires":[]},{"id":"ee6fbe81.c9b8d","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":501.8095703125,"y":2871.571207046509,"z":"5083bb91.cbb384","wires":[]},{"id":"161882c2.0524bd","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":471.4286422729492,"y":3452.1904258728027,"z":"5083bb91.cbb384","wires":[]},{"id":"8fe9a7cd.91ae28","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":492.52392578125,"y":3214.380931854248,"z":"5083bb91.cbb384","wires":[["e79df5e2.3bfb98"]]},{"id":"e79df5e2.3bfb98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":696.1905670166016,"y":3214.380892753601,"z":"5083bb91.cbb384","wires":[["15c078e.5c6e387"]]},{"id":"92cd0a7d.aee888","type":"set","name":"set new vnf_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n","comments":"","x":507.0952491760254,"y":764.7619781494141,"z":"5083bb91.cbb384","wires":[]},{"id":"b405840f.b908e8","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":556.4285736083984,"y":1818.0951700210571,"z":"5083bb91.cbb384","wires":[["c203a95d.692928"]]},{"id":"c203a95d.692928","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n","comments":"","outputs":1,"x":804.1071166992188,"y":1817.8450994491577,"z":"5083bb91.cbb384","wires":[["f1cc745c.42f608"]]},{"id":"f1cc745c.42f608","type":"outcome","name":"complex","xml":"<outcome value='complex'>\n","comments":"","outputs":1,"x":973.5714378356934,"y":1817.2379217147827,"z":"5083bb91.cbb384","wires":[["7ed2b7fb.548078"]]},{"id":"d747b0d7.af821","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":1294.2857360839844,"y":1816.9045791625977,"z":"5083bb91.cbb384","wires":[]},{"id":"555188e7.5bae08","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":492.3333511352539,"y":1974.0474872589111,"z":"5083bb91.cbb384","wires":[["20f33836.314ae8"]]},{"id":"20f33836.314ae8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":640.4761848449707,"y":1974.0474700927734,"z":"5083bb91.cbb384","wires":[["dd195a67.9e4528"]]},{"id":"dd195a67.9e4528","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":787.6190452575684,"y":1973.6189041137695,"z":"5083bb91.cbb384","wires":[]},{"id":"3b4ed31b.2aa0ec","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-invariant-uuid'\n  value='`$db.vf-model.invariant-uuid`' />\n","comments":"","x":915.9287452697754,"y":1290.0475587844849,"z":"5083bb91.cbb384","wires":[]},{"id":"84e4b6d4.cddc08","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":1049.8811492919922,"y":2413.571388244629,"z":"5083bb91.cbb384","wires":[["6477f1c9.11cbd"]]},{"id":"6477f1c9.11cbd","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n","comments":"","outputs":1,"x":1278.452350616455,"y":2412.142815589905,"z":"5083bb91.cbb384","wires":[["2d02e762.92bf68","a48ca1a4.9260d","b6321bf9.9a57b8","a22ac71b.7c92f8","f6d8dcbb.95d7e"]]},{"id":"2d02e762.92bf68","type":"outcome","name":"Pending Delete","xml":"<outcome value='Pending Delete'>\n","comments":"","outputs":1,"x":1515.1192626953125,"y":2457.8095235824585,"z":"5083bb91.cbb384","wires":[["a5e2243e.79eec8"]]},{"id":"a48ca1a4.9260d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1487.9764022827148,"y":2508.809504508972,"z":"5083bb91.cbb384","wires":[["6842d9dd.26f8c8"]]},{"id":"1bfffb3d.8635e5","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":1853.6907539367676,"y":2507.3808450698853,"z":"5083bb91.cbb384","wires":[["105409f.8c324f6"]]},{"id":"6842d9dd.26f8c8","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":1657.9763145446777,"y":2508.3808813095093,"z":"5083bb91.cbb384","wires":[["1bfffb3d.8635e5"]]},{"id":"105409f.8c324f6","type":"outcome","name":"cloud-region","xml":"<outcome value='cloud-region'>\n","comments":"","outputs":1,"x":2027.9763946533203,"y":2506.9522914886475,"z":"5083bb91.cbb384","wires":[["8c0fac20.7b6d4"]]},{"id":"8c0fac20.7b6d4","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":2225.119094848633,"y":2507.380759239197,"z":"5083bb91.cbb384","wires":[["23b4c525.ad999a"]]},{"id":"23b4c525.ad999a","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":2456.547695159912,"y":2506.9521341323853,"z":"5083bb91.cbb384","wires":[["ad4b7c5c.5ff53"]]},{"id":"ad4b7c5c.5ff53","type":"outcome","name":"cloud-region.cloud-region-id","xml":"<outcome value='cloud-region.cloud-region-id'>\n","comments":"","outputs":1,"x":2697.9762268066406,"y":2506.95223903656,"z":"5083bb91.cbb384","wires":[["8b527005.34699"]]},{"id":"8b527005.34699","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":3002.2621459960938,"y":2506.8092947006226,"z":"5083bb91.cbb384","wires":[["1ee4a77a.9542e9"]]},{"id":"1ee4a77a.9542e9","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3242.262176513672,"y":2506.9522399902344,"z":"5083bb91.cbb384","wires":[["ea9b8e4a.f0362"]]},{"id":"fbd0fea8.b0301","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":888.0953330993652,"y":2481.4284858703613,"z":"5083bb91.cbb384","wires":[["84e4b6d4.cddc08","640fc2e9.3ee98c"]]},{"id":"640fc2e9.3ee98c","type":"returnSuccess","name":"CATCH BREAK","xml":"<return status='success'>\n\n","comments":"","x":1039.4287414550781,"y":2554.7617197036743,"z":"5083bb91.cbb384","wires":[]},{"id":"c702789.b589088","type":"returnFailure","name":"BREAK","xml":"<return status='failure'>\n","comments":"","x":3543.095157623291,"y":2524.761643409729,"z":"5083bb91.cbb384","wires":[]},{"id":"dd0ec04d.0901","type":"set","name":"set l3-network-id = -1","xml":"<set>\n<parameter name='l3-network-id' value='-1' />\n","comments":"","x":932.4287033081055,"y":2284.7616996765137,"z":"5083bb91.cbb384","wires":[]},{"id":"ea9b8e4a.f0362","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3388.0951538085938,"y":2506.4283485412598,"z":"5083bb91.cbb384","wires":[["d78ad9d8.5d8c78","c702789.b589088"]]},{"id":"d78ad9d8.5d8c78","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":3624.7618255615234,"y":2481.4283475875854,"z":"5083bb91.cbb384","wires":[]},{"id":"c56cd3a7.e3e8d","type":"switchNode","name":"switch l3-network-id","xml":"<switch test='`$l3-network-id`'>\n","comments":"","outputs":1,"x":929.4286270141602,"y":2608.428741455078,"z":"5083bb91.cbb384","wires":[["36280e92.ad7cb2"]]},{"id":"36280e92.ad7cb2","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":1099.4285774230957,"y":2608.428497314453,"z":"5083bb91.cbb384","wires":[["3be921aa.df808e"]]},{"id":"3be921aa.df808e","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":1247.7619400024414,"y":2608.4286346435547,"z":"5083bb91.cbb384","wires":[]},{"id":"c7f99789.bdf418","type":"switchNode","name":"switch input model-invariant-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":559.7858200073242,"y":1312.8720026016235,"z":"5083bb91.cbb384","wires":[["47b49582.d69f7c","c9c231d.a31acd"]]},{"id":"47b49582.d69f7c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":765.4524917602539,"y":1290.0149660110474,"z":"5083bb91.cbb384","wires":[["3b4ed31b.2aa0ec"]]},{"id":"c9c231d.a31acd","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":766.8810882568359,"y":1334.3005571365356,"z":"5083bb91.cbb384","wires":[["d6283c1d.df5e5"]]},{"id":"d6283c1d.df5e5","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-invariant-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-invariant-uuid`' />\n","comments":"","x":921.1668243408203,"y":1333.7291293144226,"z":"5083bb91.cbb384","wires":[]},{"id":"1204474.d3b3db9","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-uuid'\n  value='`$db.vf-model.uuid`' />\n","comments":"","x":916.8810157775879,"y":1378.5862350463867,"z":"5083bb91.cbb384","wires":[]},{"id":"ed2bee8b.f19af","type":"switchNode","name":"switch input model-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":532.4048385620117,"y":1401.4107398986816,"z":"5083bb91.cbb384","wires":[["2399ff70.6432c","2e93ac0a.a66e94"]]},{"id":"2399ff70.6432c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":766.4048118591309,"y":1378.553671836853,"z":"5083bb91.cbb384","wires":[["1204474.d3b3db9"]]},{"id":"2e93ac0a.a66e94","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":767.8334083557129,"y":1422.8392629623413,"z":"5083bb91.cbb384","wires":[["79226175.2b687"]]},{"id":"79226175.2b687","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-uuid`' />\n","comments":"","x":922.1191444396973,"y":1422.2678351402283,"z":"5083bb91.cbb384","wires":[]},{"id":"83a56bac.491658","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-version'\n  value='`$db.vf-model.version`' />\n","comments":"","x":914.0239486694336,"y":1467.4434423446655,"z":"5083bb91.cbb384","wires":[]},{"id":"10b2b5e7.5b556a","type":"switchNode","name":"switch input model-version","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-version`'>\n","comments":"","outputs":1,"x":540.5477104187012,"y":1490.2678871154785,"z":"5083bb91.cbb384","wires":[["2f9db03f.c491c","1978d9cb.d98de6"]]},{"id":"2f9db03f.c491c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":763.5476951599121,"y":1467.410849571228,"z":"5083bb91.cbb384","wires":[["83a56bac.491658"]]},{"id":"1978d9cb.d98de6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.9762916564941,"y":1511.6964406967163,"z":"5083bb91.cbb384","wires":[["7d30ca25.4b3c44"]]},{"id":"7d30ca25.4b3c44","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-version'\n  value='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-version`' />\n","comments":"","x":919.2620277404785,"y":1511.1250128746033,"z":"5083bb91.cbb384","wires":[]},{"id":"30711380.8e3a9c","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-name'\n  value='`$db.vf-model.name`' />\n","comments":"","x":914.0239486694336,"y":1554.5862646102905,"z":"5083bb91.cbb384","wires":[]},{"id":"b6894e3b.427f7","type":"switchNode","name":"switch input model-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-name`'>\n","comments":"","outputs":1,"x":535.5477104187012,"y":1577.4107093811035,"z":"5083bb91.cbb384","wires":[["d278d695.c74378","48c0ba5a.c19a64"]]},{"id":"d278d695.c74378","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":763.5476951599121,"y":1554.553671836853,"z":"5083bb91.cbb384","wires":[["30711380.8e3a9c"]]},{"id":"48c0ba5a.c19a64","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.9762916564941,"y":1598.8392629623413,"z":"5083bb91.cbb384","wires":[["a7528ae.1a9da78"]]},{"id":"a7528ae.1a9da78","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-name'\n  value='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-name`' />\n","comments":"","x":919.2620277404785,"y":1598.2678351402283,"z":"5083bb91.cbb384","wires":[]},{"id":"a5e2243e.79eec8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1668.3333549499512,"y":2458.586400985718,"z":"5083bb91.cbb384","wires":[[]]},{"id":"f6d8dcbb.95d7e","type":"outcome","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1512.9999961853027,"y":2413.5863151550293,"z":"5083bb91.cbb384","wires":[["9951c6e.9aa9138"]]},{"id":"9951c6e.9aa9138","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1668.2140884399414,"y":2414.3631925582886,"z":"5083bb91.cbb384","wires":[[]]},{"id":"a22ac71b.7c92f8","type":"outcome","name":"Pending Create","xml":"<outcome value='Pending Create'>\n","comments":"","outputs":1,"x":1514.9999961853027,"y":2370.2528190612793,"z":"5083bb91.cbb384","wires":[["6fce3bd5.f4e834"]]},{"id":"6fce3bd5.f4e834","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1668.2140884399414,"y":2371.0296964645386,"z":"5083bb91.cbb384","wires":[[]]},{"id":"b6321bf9.9a57b8","type":"outcome","name":"PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":1514.9999961853027,"y":2326.9195671081543,"z":"5083bb91.cbb384","wires":[["b2172720.159c18"]]},{"id":"b2172720.159c18","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1668.2140884399414,"y":2327.6964445114136,"z":"5083bb91.cbb384","wires":[[]]},{"id":"8d1a1df.f9acde","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":931.6667633056641,"y":2701.919626235962,"z":"5083bb91.cbb384","wires":[["38d73ded.fd6fe2"]]},{"id":"38d73ded.fd6fe2","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='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].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].subnet-id`' />\n","comments":"","x":1129.9999389648438,"y":2700.2532052993774,"z":"5083bb91.cbb384","wires":[]},{"id":"1905c415.59545c","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":920.3333282470703,"y":2746.919708251953,"z":"5083bb91.cbb384","wires":[]},{"id":"7eb11b41.3e53d4","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.az.availability-zone_length`' />\n","comments":"","x":563.0000610351562,"y":3159.6342582702637,"z":"5083bb91.cbb384","wires":[]},{"id":"76228b8.6690274","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":496.66663360595703,"y":1246.9197664260864,"z":"5083bb91.cbb384","wires":[]},{"id":"bf0a4f73.3427c","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.ecomp-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n","comments":"","outputs":1,"x":483.3333282470703,"y":3369.300033569336,"z":"5083bb91.cbb384","wires":[["69da107b.fb799","7a401d78.a37844"]]},{"id":"780bff7b.fe23","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":483.33336639404297,"y":3299.30051612854,"z":"5083bb91.cbb384","wires":[]},{"id":"b4297c00.0fc6b8","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.9999771118164,"y":1198.5863094329834,"z":"5083bb91.cbb384","wires":[]},{"id":"74cb887a.748ed8","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":461.00009536743164,"y":3550.967363357544,"z":"5083bb91.cbb384","wires":[[]]},{"id":"9b1367c3.3e1fd8","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":1406.666805267334,"y":3235.9671211242676,"z":"5083bb91.cbb384","wires":[]},{"id":"8c9a1ab5.ce5b08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1219.3573722839355,"y":3192.919590950012,"z":"5083bb91.cbb384","wires":[["3dcbea4.1096316"]]},{"id":"e70903d4.4bb15","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1227.9288024902344,"y":3237.205304145813,"z":"5083bb91.cbb384","wires":[["9b1367c3.3e1fd8"]]},{"id":"3dcbea4.1096316","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":1409.3573989868164,"y":3192.729326248169,"z":"5083bb91.cbb384","wires":[]},{"id":"31bdedf0.2bef82","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":886.6667442321777,"y":3390.967043876648,"z":"5083bb91.cbb384","wires":[]},{"id":"69da107b.fb799","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":699.3573112487793,"y":3347.9195137023926,"z":"5083bb91.cbb384","wires":[["b5e15cb2.cab62"]]},{"id":"7a401d78.a37844","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":707.9287414550781,"y":3392.2052268981934,"z":"5083bb91.cbb384","wires":[["31bdedf0.2bef82"]]},{"id":"b5e15cb2.cab62","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":889.3573379516602,"y":3347.7292490005493,"z":"5083bb91.cbb384","wires":[]},{"id":"83344e86.aa812","type":"set","name":"set model-customization-uuid","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.ecomp-model-information.model-customization-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.ecomp-model-information.model-customization-uuid`' />\n","comments":"","x":548.3332977294922,"y":1650.2529134750366,"z":"5083bb91.cbb384","wires":[]},{"id":"f66871af.e5692","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":1313.6665954589844,"y":1771.6664972305298,"z":"5083bb91.cbb384","wires":[[]]},{"id":"7ed2b7fb.548078","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1133.3332977294922,"y":1818.333285331726,"z":"5083bb91.cbb384","wires":[["f66871af.e5692","d747b0d7.af821","399a4263.6a360e"]]},{"id":"399a4263.6a360e","type":"break","name":"break","xml":"<break>\n","comments":"","x":1283.3332595825195,"y":1861.666582107544,"z":"5083bb91.cbb384","wires":[]},{"id":"e9252ccb.d2705","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":795,"y":3070.7143869400024,"z":"5083bb91.cbb384","wires":[["b1db1f98.d448e","d45ddc40.768c2"]]},{"id":"d45ddc40.768c2","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=\"att-aic\" />\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.az.availability-zone[$idx].availability-zone-name`\" />\n","comments":"","outputs":1,"x":1086.9048156738281,"y":3094.0478343963623,"z":"5083bb91.cbb384","wires":[["a2d3128e.390bf","8b3808e2.f32948"]]},{"id":"a97c0980.2d72a8","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":1540.47607421875,"y":3117.9671936035156,"z":"5083bb91.cbb384","wires":[]},{"id":"a2d3128e.390bf","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1353.1666412353516,"y":3074.9196634292603,"z":"5083bb91.cbb384","wires":[["e7b70608.415b38"]]},{"id":"8b3808e2.f32948","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1361.7380714416504,"y":3119.205376625061,"z":"5083bb91.cbb384","wires":[["a97c0980.2d72a8"]]},{"id":"e7b70608.415b38","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":1543.1666679382324,"y":3074.729398727417,"z":"5083bb91.cbb384","wires":[]},{"id":"bf344dbf.57e7d","type":"set","name":"set mapping rows to 0","xml":"<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n","comments":"","x":1107.1427688598633,"y":2064.52388381958,"z":"5083bb91.cbb384","wires":[]},{"id":"a6739756.d975f8","type":"switchNode","name":"switch AAI availability-zone_length","xml":"<switch test='`$aai.az.availability-zone_length`'>\n","comments":"","outputs":1,"x":535.7142868041992,"y":2974.523973464966,"z":"5083bb91.cbb384","wires":[["2876e97f.ae3916"]]},{"id":"2876e97f.ae3916","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":754.2857055664062,"y":2974.0953826904297,"z":"5083bb91.cbb384","wires":[["32c7e4de.36637c"]]},{"id":"ea591bcc.24cec8","type":"set","name":"set availability-zone_length to 0","xml":"<set>\n<parameter name='aai.az.availability-zone_length' value='0' />\n","comments":"","x":1355.7143478393555,"y":2992.6666202545166,"z":"5083bb91.cbb384","wires":[]},{"id":"32c7e4de.36637c","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":942.857177734375,"y":2974.5236945152283,"z":"5083bb91.cbb384","wires":[["a4226dd4.17547","29731a8a.ed2356"]]},{"id":"a4226dd4.17547","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1145.7142848968506,"y":2948.8094444274902,"z":"5083bb91.cbb384","wires":[["7e365163.fc36a"]]},{"id":"29731a8a.ed2356","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1147.1429061889648,"y":2993.0951919555664,"z":"5083bb91.cbb384","wires":[["ea591bcc.24cec8"]]},{"id":"7e365163.fc36a","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":1297.142822265625,"y":2948.5238494873047,"z":"5083bb91.cbb384","wires":[]},{"id":"b3f8a06f.e304d","type":"get-resource","name":"get-resource availability zones","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"availability-zones\" \n\t\tkey=\"cloud-region.cloud-owner = 'att-aic' AND \n\t\t     cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t     depth='0'\"\n        pfx='aai.az' local-only='false' >\n\n","comments":"","outputs":1,"x":545.7143096923828,"y":1901.4286441802979,"z":"5083bb91.cbb384","wires":[["c6cdd578.1d9f88"]]},{"id":"c6cdd578.1d9f88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":770.9605255126953,"y":1900.829496383667,"z":"5083bb91.cbb384","wires":[["450c32ab.82b7bc"]]},{"id":"450c32ab.82b7bc","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 availability zones from AAI\" />\n","comments":"","x":944.7104644775391,"y":1899.5796184539795,"z":"5083bb91.cbb384","wires":[]}]
+[\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