Updates for vCPE Testing
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json
index 883ee40..9e374c5 100755 (executable)
@@ -1,3959 +1 @@
-[
-  {
-    "id":"2e8304f2.d1333c",
-    "type":"dgstart",
-    "name":"DGSTART",
-    "outputs":1,
-    "x":140,
-    "y":102,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "30732ff9.e0c76"
-      ]
-    ]
-  },
-  {
-    "id":"30732ff9.e0c76",
-    "type":"service-logic",
-    "name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-INT110901",
-    "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='1.2.0-SNAPSHOT-INT110901'>",
-    "outputs":1,
-    "x":253.85713577270508,
-    "y":141.80953788757324,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "9c4b6ed9.61ebe"
-      ]
-    ]
-  },
-  {
-    "id":"9c4b6ed9.61ebe",
-    "type":"method",
-    "name":"method vf-module-topology-operation-assign",
-    "xml":"<method rpc='vf-module-topology-operation-assign' mode='sync'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":253.42862701416016,
-    "y":182,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4a26d4a8.22be7c"
-      ]
-    ]
-  },
-  {
-    "id":"5527c1d7.da9d7",
-    "type":"comment",
-    "name":"vf-module-topology-operation-assign",
-    "info":"",
-    "comments":"",
-    "x":545.3210983276367,
-    "y":44.97569942474365,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"2e530cdc.f4ef94",
-    "type":"switchNode",
-    "name":"switch request-action",
-    "xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":545.1905097961426,
-    "y":357.52382230758667,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "bfda8f90.6e24d",
-        "77f2de42.6ba9a"
-      ]
-    ]
-  },
-  {
-    "id":"bfda8f90.6e24d",
-    "type":"outcome",
-    "name":"CreateVfModuleInstance",
-    "xml":"<outcome value='CreateVfModuleInstance'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":807.2381248474121,
-    "y":334.66670846939087,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "40654d05.71fd14"
-      ]
-    ]
-  },
-  {
-    "id":"77f2de42.6ba9a",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":750.9047698974609,
-    "y":380.0476975440979,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8b7d596e.984638"
-      ]
-    ]
-  },
-  {
-    "id":"40654d05.71fd14",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":997.0952892303467,
-    "y":334.6667399406433,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"8b7d596e.984638",
-    "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 'CreateVfModuleInstance'\" />\n",
-    "comments":"",
-    "x":1015.9047775268555,
-    "y":380.381010055542,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"aea9b344.20b1b",
-    "type":"get-resource",
-    "name":"get-resource VF_MODULE_MODEL",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-model'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":592.5237770080566,
-    "y":448.66677236557007,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4b7c3e12.248ee",
-        "6ee12611.a15fe8"
-      ]
-    ]
-  },
-  {
-    "id":"f817dd96.2592f",
-    "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 VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />\n",
-    "comments":"",
-    "x":1033.9521980285645,
-    "y":473.09524488449097,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"4b7c3e12.248ee",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":858.3094673156738,
-    "y":429.0476031303406,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d8b6dd53.baf73"
-      ]
-    ]
-  },
-  {
-    "id":"6ee12611.a15fe8",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":866.8808975219727,
-    "y":473.33331632614136,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f817dd96.2592f"
-      ]
-    ]
-  },
-  {
-    "id":"d8b6dd53.baf73",
-    "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_MODULE_MODEL table\" />\n",
-    "comments":"",
-    "x":1033.309398651123,
-    "y":428.1905035972595,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a8ff9e79.0b468",
-    "type":"switchNode",
-    "name":"switch service-data.vnfs.vnf_length",
-    "xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":587.6190414428711,
-    "y":657.2381076812744,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "45e1ae95.939d1",
-        "5930857d.90f94c"
-      ]
-    ]
-  },
-  {
-    "id":"45e1ae95.939d1",
-    "type":"other",
-    "name":"NULL",
-    "xml":"<outcome value=''>\n",
-    "comments":"",
-    "outputs":1,
-    "x":828.3333129882812,
-    "y":634.3808479309082,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "1632f046.4d998"
-      ]
-    ]
-  },
-  {
-    "id":"5930857d.90f94c",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":828.0951538085938,
-    "y":675.333366394043,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "223ba3cb.be09fc"
-      ]
-    ]
-  },
-  {
-    "id":"4a26d4a8.22be7c",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":194.99999237060547,
-    "y":2351.9999599456787,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2e530cdc.f4ef94",
-        "aea9b344.20b1b",
-        "a8ff9e79.0b468",
-        "358800b1.81ab1",
-        "88b7c37.4ed0e4",
-        "eac7ee4b.07efc",
-        "e57448b6.7f55b8",
-        "aaaa0574.80d838",
-        "9a073bb9.44d298",
-        "e811de1a.3c14a",
-        "ad1485f5.221e88",
-        "98b04124.336cf",
-        "cfad5308.b616e",
-        "7923367d.eb91d8",
-        "809c73eb.2a71c",
-        "a3e0954f.9194f8",
-        "a65c32d0.f1f0d",
-        "fa12b719.f97378",
-        "1f990c33.cacfc4",
-        "714310a.b7326f",
-        "69ed6361.64762c",
-        "e47d3411.0e7818",
-        "582721c4.126f6",
-        "b0ef8497.4ea668",
-        "3ab291c1.7ed19e",
-        "8923d8d0.f4b338",
-        "4f613c00.2b7644",
-        "39e9e85.a687718",
-        "dfa4db2.9778928",
-        "14f4699d.ce7016",
-        "7ae88bfe.f72b94",
-        "aa1a950e.7071b8",
-        "1f69056.fe181fb",
-        "19070089.9bb2ff",
-        "a2e18bff.138e78",
-        "454e063f.718d08",
-        "aedcd126.656c8",
-        "c314b843.e5cd58"
-      ]
-    ]
-  },
-  {
-    "id":"1632f046.4d998",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs defined in MD-SAL\" />\n",
-    "comments":"",
-    "x":994.999927520752,
-    "y":633.6666030883789,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"223ba3cb.be09fc",
-    "type":"for",
-    "name":"for each vnf",
-    "xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":990.3332977294922,
-    "y":674.9999847412109,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "220abc57.c6caa4"
-      ]
-    ]
-  },
-  {
-    "id":"220abc57.c6caa4",
-    "type":"switchNode",
-    "name":"switch service data vnf == input vnf",
-    "xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1241.6665153503418,
-    "y":674.6666717529297,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8fa71765.ff25a8"
-      ]
-    ]
-  },
-  {
-    "id":"8fa71765.ff25a8",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1471.6666069030762,
-    "y":674.0000257492065,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "99e80d15.cd3ff"
-      ]
-    ]
-  },
-  {
-    "id":"358800b1.81ab1",
-    "type":"set",
-    "name":"set vnf-index to -1",
-    "xml":"<set>\n<parameter name='vnf-index' value='-1' />\n",
-    "comments":"",
-    "x":536.6666641235352,
-    "y":588.6666069030762,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"2b9d4cfa.693254",
-    "type":"set",
-    "name":"set vnf-index to idx",
-    "xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
-    "comments":"",
-    "x":1793.3332443237305,
-    "y":644.9999837875366,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"88b7c37.4ed0e4",
-    "type":"switchNode",
-    "name":"switch vnf-index",
-    "xml":"<switch test='`$vnf-index`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":526.6666717529297,
-    "y":725.3333034515381,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "12b4f972.baaff7"
-      ]
-    ]
-  },
-  {
-    "id":"12b4f972.baaff7",
-    "type":"outcome",
-    "name":"-1",
-    "xml":"<outcome value='-1'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":705.000057220459,
-    "y":724.6666793823242,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a416b02e.8e4f1"
-      ]
-    ]
-  },
-  {
-    "id":"a416b02e.8e4f1",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n",
-    "comments":"",
-    "x":864.9999656677246,
-    "y":723.9999828338623,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"eac7ee4b.07efc",
-    "type":"switchNode",
-    "name":"switch vnf order status",
-    "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":549.6666946411133,
-    "y":796.6667003631592,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2fc04200.260dfe",
-        "bef7e5a8.884d58"
-      ]
-    ]
-  },
-  {
-    "id":"2fc04200.260dfe",
-    "type":"outcome",
-    "name":"Created",
-    "xml":"<outcome value='Created'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":749.9999961853027,
-    "y":770.3332843780518,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "3cba4216.c1fc4e"
-      ]
-    ]
-  },
-  {
-    "id":"3cba4216.c1fc4e",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":890.0000076293945,
-    "y":770.3333263397217,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"bef7e5a8.884d58",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":746.666633605957,
-    "y":811.9999618530273,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "fc26f30c.6bb1c"
-      ]
-    ]
-  },
-  {
-    "id":"fc26f30c.6bb1c",
-    "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 order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status + ' but should be Created'`\" />\n",
-    "comments":"",
-    "x":906.666633605957,
-    "y":811.6666488647461,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"e57448b6.7f55b8",
-    "type":"switchNode",
-    "name":"switch vf-module_length",
-    "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":553.333381652832,
-    "y":888.6666212081909,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "9b350576.68ef18",
-        "22c3a3f5.72d6ac"
-      ]
-    ]
-  },
-  {
-    "id":"9b350576.68ef18",
-    "type":"other",
-    "name":"NULL",
-    "xml":"<outcome value=''>\n",
-    "comments":"",
-    "outputs":1,
-    "x":810.7143363952637,
-    "y":855.8093948364258,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c6416be8.6fa798"
-      ]
-    ]
-  },
-  {
-    "id":"c6416be8.6fa798",
-    "type":"set",
-    "name":"set vf-module-index=0",
-    "xml":"<set>\n<parameter name='vf-module-index' value='0' />\n",
-    "comments":"",
-    "x":998.3333740234375,
-    "y":856.4761695861816,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"22c3a3f5.72d6ac",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":811.142879486084,
-    "y":920.0952529907227,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "19a7ad8a.4f2812"
-      ]
-    ]
-  },
-  {
-    "id":"421fd6a0.579bd8",
-    "type":"set",
-    "name":"set vf-module-index = vf-module_length",
-    "xml":"<set>\n<parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",
-    "comments":"",
-    "x":1196.3334197998047,
-    "y":900.2856483459473,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"1d996969.d26e67",
-    "type":"for",
-    "name":"for each existing VF module",
-    "xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1155.4285125732422,
-    "y":944.3808784484863,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a0040550.7bc5d8"
-      ]
-    ]
-  },
-  {
-    "id":"19a7ad8a.4f2812",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":947.8571586608887,
-    "y":920.095178604126,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "421fd6a0.579bd8",
-        "1d996969.d26e67"
-      ]
-    ]
-  },
-  {
-    "id":"a0040550.7bc5d8",
-    "type":"switchNode",
-    "name":"switch vf-module-information.vf-module-id == service-data.vnfs.vnf[].vf-modules.vf-module[].vf-module-id",
-    "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1659.0476150512695,
-    "y":943.9522895812988,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6ba70fe.734c0f"
-      ]
-    ]
-  },
-  {
-    "id":"6ba70fe.734c0f",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2101.666664123535,
-    "y":943.5237407684326,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "93b8e785.9fee48"
-      ]
-    ]
-  },
-  {
-    "id":"93b8e785.9fee48",
-    "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=\"`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\n       + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n",
-    "comments":"",
-    "x":2253.571544647217,
-    "y":943.5237274169922,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"f56d52b4.a8261",
-    "type":"comment",
-    "name":"make sure this VF module doesn't exist already",
-    "info":"",
-    "comments":"",
-    "x":1685.4999618530273,
-    "y":898.5797815322876,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"aaaa0574.80d838",
-    "type":"set",
-    "name":"set new vf-module_length",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\n",
-    "comments":"",
-    "x":558.3333206176758,
-    "y":983.6665554046631,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"9a073bb9.44d298",
-    "type":"set",
-    "name":"set vf-module-topology data",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\n<parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\n<parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\n",
-    "comments":"",
-    "x":564.8333396911621,
-    "y":1096.1666622161865,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"71021cf9.d2ce64",
-    "type":"set",
-    "name":"set aic-clli",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli'\n   value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",
-    "comments":"",
-    "x":1325.7855987548828,
-    "y":1255.4045886993408,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"e811de1a.3c14a",
-    "type":"switchNode",
-    "name":"switch aic-clli",
-    "xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":524.8332595825195,
-    "y":1369.3569288253784,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c686f39d.72ab2"
-      ]
-    ]
-  },
-  {
-    "id":"c686f39d.72ab2",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":670.1189498901367,
-    "y":1369.3569974899292,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6f7dc11c.49e2c"
-      ]
-    ]
-  },
-  {
-    "id":"6f7dc11c.49e2c",
-    "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 ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`\" />\n",
-    "comments":"",
-    "x":817.2618103027344,
-    "y":1368.9284315109253,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"ad1485f5.221e88",
-    "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 = 'CloudOwner' AND \n\t\t     cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\"\n        pfx='aai.cloud-region' local-only='false' >\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":563.6904754638672,
-    "y":1169.5002002716064,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8097c203.a4e64",
-        "ef1c3461.dc92d8"
-      ]
-    ]
-  },
-  {
-    "id":"ef1c3461.dc92d8",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":777.9366683959961,
-    "y":1187.6510562896729,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6dfc15a7.72a2bc"
-      ]
-    ]
-  },
-  {
-    "id":"6dfc15a7.72a2bc",
-    "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":952.9366416931152,
-    "y":1187.6510925292969,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"8097c203.a4e64",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":786.8652648925781,
-    "y":1145.9367895126343,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4786ef92.946f8"
-      ]
-    ]
-  },
-  {
-    "id":"4786ef92.946f8",
-    "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":953.214542388916,
-    "y":1145.2423667907715,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"98b04124.336cf",
-    "type":"set",
-    "name":"set vf-module-parameters",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-parameters.'\n  value='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.' />\n",
-    "comments":"",
-    "x":560.595287322998,
-    "y":1818.7860202789307,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"cfad5308.b616e",
-    "type":"set",
-    "name":"set order-status to PendingCreate",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n  value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
-    "comments":"",
-    "x":576.2262573242188,
-    "y":5020.3927001953125,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"7923367d.eb91d8",
-    "type":"get-resource",
-    "name":"get-resource VF_MODULE_TO_VFC_MAPPING",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_TO_VFC_MAPPING WHERE vf_module_customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-to-vfc-mapping[]'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":633.9286880493164,
-    "y":1872.642807006836,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "61dd146a.6f14fc",
-        "cfdcc8b2.a45fb8"
-      ]
-    ]
-  },
-  {
-    "id":"61dd146a.6f14fc",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":899.7143783569336,
-    "y":1853.0236377716064,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "3ca0362b.6e2f9a"
-      ]
-    ]
-  },
-  {
-    "id":"cfdcc8b2.a45fb8",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":908.2858085632324,
-    "y":1897.3093509674072,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f2ed6314.ee329"
-      ]
-    ]
-  },
-  {
-    "id":"3ca0362b.6e2f9a",
-    "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_MODULE_TO_VFC_MAPPING table\" />\n",
-    "comments":"",
-    "x":1074.7143096923828,
-    "y":1852.1665382385254,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"809c73eb.2a71c",
-    "type":"for",
-    "name":"for each vm-type",
-    "xml":"<for index='vm-type-index' start='0' end='`$db.vf-module-to-vfc-mapping_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":534.0476989746094,
-    "y":2501.6430587768555,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "1f699ee5.b89dd1"
-      ]
-    ]
-  },
-  {
-    "id":"ae4ef538.4223c8",
-    "type":"get-resource",
-    "name":"get-resource VFC_MODEL",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_MODEL WHERE customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-model'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":975.9524993896484,
-    "y":1993.5477199554443,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c1a94592.ef7dc8",
-        "36c932eb.81f9ae"
-      ]
-    ]
-  },
-  {
-    "id":"2749f807.59cbd8",
-    "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 VFC_MODEL table for customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n",
-    "comments":"",
-    "x":1346.3808479309082,
-    "y":2017.9761123657227,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"c1a94592.ef7dc8",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1171.7381172180176,
-    "y":1973.9284706115723,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "480721a9.59fc5"
-      ]
-    ]
-  },
-  {
-    "id":"36c932eb.81f9ae",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1180.3095474243164,
-    "y":2018.214183807373,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2749f807.59cbd8"
-      ]
-    ]
-  },
-  {
-    "id":"480721a9.59fc5",
-    "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 VFC_MODEL table\" />\n",
-    "comments":"",
-    "x":1346.7380485534668,
-    "y":1973.0713710784912,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"1f699ee5.b89dd1",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":725.9524917602539,
-    "y":2500.214427947998,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "ae4ef538.4223c8",
-        "96edef9a.d3b33",
-        "dc43de7f.70791",
-        "c2deb4af.5c58c8",
-        "8101c46.e2ef238",
-        "f5bdc66c.11bd78",
-        "4f18de56.831f8",
-        "18e532bb.94aa6d"
-      ]
-    ]
-  },
-  {
-    "id":"69ed6361.64762c",
-    "type":"set",
-    "name":"set vm_length",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm_length'\n  value='`$db.vf-module-to-vfc-mapping_length`' />\n",
-    "comments":"",
-    "x":525.833366394043,
-    "y":1932.8334846496582,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"96edef9a.d3b33",
-    "type":"set",
-    "name":"set vm data",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-type`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code'\n   value='`$db.vfc-model.nfc-naming-code`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type-tag'\n   value='`$db.vfc-model.vm-type-tag`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n",
-    "comments":"",
-    "x":926.6667518615723,
-    "y":2119.5001974105835,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"99e80d15.cd3ff",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1620.0000686645508,
-    "y":672.9197244644165,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2b9d4cfa.693254",
-        "e08ffaca.0297f8"
-      ]
-    ]
-  },
-  {
-    "id":"e08ffaca.0297f8",
-    "type":"break",
-    "name":"break",
-    "xml":"<break>",
-    "comments":"",
-    "x":1755.0000343322754,
-    "y":694.5863103866577,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d743beeb.1dbe5",
-    "type":"set",
-    "name":"set from DB",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-module-model.invariant-uuid`' />\n",
-    "comments":"",
-    "x":939.1665992736816,
-    "y":1410.7529220581055,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a3e0954f.9194f8",
-    "type":"switchNode",
-    "name":"switch input model-invariant-uuid",
-    "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":583.0236740112305,
-    "y":1433.5773658752441,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2c1d02c0.78dd0e",
-        "a95a3eca.03f4"
-      ]
-    ]
-  },
-  {
-    "id":"2c1d02c0.78dd0e",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":788.6903457641602,
-    "y":1410.720329284668,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d743beeb.1dbe5"
-      ]
-    ]
-  },
-  {
-    "id":"a95a3eca.03f4",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":790.1189422607422,
-    "y":1455.0059204101562,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "25dab957.580636"
-      ]
-    ]
-  },
-  {
-    "id":"25dab957.580636",
-    "type":"set",
-    "name":"set from input",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n",
-    "comments":"",
-    "x":944.4046783447266,
-    "y":1454.4344925880432,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"638901d0.ce1ec",
-    "type":"set",
-    "name":"set from DB",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$db.vf-module-model.uuid`' />\n",
-    "comments":"",
-    "x":940.1188697814941,
-    "y":1499.2915983200073,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a65c32d0.f1f0d",
-    "type":"switchNode",
-    "name":"switch input model-uuid",
-    "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":555.642692565918,
-    "y":1522.1161031723022,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "ed142f55.1f70c",
-        "75273d61.353b14"
-      ]
-    ]
-  },
-  {
-    "id":"ed142f55.1f70c",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":789.6426658630371,
-    "y":1499.2590351104736,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "638901d0.ce1ec"
-      ]
-    ]
-  },
-  {
-    "id":"75273d61.353b14",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":791.0712623596191,
-    "y":1543.544626235962,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "da1cfb23.9a25e8"
-      ]
-    ]
-  },
-  {
-    "id":"da1cfb23.9a25e8",
-    "type":"set",
-    "name":"set from input",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n",
-    "comments":"",
-    "x":945.3569984436035,
-    "y":1542.9731984138489,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"65429406.6c6b9c",
-    "type":"set",
-    "name":"set from DB",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$db.vf-module-model.version`' />\n",
-    "comments":"",
-    "x":937.2618026733398,
-    "y":1588.1488056182861,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"fa12b719.f97378",
-    "type":"switchNode",
-    "name":"switch input model-version",
-    "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":563.7855644226074,
-    "y":1610.9732503890991,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "1200d2f5.494f9d",
-        "f5147fc0.bfa5e"
-      ]
-    ]
-  },
-  {
-    "id":"1200d2f5.494f9d",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":786.7855491638184,
-    "y":1588.1162128448486,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "65429406.6c6b9c"
-      ]
-    ]
-  },
-  {
-    "id":"f5147fc0.bfa5e",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":788.2141456604004,
-    "y":1632.401803970337,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d74f65ed.78d448"
-      ]
-    ]
-  },
-  {
-    "id":"d74f65ed.78d448",
-    "type":"set",
-    "name":"set from input",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n",
-    "comments":"",
-    "x":942.4998817443848,
-    "y":1631.8303761482239,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"da71a3e1.3185a",
-    "type":"set",
-    "name":"set from DB",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$db.vf-module-model.name`' />\n",
-    "comments":"",
-    "x":937.2618026733398,
-    "y":1675.2916278839111,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"1f990c33.cacfc4",
-    "type":"switchNode",
-    "name":"switch input model-name",
-    "xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":558.7855644226074,
-    "y":1698.1160726547241,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "647b0438.ab102c",
-        "663c8c44.ce20c4"
-      ]
-    ]
-  },
-  {
-    "id":"647b0438.ab102c",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":786.7855491638184,
-    "y":1675.2590351104736,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "da71a3e1.3185a"
-      ]
-    ]
-  },
-  {
-    "id":"663c8c44.ce20c4",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":788.2141456604004,
-    "y":1719.544626235962,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "e84c9dce.744b8"
-      ]
-    ]
-  },
-  {
-    "id":"e84c9dce.744b8",
-    "type":"set",
-    "name":"set from input",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\n",
-    "comments":"",
-    "x":942.4998817443848,
-    "y":1718.9731984138489,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"714310a.b7326f",
-    "type":"set",
-    "name":"set model-customization-uuid",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n",
-    "comments":"",
-    "x":573.2378997802734,
-    "y":1770.6250619888306,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"dc43de7f.70791",
-    "type":"for",
-    "name":"for each vm",
-    "xml":"<for index='vm-index' start='0' end='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":928.3332405090332,
-    "y":2228.7531156539917,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "7505754.7087a8c"
-      ]
-    ]
-  },
-  {
-    "id":"c2deb4af.5c58c8",
-    "type":"set",
-    "name":"set vm-name-length",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name_length'\n  value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n",
-    "comments":"",
-    "x":951.6666946411133,
-    "y":2163.753373146057,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"2f06bc6e.cdf504",
-    "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":1394.761863708496,
-    "y":2251.3722620010376,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6c48629.77e939c",
-        "a3fd6e6d.5788b"
-      ]
-    ]
-  },
-  {
-    "id":"6c48629.77e939c",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1690.4761517842617,
-    "y":2224.2295246124268,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8b35adee.43478"
-      ]
-    ]
-  },
-  {
-    "id":"a3fd6e6d.5788b",
-    "type":"success",
-    "name":"success",
-    "xml":"<outcome value='success'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1693.8095016479492,
-    "y":2275.896167755127,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a8057f80.cfbdb"
-      ]
-    ]
-  },
-  {
-    "id":"18ce2f16.816031",
-    "type":"set",
-    "name":"set variables for generating unique name",
-    "xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='VM_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vm_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VM_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-name + $db.vfc-model.nfc-naming-code`\" />\n<parameter name='generate-unique-name-input.index-length' value='3' />\n",
-    "comments":"",
-    "x":1351.4285774230957,
-    "y":2199.7055883407593,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a8057f80.cfbdb",
-    "type":"set",
-    "name":"set generated name",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' value='`$generate-unique-name-output.generated-name`' />\n",
-    "comments":"",
-    "x":1878.3332176208496,
-    "y":2275.3721857070923,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"8b35adee.43478",
-    "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":1858.3332646687832,
-    "y":2223.6580362319946,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"e47d3411.0e7818",
-    "type":"set",
-    "name":"set vf-module-id",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\n   value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",
-    "comments":"",
-    "x":526.4285469055176,
-    "y":1039.348237991333,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"7505754.7087a8c",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1092.738182067871,
-    "y":2228.396019935608,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "18ce2f16.816031",
-        "2f06bc6e.cdf504"
-      ]
-    ]
-  },
-  {
-    "id":"8101c46.e2ef238",
-    "type":"get-resource",
-    "name":"get-resource VFC_TO_NETWORK_ROLE_MAPPING",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_TO_NETWORK_ROLE_MAPPING WHERE vfc_customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-to-network-role-mapping[]'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":1055.595329284668,
-    "y":2351.253088951111,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "61785549.e0849c",
-        "5224b8ad.063668"
-      ]
-    ]
-  },
-  {
-    "id":"61785549.e0849c",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1342.8095321655273,
-    "y":2331.6339359283447,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "58d75d53.d15634"
-      ]
-    ]
-  },
-  {
-    "id":"5224b8ad.063668",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1351.3809623718262,
-    "y":2375.9196491241455,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "16f89ad6.193655"
-      ]
-    ]
-  },
-  {
-    "id":"58d75d53.d15634",
-    "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 VFC_TO_NETWORK_ROLE_MAPPING table\" />\n",
-    "comments":"",
-    "x":1517.8094635009766,
-    "y":2330.7768363952637,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"f5bdc66c.11bd78",
-    "type":"for",
-    "name":"for each network-role",
-    "xml":"<for index='network-role-index' start='0' end='`$db.vfc-to-network-role-mapping_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":948.6906204223633,
-    "y":2662.4439306259155,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f495fb98.6c0a18"
-      ]
-    ]
-  },
-  {
-    "id":"f495fb98.6c0a18",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1155.1190719604492,
-    "y":2659.11043548584,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8d2e0b.55c471f8",
-        "b8d6dab7.8f19b8",
-        "46e547.478a3ab8",
-        "1da90578.6d8f2b",
-        "415ccc2d.a04f44",
-        "5a0fce27.0cc5",
-        "2cebaf.8e65f452",
-        "c8e0f30f.8d5d8"
-      ]
-    ]
-  },
-  {
-    "id":"8d2e0b.55c471f8",
-    "type":"for",
-    "name":"for each network",
-    "xml":"<for silentFailure='true' index='idx' start='0' end='`$service-data.networks.network_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1364.166633605957,
-    "y":2491.253191947937,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "e2ef30d6.1b483"
-      ]
-    ]
-  },
-  {
-    "id":"b8d6dab7.8f19b8",
-    "type":"set",
-    "name":"set network-index to -1",
-    "xml":"<set>\n<parameter name='network-index' value='-1' />\n",
-    "comments":"",
-    "x":1384.1667022705078,
-    "y":2448.396188735962,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"e2ef30d6.1b483",
-    "type":"switchNode",
-    "name":"switch network-role matches",
-    "xml":"<switch test='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-role == $db.vfc-to-network-role-mapping[$network-role-index].network-role`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1592.737907409668,
-    "y":2489.824381828308,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "79eba1ee.46b8"
-      ]
-    ]
-  },
-  {
-    "id":"79eba1ee.46b8",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1791.3095741271973,
-    "y":2489.824585914612,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "52d952.2163c6b"
-      ]
-    ]
-  },
-  {
-    "id":"52d952.2163c6b",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1932.7381420135498,
-    "y":2488.396014213562,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "19d3b2d3.0314cd",
-        "b934653f.8e9748"
-      ]
-    ]
-  },
-  {
-    "id":"19d3b2d3.0314cd",
-    "type":"set",
-    "name":"set network-index to idx",
-    "xml":"<set>\n<parameter name='network-index' value='`$idx`' />\n",
-    "comments":"",
-    "x":2111.30965423584,
-    "y":2465.5390100479126,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"b934653f.8e9748",
-    "type":"break",
-    "name":"break",
-    "xml":"<break>",
-    "comments":"",
-    "x":2059.8808937072754,
-    "y":2511.2531900405884,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"46e547.478a3ab8",
-    "type":"switchNode",
-    "name":"switch network-index",
-    "xml":"<switch test='`$network-index`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1376.0714721679688,
-    "y":2540.062829017639,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d2ba67f.cc23298"
-      ]
-    ]
-  },
-  {
-    "id":"d2ba67f.cc23298",
-    "type":"outcomeTrue",
-    "name":"-1",
-    "xml":"<outcome value='-1'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1570.3571968078613,
-    "y":2540.062726020813,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "78f92d17.cec774"
-      ]
-    ]
-  },
-  {
-    "id":"78f92d17.cec774",
-    "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 network found in MD-SAL with network-role ' + $db.vfc-to-network-role-mapping[$network-role-index].network-role`\" />\n",
-    "comments":"",
-    "x":1727.5000457763672,
-    "y":2538.634196281433,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"582721c4.126f6",
-    "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":585.9442901611328,
-    "y":1258.0068836212158,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f632bc1b.960e"
-      ]
-    ]
-  },
-  {
-    "id":"f632bc1b.960e",
-    "type":"switchNode",
-    "name":"switch related-to",
-    "xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":833.6228332519531,
-    "y":1257.7568130493164,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c5ce5df.fba4ea"
-      ]
-    ]
-  },
-  {
-    "id":"c5ce5df.fba4ea",
-    "type":"outcome",
-    "name":"complex",
-    "xml":"<outcome value='complex'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1003.0871543884277,
-    "y":1257.1496353149414,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "36cd2be.f10ccd4"
-      ]
-    ]
-  },
-  {
-    "id":"af57b732.5de4d8",
-    "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":1343.1823120117188,
-    "y":1211.5782108306885,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"36cd2be.f10ccd4",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1162.8490142822266,
-    "y":1258.2449989318848,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "af57b732.5de4d8",
-        "e276c8d3.3ab668",
-        "71021cf9.d2ce64"
-      ]
-    ]
-  },
-  {
-    "id":"e276c8d3.3ab668",
-    "type":"break",
-    "name":"break",
-    "xml":"<break>",
-    "comments":"",
-    "x":1312.848976135254,
-    "y":1301.5782957077026,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"1da90578.6d8f2b",
-    "type":"set",
-    "name":"set network-role and tag",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role-tag'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role-tag`' />\n",
-    "comments":"",
-    "x":1385.8333549499512,
-    "y":2636.2530155181885,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"4f18de56.831f8",
-    "type":"set",
-    "name":"set vm-network-length",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length'\n  value='`$db.vfc-to-network-role-mapping_length`' />\n",
-    "comments":"",
-    "x":942.4999465942383,
-    "y":3051.2532806396484,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"415ccc2d.a04f44",
-    "type":"switchNode",
-    "name":"switch ipv4-ip-version",
-    "xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-ip-version`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1378.452407836914,
-    "y":2719.5863428115845,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "eff505c0.4d80a8",
-        "7ba4a75.88aab58"
-      ]
-    ]
-  },
-  {
-    "id":"15f50ec8.ae15e1",
-    "type":"set",
-    "name":"set network-information-index to -1",
-    "xml":"<set>\n<parameter name='network-information-index' value='-1' />\n\n",
-    "comments":"",
-    "x":1787.97603225708,
-    "y":2684.5864477157593,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"eff505c0.4d80a8",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":1555.1189270019531,
-    "y":2684.586483001709,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "15f50ec8.ae15e1"
-      ]
-    ]
-  },
-  {
-    "id":"7ba4a75.88aab58",
-    "type":"other",
-    "name":"4",
-    "xml":"<outcome value='4'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1553.8808784484863,
-    "y":2750.538625717163,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "77d24f8f.dfe93"
-      ]
-    ]
-  },
-  {
-    "id":"9db64306.b784b",
-    "type":"set",
-    "name":"set network-information-index to 0",
-    "xml":"<set>\n<parameter name='network-information-index' value='0' />\n",
-    "comments":"",
-    "x":1958.4521408081055,
-    "y":2725.0624866485596,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"77d24f8f.dfe93",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1721.0713539123535,
-    "y":2749.872091293335,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "9db64306.b784b",
-        "ae06599.ab8ada8"
-      ]
-    ]
-  },
-  {
-    "id":"ae06599.ab8ada8",
-    "type":"set",
-    "name":"set ip-version 4, use-dhcp, and ip-count",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='4' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-count`' />\n",
-    "comments":"",
-    "x":1975.4047241210938,
-    "y":2771.7294425964355,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"5a0fce27.0cc5",
-    "type":"switchNode",
-    "name":"switch ipv6-ip-version",
-    "xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-ip-version`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1378.9286041259766,
-    "y":2846.4911251068115,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c42cc110.b1b6c",
-        "3f79e3b9.76574c"
-      ]
-    ]
-  },
-  {
-    "id":"c42cc110.b1b6c",
-    "type":"outcome",
-    "name":"NULL",
-    "xml":"<outcome value=''>",
-    "comments":"",
-    "outputs":1,
-    "x":1557.7380981445312,
-    "y":2816.728937149048,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "804f081a.ae1078"
-      ]
-    ]
-  },
-  {
-    "id":"3f79e3b9.76574c",
-    "type":"other",
-    "name":"6",
-    "xml":"<outcome value='6'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1559.1666526794434,
-    "y":2881.0144939422607,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a9db339d.d7ff6"
-      ]
-    ]
-  },
-  {
-    "id":"dae18443.96dc88",
-    "type":"set",
-    "name":"increment network-information-index",
-    "xml":"<set>\n<parameter name='network-information-index' value='`$network-information-index + 1`' />\n",
-    "comments":"",
-    "x":1964.880744934082,
-    "y":2855.5385236740112,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a9db339d.d7ff6",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1714.4048118591309,
-    "y":2880.0622329711914,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "dae18443.96dc88",
-        "d1e2a302.f2a79"
-      ]
-    ]
-  },
-  {
-    "id":"804f081a.ae1078",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1700.404727935791,
-    "y":2816.0625553131104,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"2cebaf.8e65f452",
-    "type":"switchNode",
-    "name":"switch network-information-index",
-    "xml":"<switch test='`$network-information-index`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1414.166618347168,
-    "y":2982.919370651245,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "65a0822f.ef5c1c",
-        "83f08e39.d6a15"
-      ]
-    ]
-  },
-  {
-    "id":"65a0822f.ef5c1c",
-    "type":"outcome",
-    "name":"-1",
-    "xml":"<outcome value='-1'>",
-    "comments":"",
-    "outputs":1,
-    "x":1632.4999752044678,
-    "y":2959.5861167907715,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "19418e05.1e8042"
-      ]
-    ]
-  },
-  {
-    "id":"83f08e39.d6a15",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1632.2619380950928,
-    "y":3005.5384311676025,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "5955caa.70cc334"
-      ]
-    ]
-  },
-  {
-    "id":"19418e05.1e8042",
-    "type":"block",
-    "name":"block",
-    "xml":"<block>\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1769.166690826416,
-    "y":2957.919776916504,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"5955caa.70cc334",
-    "type":"set",
-    "name":"set network-information-item_length",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length'\n   value='`$network-information-index + 1`' />\n",
-    "comments":"",
-    "x":1860.8333053588867,
-    "y":3002.919569015503,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"b0ef8497.4ea668",
-    "type":"for",
-    "name":"for each vm-type",
-    "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":541,
-    "y":3149.9194660186768,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "fe06fed9.aff3e"
-      ]
-    ]
-  },
-  {
-    "id":"fe06fed9.aff3e",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":744.5715255737305,
-    "y":3150.1576709747314,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d04bd80b.387cf8"
-      ]
-    ]
-  },
-  {
-    "id":"c8e0f30f.8d5d8",
-    "type":"set",
-    "name":"save network-id",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id'\n  value='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-id`' />\n",
-    "comments":"This isn't a node in MD-SAL, but we need to save this for later when we are doing EIPAM processing",
-    "x":1357.9761810302734,
-    "y":2586.253023147583,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d04bd80b.387cf8",
-    "type":"for",
-    "name":"for each network-role",
-    "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":945.999885559082,
-    "y":3149.252721786499,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "5ff438d4.980868"
-      ]
-    ]
-  },
-  {
-    "id":"5ff438d4.980868",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1147.9047012329102,
-    "y":3148.490758895874,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "5c7949ed.12f198"
-      ]
-    ]
-  },
-  {
-    "id":"5c7949ed.12f198",
-    "type":"for",
-    "name":"for each network-information-item",
-    "xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1392.6665725708008,
-    "y":3148.0151510238647,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "3c49e4a4.13796c"
-      ]
-    ]
-  },
-  {
-    "id":"97b8ba37.35fdb8",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":637.666633605957,
-    "y":3353.9195766448975,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c20748cc.14a758",
-        "f73ba212.a9db1",
-        "eccb2ab1.4ecf58",
-        "6c51c35e.c8107c",
-        "373238a0.60e488"
-      ]
-    ]
-  },
-  {
-    "id":"c20748cc.14a758",
-    "type":"get-resource",
-    "name":"get-resource EIPAM_IP_SUBNETS",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNETS WHERE network_id = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n    AND address_family = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version'\n  pfx='db.eipam-ip-subnets[]'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":1017.6666564941406,
-    "y":3315.586072921753,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "e7cc33.f38f63d",
-        "6e4ec0e0.26982"
-      ]
-    ]
-  },
-  {
-    "id":"1c2857df.d8b0a8",
-    "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 EIPAM_IP_SUBNETS table for network ID '\n        + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n        + ' and address family ' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`\" />\n",
-    "comments":"",
-    "x":1407.6665954589844,
-    "y":3337.2528343200684,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"e7cc33.f38f63d",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1233.0238647460938,
-    "y":3293.205192565918,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6c1c41f9.cb5ac"
-      ]
-    ]
-  },
-  {
-    "id":"6e4ec0e0.26982",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1241.5952949523926,
-    "y":3337.4909057617188,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "1c2857df.d8b0a8"
-      ]
-    ]
-  },
-  {
-    "id":"6c1c41f9.cb5ac",
-    "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 EIPAM_IP_SUBNETS table\" />\n",
-    "comments":"",
-    "x":1408.023796081543,
-    "y":3292.348093032837,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"f73ba212.a9db1",
-    "type":"for",
-    "name":"for each record in EIPAM_IP_SUBNETS",
-    "xml":"<for index='subnets-index' start='0' end='`$db.eipam-ip-subnets_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1036.9524688720703,
-    "y":3620.82426071167,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "48786485.afdfcc"
-      ]
-    ]
-  },
-  {
-    "id":"48786485.afdfcc",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1293.3810195922852,
-    "y":3621.77654838562,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "76f82048.a92cb",
-        "564032f0.dfbc3c",
-        "a8b83f38.2b35f",
-        "802baf6d.dddb5",
-        "d69aacbb.b1933"
-      ]
-    ]
-  },
-  {
-    "id":"76f82048.a92cb",
-    "type":"get-resource",
-    "name":"get-resource EIPAM_IP_SUBNET_KEYS",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $db.eipam-ip-subnets[$subnets-index].entity-id'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":1604.809585571289,
-    "y":3458.205156326294,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "5c773ab4.c1c354",
-        "76282e7d.401a9"
-      ]
-    ]
-  },
-  {
-    "id":"ea3f166e.9742f8",
-    "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 EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $db.eipam-ip-subnets[$subnets-index].entity-id`\" />",
-    "comments":"",
-    "x":2019.809585571289,
-    "y":3478.205156326294,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"5c773ab4.c1c354",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1845.1668548583984,
-    "y":3434.1575145721436,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a89d01a.87957"
-      ]
-    ]
-  },
-  {
-    "id":"76282e7d.401a9",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1853.7382850646973,
-    "y":3478.4432277679443,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "ea3f166e.9742f8"
-      ]
-    ]
-  },
-  {
-    "id":"a89d01a.87957",
-    "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 EIPAM_IP_SUBNET_KEYS table\" />\n",
-    "comments":"",
-    "x":2020.1667861938477,
-    "y":3433.3004150390625,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"eccb2ab1.4ecf58",
-    "type":"set",
-    "name":"set max-level to -1",
-    "xml":"<set>\n<parameter name='max-level' value='-1' />\n",
-    "comments":"",
-    "x":965.7619323730469,
-    "y":3381.538688659668,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"564032f0.dfbc3c",
-    "type":"for",
-    "name":"for each record in EIPAM_IP_SUBNET_KEYS",
-    "xml":"<for index='keys-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1619.3334045410156,
-    "y":3527.2529106140137,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "96321389.4c73f"
-      ]
-    ]
-  },
-  {
-    "id":"96321389.4c73f",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1906.0000534057617,
-    "y":3525.586248397827,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2d3eea0b.50e1e6"
-      ]
-    ]
-  },
-  {
-    "id":"2d3eea0b.50e1e6",
-    "type":"switchNode",
-    "name":"switch level > max-level?",
-    "xml":"<switch test='`$db.eipam-ip-subnet-keys[$keys-index].level &gt; $max-level`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2122.6666717529297,
-    "y":3525.586166381836,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c87a6e6.e044e9"
-      ]
-    ]
-  },
-  {
-    "id":"c87a6e6.e044e9",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2314.333599090576,
-    "y":3525.58616065979,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f7e5553.b6c1fa8"
-      ]
-    ]
-  },
-  {
-    "id":"f7e5553.b6c1fa8",
-    "type":"set",
-    "name":"set max-level, selected-entity-id, selected-plan-name",
-    "xml":"<set>\n<parameter name='max-level' value='`$db.eipam-ip-subnet-keys[$keys-index].level`' />\n<parameter name='selected-entity-id' value='`$db.eipam-ip-subnet-keys[$keys-index].entity-id`' />\n<parameter name='selected-plan-name' value='`$db.eipam-ip-subnets[$subnets-index].plan-name`' />\n",
-    "comments":"",
-    "x":2606.0001068115234,
-    "y":3523.9194173812866,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a8b83f38.2b35f",
-    "type":"get-resource",
-    "name":"get-resource EIPAM_IP_SUBNET_KEYS",
-    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $selected-entity-id order by level'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":1606.000015258789,
-    "y":3599.157615661621,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d369bc07.5b51d",
-        "ce7c7e60.3e34b"
-      ]
-    ]
-  },
-  {
-    "id":"7b19e8c7.72e078",
-    "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 EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $selected-entity-id`\" />",
-    "comments":"",
-    "x":2021.000015258789,
-    "y":3619.157615661621,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d369bc07.5b51d",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1846.3572845458984,
-    "y":3575.1099739074707,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "404aa28f.128f4c"
-      ]
-    ]
-  },
-  {
-    "id":"ce7c7e60.3e34b",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1854.9287147521973,
-    "y":3619.3956871032715,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "7b19e8c7.72e078"
-      ]
-    ]
-  },
-  {
-    "id":"404aa28f.128f4c",
-    "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 EIPAM_IP_SUBNET_KEYS table\" />\n",
-    "comments":"",
-    "x":2021.3572158813477,
-    "y":3574.2528743743896,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"f31caaf8.dddbb8",
-    "type":"for",
-    "name":"for each record in EIPAM_IP_SUBNET_KEYS",
-    "xml":"<for index='level-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":2051.952362060547,
-    "y":3667.729072570801,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "b8b8da21.b44008"
-      ]
-    ]
-  },
-  {
-    "id":"b21661ec.87447",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1744.8093643188477,
-    "y":3751.5385093688965,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "f31caaf8.dddbb8",
-        "18077655.54097a",
-        "b9fd5f75.b5e8a",
-        "df5529a.8c63fd8",
-        "863bfcf2.a453f"
-      ]
-    ]
-  },
-  {
-    "id":"802baf6d.dddb5",
-    "type":"for",
-    "name":"for each ip in ip-count",
-    "xml":"<for index='request-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1543.142807006836,
-    "y":3751.5401363372803,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "b21661ec.87447"
-      ]
-    ]
-  },
-  {
-    "id":"b8b8da21.b44008",
-    "type":"set",
-    "name":"set eipam data for level",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-name'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-value'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-value`' />\n",
-    "comments":"",
-    "x":2358.8571243286133,
-    "y":3667.4918384552,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"18077655.54097a",
-    "type":"set",
-    "name":"set eipam data pools_length",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools_length'\n   value='`$db.eipam-ip-subnet-keys_length`' />\n",
-    "comments":"",
-    "x":1998.142677307129,
-    "y":3713.2054557800293,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"3ab291c1.7ed19e",
-    "type":"set",
-    "name":"set plans-index to 0",
-    "xml":"<set>\n<parameter name='plans-index' value='0' />\n",
-    "comments":"",
-    "x":549.7619171142578,
-    "y":3093.8717365264893,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"6c51c35e.c8107c",
-    "type":"set",
-    "name":"increment plans-index",
-    "xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n",
-    "comments":"",
-    "x":981.0952224731445,
-    "y":4012.871983528137,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d69aacbb.b1933",
-    "type":"set",
-    "name":"set eipam requests_length",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests_length'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' />\n",
-    "comments":"",
-    "x":1553.6191711425781,
-    "y":3893.2055082321167,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"373238a0.60e488",
-    "type":"set",
-    "name":"set eipam plan-name, address-family",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].plan-name' value='`$selected-plan-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].address-family'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`' />\n",
-    "comments":"",
-    "x":1029.6666564941406,
-    "y":3965.7284650802612,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"8923d8d0.f4b338",
-    "type":"set",
-    "name":"set eipam plans_length",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans_length' value='`$plans-index`' />\n",
-    "comments":"",
-    "x":553.4285697937012,
-    "y":4037.919857978821,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"4f613c00.2b7644",
-    "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":512.7975616455078,
-    "y":5113.011030197144,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"39e9e85.a687718",
-    "type":"set",
-    "name":"copy input data",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n   value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n   value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n   value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n   value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n   value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n   value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n",
-    "comments":"",
-    "x":524.5832290649414,
-    "y":4888.990794181824,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"dfa4db2.9778928",
-    "type":"set",
-    "name":"copy vf-module-topology data",
-    "xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.' value='$tmp.vf-module-topology.' />\n",
-    "comments":"",
-    "x":569.4642333984375,
-    "y":4840.776306152344,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"ff59520e.ec557",
-    "type":"execute",
-    "name":"printContext",
-    "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodule.log' />\n",
-    "comments":"",
-    "outputs":1,
-    "x":507.6785125732422,
-    "y":5065.240846633911,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"26166f96.2f2dc",
-    "type":"execute",
-    "name":"call EIPAM assignIPAddress",
-    "xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"assignIPAddress\">",
-    "comments":"",
-    "outputs":1,
-    "x":933.5952911376953,
-    "y":4126.880926132202,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "3cca0436.97a71c"
-      ]
-    ]
-  },
-  {
-    "id":"3cca0436.97a71c",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>",
-    "outputs":1,
-    "x":1147.5952911376953,
-    "y":4126.880926132202,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "3c2970af.d2cab"
-      ]
-    ]
-  },
-  {
-    "id":"3c2970af.d2cab",
-    "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\t<parameter name=\"error-message\" value=\"An error occured while obtaining new address blocks from EIPAM.\" />\n",
-    "comments":"",
-    "x":1286.5952911376953,
-    "y":4126.880926132202,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"b9fd5f75.b5e8a",
-    "type":"set",
-    "name":"set eipam client-key, mask",
-    "xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].client-key'\n   value='`$generate-unique-name-output.generated-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].info'\n   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].mask'\n   value='32' />\n",
-    "comments":"",
-    "x":1995.2857284545898,
-    "y":3847.015483856201,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"7ae88bfe.f72b94",
-    "type":"for",
-    "name":"for each vm-type",
-    "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":533,
-    "y":4236.252558708191,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "42f93af5.a0fff4"
-      ]
-    ]
-  },
-  {
-    "id":"42f93af5.a0fff4",
-    "type":"for",
-    "name":"for each vm-network",
-    "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":741.6666831970215,
-    "y":4236.252884864807,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "75df27a.fd89ad8"
-      ]
-    ]
-  },
-  {
-    "id":"75df27a.fd89ad8",
-    "type":"for",
-    "name":"for each network-information-item",
-    "xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1006.6666717529297,
-    "y":4237.919226646423,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "fd735d1.2d1f0a"
-      ]
-    ]
-  },
-  {
-    "id":"14f4699d.ce7016",
-    "type":"set",
-    "name":"set plans-index = 0",
-    "xml":"<set>\n<parameter name='plans-index' value='0' />\n",
-    "comments":"",
-    "x":539.9999923706055,
-    "y":4181.252646446228,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"2d342044.e7473",
-    "type":"for",
-    "name":"for each eipam request",
-    "xml":"<for index='ip-index' start='0' end='`$eipam-ip-block.plans[$plans-index].requests_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1776.6666259765625,
-    "y":4209.586531639099,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "c211fc94.3e7ba"
-      ]
-    ]
-  },
-  {
-    "id":"c211fc94.3e7ba",
-    "type":"set",
-    "name":"set ip address",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].network-ips.network-ip[$ip-index]'\n  value='`$eipam-ip-block.plans[$plans-index].requests[$ip-index].ip-prefix`' />\n",
-    "comments":"",
-    "x":1988.3332633972168,
-    "y":4207.919702529907,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"bffc2bb7.1135f8",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1576.6664581298828,
-    "y":4234.586045265198,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2d342044.e7473",
-        "2cedc5a4.ab6bba"
-      ]
-    ]
-  },
-  {
-    "id":"2cedc5a4.ab6bba",
-    "type":"set",
-    "name":"increment plans-index",
-    "xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n",
-    "comments":"",
-    "x":1771.66650390625,
-    "y":4256.252387046814,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"1f69056.fe181fb",
-    "type":"save",
-    "name":"update vf-module",
-    "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module\"\n   key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n      AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vf-module-name\" value=\"`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vf-module-object-path`\" />\n",
-    "comments":"",
-    "outputs":1,
-    "x":534.9999694824219,
-    "y":4381.252729415894,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "80694bdc.1daa28",
-        "7fffbd12.aef484"
-      ]
-    ]
-  },
-  {
-    "id":"753f20c5.bbede",
-    "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 vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
-    "comments":"",
-    "x":1028.333396911621,
-    "y":4434.585899353027,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"80694bdc.1daa28",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":704.3573303222656,
-    "y":4348.204874038696,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "1dc4fe5.fac6902"
-      ]
-    ]
-  },
-  {
-    "id":"7fffbd12.aef484",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":712.9286842346191,
-    "y":4410.823854446411,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "34139b45.2d0504"
-      ]
-    ]
-  },
-  {
-    "id":"8f30d2e9.eb03c",
-    "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 vf-module in AAI\" />\n",
-    "comments":"",
-    "x":1039.3572845458984,
-    "y":4366.348430633545,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"aa1a950e.7071b8",
-    "type":"set",
-    "name":"set vf-module-object-path",
-    "xml":"<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n\n",
-    "comments":"",
-    "x":561.666633605957,
-    "y":4306.252715110779,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"df808ad1.2e9658",
-    "type":"save",
-    "name":"save vf-module relationships",
-    "xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module:relationship-list\"\n   key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n      AND 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=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n",
-    "comments":"",
-    "outputs":1,
-    "x":994.3094787597656,
-    "y":4509.975717544556,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "64c1b4ac.c2087c",
-        "f9da1963.2589e8"
-      ]
-    ]
-  },
-  {
-    "id":"64c1b4ac.c2087c",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1219.1428108215332,
-    "y":4470.847640037537,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "e705dca.d8b482"
-      ]
-    ]
-  },
-  {
-    "id":"f9da1963.2589e8",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1227.7142639160156,
-    "y":4548.466782569885,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "76421cc4.4bff94"
-      ]
-    ]
-  },
-  {
-    "id":"8b99afe7.e214",
-    "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 vf-module relationships in AAI\" />\n",
-    "comments":"",
-    "x":1554.1429443359375,
-    "y":4490.657536506653,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"19070089.9bb2ff",
-    "type":"for",
-    "name":"for each vm-type",
-    "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":535.3095092773438,
-    "y":4511.642220497131,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4fc0dd78.6aaf84"
-      ]
-    ]
-  },
-  {
-    "id":"4fc0dd78.6aaf84",
-    "type":"for",
-    "name":"for each vm-network",
-    "xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":745.9761867523193,
-    "y":4509.976043701172,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "df808ad1.2e9658"
-      ]
-    ]
-  },
-  {
-    "id":"a464ded4.4fcf4",
-    "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 vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n",
-    "comments":"",
-    "x":1555.9762382507324,
-    "y":4565.642075538635,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d1e2a302.f2a79",
-    "type":"set",
-    "name":"set ip-version 6, use-dhcp, and ip-count",
-    "xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='6' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-count`' />\n",
-    "comments":"",
-    "x":1974.7857208251953,
-    "y":2900.213849067688,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"3c49e4a4.13796c",
-    "type":"switchNode",
-    "name":"switch use-dhcp",
-    "xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1640.500114440918,
-    "y":3147.356598854065,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2413eb81.677464"
-      ]
-    ]
-  },
-  {
-    "id":"2413eb81.677464",
-    "type":"outcome",
-    "name":"N",
-    "xml":"<outcome value='N'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1810.5000267028809,
-    "y":3145.928201675415,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "97b8ba37.35fdb8"
-      ]
-    ]
-  },
-  {
-    "id":"fd735d1.2d1f0a",
-    "type":"switchNode",
-    "name":"switch use-dhcp",
-    "xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1247.642837524414,
-    "y":4236.642521858215,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "b5446bac.ef4728"
-      ]
-    ]
-  },
-  {
-    "id":"b5446bac.ef4728",
-    "type":"outcome",
-    "name":"N",
-    "xml":"<outcome value='N'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1417.642749786377,
-    "y":4235.214124679565,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "bffc2bb7.1135f8"
-      ]
-    ]
-  },
-  {
-    "id":"a2e18bff.138e78",
-    "type":"for",
-    "name":"for each vm-type",
-    "xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":534.309455871582,
-    "y":4641.642714500427,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2e24847f.54fa9c"
-      ]
-    ]
-  },
-  {
-    "id":"2e24847f.54fa9c",
-    "type":"for",
-    "name":"for each vm",
-    "xml":"<for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":729.3094863891602,
-    "y":4640.975722312927,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2284873e.c8dbc8"
-      ]
-    ]
-  },
-  {
-    "id":"cae20484.4fdb28",
-    "type":"save",
-    "name":"save VIPR_CONFIGURATION",
-    "xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , 'CloudOwner')\" >",
-    "comments":"",
-    "outputs":1,
-    "x":1120.976188659668,
-    "y":4663.643372535706,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4d4ebb0a.8e16a4"
-      ]
-    ]
-  },
-  {
-    "id":"317d3d10.b08102",
-    "type":"comment",
-    "name":"Not a failure",
-    "info":"",
-    "comments":"",
-    "x":1640.976089477539,
-    "y":4663.643377304077,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"4d4ebb0a.8e16a4",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1330.976173400879,
-    "y":4663.643522262573,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "6df75797.6cb868"
-      ]
-    ]
-  },
-  {
-    "id":"6df75797.6cb868",
-    "type":"record",
-    "name":"record",
-    "xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1474.3096160888672,
-    "y":4663.643360137939,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"863bfcf2.a453f",
-    "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":2084.3094940185547,
-    "y":3801.641947746277,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "41e4565d.44f878"
-      ]
-    ]
-  },
-  {
-    "id":"41e4565d.44f878",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2371.6905364990234,
-    "y":3799.4993686676025,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "892fb77a.70d198"
-      ]
-    ]
-  },
-  {
-    "id":"df5529a.8c63fd8",
-    "type":"set",
-    "name":"set variables for generating unique name",
-    "xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='EIPAM_CLIENT_KEY_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='CLIENT_KEY' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version + ':'`\" />\n<parameter name='generate-unique-name-input.index-length' value='' />\n",
-    "comments":"",
-    "x":2037.6428260803223,
-    "y":3756.6421089172363,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"892fb77a.70d198",
-    "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":2539.547649383545,
-    "y":3798.9278802871704,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"18e532bb.94aa6d",
-    "type":"switchNode",
-    "name":"switch ecomp-generated-naming == 'Y'",
-    "xml":"<switch test=\"$db.vfc-model.ecomp-generated-naming == 'Y'\">\n",
-    "comments":"",
-    "outputs":1,
-    "x":1014.3095626831055,
-    "y":2063.309280395508,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "87402ff0.1c134"
-      ]
-    ]
-  },
-  {
-    "id":"87402ff0.1c134",
-    "type":"outcomeFalse",
-    "name":"false",
-    "xml":"<outcome value='false'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1245.976173400879,
-    "y":2062.3089113235474,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "92edfbd1.110d28"
-      ]
-    ]
-  },
-  {
-    "id":"92edfbd1.110d28",
-    "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=\"`'ECOMP generated naming is not Y for VFC customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n",
-    "comments":"",
-    "x":1392.6429138183594,
-    "y":2061.6423664093018,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"127d9e0e.3be312",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1504.3097381591797,
-    "y":4614.975073814392,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d222b70d.a58a58"
-      ]
-    ]
-  },
-  {
-    "id":"4cc71899.b3ae38",
-    "type":"comment",
-    "name":"Not a failure",
-    "info":"",
-    "comments":"",
-    "x":1827.6427917480469,
-    "y":4613.308896064758,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"d222b70d.a58a58",
-    "type":"record",
-    "name":"record",
-    "xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1650.3096733093262,
-    "y":4614.975707054138,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  },
-  {
-    "id":"2284873e.c8dbc8",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":897.642879486084,
-    "y":4639.975566864014,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a73701c2.3e09c",
-        "cae20484.4fdb28"
-      ]
-    ]
-  },
-  {
-    "id":"a73701c2.3e09c",
-    "type":"delete",
-    "name":"delete any pre-existing records in VIPR_CONFIGURATION",
-    "xml":"<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n     AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n     AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >",
-    "comments":"",
-    "outputs":1,
-    "x":1210.976203918457,
-    "y":4615.309706687927,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "127d9e0e.3be312"
-      ]
-    ]
-  },
-  {
-    "id":"68800eba.46188",
-    "type":"update",
-    "name":"update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...",
-    "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id\" >",
-    "comments":"",
-    "outputs":1,
-    "x":2917.6429481506348,
-    "y":4251.64261007309,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "7301d98d.3c90a8"
-      ]
-    ]
-  },
-  {
-    "id":"b6002bec.a5ed88",
-    "type":"set",
-    "name":"set status variable",
-    "xml":"<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`\" />\n",
-    "comments":"",
-    "x":2787.642910003662,
-    "y":4204.9759821891785,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"7301d98d.3c90a8",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":3222.6428565979004,
-    "y":4249.97590970993,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "4d39b53.eeb304c"
-      ]
-    ]
-  },
-  {
-    "id":"4d39b53.eeb304c",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating EIPAM_IP_ASSIGNMENTS table on rollback\" />\n",
-    "comments":"",
-    "x":3412.6428833007812,
-    "y":4249.785645008087,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"72df2a3e.4251b4",
-    "type":"execute",
-    "name":"execute EIPAM unassign IP addresses",
-    "xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n",
-    "comments":"",
-    "outputs":1,
-    "x":2852.6429176330566,
-    "y":4296.642653942108,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "77b8e820.4a3988"
-      ]
-    ]
-  },
-  {
-    "id":"77b8e820.4a3988",
-    "type":"failure",
-    "name":"failure",
-    "xml":"<outcome value='failure'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":3089.309543609619,
-    "y":4296.642596721649,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "89dbd50f.fd7c38"
-      ]
-    ]
-  },
-  {
-    "id":"89dbd50f.fd7c38",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error in EIPAM unassign IP address on rollback\" />\n",
-    "comments":"",
-    "x":3279.3095703125,
-    "y":4296.452332019806,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"54652b75.46fe04",
-    "type":"comment",
-    "name":"roll back EIPAM",
-    "info":"",
-    "comments":"",
-    "x":2762.6429481506348,
-    "y":4151.642935593923,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"2bdf3ccf.849b44",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":2594.3095741271973,
-    "y":4254.97610616684,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "b6002bec.a5ed88",
-        "68800eba.46188",
-        "72df2a3e.4251b4"
-      ]
-    ]
-  },
-  {
-    "id":"1dc4fe5.fac6902",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":862.6428985595703,
-    "y":4347.975544929504,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8f30d2e9.eb03c",
-        "b9241d04.9c139"
-      ]
-    ]
-  },
-  {
-    "id":"34139b45.2d0504",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":867.6428375244141,
-    "y":4410.641888618469,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "753f20c5.bbede",
-        "b9241d04.9c139"
-      ]
-    ]
-  },
-  {
-    "id":"e705dca.d8b482",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1387.6428146362305,
-    "y":4470.641909599304,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "8b99afe7.e214",
-        "b9241d04.9c139"
-      ]
-    ]
-  },
-  {
-    "id":"76421cc4.4bff94",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":1382.642734527588,
-    "y":4548.641750335693,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "a464ded4.4fcf4",
-        "b9241d04.9c139"
-      ]
-    ]
-  },
-  {
-    "id":"f2ed6314.ee329",
-    "type":"set",
-    "name":"set vf-module-to-vfc-mapping length to 0",
-    "xml":"<set>\n<parameter name='db.vf-module-to-vfc-mapping_length' value='0' />\n",
-    "comments":"",
-    "x":1161.500099182129,
-    "y":1896.9280138015747,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"16f89ad6.193655",
-    "type":"set",
-    "name":"set vfc-to-network-role-mapping length to 0",
-    "xml":"<set>\n<parameter name='db.vfc-to-network-role-mapping_length' value='0' />\n",
-    "comments":"",
-    "x":1614.7857818603516,
-    "y":2375.9280395507812,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"454e063f.718d08",
-    "type":"switchNode",
-    "name":"switch plans-index > 0",
-    "xml":"<switch test='`$plans-index &gt; 0`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":550.5000762939453,
-    "y":4127.356512069702,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "7b0f806f.b0b31"
-      ]
-    ]
-  },
-  {
-    "id":"7b0f806f.b0b31",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":733.3572158813477,
-    "y":4127.356721878052,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "26166f96.2f2dc"
-      ]
-    ]
-  },
-  {
-    "id":"b9241d04.9c139",
-    "type":"switchNode",
-    "name":"switch plans-index > 0",
-    "xml":"<switch test='`$plans-index &gt; 0`'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2241.6665000915527,
-    "y":4254.261742115021,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "d4e55b39.4088b8"
-      ]
-    ]
-  },
-  {
-    "id":"d4e55b39.4088b8",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":2424.523639678955,
-    "y":4254.26195192337,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-        "2bdf3ccf.849b44"
-      ]
-    ]
-  },
-  {
-    "id":"aedcd126.656c8",
-    "type":"set",
-    "name":"set service-type",
-    "xml":"<set>\n<parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\n",
-    "comments":"EIPAM plug-in needs this attribute set with this name",
-    "x":530.6666145324707,
-    "y":4080.92791557312,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"47f3a0dd.9d94b",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
-    "comments":"",
-    "x":269,
-    "y":4838.749938964844,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"eba5daaf.aa8698",
-    "type":"comment",
-    "name":"Fix $ in value",
-    "info":"",
-    "comments":"",
-    "x":774.7499465942383,
-    "y":4844.000087738037,
-    "z":"e6090836.aef008",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"c314b843.e5cd58",
-    "type":"call",
-    "name":"call check for VNF-API-preload and copy",
-    "xml":"<call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":604.1668701171875,
-    "y":4950.9169921875,
-    "z":"e6090836.aef008",
-    "wires":[
-      [
-
-      ]
-    ]
-  }
-]
\ No newline at end of file
+[{"id":"8742d12.7a1d7b","type":"dgstart","name":"DGSTART","outputs":1,"x":183,"y":176.02430057525635,"z":"42cbb89a.8c64f","wires":[["894b3de3.f71528"]]},{"id":"894b3de3.f71528","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":296.8571357727051,"y":215.8338384628296,"z":"42cbb89a.8c64f","wires":[["f890db1d.3600f"]]},{"id":"f890db1d.3600f","type":"method","name":"method vf-module-topology-operation-assign","xml":"<method rpc='vf-module-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":296.42862701416016,"y":256.02430057525635,"z":"42cbb89a.8c64f","wires":[["c8a1e002.809438"]]},{"id":"7dcb9f29.bd27d8","type":"comment","name":"vf-module-topology-operation-assign","info":"","comments":"","x":588.3210983276367,"y":119,"z":"42cbb89a.8c64f","wires":[]},{"id":"f5ba158b.f70238","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":588.1905097961426,"y":431.548122882843,"z":"42cbb89a.8c64f","wires":[["2d4867a.0da5a18","56323370.3acb6c"]]},{"id":"2d4867a.0da5a18","type":"outcome","name":"CreateVfModuleInstance","xml":"<outcome value='CreateVfModuleInstance'>\n","comments":"","outputs":1,"x":850.2381248474121,"y":408.6910090446472,"z":"42cbb89a.8c64f","wires":[["9093ce89.dbd2"]]},{"id":"56323370.3acb6c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":793.9047698974609,"y":454.07199811935425,"z":"42cbb89a.8c64f","wires":[["83310546.dd5548"]]},{"id":"9093ce89.dbd2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1040.0952892303467,"y":408.69104051589966,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"83310546.dd5548","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 'CreateVfModuleInstance'\" />\n","comments":"","x":1058.9047775268555,"y":454.40531063079834,"z":"42cbb89a.8c64f","wires":[]},{"id":"a85265fb.59c4f8","type":"get-resource","name":"get-resource VF_MODULE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_MODEL WHERE customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-model'>\n\n","comments":"","outputs":1,"x":635.5237770080566,"y":522.6910729408264,"z":"42cbb89a.8c64f","wires":[["c3c0e66.56b1a98","8973ae47.d019f"]]},{"id":"b078e35d.a7a8b","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 VF module customization UUID ' + $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":1076.9521980285645,"y":547.1195454597473,"z":"42cbb89a.8c64f","wires":[]},{"id":"c3c0e66.56b1a98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":901.3094673156738,"y":503.0719037055969,"z":"42cbb89a.8c64f","wires":[["2e22b269.a520a6"]]},{"id":"8973ae47.d019f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":909.8808975219727,"y":547.3576169013977,"z":"42cbb89a.8c64f","wires":[["b078e35d.a7a8b"]]},{"id":"2e22b269.a520a6","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_MODULE_MODEL table\" />\n","comments":"","x":1076.309398651123,"y":502.21480417251587,"z":"42cbb89a.8c64f","wires":[]},{"id":"7aa1bb6.19ed144","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":630.6190414428711,"y":731.2624082565308,"z":"42cbb89a.8c64f","wires":[["9220ab58.177838","a7e6546c.a7384"]]},{"id":"9220ab58.177838","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":871.3333129882812,"y":708.4051485061646,"z":"42cbb89a.8c64f","wires":[["56bd0e83.72fec"]]},{"id":"a7e6546c.a7384","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":871.0951538085938,"y":749.3576669692993,"z":"42cbb89a.8c64f","wires":[["8c7195ad.71de6"]]},{"id":"c8a1e002.809438","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":237.99999237060547,"y":2426.024260520935,"z":"42cbb89a.8c64f","wires":[["f5ba158b.f70238","a85265fb.59c4f8","7aa1bb6.19ed144","5b156e7.3ede59","78f55d30.9b559c","e85f12eb.c3b7d8","bd4f4b52.b86c9","19a8adcf.8ba972","d68b1f8a.c36f8","ce657ede.d0e7d","dc1a7960.cce6c8","63912568.dc6aac","a1685cb6.6af2e","13ade228.a692e6","bbe284c2.19a1b","dc5bef63.7bbf58","606dd497.672abc","fa9f3efa.3d4728","6e166208.bcc654","a6edf90b.02862","514505ea.10acfc","3f52ef.03031512","75cfcd56.417424","cfc556e3.250c1","bf867b12.1be738","c5587f72.e69778","993e8c87.965df8","f20188a.3ff6c78","3b0dea46.13d54e","7b3e5db3.2dc124","3aff63fe.fa9cd4","4765e816.cfcec","7e0e98ac.d87bf","bb37fcda.2b247","8328b041.fafc2","14eb9411.7f3a24","4cd290dc.dfcc9","d44a8be9.4bdcc","978b88f8.1b362"]]},{"id":"56bd0e83.72fec","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs defined in MD-SAL\" />\n","comments":"","x":1037.999927520752,"y":707.6909036636353,"z":"42cbb89a.8c64f","wires":[]},{"id":"8c7195ad.71de6","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1033.3332977294922,"y":749.0242853164673,"z":"42cbb89a.8c64f","wires":[["f8dadf0d.b36748"]]},{"id":"f8dadf0d.b36748","type":"switchNode","name":"switch service data vnf == input vnf","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":1284.6665153503418,"y":748.690972328186,"z":"42cbb89a.8c64f","wires":[["84f14cdf.d12da"]]},{"id":"84f14cdf.d12da","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1514.6666069030762,"y":748.0243263244629,"z":"42cbb89a.8c64f","wires":[["b5e9b140.524d"]]},{"id":"5b156e7.3ede59","type":"set","name":"set vnf-index to -1","xml":"<set>\n<parameter name='vnf-index' value='-1' />\n","comments":"","x":579.6666641235352,"y":662.6909074783325,"z":"42cbb89a.8c64f","wires":[]},{"id":"f8350d6.6984bf","type":"set","name":"set vnf-index to idx","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1836.3332443237305,"y":719.024284362793,"z":"42cbb89a.8c64f","wires":[]},{"id":"78f55d30.9b559c","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":569.6666717529297,"y":799.3576040267944,"z":"42cbb89a.8c64f","wires":[["fd955bd1.7d5d98"]]},{"id":"fd955bd1.7d5d98","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":748.000057220459,"y":798.6909799575806,"z":"42cbb89a.8c64f","wires":[["dd7488b1.39828"]]},{"id":"dd7488b1.39828","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unable to find VNF ID ' + $vf-module-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'`\" />\n","comments":"","x":907.9999656677246,"y":798.0242834091187,"z":"42cbb89a.8c64f","wires":[]},{"id":"e85f12eb.c3b7d8","type":"switchNode","name":"switch vnf order status","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":592.6666946411133,"y":870.6910009384155,"z":"42cbb89a.8c64f","wires":[["627847e5.85df","7eed7e27.fd9a"]]},{"id":"627847e5.85df","type":"outcome","name":"Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":792.9999961853027,"y":844.3575849533081,"z":"42cbb89a.8c64f","wires":[["f151c486.4a1088"]]},{"id":"f151c486.4a1088","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":933.0000076293945,"y":844.357626914978,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"7eed7e27.fd9a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":789.666633605957,"y":886.0242624282837,"z":"42cbb89a.8c64f","wires":[["4fcdf97f.3cb7b"]]},{"id":"4fcdf97f.3cb7b","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 order status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status + ' but should be Created'`\" />\n","comments":"","x":949.666633605957,"y":885.6909494400024,"z":"42cbb89a.8c64f","wires":[]},{"id":"bd4f4b52.b86c9","type":"switchNode","name":"switch vf-module_length","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n","comments":"","outputs":1,"x":596.333381652832,"y":962.6909217834473,"z":"42cbb89a.8c64f","wires":[["30be5b0c.6ffa0c","9c2f0421.be6e48"]]},{"id":"30be5b0c.6ffa0c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":853.7143363952637,"y":929.8336954116821,"z":"42cbb89a.8c64f","wires":[["4684f1cb.f822d8"]]},{"id":"4684f1cb.f822d8","type":"set","name":"set vf-module-index=0","xml":"<set>\n<parameter name='vf-module-index' value='0' />\n","comments":"","x":1041.3333740234375,"y":930.500470161438,"z":"42cbb89a.8c64f","wires":[]},{"id":"9c2f0421.be6e48","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":854.142879486084,"y":994.119553565979,"z":"42cbb89a.8c64f","wires":[["71865ce8.e6eb4c"]]},{"id":"afae93fd.db33b","type":"set","name":"set vf-module-index = vf-module_length","xml":"<set>\n<parameter name='vf-module-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n","comments":"","x":1239.3334197998047,"y":974.3099489212036,"z":"42cbb89a.8c64f","wires":[]},{"id":"24832982.cd0fe6","type":"for","name":"for each existing VF module","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n","comments":"","outputs":1,"x":1198.4285125732422,"y":1018.4051790237427,"z":"42cbb89a.8c64f","wires":[["8d346fb9.665898"]]},{"id":"71865ce8.e6eb4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":990.8571586608887,"y":994.1194791793823,"z":"42cbb89a.8c64f","wires":[["afae93fd.db33b","24832982.cd0fe6"]]},{"id":"8d346fb9.665898","type":"switchNode","name":"switch vf-module-information.vf-module-id == service-data.vnfs.vnf[].vf-modules.vf-module[].vf-module-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id == $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id`'>\n","comments":"","outputs":1,"x":1702.0476150512695,"y":1017.9765901565552,"z":"42cbb89a.8c64f","wires":[["8ff6f911.252038"]]},{"id":"8ff6f911.252038","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2144.666664123535,"y":1017.548041343689,"z":"42cbb89a.8c64f","wires":[["c71f4ab4.b4a088"]]},{"id":"c71f4ab4.b4a088","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=\"`'VF module id ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id\n       + ' already exists, and status is ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n","comments":"","x":2296.571544647217,"y":1017.5480279922485,"z":"42cbb89a.8c64f","wires":[]},{"id":"bee5bef3.86a98","type":"comment","name":"make sure this VF module doesn't exist already","info":"","comments":"","x":1728.4999618530273,"y":972.604082107544,"z":"42cbb89a.8c64f","wires":[]},{"id":"19a8adcf.8ba972","type":"set","name":"set new vf-module_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-module-index + 1`' />\n","comments":"","x":601.3333206176758,"y":1057.6908559799194,"z":"42cbb89a.8c64f","wires":[]},{"id":"d68b1f8a.c36f8","type":"set","name":"set vf-module-topology data","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-name`' />\n<parameter name='tmp.vf-module-topology.vf-module-topology-identifier.vf-module-type' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-type`' />\n<parameter name='tmp.vf-module-topology.tenant' value='`$vf-module-topology-operation-input.vf-module-request-input.tenant`' />\n<parameter name='tmp.vf-module-topology.aic-cloud-region' value='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`' />\n","comments":"","x":607.8333396911621,"y":1170.1909627914429,"z":"42cbb89a.8c64f","wires":[]},{"id":"e4522356.5a7e2","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli'\n   value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n","comments":"","x":1368.7855987548828,"y":1329.4288892745972,"z":"42cbb89a.8c64f","wires":[]},{"id":"ce657ede.d0e7d","type":"switchNode","name":"switch aic-clli","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.aic-clli`'>\n","comments":"","outputs":1,"x":567.8332595825195,"y":1443.3812294006348,"z":"42cbb89a.8c64f","wires":[["a44684c3.293ee8"]]},{"id":"a44684c3.293ee8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":713.1189498901367,"y":1443.3812980651855,"z":"42cbb89a.8c64f","wires":[["a1923c55.11e4c8"]]},{"id":"a1923c55.11e4c8","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 ' + $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`\" />\n","comments":"","x":860.2618103027344,"y":1442.9527320861816,"z":"42cbb89a.8c64f","wires":[]},{"id":"dc1a7960.cce6c8","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 = 'CloudOwner' AND \n\t\t     cloud-region.cloud-region-id = $vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region\"\n        pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":606.6904754638672,"y":1243.5245008468628,"z":"42cbb89a.8c64f","wires":[["6c625f2a.03864","97f875f7.37eb4"]]},{"id":"97f875f7.37eb4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":820.9366683959961,"y":1261.6753568649292,"z":"42cbb89a.8c64f","wires":[["ecec7a39.3d0b9"]]},{"id":"ecec7a39.3d0b9","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":995.9366416931152,"y":1261.6753931045532,"z":"42cbb89a.8c64f","wires":[]},{"id":"6c625f2a.03864","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":829.8652648925781,"y":1219.9610900878906,"z":"42cbb89a.8c64f","wires":[["3c76069e.89c31a"]]},{"id":"3c76069e.89c31a","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":996.214542388916,"y":1219.2666673660278,"z":"42cbb89a.8c64f","wires":[]},{"id":"63912568.dc6aac","type":"set","name":"set vf-module-parameters","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-parameters.'\n  value='vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.' />\n","comments":"","x":603.595287322998,"y":1892.810320854187,"z":"42cbb89a.8c64f","wires":[]},{"id":"a1685cb6.6af2e","type":"set","name":"set order-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.order-status'\n  value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.last-action'\n  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n","comments":"","x":619.2262573242188,"y":5094.417000770569,"z":"42cbb89a.8c64f","wires":[]},{"id":"13ade228.a692e6","type":"get-resource","name":"get-resource VF_MODULE_TO_VFC_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VF_MODULE_TO_VFC_MAPPING WHERE vf_module_customization_uuid = $vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid'\n  pfx='db.vf-module-to-vfc-mapping[]'>\n\n","comments":"","outputs":1,"x":676.9286880493164,"y":1946.6671075820923,"z":"42cbb89a.8c64f","wires":[["fae8f604.21bc6","da093ea1.9e3bd"]]},{"id":"fae8f604.21bc6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":942.7143783569336,"y":1927.0479383468628,"z":"42cbb89a.8c64f","wires":[["e21cede9.2e7c6"]]},{"id":"da093ea1.9e3bd","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":951.2858085632324,"y":1971.3336515426636,"z":"42cbb89a.8c64f","wires":[["d38e8911.141148"]]},{"id":"e21cede9.2e7c6","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_MODULE_TO_VFC_MAPPING table\" />\n","comments":"","x":1117.7143096923828,"y":1926.1908388137817,"z":"42cbb89a.8c64f","wires":[]},{"id":"bbe284c2.19a1b","type":"for","name":"for each vm-type","xml":"<for index='vm-type-index' start='0' end='`$db.vf-module-to-vfc-mapping_length`' >\n","comments":"","outputs":1,"x":577.0476989746094,"y":2575.667359352112,"z":"42cbb89a.8c64f","wires":[["9dcee5b9.30ecb8"]]},{"id":"8cc05378.a5e4a","type":"get-resource","name":"get-resource VFC_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_MODEL WHERE customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-model'>\n\n","comments":"","outputs":1,"x":1018.9524993896484,"y":2067.5720205307007,"z":"42cbb89a.8c64f","wires":[["26da1d88.b25212","d0f431cf.4dd9c8"]]},{"id":"6f26da35.19f5f4","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 VFC_MODEL table for customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n","comments":"","x":1389.3808479309082,"y":2092.000412940979,"z":"42cbb89a.8c64f","wires":[]},{"id":"26da1d88.b25212","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1214.7381172180176,"y":2047.9527711868286,"z":"42cbb89a.8c64f","wires":[["65dd23cf.74f37c"]]},{"id":"d0f431cf.4dd9c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1223.3095474243164,"y":2092.2384843826294,"z":"42cbb89a.8c64f","wires":[["6f26da35.19f5f4"]]},{"id":"65dd23cf.74f37c","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 VFC_MODEL table\" />\n","comments":"","x":1389.7380485534668,"y":2047.0956716537476,"z":"42cbb89a.8c64f","wires":[]},{"id":"9dcee5b9.30ecb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":768.9524917602539,"y":2574.2387285232544,"z":"42cbb89a.8c64f","wires":[["8cc05378.a5e4a","d7e120d8.399ab","265d99fe.8adbae","faf10db5.cade38","c3472b79.c794e8","b691f5a2.df4868","1b9a0f89.b41b2","6fdd1d65.dd9ee4"]]},{"id":"514505ea.10acfc","type":"set","name":"set vm_length","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm_length'\n  value='`$db.vf-module-to-vfc-mapping_length`' />\n","comments":"","x":568.833366394043,"y":2006.8577852249146,"z":"42cbb89a.8c64f","wires":[]},{"id":"d7e120d8.399ab","type":"set","name":"set vm data","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-type`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code'\n   value='`$db.vfc-model.nfc-naming-code`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-type-tag'\n   value='`$db.vfc-model.vm-type-tag`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count'\n   value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n","comments":"","x":969.6667518615723,"y":2193.52449798584,"z":"42cbb89a.8c64f","wires":[]},{"id":"b5e9b140.524d","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1663.0000686645508,"y":746.9440250396729,"z":"42cbb89a.8c64f","wires":[["f8350d6.6984bf","4a2b4adf.81c83c"]]},{"id":"4a2b4adf.81c83c","type":"break","name":"break","xml":"<break>","comments":"","x":1798.0000343322754,"y":768.6106109619141,"z":"42cbb89a.8c64f","wires":[]},{"id":"7323ab19.f1fb84","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-module-model.invariant-uuid`' />\n","comments":"","x":982.1665992736816,"y":1484.7772226333618,"z":"42cbb89a.8c64f","wires":[]},{"id":"dc5bef63.7bbf58","type":"switchNode","name":"switch input model-invariant-uuid","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":626.0236740112305,"y":1507.6016664505005,"z":"42cbb89a.8c64f","wires":[["f771c9c6.034628","c8403571.75d8a"]]},{"id":"f771c9c6.034628","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":831.6903457641602,"y":1484.7446298599243,"z":"42cbb89a.8c64f","wires":[["7323ab19.f1fb84"]]},{"id":"c8403571.75d8a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":833.1189422607422,"y":1529.0302209854126,"z":"42cbb89a.8c64f","wires":[["f25740a0.0c3fa"]]},{"id":"f25740a0.0c3fa","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-invariant-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n","comments":"","x":987.4046783447266,"y":1528.4587931632996,"z":"42cbb89a.8c64f","wires":[]},{"id":"a2c866ca.334548","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$db.vf-module-model.uuid`' />\n","comments":"","x":983.1188697814941,"y":1573.3158988952637,"z":"42cbb89a.8c64f","wires":[]},{"id":"606dd497.672abc","type":"switchNode","name":"switch input model-uuid","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":598.642692565918,"y":1596.1404037475586,"z":"42cbb89a.8c64f","wires":[["19203891.bc30cf","7d8dc9ab.34846"]]},{"id":"19203891.bc30cf","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":832.6426658630371,"y":1573.28333568573,"z":"42cbb89a.8c64f","wires":[["a2c866ca.334548"]]},{"id":"7d8dc9ab.34846","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":834.0712623596191,"y":1617.5689268112183,"z":"42cbb89a.8c64f","wires":[["1c4736a4.9d5379"]]},{"id":"1c4736a4.9d5379","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n","comments":"","x":988.3569984436035,"y":1616.9974989891052,"z":"42cbb89a.8c64f","wires":[]},{"id":"838f9e47.a657b8","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$db.vf-module-model.version`' />\n","comments":"","x":980.2618026733398,"y":1662.1731061935425,"z":"42cbb89a.8c64f","wires":[]},{"id":"fa9f3efa.3d4728","type":"switchNode","name":"switch input model-version","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`'>\n","comments":"","outputs":1,"x":606.7855644226074,"y":1684.9975509643555,"z":"42cbb89a.8c64f","wires":[["5233d71a.ced7f","da1652ca.e4ec5"]]},{"id":"5233d71a.ced7f","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":829.7855491638184,"y":1662.140513420105,"z":"42cbb89a.8c64f","wires":[["838f9e47.a657b8"]]},{"id":"da1652ca.e4ec5","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":831.2141456604004,"y":1706.4261045455933,"z":"42cbb89a.8c64f","wires":[["993309bc.316d8"]]},{"id":"993309bc.316d8","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-version'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n","comments":"","x":985.4998817443848,"y":1705.8546767234802,"z":"42cbb89a.8c64f","wires":[]},{"id":"26ba33d6.4f7d64","type":"set","name":"set from DB","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$db.vf-module-model.name`' />\n","comments":"","x":980.2618026733398,"y":1749.3159284591675,"z":"42cbb89a.8c64f","wires":[]},{"id":"6e166208.bcc654","type":"switchNode","name":"switch input model-name","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":601.7855644226074,"y":1772.1403732299805,"z":"42cbb89a.8c64f","wires":[["3a68c66b.a88062","d0a0d796.04cde8"]]},{"id":"3a68c66b.a88062","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":829.7855491638184,"y":1749.28333568573,"z":"42cbb89a.8c64f","wires":[["26ba33d6.4f7d64"]]},{"id":"d0a0d796.04cde8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":831.2141456604004,"y":1793.5689268112183,"z":"42cbb89a.8c64f","wires":[["c0cc4286.ab4b48"]]},{"id":"c0cc4286.ab4b48","type":"set","name":"set from input","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-name'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-name`' />\n","comments":"","x":985.4998817443848,"y":1792.9974989891052,"z":"42cbb89a.8c64f","wires":[]},{"id":"a6edf90b.02862","type":"set","name":"set model-customization-uuid","xml":"<set>\n<parameter name='tmp.vf-module-topology.onap-model-information.model-customization-uuid'\n  value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n","comments":"","x":616.2378997802734,"y":1844.649362564087,"z":"42cbb89a.8c64f","wires":[]},{"id":"265d99fe.8adbae","type":"for","name":"for each vm","xml":"<for index='vm-index' start='0' end='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' >\n","comments":"","outputs":1,"x":971.3332405090332,"y":2302.777416229248,"z":"42cbb89a.8c64f","wires":[["46caa348.dae174"]]},{"id":"faf10db5.cade38","type":"set","name":"set vm-name-length","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name_length'\n  value='`$db.vf-module-to-vfc-mapping[$vm-type-index].vm-count`' />\n","comments":"","x":994.6666946411133,"y":2237.7776737213135,"z":"42cbb89a.8c64f","wires":[]},{"id":"d2eec622.8295e","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":1437.761863708496,"y":2325.396562576294,"z":"42cbb89a.8c64f","wires":[["b331dbfa.3b84d","cf215d89.9ffde"]]},{"id":"b331dbfa.3b84d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1733.4761517842617,"y":2298.253825187683,"z":"42cbb89a.8c64f","wires":[["aa4dcc25.6f274"]]},{"id":"cf215d89.9ffde","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1736.8095016479492,"y":2349.9204683303833,"z":"42cbb89a.8c64f","wires":[["ecbc795a.f3f258"]]},{"id":"7dcd8e5b.a33308","type":"set","name":"set variables for generating unique name NEW","xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='VM_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vm_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VM_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $db.vfc-model.nfc-naming-code`\" />\n<parameter name='generate-unique-name-input.index-length' value='3' />\n\n<!--\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-name + $db.vfc-model.nfc-naming-code`\" />\n-->\n","comments":"","x":1394.4285774230957,"y":2273.7298889160156,"z":"42cbb89a.8c64f","wires":[]},{"id":"ecbc795a.f3f258","type":"set","name":"set generated name","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' value='`$generate-unique-name-output.generated-name`' />\n","comments":"","x":1921.3332176208496,"y":2349.3964862823486,"z":"42cbb89a.8c64f","wires":[]},{"id":"aa4dcc25.6f274","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":1901.3332646687832,"y":2297.682336807251,"z":"42cbb89a.8c64f","wires":[]},{"id":"3f52ef.03031512","type":"set","name":"set vf-module-id","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id'\n   value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n","comments":"","x":569.4285469055176,"y":1113.3725385665894,"z":"42cbb89a.8c64f","wires":[]},{"id":"46caa348.dae174","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1135.738182067871,"y":2302.4203205108643,"z":"42cbb89a.8c64f","wires":[["7dcd8e5b.a33308","d2eec622.8295e"]]},{"id":"c3472b79.c794e8","type":"get-resource","name":"get-resource VFC_TO_NETWORK_ROLE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from VFC_TO_NETWORK_ROLE_MAPPING WHERE vfc_customization_uuid = $db.vf-module-to-vfc-mapping[$vm-type-index].vfc-customization-uuid'\n  pfx='db.vfc-to-network-role-mapping[]'>\n\n","comments":"","outputs":1,"x":1098.595329284668,"y":2425.277389526367,"z":"42cbb89a.8c64f","wires":[["cf0687bd.e598e","4a704ca7.8ab134"]]},{"id":"cf0687bd.e598e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1385.8095321655273,"y":2405.658236503601,"z":"42cbb89a.8c64f","wires":[["5d120833.737138"]]},{"id":"4a704ca7.8ab134","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1394.3809623718262,"y":2449.943949699402,"z":"42cbb89a.8c64f","wires":[["6debb183.b41518"]]},{"id":"5d120833.737138","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 VFC_TO_NETWORK_ROLE_MAPPING table\" />\n","comments":"","x":1560.8094635009766,"y":2404.80113697052,"z":"42cbb89a.8c64f","wires":[]},{"id":"b691f5a2.df4868","type":"for","name":"for each network-role","xml":"<for index='network-role-index' start='0' end='`$db.vfc-to-network-role-mapping_length`' >\n","comments":"","outputs":1,"x":991.6906204223633,"y":2736.468231201172,"z":"42cbb89a.8c64f","wires":[["36d0034e.833ba4"]]},{"id":"36d0034e.833ba4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1198.1190719604492,"y":2733.134736061096,"z":"42cbb89a.8c64f","wires":[["13d5efa4.e01b18","6684e114.507f68","185f4372.c123c5","91a5c44c.608108","b2d4a39c.3d0218","1875199d.3e005e","fc08b3d2.5d259","e36efe57.44154"]]},{"id":"13d5efa4.e01b18","type":"for","name":"for each network","xml":"<for silentFailure='true' index='idx' start='0' end='`$service-data.networks.network_length`' >\n","comments":"","outputs":1,"x":1407.166633605957,"y":2565.2774925231934,"z":"42cbb89a.8c64f","wires":[["a15c432c.8bcf7"]]},{"id":"6684e114.507f68","type":"set","name":"set network-index to -1","xml":"<set>\n<parameter name='network-index' value='-1' />\n","comments":"","x":1427.1667022705078,"y":2522.4204893112183,"z":"42cbb89a.8c64f","wires":[]},{"id":"a15c432c.8bcf7","type":"switchNode","name":"switch network-role matches","xml":"<switch test='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-role == $db.vfc-to-network-role-mapping[$network-role-index].network-role`'>\n","comments":"","outputs":1,"x":1635.737907409668,"y":2563.8486824035645,"z":"42cbb89a.8c64f","wires":[["ac115be5.329f08"]]},{"id":"ac115be5.329f08","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1834.3095741271973,"y":2563.848886489868,"z":"42cbb89a.8c64f","wires":[["9146a0a9.0e19b"]]},{"id":"9146a0a9.0e19b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1975.7381420135498,"y":2562.4203147888184,"z":"42cbb89a.8c64f","wires":[["fb415bb3.75456","d6f312f.548dff"]]},{"id":"fb415bb3.75456","type":"set","name":"set network-index to idx","xml":"<set>\n<parameter name='network-index' value='`$idx`' />\n","comments":"","x":2154.30965423584,"y":2539.563310623169,"z":"42cbb89a.8c64f","wires":[]},{"id":"d6f312f.548dff","type":"break","name":"break","xml":"<break>","comments":"","x":2102.8808937072754,"y":2585.2774906158447,"z":"42cbb89a.8c64f","wires":[]},{"id":"185f4372.c123c5","type":"switchNode","name":"switch network-index","xml":"<switch test='`$network-index`'>\n","comments":"","outputs":1,"x":1419.0714721679688,"y":2614.0871295928955,"z":"42cbb89a.8c64f","wires":[["39711ad5.6dbf8e"]]},{"id":"39711ad5.6dbf8e","type":"outcomeTrue","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":1613.3571968078613,"y":2614.0870265960693,"z":"42cbb89a.8c64f","wires":[["d971a29a.9569"]]},{"id":"d971a29a.9569","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 network found in MD-SAL with network-role ' + $db.vfc-to-network-role-mapping[$network-role-index].network-role`\" />\n","comments":"","x":1770.5000457763672,"y":2612.6584968566895,"z":"42cbb89a.8c64f","wires":[]},{"id":"75cfcd56.417424","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":628.9442901611328,"y":1332.0311841964722,"z":"42cbb89a.8c64f","wires":[["6d704691.40d188"]]},{"id":"6d704691.40d188","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n","comments":"","outputs":1,"x":876.6228332519531,"y":1331.7811136245728,"z":"42cbb89a.8c64f","wires":[["832009c2.286ea"]]},{"id":"832009c2.286ea","type":"outcome","name":"complex","xml":"<outcome value='complex'>\n","comments":"","outputs":1,"x":1046.0871543884277,"y":1331.1739358901978,"z":"42cbb89a.8c64f","wires":[["aa276ae6.6a9938"]]},{"id":"ce4135e5.834cf8","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":1386.1823120117188,"y":1285.6025114059448,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"aa276ae6.6a9938","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1205.8490142822266,"y":1332.269299507141,"z":"42cbb89a.8c64f","wires":[["ce4135e5.834cf8","cc8ebfcf.73556","e4522356.5a7e2"]]},{"id":"cc8ebfcf.73556","type":"break","name":"break","xml":"<break>","comments":"","x":1355.848976135254,"y":1375.602596282959,"z":"42cbb89a.8c64f","wires":[]},{"id":"91a5c44c.608108","type":"set","name":"set network-role and tag","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-role-tag'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].network-role-tag`' />\n","comments":"","x":1428.8333549499512,"y":2710.277316093445,"z":"42cbb89a.8c64f","wires":[]},{"id":"1b9a0f89.b41b2","type":"set","name":"set vm-network-length","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length'\n  value='`$db.vfc-to-network-role-mapping_length`' />\n","comments":"","x":985.4999465942383,"y":3125.277581214905,"z":"42cbb89a.8c64f","wires":[]},{"id":"b2d4a39c.3d0218","type":"switchNode","name":"switch ipv4-ip-version","xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-ip-version`'>\n","comments":"","outputs":1,"x":1421.452407836914,"y":2793.610643386841,"z":"42cbb89a.8c64f","wires":[["f334dedf.542f88","bfe3b92b.eed028"]]},{"id":"dba4692f.8d24f","type":"set","name":"set network-information-index to -1","xml":"<set>\n<parameter name='network-information-index' value='-1' />\n\n","comments":"","x":1830.97603225708,"y":2758.6107482910156,"z":"42cbb89a.8c64f","wires":[]},{"id":"f334dedf.542f88","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1598.1189270019531,"y":2758.6107835769653,"z":"42cbb89a.8c64f","wires":[["dba4692f.8d24f"]]},{"id":"bfe3b92b.eed028","type":"other","name":"4","xml":"<outcome value='4'>\n","comments":"","outputs":1,"x":1596.8808784484863,"y":2824.5629262924194,"z":"42cbb89a.8c64f","wires":[["4e61e87f.09738"]]},{"id":"5c8aa855.64c57","type":"set","name":"set network-information-index to 0","xml":"<set>\n<parameter name='network-information-index' value='0' />\n","comments":"","x":2001.4521408081055,"y":2799.086787223816,"z":"42cbb89a.8c64f","wires":[]},{"id":"4e61e87f.09738","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1764.0713539123535,"y":2823.8963918685913,"z":"42cbb89a.8c64f","wires":[["5c8aa855.64c57","2a3f7a55.150f16"]]},{"id":"2a3f7a55.150f16","type":"set","name":"set ip-version 4, use-dhcp, and ip-count","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='4' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv4-count`' />\n","comments":"","x":2018.4047241210938,"y":2845.753743171692,"z":"42cbb89a.8c64f","wires":[]},{"id":"1875199d.3e005e","type":"switchNode","name":"switch ipv6-ip-version","xml":"<switch test='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-ip-version`'>\n","comments":"","outputs":1,"x":1421.9286041259766,"y":2920.515425682068,"z":"42cbb89a.8c64f","wires":[["14cad0ce.875937","c6e6105f.d3fb48"]]},{"id":"14cad0ce.875937","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1600.7380981445312,"y":2890.753237724304,"z":"42cbb89a.8c64f","wires":[["850ae6e3.97486"]]},{"id":"c6e6105f.d3fb48","type":"other","name":"6","xml":"<outcome value='6'>\n","comments":"","outputs":1,"x":1602.1666526794434,"y":2955.038794517517,"z":"42cbb89a.8c64f","wires":[["3a97eaa4.4dbd5e"]]},{"id":"d01561e6.8cd2a8","type":"set","name":"increment network-information-index","xml":"<set>\n<parameter name='network-information-index' value='`$network-information-index + 1`' />\n","comments":"","x":2007.880744934082,"y":2929.5628242492676,"z":"42cbb89a.8c64f","wires":[]},{"id":"3a97eaa4.4dbd5e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1757.4048118591309,"y":2954.0865335464478,"z":"42cbb89a.8c64f","wires":[["d01561e6.8cd2a8","eec3daa5.99fad8"]]},{"id":"850ae6e3.97486","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1743.404727935791,"y":2890.0868558883667,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"fc08b3d2.5d259","type":"switchNode","name":"switch network-information-index","xml":"<switch test='`$network-information-index`'>\n","comments":"","outputs":1,"x":1457.166618347168,"y":3056.9436712265015,"z":"42cbb89a.8c64f","wires":[["e7281cfc.e21008","d353f555.e50738"]]},{"id":"e7281cfc.e21008","type":"outcome","name":"-1","xml":"<outcome value='-1'>","comments":"","outputs":1,"x":1675.4999752044678,"y":3033.610417366028,"z":"42cbb89a.8c64f","wires":[["693a68fa.318578"]]},{"id":"d353f555.e50738","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1675.2619380950928,"y":3079.562731742859,"z":"42cbb89a.8c64f","wires":[["bdc04062.cb736"]]},{"id":"693a68fa.318578","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1812.166690826416,"y":3031.9440774917603,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"bdc04062.cb736","type":"set","name":"set network-information-item_length","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length'\n   value='`$network-information-index + 1`' />\n","comments":"","x":1903.8333053588867,"y":3076.9438695907593,"z":"42cbb89a.8c64f","wires":[]},{"id":"cfc556e3.250c1","type":"for","name":"for each vm-type","xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":584,"y":3223.943766593933,"z":"42cbb89a.8c64f","wires":[["3c13f67.7a17c0a"]]},{"id":"3c13f67.7a17c0a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":787.5715255737305,"y":3224.181971549988,"z":"42cbb89a.8c64f","wires":[["13ff9beb.57fecc"]]},{"id":"e36efe57.44154","type":"set","name":"save network-id","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id'\n  value='`$service-data.networks.network[$idx].network-data.network-topology.network-topology-identifier-structure.network-id`' />\n","comments":"This isn't a node in MD-SAL, but we need to save this for later when we are doing EIPAM processing","x":1400.9761810302734,"y":2660.2773237228394,"z":"42cbb89a.8c64f","wires":[]},{"id":"13ff9beb.57fecc","type":"for","name":"for each network-role","xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":988.999885559082,"y":3223.2770223617554,"z":"42cbb89a.8c64f","wires":[["7e085b6a.57a1e4"]]},{"id":"7e085b6a.57a1e4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1190.9047012329102,"y":3222.5150594711304,"z":"42cbb89a.8c64f","wires":[["6e764b1a.339424"]]},{"id":"6e764b1a.339424","type":"for","name":"for each network-information-item","xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n","comments":"","outputs":1,"x":1435.6665725708008,"y":3222.039451599121,"z":"42cbb89a.8c64f","wires":[["c862c7eb.4210b"]]},{"id":"952a7c8b.3108b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":680.666633605957,"y":3427.943877220154,"z":"42cbb89a.8c64f","wires":[["d51d4403.6e23e","53daab82.db7afc","a091bfcc.a138b","f5c55689.e07468","5377172.64f6b68"]]},{"id":"d51d4403.6e23e","type":"get-resource","name":"get-resource EIPAM_IP_SUBNETS","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNETS WHERE network_id = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n    AND address_family = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version'\n  pfx='db.eipam-ip-subnets[]'>\n\n","comments":"","outputs":1,"x":1060.6666564941406,"y":3389.6103734970093,"z":"42cbb89a.8c64f","wires":[["cfbb3239.b8a848","97b51176.70bd1"]]},{"id":"a77bfa66.d4c0d","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 EIPAM_IP_SUBNETS table for network ID '\n        + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id\n        + ' and address family ' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`\" />\n","comments":"","x":1450.6665954589844,"y":3411.2771348953247,"z":"42cbb89a.8c64f","wires":[]},{"id":"cfbb3239.b8a848","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1276.0238647460938,"y":3367.2294931411743,"z":"42cbb89a.8c64f","wires":[["a90f1733.6a3458"]]},{"id":"97b51176.70bd1","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1284.5952949523926,"y":3411.515206336975,"z":"42cbb89a.8c64f","wires":[["a77bfa66.d4c0d"]]},{"id":"a90f1733.6a3458","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 EIPAM_IP_SUBNETS table\" />\n","comments":"","x":1451.023796081543,"y":3366.3723936080933,"z":"42cbb89a.8c64f","wires":[]},{"id":"53daab82.db7afc","type":"for","name":"for each record in EIPAM_IP_SUBNETS","xml":"<for index='subnets-index' start='0' end='`$db.eipam-ip-subnets_length`' >\n","comments":"","outputs":1,"x":1079.9524688720703,"y":3694.8485612869263,"z":"42cbb89a.8c64f","wires":[["560fda47.3a4684"]]},{"id":"560fda47.3a4684","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1336.3810195922852,"y":3695.8008489608765,"z":"42cbb89a.8c64f","wires":[["c24dc02e.13602","de66f812.e4a","a3a38e6a.079dd8","c4da5ccb.f7a33","c10c36fb.5411d8"]]},{"id":"c24dc02e.13602","type":"get-resource","name":"get-resource EIPAM_IP_SUBNET_KEYS","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $db.eipam-ip-subnets[$subnets-index].entity-id'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n","comments":"","outputs":1,"x":1647.809585571289,"y":3532.2294569015503,"z":"42cbb89a.8c64f","wires":[["5d37056c.fc355c","7b62aa65.c2e794"]]},{"id":"c7bc51ba.e369f","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 EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $db.eipam-ip-subnets[$subnets-index].entity-id`\" />","comments":"","x":2062.809585571289,"y":3552.2294569015503,"z":"42cbb89a.8c64f","wires":[]},{"id":"5d37056c.fc355c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1888.1668548583984,"y":3508.1818151474,"z":"42cbb89a.8c64f","wires":[["725f1d1f.458d3c"]]},{"id":"7b62aa65.c2e794","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1896.7382850646973,"y":3552.4675283432007,"z":"42cbb89a.8c64f","wires":[["c7bc51ba.e369f"]]},{"id":"725f1d1f.458d3c","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 EIPAM_IP_SUBNET_KEYS table\" />\n","comments":"","x":2063.1667861938477,"y":3507.324715614319,"z":"42cbb89a.8c64f","wires":[]},{"id":"a091bfcc.a138b","type":"set","name":"set max-level to -1","xml":"<set>\n<parameter name='max-level' value='-1' />\n","comments":"","x":1008.7619323730469,"y":3455.5629892349243,"z":"42cbb89a.8c64f","wires":[]},{"id":"de66f812.e4a","type":"for","name":"for each record in EIPAM_IP_SUBNET_KEYS","xml":"<for index='keys-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n","comments":"","outputs":1,"x":1662.3334045410156,"y":3601.27721118927,"z":"42cbb89a.8c64f","wires":[["5a06105e.465d3"]]},{"id":"5a06105e.465d3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1949.0000534057617,"y":3599.6105489730835,"z":"42cbb89a.8c64f","wires":[["4455ac5e.d4cc4c"]]},{"id":"4455ac5e.d4cc4c","type":"switchNode","name":"switch level > max-level?","xml":"<switch test='`$db.eipam-ip-subnet-keys[$keys-index].level &gt; $max-level`'>\n","comments":"","outputs":1,"x":2165.6666717529297,"y":3599.6104669570923,"z":"42cbb89a.8c64f","wires":[["3b237dae.c892d2"]]},{"id":"3b237dae.c892d2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2357.333599090576,"y":3599.6104612350464,"z":"42cbb89a.8c64f","wires":[["4415570e.226f78"]]},{"id":"4415570e.226f78","type":"set","name":"set max-level, selected-entity-id, selected-plan-name","xml":"<set>\n<parameter name='max-level' value='`$db.eipam-ip-subnet-keys[$keys-index].level`' />\n<parameter name='selected-entity-id' value='`$db.eipam-ip-subnet-keys[$keys-index].entity-id`' />\n<parameter name='selected-plan-name' value='`$db.eipam-ip-subnets[$subnets-index].plan-name`' />\n","comments":"","x":2649.0001068115234,"y":3597.943717956543,"z":"42cbb89a.8c64f","wires":[]},{"id":"a3a38e6a.079dd8","type":"get-resource","name":"get-resource EIPAM_IP_SUBNET_KEYS","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from EIPAM_IP_SUBNET_KEYS WHERE entity_id = $selected-entity-id order by level'\n  pfx='db.eipam-ip-subnet-keys[]'>\n\n","comments":"","outputs":1,"x":1649.000015258789,"y":3673.1819162368774,"z":"42cbb89a.8c64f","wires":[["eee51654.117c8","5c3a3f7f.5c2fc"]]},{"id":"e9fcdcdb.26176","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 EIPAM_IP_SUBNET_KEYS table for entity ID '\n        + $selected-entity-id`\" />","comments":"","x":2064.000015258789,"y":3693.1819162368774,"z":"42cbb89a.8c64f","wires":[]},{"id":"eee51654.117c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1889.3572845458984,"y":3649.134274482727,"z":"42cbb89a.8c64f","wires":[["498c375.2ce3148"]]},{"id":"5c3a3f7f.5c2fc","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1897.9287147521973,"y":3693.419987678528,"z":"42cbb89a.8c64f","wires":[["e9fcdcdb.26176"]]},{"id":"498c375.2ce3148","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 EIPAM_IP_SUBNET_KEYS table\" />\n","comments":"","x":2064.3572158813477,"y":3648.277174949646,"z":"42cbb89a.8c64f","wires":[]},{"id":"665a903a.39a88","type":"for","name":"for each record in EIPAM_IP_SUBNET_KEYS","xml":"<for index='level-index' start='0' end='`$db.eipam-ip-subnet-keys_length`' >\n","comments":"","outputs":1,"x":2094.952362060547,"y":3741.753373146057,"z":"42cbb89a.8c64f","wires":[["a2d16cc2.be0708"]]},{"id":"980d5ef5.8056a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1787.8093643188477,"y":3825.562809944153,"z":"42cbb89a.8c64f","wires":[["665a903a.39a88","41a4c10f.9fd3c8","e5baa84e.6704a","c3b40e73.c92d68","dd718ed9.581ee"]]},{"id":"c4da5ccb.f7a33","type":"for","name":"for each ip in ip-count","xml":"<for index='request-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' >\n","comments":"","outputs":1,"x":1586.142807006836,"y":3825.5644369125366,"z":"42cbb89a.8c64f","wires":[["980d5ef5.8056a"]]},{"id":"a2d16cc2.be0708","type":"set","name":"set eipam data for level","xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-name'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools[$level-index].key-value'\n   value='`$db.eipam-ip-subnet-keys[$level-index].key-value`' />\n","comments":"","x":2401.8571243286133,"y":3741.5161390304565,"z":"42cbb89a.8c64f","wires":[]},{"id":"41a4c10f.9fd3c8","type":"set","name":"set eipam data pools_length","xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].pools_length'\n   value='`$db.eipam-ip-subnet-keys_length`' />\n","comments":"","x":2041.142677307129,"y":3787.2297563552856,"z":"42cbb89a.8c64f","wires":[]},{"id":"bf867b12.1be738","type":"set","name":"set plans-index to 0","xml":"<set>\n<parameter name='plans-index' value='0' />\n","comments":"","x":592.7619171142578,"y":3167.8960371017456,"z":"42cbb89a.8c64f","wires":[]},{"id":"f5c55689.e07468","type":"set","name":"increment plans-index","xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n","comments":"","x":1024.0952224731445,"y":4086.8962841033936,"z":"42cbb89a.8c64f","wires":[]},{"id":"c10c36fb.5411d8","type":"set","name":"set eipam requests_length","xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests_length'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-count`' />\n","comments":"","x":1596.6191711425781,"y":3967.229808807373,"z":"42cbb89a.8c64f","wires":[]},{"id":"5377172.64f6b68","type":"set","name":"set eipam plan-name, address-family","xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].plan-name' value='`$selected-plan-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].address-family'\n   value='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version`' />\n","comments":"","x":1072.6666564941406,"y":4039.7527656555176,"z":"42cbb89a.8c64f","wires":[]},{"id":"c5587f72.e69778","type":"set","name":"set eipam plans_length","xml":"<set>\n<parameter name='eipam-ip-block.plans_length' value='`$plans-index`' />\n","comments":"","x":596.4285697937012,"y":4111.944158554077,"z":"42cbb89a.8c64f","wires":[]},{"id":"993e8c87.965df8","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":547.7975158691406,"y":5273.035320281982,"z":"42cbb89a.8c64f","wires":[]},{"id":"f20188a.3ff6c78","type":"set","name":"copy input data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.'\n   value='$vf-module-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.'\n   value='$vf-module-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.'\n   value='$vf-module-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.'\n   value='$vf-module-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.'\n   value='$vf-module-topology-operation-input.vf-module-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.'\n   value='$vf-module-topology-operation-input.vf-module-request-input.' />\n\n","comments":"","x":567.5832290649414,"y":4963.01509475708,"z":"42cbb89a.8c64f","wires":[]},{"id":"3b0dea46.13d54e","type":"set","name":"copy vf-module-topology data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.' value='$tmp.vf-module-topology.' />\n","comments":"","x":612.4642333984375,"y":4914.8006067276,"z":"42cbb89a.8c64f","wires":[]},{"id":"77c153ff.a0fdb4","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vfmodule.log' />\n","comments":"","outputs":1,"x":542.678466796875,"y":5225.26513671875,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"285a17dd.85f258","type":"execute","name":"call EIPAM assignIPAddress","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"assignIPAddress\">","comments":"","outputs":1,"x":976.5952911376953,"y":4200.9052267074585,"z":"42cbb89a.8c64f","wires":[["b1f94fd5.364d08"]]},{"id":"b1f94fd5.364d08","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":1190.5952911376953,"y":4200.9052267074585,"z":"42cbb89a.8c64f","wires":[["82176bb2.df71d"]]},{"id":"82176bb2.df71d","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\t<parameter name=\"error-message\" value=\"An error occured while obtaining new address blocks from EIPAM.\" />\n","comments":"","x":1329.5952911376953,"y":4200.9052267074585,"z":"42cbb89a.8c64f","wires":[]},{"id":"e5baa84e.6704a","type":"set","name":"set eipam client-key, mask","xml":"<set>\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].client-key'\n   value='`$generate-unique-name-output.generated-name`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].info'\n   value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`' />\n<parameter name='eipam-ip-block.plans[$plans-index].requests[$request-index].mask'\n   value='32' />\n","comments":"","x":2038.2857284545898,"y":3921.0397844314575,"z":"42cbb89a.8c64f","wires":[]},{"id":"3aff63fe.fa9cd4","type":"for","name":"for each vm-type","xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":576,"y":4310.276859283447,"z":"42cbb89a.8c64f","wires":[["ad1f9498.166c78"]]},{"id":"ad1f9498.166c78","type":"for","name":"for each vm-network","xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":784.6666831970215,"y":4310.2771854400635,"z":"42cbb89a.8c64f","wires":[["73045686.87b318"]]},{"id":"73045686.87b318","type":"for","name":"for each network-information-item","xml":"<for index='ip-version-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item_length`' >\n","comments":"","outputs":1,"x":1049.6666717529297,"y":4311.94352722168,"z":"42cbb89a.8c64f","wires":[["cc6a69ef.11f9a"]]},{"id":"7b3e5db3.2dc124","type":"set","name":"set plans-index = 0","xml":"<set>\n<parameter name='plans-index' value='0' />\n","comments":"","x":582.9999923706055,"y":4255.276947021484,"z":"42cbb89a.8c64f","wires":[]},{"id":"c72201c5.58c788","type":"for","name":"for each eipam request","xml":"<for index='ip-index' start='0' end='`$eipam-ip-block.plans[$plans-index].requests_length`' >\n","comments":"","outputs":1,"x":1819.6666259765625,"y":4283.6108322143555,"z":"42cbb89a.8c64f","wires":[["e9abc0c8.773628"]]},{"id":"e9abc0c8.773628","type":"set","name":"set ip address","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].network-ips.network-ip[$ip-index]'\n  value='`$eipam-ip-block.plans[$plans-index].requests[$ip-index].ip-prefix`' />\n","comments":"","x":2031.3332633972168,"y":4281.944003105164,"z":"42cbb89a.8c64f","wires":[]},{"id":"7f6bf992.219d08","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1619.6664581298828,"y":4308.610345840454,"z":"42cbb89a.8c64f","wires":[["c72201c5.58c788","34f6a11b.b8862e"]]},{"id":"34f6a11b.b8862e","type":"set","name":"increment plans-index","xml":"<set>\n<parameter name='plans-index' value='`$plans-index + 1`' />\n","comments":"","x":1814.66650390625,"y":4330.27668762207,"z":"42cbb89a.8c64f","wires":[]},{"id":"7e0e98ac.d87bf","type":"save","name":"update vf-module","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module\"\n   key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n      AND generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n   force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vf-module-name\" value=\"`$tmp.vf-module-topology.vf-module-topology-identifier.vf-module-name`\" />\n<parameter name=\"model-invariant-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$tmp.vf-module-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vf-module-object-path`\" />\n","comments":"","outputs":1,"x":577.9999694824219,"y":4455.27702999115,"z":"42cbb89a.8c64f","wires":[["6df7b312.843a2c","49ca605b.c0502"]]},{"id":"b5ccad1f.ec4688","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 vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n","comments":"","x":1071.333396911621,"y":4508.610199928284,"z":"42cbb89a.8c64f","wires":[]},{"id":"6df7b312.843a2c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":747.3573303222656,"y":4422.229174613953,"z":"42cbb89a.8c64f","wires":[["f5336f18.2c59b"]]},{"id":"49ca605b.c0502","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":755.9286842346191,"y":4484.8481550216675,"z":"42cbb89a.8c64f","wires":[["e6f82602.adde08"]]},{"id":"421ab118.9b761","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 vf-module in AAI\" />\n","comments":"","x":1082.3572845458984,"y":4440.372731208801,"z":"42cbb89a.8c64f","wires":[]},{"id":"4765e816.cfcec","type":"set","name":"set  vf-module-object-path","xml":"<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n\n\n","comments":"","x":593.6666259765625,"y":4378.27685546875,"z":"42cbb89a.8c64f","wires":[]},{"id":"9b005e27.ead9e","type":"save","name":"save vf-module relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n   resource=\"vf-module:relationship-list\"\n   key=\"vf-module.vf-module-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n      AND 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=\"`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id`\" />\n","comments":"","outputs":1,"x":1037.3094787597656,"y":4584.000018119812,"z":"42cbb89a.8c64f","wires":[["40b049d4.b5d508","90c1d6d6.aba8e"]]},{"id":"40b049d4.b5d508","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1262.1428108215332,"y":4544.871940612793,"z":"42cbb89a.8c64f","wires":[["69557a8b.b931b4"]]},{"id":"90c1d6d6.aba8e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1270.7142639160156,"y":4622.491083145142,"z":"42cbb89a.8c64f","wires":[["826a647c.0d8d58"]]},{"id":"27342a59.1dd1fe","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 vf-module relationships in AAI\" />\n","comments":"","x":1597.1429443359375,"y":4564.681837081909,"z":"42cbb89a.8c64f","wires":[]},{"id":"bb37fcda.2b247","type":"for","name":"for each vm-type","xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":578.3095092773438,"y":4585.666521072388,"z":"42cbb89a.8c64f","wires":[["72590ab7.d86dcc"]]},{"id":"72590ab7.d86dcc","type":"for","name":"for each vm-network","xml":"<for index='network-role-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network_length`' >\n","comments":"","outputs":1,"x":788.9761867523193,"y":4584.000344276428,"z":"42cbb89a.8c64f","wires":[["9b005e27.ead9e"]]},{"id":"8bee56c5.166f68","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 vf-module found in AAI for vf module ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\" />\n","comments":"","x":1598.9762382507324,"y":4639.666376113892,"z":"42cbb89a.8c64f","wires":[]},{"id":"eec3daa5.99fad8","type":"set","name":"set ip-version 6, use-dhcp, and ip-count","xml":"<set>\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-version'\n   value='6' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].use-dhcp'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-use-dhcp`' />\n<parameter name='tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$network-information-index].ip-count'\n   value='`$db.vfc-to-network-role-mapping[$network-role-index].ipv6-count`' />\n","comments":"","x":2017.7857208251953,"y":2974.2381496429443,"z":"42cbb89a.8c64f","wires":[]},{"id":"c862c7eb.4210b","type":"switchNode","name":"switch use-dhcp","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n","comments":"","outputs":1,"x":1683.500114440918,"y":3221.3808994293213,"z":"42cbb89a.8c64f","wires":[["890ce3ec.63743"]]},{"id":"890ce3ec.63743","type":"outcome","name":"N","xml":"<outcome value='N'>\n","comments":"","outputs":1,"x":1853.5000267028809,"y":3219.9525022506714,"z":"42cbb89a.8c64f","wires":[["952a7c8b.3108b"]]},{"id":"cc6a69ef.11f9a","type":"switchNode","name":"switch use-dhcp","xml":"<switch test='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].use-dhcp`'>\n","comments":"","outputs":1,"x":1290.642837524414,"y":4310.666822433472,"z":"42cbb89a.8c64f","wires":[["356204bc.cebf84"]]},{"id":"356204bc.cebf84","type":"outcome","name":"N","xml":"<outcome value='N'>\n","comments":"","outputs":1,"x":1460.642749786377,"y":4309.238425254822,"z":"42cbb89a.8c64f","wires":[["7f6bf992.219d08"]]},{"id":"8328b041.fafc2","type":"for","name":"for each vm-type","xml":"<for index='vm-type-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm_length`' >\n","comments":"","outputs":1,"x":577.309455871582,"y":4715.667015075684,"z":"42cbb89a.8c64f","wires":[["eb342e48.a6583"]]},{"id":"eb342e48.a6583","type":"for","name":"for each vm","xml":"<for index='vm-index' start='0' end='`$tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-count`' >\n","comments":"","outputs":1,"x":772.3094863891602,"y":4715.000022888184,"z":"42cbb89a.8c64f","wires":[["7a82dc04.86f99c"]]},{"id":"858885b6.5193e8","type":"save","name":"save VIPR_CONFIGURATION","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO VIPR_CONFIGURATION (vnf_id, vnf_name, ecomp_service_instance_id, vm_name, cloud_region_id, cloud_owner) VALUES ( $service-data.vnfs.vnf[$vnf-index].vnf-id , $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name , $service-data.service-information.service-instance-id , $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index] , $tmp.vf-module-topology.aic-cloud-region , 'CloudOwner')\" >","comments":"","outputs":1,"x":1163.976188659668,"y":4737.667673110962,"z":"42cbb89a.8c64f","wires":[["22e39666.b50efa"]]},{"id":"8650b418.d123","type":"comment","name":"Not a failure","info":"","comments":"","x":1683.976089477539,"y":4737.6676778793335,"z":"42cbb89a.8c64f","wires":[]},{"id":"22e39666.b50efa","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1373.976173400879,"y":4737.66782283783,"z":"42cbb89a.8c64f","wires":[["c5a9e28c.b12c1"]]},{"id":"c5a9e28c.b12c1","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n","comments":"","outputs":1,"x":1517.3096160888672,"y":4737.667660713196,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"dd718ed9.581ee","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":2127.3094940185547,"y":3875.666248321533,"z":"42cbb89a.8c64f","wires":[["50b7dc37.4a2dd4"]]},{"id":"50b7dc37.4a2dd4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2414.6905364990234,"y":3873.523669242859,"z":"42cbb89a.8c64f","wires":[["8e15d184.1846f"]]},{"id":"c3b40e73.c92d68","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='EIPAM_CLIENT_KEY_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='CLIENT_KEY' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].nfc-naming-code + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-id + ':' + $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-networks.vm-network[$network-role-index].network-information-items.network-information-item[$ip-version-index].ip-version + ':'`\" />\n<parameter name='generate-unique-name-input.index-length' value='' />\n","comments":"","x":2080.6428260803223,"y":3830.6664094924927,"z":"42cbb89a.8c64f","wires":[]},{"id":"8e15d184.1846f","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":2582.547649383545,"y":3872.9521808624268,"z":"42cbb89a.8c64f","wires":[]},{"id":"6fdd1d65.dd9ee4","type":"switchNode","name":"switch ecomp-generated-naming == 'Y'","xml":"<switch test=\"$db.vfc-model.ecomp-generated-naming == 'Y'\">\n","comments":"","outputs":1,"x":1057.3095626831055,"y":2137.333580970764,"z":"42cbb89a.8c64f","wires":[["1e0ee877.417498"]]},{"id":"1e0ee877.417498","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1288.976173400879,"y":2136.3332118988037,"z":"42cbb89a.8c64f","wires":[["438dfe04.53215"]]},{"id":"438dfe04.53215","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=\"`'ECOMP generated naming is not Y for VFC customization UUID ' + $db.vf-module-to-vfc-mapping[$db-vm-index].vfc_customization_uuid`\" />\n","comments":"","x":1435.6429138183594,"y":2135.666666984558,"z":"42cbb89a.8c64f","wires":[]},{"id":"eb61c884.195028","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1547.3097381591797,"y":4688.999374389648,"z":"42cbb89a.8c64f","wires":[["fe2bdfdc.c7d078"]]},{"id":"a4699dbe.2bdf2","type":"comment","name":"Not a failure","info":"","comments":"","x":1870.6427917480469,"y":4687.333196640015,"z":"42cbb89a.8c64f","wires":[]},{"id":"fe2bdfdc.c7d078","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.vf-module-topology-operation-assign:REQID\"/>\n<parameter name=\"field3\" value=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Failed to insert VIPR_CONFIGURATION record\"/>\n","comments":"","outputs":1,"x":1693.3096733093262,"y":4689.0000076293945,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"7a82dc04.86f99c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":940.642879486084,"y":4713.99986743927,"z":"42cbb89a.8c64f","wires":[["695784e2.6196ec","858885b6.5193e8"]]},{"id":"695784e2.6196ec","type":"delete","name":"delete any pre-existing records in VIPR_CONFIGURATION","xml":"<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='DELETE from VIPR_CONFIGURATION WHERE vnf_id = $service-data.vnfs.vnf[$vnf-index].vnf-id\n     AND ecomp_service_instance_id = $service-data.service-information.service-instance-id\n     AND vm_name = $tmp.vf-module-topology.vf-module-assignments.vms.vm[$vm-type-index].vm-names.vm-name[$vm-index]' >","comments":"","outputs":1,"x":1253.976203918457,"y":4689.334007263184,"z":"42cbb89a.8c64f","wires":[["eb61c884.195028"]]},{"id":"f30ede2a.6a271","type":"update","name":"update EIPAM_IP_ASSIGNMENTS to PENDING_DELETE...","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"UPDATE EIPAM_IP_ASSIGNMENTS set status = $tmp.status WHERE info = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id\" >","comments":"","outputs":1,"x":2960.6429481506348,"y":4325.666910648346,"z":"42cbb89a.8c64f","wires":[["3e0756bb.f7be2a"]]},{"id":"380f2e3a.9189b2","type":"set","name":"set status variable","xml":"<set>\n<parameter name='tmp.status' value=\"`'PENDING_DELETE_' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-topology-identifier.vf-module-id`\" />\n","comments":"","x":2830.642910003662,"y":4279.000282764435,"z":"42cbb89a.8c64f","wires":[]},{"id":"3e0756bb.f7be2a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3265.6428565979004,"y":4324.000210285187,"z":"42cbb89a.8c64f","wires":[["6c6d4ba3.796714"]]},{"id":"6c6d4ba3.796714","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating EIPAM_IP_ASSIGNMENTS table on rollback\" />\n","comments":"","x":3455.6428833007812,"y":4323.8099455833435,"z":"42cbb89a.8c64f","wires":[]},{"id":"8aef50f1.e391e","type":"execute","name":"execute EIPAM unassign IP addresses","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"unassignIPAddress\">\n<parameter name=\"deleteEIPAM_status\" value=\"`$tmp.status`\" />\n","comments":"","outputs":1,"x":2895.6429176330566,"y":4370.6669545173645,"z":"42cbb89a.8c64f","wires":[["4c2b10fb.217ea"]]},{"id":"4c2b10fb.217ea","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3132.309543609619,"y":4370.6668972969055,"z":"42cbb89a.8c64f","wires":[["497b9970.c89e8"]]},{"id":"497b9970.c89e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error in EIPAM unassign IP address on rollback\" />\n","comments":"","x":3322.3095703125,"y":4370.476632595062,"z":"42cbb89a.8c64f","wires":[]},{"id":"78e6782f.e4964","type":"comment","name":"roll back EIPAM","info":"","comments":"","x":2805.6429481506348,"y":4225.667236169179,"z":"42cbb89a.8c64f","wires":[]},{"id":"785ac55a.5e876c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2637.3095741271973,"y":4329.000406742096,"z":"42cbb89a.8c64f","wires":[["380f2e3a.9189b2","f30ede2a.6a271","8aef50f1.e391e"]]},{"id":"f5336f18.2c59b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":905.6428985595703,"y":4421.999845504761,"z":"42cbb89a.8c64f","wires":[["421ab118.9b761","b7ca3c2a.8306f"]]},{"id":"e6f82602.adde08","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":910.6428375244141,"y":4484.666189193726,"z":"42cbb89a.8c64f","wires":[["b5ccad1f.ec4688","b7ca3c2a.8306f"]]},{"id":"69557a8b.b931b4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1430.6428146362305,"y":4544.666210174561,"z":"42cbb89a.8c64f","wires":[["27342a59.1dd1fe","b7ca3c2a.8306f"]]},{"id":"826a647c.0d8d58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1425.642734527588,"y":4622.66605091095,"z":"42cbb89a.8c64f","wires":[["8bee56c5.166f68","b7ca3c2a.8306f"]]},{"id":"d38e8911.141148","type":"set","name":"set vf-module-to-vfc-mapping length to 0","xml":"<set>\n<parameter name='db.vf-module-to-vfc-mapping_length' value='0' />\n","comments":"","x":1204.500099182129,"y":1970.952314376831,"z":"42cbb89a.8c64f","wires":[]},{"id":"6debb183.b41518","type":"set","name":"set vfc-to-network-role-mapping length to 0","xml":"<set>\n<parameter name='db.vfc-to-network-role-mapping_length' value='0' />\n","comments":"","x":1657.7857818603516,"y":2449.9523401260376,"z":"42cbb89a.8c64f","wires":[]},{"id":"14eb9411.7f3a24","type":"switchNode","name":"switch plans-index > 0","xml":"<switch test='`$plans-index &gt; 0`'>\n","comments":"","outputs":1,"x":593.5000762939453,"y":4201.3808126449585,"z":"42cbb89a.8c64f","wires":[["d8f73141.9175b8"]]},{"id":"d8f73141.9175b8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":776.3572158813477,"y":4201.381022453308,"z":"42cbb89a.8c64f","wires":[["285a17dd.85f258"]]},{"id":"b7ca3c2a.8306f","type":"switchNode","name":"switch plans-index > 0","xml":"<switch test='`$plans-index &gt; 0`'>\n","comments":"","outputs":1,"x":2284.6665000915527,"y":4328.286042690277,"z":"42cbb89a.8c64f","wires":[["abc3aaf1.1a8d3"]]},{"id":"abc3aaf1.1a8d3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2467.523639678955,"y":4328.286252498627,"z":"42cbb89a.8c64f","wires":[["785ac55a.5e876c"]]},{"id":"4cd290dc.dfcc9","type":"set","name":"set service-type","xml":"<set>\n<parameter name='service-data.service-information.service-type' value='`$service-data.service-information.subscription-service-type`' />\n","comments":"EIPAM plug-in needs this attribute set with this name","x":573.6666145324707,"y":4154.9522161483765,"z":"42cbb89a.8c64f","wires":[]},{"id":"1ae4b5e5.907d6a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":312,"y":4912.7742395401,"z":"42cbb89a.8c64f","wires":[]},{"id":"a036b971.c69728","type":"comment","name":"Fix $ in value","info":"","comments":"","x":817.7499465942383,"y":4918.0243883132935,"z":"42cbb89a.8c64f","wires":[]},{"id":"d44a8be9.4bdcc","type":"call","name":"call check for VNF-API-preload and copy","xml":"<call module='GENERIC-RESOURCE-API' rpc='gw-vfmodule-update' mode='sync' >\n","comments":"","outputs":1,"x":647.1668701171875,"y":5024.941292762756,"z":"42cbb89a.8c64f","wires":[[]]},{"id":"8a361b3a.5865b8","type":"returnFailure","name":"MARKER Node","xml":"\n","comments":"","x":1517,"y":2230,"z":"42cbb89a.8c64f","wires":[]},{"id":"978b88f8.1b362","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<!--\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/service-topology/'`\"/>\n -->\n","comments":"","x":583.083251953125,"y":5156.3330078125,"z":"42cbb89a.8c64f","wires":[]}]