aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json2523
1 files changed, 1 insertions, 2522 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
index 2f575c5d..25dde48d 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
@@ -1,2522 +1 @@
-[
- {
- "id": "7f85b319.ec8264",
- "name": "DGSTART",
- "outputs": 1,
- "type": "dgstart",
- "wires": [
- [
- "90051ccf.47dd18"
- ]
- ],
- "x": 158,
- "y": 108,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "90051ccf.47dd18",
- "module": "GENERIC-RESOURCE-API",
- "name": "GENERIC-RESOURCE-API 1.3.2-SNAPSHOT-20180531",
- "outputs": 1,
- "type": "service-logic",
- "version": "${project.version}",
- "wires": [
- [
- "62c9c96e.2f8908"
- ]
- ],
- "x": 271.61902618408203,
- "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}'>",
- "y": 148.2381134033203,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "62c9c96e.2f8908",
- "name": "method vnf-topology-operation-assign",
- "outputs": 1,
- "type": "method",
- "wires": [
- [
- "8c2093db.c56518"
- ]
- ],
- "x": 249.42862701416016,
- "xml": "<method rpc='vnf-topology-operation-assign' mode='sync'>\n",
- "y": 188,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5c8563c8.abc554",
- "info": "",
- "name": "vnf-topology-operation-assign",
- "type": "comment",
- "wires": [],
- "x": 552.344856262207,
- "y": 55.58634376525879,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "3ee765f3.a92b8a",
- "name": "switch request-action",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "7d474a32.9007b4",
- "46a9e819.26787"
- ]
- ],
- "x": 559.8571395874023,
- "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
- "y": 385.19043922424316,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7d474a32.9007b4",
- "name": "CreateVnfInstance",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "1dd86dc0.120d9a"
- ]
- ],
- "x": 813.5714340209961,
- "xml": "<outcome value='CreateVnfInstance'>\n",
- "y": 362.3333206176758,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "46a9e819.26787",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "cb51940c.60aca8"
- ]
- ],
- "x": 775.5713996887207,
- "xml": "<outcome value='Other'>\n",
- "y": 408.0476484298706,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "1dd86dc0.120d9a",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 998.4285621643066,
- "xml": "<block>\n",
- "y": 362.3333501815796,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "cb51940c.60aca8",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1015.5714073181152,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'assign' then request-action must be 'CreateVnfInstance'\" />\n",
- "y": 408.0476064682007,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "8c2093db.c56518",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "3ee765f3.a92b8a",
- "d60893e6.15d0e8",
- "fb8a3580.e4647",
- "aac10be0.39a0e8",
- "b403c1ec.e059b",
- "b572efaa.cba408",
- "8e7983f7.0b8ac8",
- "95a9e356.edb75",
- "c85d4198.45c628",
- "26c17497.86b44c",
- "1a64389.04fb547",
- "2217154e.6141c2",
- "deeeb827.37f63",
- "c4c1c921.76e2b8",
- "1da784bd.1a325b",
- "6ce3245c.227ed4",
- "97e88fe.9dab2f",
- "84324533.95146",
- "fe738685.6c7d7",
- "2ab7bc1f.b085b4",
- "2dbfa8ac.567be8",
- "c33b5d51.3d59e",
- "f8b8a722.fd6508",
- "f03f1068.5af0c",
- "5e785184.8c4128",
- "3a4f6bb1.560164",
- "9bd6668b.dfc92",
- "391ed085.26b75",
- "2e7ae530.0e2cea",
- "611f691d.f4b31",
- "c510e207.134d3"
- ]
- ],
- "x": 188.11905670166016,
- "xml": "<block atomic=\"true\">",
- "y": 1719.7857055664062,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d60893e6.15d0e8",
- "name": "get-resource VF_MODEL",
- "outputs": 1,
- "type": "get-resource",
- "wires": [
- [
- "55ac2b52.c147bc",
- "37dc7224.b3292e"
- ]
- ],
- "x": 572.1904449462891,
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n",
- "y": 476.333309173584,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "3a32be2b.d9bc92",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1013.6189231872559,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n",
- "y": 499.7617950439453,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "55ac2b52.c147bc",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "48eedae7.45629c"
- ]
- ],
- "x": 772.9761428833008,
- "xml": "<outcome value='failure'>\n",
- "y": 456.7141466140747,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "37dc7224.b3292e",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "3a32be2b.d9bc92"
- ]
- ],
- "x": 781.5475730895996,
- "xml": "<outcome value='not-found'>\n",
- "y": 500.9998598098755,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "48eedae7.45629c",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1012.9761238098145,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODEL table\" />\n",
- "y": 454.85705375671387,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "fb8a3580.e4647",
- "name": "switch service-data.vnfs.vnf_length",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "465f36d2.0e073",
- "2ecc5899.269788"
- ]
- ],
- "x": 602.2857131958008,
- "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
- "y": 666.5714282989502,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "465f36d2.0e073",
- "name": "NULL",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "ba18a24.ad916e"
- ]
- ],
- "x": 828.0000419616699,
- "xml": "<outcome value=''>\n",
- "y": 633.7142162322998,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ba18a24.ad916e",
- "name": "set vnf-index=0",
- "type": "set",
- "wires": [],
- "x": 992.2857627868652,
- "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
- "y": 632.7142944335938,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2ecc5899.269788",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "4ebd83c7.528a64"
- ]
- ],
- "x": 829.4286041259766,
- "xml": "<outcome value='Other'>\n",
- "y": 698.0000343322754,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7048a1cb.adf078",
- "name": "set vnf-index = vnf_length",
- "type": "set",
- "wires": [],
- "x": 1168.285758972168,
- "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
- "y": 676.285722732544,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d5aeee8c.b79908",
- "name": "for each existing VNF",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "ce4d4a26.2f4908"
- ]
- ],
- "x": 1153.7142715454102,
- "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
- "y": 722.2856616973877,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "4ebd83c7.528a64",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "7048a1cb.adf078",
- "d5aeee8c.b79908"
- ]
- ],
- "x": 965.1428642272949,
- "xml": "<block>\n",
- "y": 698,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ce4d4a26.2f4908",
- "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "7bb84912.63e62"
- ]
- ],
- "x": 1508.0000381469727,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
- "y": 721.857141494751,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7bb84912.63e62",
- "name": "true",
- "outputs": 1,
- "type": "outcomeTrue",
- "wires": [
- [
- "8287fea2.8f264"
- ]
- ],
- "x": 1802.2857475280762,
- "xml": "<outcome value='true'>\n",
- "y": 721.4286136627197,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "8287fea2.8f264",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1950.8571548461914,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
- "y": 721.4285736083984,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7bf5b528.4f469c",
- "info": "",
- "name": "make sure this VNF doesn't exist already",
- "type": "comment",
- "wires": [],
- "x": 1495.1427688598633,
- "y": 679.4285717010498,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "aac10be0.39a0e8",
- "name": "set vnf-topology data",
- "type": "set",
- "wires": [],
- "x": 557.9999694824219,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n",
- "y": 828.238115310669,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "b403c1ec.e059b",
- "name": "switch input vnf-name",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "98b70d2d.7445c8",
- "ff9bcb42.eb5f1"
- ]
- ],
- "x": 564.4285507202148,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",
- "y": 1070.8571615219116,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "98b70d2d.7445c8",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "5ce76bf0.0fe7fc"
- ]
- ],
- "x": 832.6427726745605,
- "xml": "<outcome value=''>",
- "y": 993.8333864212036,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "dddcb6fb.6fadd",
- "name": "switch ecomp-generated-naming",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "a0e8eebb.f2bf6",
- "fcddb1f1.15f2c8",
- "fb5bcd7b.93abb8"
- ]
- ],
- "x": 1249.071662902832,
- "xml": "<switch test='`$db.vf-model.ecomp-generated-naming`'>\n",
- "y": 900.5002059936523,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "5ce76bf0.0fe7fc",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "5795f411.5a64bc",
- "9b41a0f.e8b05e",
- "dddcb6fb.6fadd"
- ]
- ],
- "x": 978.3572692871094,
- "xml": "<block atomic=\"true\">",
- "y": 993.833498954773,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "fcddb1f1.15f2c8",
- "name": "N",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "9a465697.6d89a"
- ]
- ],
- "x": 1498.357322692871,
- "xml": "<outcome value='N'>",
- "y": 902.404914855957,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "9a465697.6d89a",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1652.64310836792,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"No vnf-name was received but ecomp-generated-naming is not Y\" />\n",
- "y": 920.9763593673706,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a0e8eebb.f2bf6",
- "name": "Y",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "b8327ea6.6151"
- ]
- ],
- "x": 1498.3572883605957,
- "xml": "<outcome value='Y'>",
- "y": 858.1192359924316,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "fb5bcd7b.93abb8",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "9a465697.6d89a"
- ]
- ],
- "x": 1498.357250213623,
- "xml": "<outcome value='Other'>\n",
- "y": 948.119234085083,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "b8327ea6.6151",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 1635.5002326965332,
- "xml": "<block>\n",
- "y": 858.1192359924316,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ff9bcb42.eb5f1",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "1614942.5f3dcec"
- ]
- ],
- "x": 835.2144546508789,
- "xml": "<outcome value='Other'>\n",
- "y": 1140.119125366211,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f88d9a18.d869f8",
- "name": "set tmp.vnf-name",
- "type": "set",
- "wires": [],
- "x": 1794.0715306599936,
- "xml": "<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-request-input.vnf-name`\" />\n",
- "y": 1207.5476417541504,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5795f411.5a64bc",
- "name": "call GENERIC-RESOURCE-API:generate-unique-name",
- "outputs": 1,
- "type": "call",
- "wires": [
- [
- "51165cf7.f6843c",
- "f172e525.aff23"
- ]
- ],
- "x": 1317.4763259887695,
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
- "y": 1066.8333959579468,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "51165cf7.f6843c",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "682b96e6.6b632"
- ]
- ],
- "x": 1613.1906140645347,
- "xml": "<outcome value='failure'>\n",
- "y": 1039.690658569336,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f172e525.aff23",
- "name": "success",
- "outputs": 1,
- "type": "success",
- "wires": [
- [
- "aa7e9b78.4083b"
- ]
- ],
- "x": 1616.5239639282227,
- "xml": "<outcome value='success'>\n",
- "y": 1091.3573017120361,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "9b41a0f.e8b05e",
- "name": "set variables for generating unique name",
- "type": "set",
- "wires": [],
- "x": 1274.1430130004883,
- "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='VNF_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`'z' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + $db.vf-model.nf-code`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n",
- "y": 1015.1668043136597,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "aa7e9b78.4083b",
- "name": "set tmp.vnf-name to generated name",
- "type": "set",
- "wires": [],
- "x": 1857.7143491109214,
- "xml": "<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n",
- "y": 1091.8333930969238,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "682b96e6.6b632",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1781.0477269490561,
- "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",
- "y": 1039.1191701889038,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "1614942.5f3dcec",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "4f4e849f.98565c",
- "237fb0e1.59bbc8"
- ]
- ],
- "x": 983.1429824829102,
- "xml": "<block atomic=\"true\">",
- "y": 1138.7858123779297,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "237fb0e1.59bbc8",
- "name": "call GENERIC-RESOURCE-API:generate-unique-name",
- "outputs": 1,
- "type": "call",
- "wires": [
- [
- "445f33b6.f0f264",
- "b1ac48e3.52ee98"
- ]
- ],
- "x": 1313.1429824829102,
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
- "y": 1186.7858123779297,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "445f33b6.f0f264",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "d05b4ba7.3c07f"
- ]
- ],
- "x": 1611.7143987019858,
- "xml": "<outcome value='failure'>\n",
- "y": 1156.785837173462,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "b1ac48e3.52ee98",
- "name": "success",
- "outputs": 1,
- "type": "success",
- "wires": [
- [
- "f88d9a18.d869f8"
- ]
- ],
- "x": 1615.0477485656738,
- "xml": "<outcome value='success'>\n",
- "y": 1208.452480316162,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "4f4e849f.98565c",
- "name": "set variables for generating unique name",
- "type": "set",
- "wires": [],
- "x": 1269.8096542358398,
- "xml": "<set>\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.supplied-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-name`' />\n",
- "y": 1135.1191844940186,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d05b4ba7.3c07f",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1779.5715115865073,
- "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",
- "y": 1156.2143487930298,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "b572efaa.cba408",
- "name": "get-resource cloud region",
- "outputs": 1,
- "type": "get-resource",
- "wires": [
- [
- "a348eda7.660348",
- "142de0c9.dde827"
- ]
- ],
- "x": 586.5714492797852,
- "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 = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t depth='0'\"\n pfx='aai.cloud-region' local-only='false' >\n\n",
- "y": 1748.8569984436035,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "142de0c9.dde827",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "34ef927d.00b456"
- ]
- ],
- "x": 811.8176422119141,
- "xml": "<outcome value='failure'>\n",
- "y": 1767.00785446167,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "34ef927d.00b456",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 986.8176155090332,
- "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",
- "y": 1767.007890701294,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a348eda7.660348",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "ac864602.325b48"
- ]
- ],
- "x": 820.7462387084961,
- "xml": "<outcome value='not-found'>\n",
- "y": 1725.2935876846313,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ac864602.325b48",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 987.095516204834,
- "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",
- "y": 1724.5991649627686,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "8e7983f7.0b8ac8",
- "name": "get-resource VF_TO_NETWORK_ROLE_MAPPING",
- "outputs": 1,
- "type": "get-resource",
- "wires": [
- [
- "4303334b.1d06ac",
- "97da19d.b97dfe8"
- ]
- ],
- "x": 651.8095321655273,
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-network-role-mapping[]'>\n\n",
- "y": 2059.9045181274414,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d4db95bc.3539b",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1387.5237121582031,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No entries found in VF_TO_NETWORK_ROLE_MAPPING for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n",
- "y": 2077.618698120117,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "4303334b.1d06ac",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "1cb8c40f.bbd244"
- ]
- ],
- "x": 947.5952033996582,
- "xml": "<outcome value='failure'>\n",
- "y": 2038.6186828613281,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "97da19d.b97dfe8",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "2ca15486.5cc8cc"
- ]
- ],
- "x": 956.166633605957,
- "xml": "<outcome value='not-found'>\n",
- "y": 2082.904396057129,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1cb8c40f.bbd244",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1122.5951843261719,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_TO_NETWORK_ROLE_MAPPING table\" />\n",
- "y": 2038.4283332824707,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "796cc7.d490b338",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "465ab09f.34229",
- "799318e1.a3e3a",
- "dc31ec67.0624a",
- "d834554a.ccf5f",
- "30a0e3fe.983584",
- "bc183bd7.3e811",
- "dc8fa939.b773f",
- "5090527e.f6c044"
- ]
- ],
- "x": 752.5715866088867,
- "xml": "<block atomic=\"true\">",
- "y": 2508.71391582489,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "dc31ec67.0624a",
- "name": "get-resource l3-network",
- "outputs": 1,
- "type": "get-resource",
- "wires": [
- [
- "c81a364.d370848",
- "419e2508.7620ac"
- ]
- ],
- "x": 985.4286041259766,
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-networks\" \n\t\tkey=\"l3-network.network-role = $db.vf-network-role-mapping[$role-index].network-role\"\n pfx='aai.l3-network' local-only='false'\n>\n",
- "y": 2187.999779701233,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "419e2508.7620ac",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "b16e3091.456208"
- ]
- ],
- "x": 1189.476318359375,
- "xml": "<outcome value='failure'>\n",
- "y": 2210.1426191329956,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "b16e3091.456208",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1364.4762916564941,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error retrieving l3-network from AAI\" />\n",
- "y": 2210.1426553726196,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c81a364.d370848",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "1b8e966.12c8b6a"
- ]
- ],
- "x": 1198.404914855957,
- "xml": "<outcome value='not-found'>\n",
- "y": 2168.428352355957,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1b8e966.12c8b6a",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1364.754192352295,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No active l3-network found in AAI with cloud_region_id '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + ' and network_role '\n + $db.vf-network-role-mapping[$network-index].network-role`\" />\n",
- "y": 2167.7339296340942,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "465ab09f.34229",
- "name": "set vnf-network data",
- "type": "set",
- "wires": [],
- "x": 974.6191940307617,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-role'\n value='`$db.vf-network-role-mapping[$role-index].network-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-name'\n value='`$aai.l3-network.l3-network[$db-network-index].network-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].neutron-id'\n value='`$aai.l3-network.l3-network[$db-network-index].neutron-network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-id'\n value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].contrail-network-fqdn'\n value='`$aai.l3-network.l3-network[$db-network-index].contrail-network-fqdn`' />\n",
- "y": 2675.0000228881836,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1a64389.04fb547",
- "name": "for each cloud-region availability zone",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "509993f3.7086bc"
- ]
- ],
- "x": 586.3335571289062,
- "xml": "<for index='idx' start='0' end='`$aai.az.availability-zone_length`' >\n",
- "y": 3089.618803024292,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "696846f6.70aa8",
- "name": "set availability-zone",
- "type": "set",
- "wires": [],
- "x": 1048.0002403259277,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[$idx]'\n value='`$aai.az.availability-zone[$idx].availability-zone-name`' />\n",
- "y": 3058.952217102051,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2217154e.6141c2",
- "name": "set vnf-parameters-data",
- "type": "set",
- "wires": [],
- "x": 545.9524841308594,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n",
- "y": 2939.5711631774902,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "57d7e5fc.33f244",
- "name": "save generic-vnf l3-network relationships",
- "outputs": 1,
- "type": "save",
- "wires": [
- [
- "7186d613.fe144",
- "35d8114.d0acf6e"
- ]
- ],
- "x": 1012.5240173339844,
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-nw-index].network-id`\" />\n",
- "y": 3233.381015777588,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1da784bd.1a325b",
- "name": "return success",
- "type": "returnSuccess",
- "wires": [],
- "x": 509.0953674316406,
- "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",
- "y": 3620.1901140213013,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c4c1c921.76e2b8",
- "name": "set vnf-level-oper-status to PendingCreate",
- "type": "set",
- "wires": [],
- "x": 598.9088134765625,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
- "y": 3522.527594566345,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c85d4198.45c628",
- "name": "for each network-role",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "796cc7.d490b338"
- ]
- ],
- "x": 535.9048919677734,
- "xml": "<for index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>",
- "y": 2508.7141189575195,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "95a9e356.edb75",
- "name": "set network-index = 0",
- "type": "set",
- "wires": [],
- "x": 554.2380676269531,
- "xml": "<set>\n<parameter name='network-index' value='0' />\n",
- "y": 2126.8094577789307,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "799318e1.a3e3a",
- "name": "increment network-index",
- "type": "set",
- "wires": [],
- "x": 984.9525146484375,
- "xml": "<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n",
- "y": 2812.6189250946045,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "26c17497.86b44c",
- "name": "set vnf-network_length",
- "type": "set",
- "wires": [],
- "x": 544.8095703125,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length'\n value='`$network-index`' />\n",
- "y": 2889.571207046509,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "deeeb827.37f63",
- "name": "copy input data",
- "type": "set",
- "wires": [],
- "x": 514.4286422729492,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",
- "y": 3470.1904258728027,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "6ce3245c.227ed4",
- "name": "for each vnf-network",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "21eaa2af.c3b26e"
- ]
- ],
- "x": 535.52392578125,
- "xml": "<for index='vnf-nw-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n",
- "y": 3232.380931854248,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "21eaa2af.c3b26e",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "57d7e5fc.33f244"
- ]
- ],
- "x": 739.1905670166016,
- "xml": "<block atomic=\"true\">",
- "y": 3232.380892753601,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "97e88fe.9dab2f",
- "name": "set new vnf_length",
- "type": "set",
- "wires": [],
- "x": 550.0952491760254,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
- "y": 782.7619781494141,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "84324533.95146",
- "name": "for each cloud-region relationship",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "f787444c.e13378"
- ]
- ],
- "x": 599.4285736083984,
- "xml": "<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n",
- "y": 1836.0951700210571,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f787444c.e13378",
- "name": "switch related-to",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "cd796e7b.7cf948"
- ]
- ],
- "x": 847.1071166992188,
- "xml": "<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
- "y": 1835.8450994491577,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "cd796e7b.7cf948",
- "name": "complex",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "29a74b62.067044"
- ]
- ],
- "x": 1016.5714378356934,
- "xml": "<outcome value='complex'>\n",
- "y": 1835.2379217147827,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f964a25d.454b6",
- "name": "set aic-clli",
- "type": "set",
- "wires": [],
- "x": 1337.2857360839844,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli'\n value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n",
- "y": 1834.9045791625977,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "fe738685.6c7d7",
- "name": "switch aic-clli",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "d8ba8844.b1a0b8"
- ]
- ],
- "x": 535.3333511352539,
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n",
- "y": 1992.0474872589111,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d8ba8844.b1a0b8",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "25200dee.75e302"
- ]
- ],
- "x": 683.4761848449707,
- "xml": "<outcome value=''>",
- "y": 1992.0474700927734,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "25200dee.75e302",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 830.6190452575684,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",
- "y": 1991.6189041137695,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5f4ea6d7.ceb158",
- "name": "set from DB",
- "type": "set",
- "wires": [],
- "x": 958.9287452697754,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$db.vf-model.invariant-uuid`' />\n",
- "y": 1308.0475587844849,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "43d65ebc.c60b2",
- "name": "for each l3-network",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "6f76ed5d.4970e4"
- ]
- ],
- "x": 1092.8811492919922,
- "xml": "<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n",
- "y": 2431.571388244629,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "6f76ed5d.4970e4",
- "name": "switch orchestration-status",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "bbe5662.f16b918",
- "cb1bcbb.e4a72b8",
- "be3d158a.0afbb",
- "a22f9423.3e4f08",
- "1aa61126.14efcf"
- ]
- ],
- "x": 1321.452350616455,
- "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n",
- "y": 2430.142815589905,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "bbe5662.f16b918",
- "name": "Pending Delete",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "c5d64162.5301c8"
- ]
- ],
- "x": 1558.1192626953125,
- "xml": "<outcome value='Pending Delete'>\n",
- "y": 2475.8095235824585,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "cb1bcbb.e4a72b8",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "cada7ba0.1dd8"
- ]
- ],
- "x": 1530.9764022827148,
- "xml": "<outcome value='Other'>\n",
- "y": 2526.809504508972,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f2201c7e.b452e8",
- "name": "switch related-to",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "18bbcf5a.1ec521"
- ]
- ],
- "x": 1896.6907539367676,
- "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n",
- "y": 2525.3808450698853,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "cada7ba0.1dd8",
- "name": "for each relationship",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "f2201c7e.b452e8"
- ]
- ],
- "x": 1700.9763145446777,
- "xml": "<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n",
- "y": 2526.3808813095093,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "18bbcf5a.1ec521",
- "name": "cloud-region",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "9edb388f.f5112"
- ]
- ],
- "x": 2070.9763946533203,
- "xml": "<outcome value='cloud-region'>\n",
- "y": 2524.9522914886475,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "9edb388f.f5112",
- "name": "for each relationship data",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "1a8ed1c0.72a746"
- ]
- ],
- "x": 2268.119094848633,
- "xml": "<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n",
- "y": 2525.380759239197,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1a8ed1c0.72a746",
- "name": "switch relationship-key",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "435633df.b879dc"
- ]
- ],
- "x": 2499.547695159912,
- "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n",
- "y": 2524.9521341323853,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "435633df.b879dc",
- "name": "cloud-region.cloud-region-id",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "48895616.05d3b"
- ]
- ],
- "x": 2740.9762268066406,
- "xml": "<outcome value='cloud-region.cloud-region-id'>\n",
- "y": 2524.95223903656,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "48895616.05d3b",
- "name": "switch relationship-value == cloud-region-id",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "12babad5.4b3935"
- ]
- ],
- "x": 3045.2621459960938,
- "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value == $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n",
- "y": 2524.8092947006226,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "12babad5.4b3935",
- "name": "true",
- "outputs": 1,
- "type": "outcomeTrue",
- "wires": [
- [
- "ad009415.ee8e2"
- ]
- ],
- "x": 3285.262176513672,
- "xml": "<outcome value='true'>\n",
- "y": 2524.9522399902344,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "d834554a.ccf5f",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "43d65ebc.c60b2",
- "29a56ec0.3effd2"
- ]
- ],
- "x": 931.0953330993652,
- "xml": "<block>\n",
- "y": 2499.4284858703613,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "29a56ec0.3effd2",
- "name": "CATCH BREAK",
- "type": "returnSuccess",
- "wires": [],
- "x": 1082.4287414550781,
- "xml": "<return status='success'>\n\n",
- "y": 2572.7617197036743,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f75b0ddb.4ffe68",
- "name": "BREAK",
- "type": "returnFailure",
- "wires": [],
- "x": 3586.095157623291,
- "xml": "<return status='failure'>\n",
- "y": 2542.761643409729,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "30a0e3fe.983584",
- "name": "set l3-network-id = -1",
- "type": "set",
- "wires": [],
- "x": 975.4287033081055,
- "xml": "<set>\n<parameter name='l3-network-id' value='-1' />\n",
- "y": 2302.7616996765137,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "ad009415.ee8e2",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "7a5cc970.dcdc18",
- "f75b0ddb.4ffe68"
- ]
- ],
- "x": 3431.0951538085938,
- "xml": "<block atomic=\"true\">",
- "y": 2524.4283485412598,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7a5cc970.dcdc18",
- "name": "set l3-network-id = this l3-network",
- "type": "set",
- "wires": [],
- "x": 3667.7618255615234,
- "xml": "<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n",
- "y": 2499.4283475875854,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "bc183bd7.3e811",
- "name": "switch l3-network-id",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "91318c2.57404f"
- ]
- ],
- "x": 972.4286270141602,
- "xml": "<switch test='`$l3-network-id`'>\n",
- "y": 2626.428741455078,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "91318c2.57404f",
- "name": "-1",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "504d1216.64d004"
- ]
- ],
- "x": 1142.4285774230957,
- "xml": "<outcome value='-1'>\n",
- "y": 2626.428497314453,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "504d1216.64d004",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1290.7619400024414,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unable to find l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n",
- "y": 2626.4286346435547,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2ab7bc1f.b085b4",
- "name": "switch input model-invariant-uuid",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "e082345e.236ca",
- "a95f8164.b4e8b8"
- ]
- ],
- "x": 602.7858200073242,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",
- "y": 1330.8720026016235,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "e082345e.236ca",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "5f4ea6d7.ceb158"
- ]
- ],
- "x": 808.4524917602539,
- "xml": "<outcome value=''>",
- "y": 1308.0149660110474,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a95f8164.b4e8b8",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "e5dcf453.7ec14"
- ]
- ],
- "x": 809.8810882568359,
- "xml": "<outcome value='Other'>\n",
- "y": 1352.3005571365356,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "e5dcf453.7ec14",
- "name": "set from input",
- "type": "set",
- "wires": [],
- "x": 964.1668243408203,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n",
- "y": 1351.7291293144226,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ebeec6f9.2c628",
- "name": "set from DB",
- "type": "set",
- "wires": [],
- "x": 959.8810157775879,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$db.vf-model.uuid`' />\n",
- "y": 1396.5862350463867,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2dbfa8ac.567be8",
- "name": "switch input model-uuid",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "bafa03f0.0be328",
- "40a4f245.06edcc"
- ]
- ],
- "x": 575.4048385620117,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",
- "y": 1419.4107398986816,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "bafa03f0.0be328",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "ebeec6f9.2c628"
- ]
- ],
- "x": 809.4048118591309,
- "xml": "<outcome value=''>",
- "y": 1396.553671836853,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "40a4f245.06edcc",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "9ad4384f.c55ae"
- ]
- ],
- "x": 810.8334083557129,
- "xml": "<outcome value='Other'>\n",
- "y": 1440.8392629623413,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "9ad4384f.c55ae",
- "name": "set from input",
- "type": "set",
- "wires": [],
- "x": 965.1191444396973,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
- "y": 1440.2678351402283,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "369af0fe.bb8d18",
- "name": "set from DB",
- "type": "set",
- "wires": [],
- "x": 957.0239486694336,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$db.vf-model.version`' />\n",
- "y": 1485.4434423446655,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c33b5d51.3d59e",
- "name": "switch input model-version",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "b1d9b14.52a99d",
- "7dbbd718.ba9528"
- ]
- ],
- "x": 583.5477104187012,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",
- "y": 1508.2678871154785,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "b1d9b14.52a99d",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "369af0fe.bb8d18"
- ]
- ],
- "x": 806.5476951599121,
- "xml": "<outcome value=''>",
- "y": 1485.410849571228,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7dbbd718.ba9528",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "ec86a60a.b943f8"
- ]
- ],
- "x": 807.9762916564941,
- "xml": "<outcome value='Other'>\n",
- "y": 1529.6964406967163,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ec86a60a.b943f8",
- "name": "set from input",
- "type": "set",
- "wires": [],
- "x": 962.2620277404785,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n",
- "y": 1529.1250128746033,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d84c1fb5.76aec8",
- "name": "set from DB",
- "type": "set",
- "wires": [],
- "x": 957.0239486694336,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$db.vf-model.name`' />\n",
- "y": 1572.5862646102905,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f8b8a722.fd6508",
- "name": "switch input model-name",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "37bd193e.8fcaee",
- "904a8546.5a6878"
- ]
- ],
- "x": 578.5477104187012,
- "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",
- "y": 1595.4107093811035,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "37bd193e.8fcaee",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "d84c1fb5.76aec8"
- ]
- ],
- "x": 806.5476951599121,
- "xml": "<outcome value=''>",
- "y": 1572.553671836853,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "904a8546.5a6878",
- "name": "other",
- "outputs": 1,
- "type": "other",
- "wires": [
- [
- "fb77ed1e.4c6d38"
- ]
- ],
- "x": 807.9762916564941,
- "xml": "<outcome value='Other'>\n",
- "y": 1616.8392629623413,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "fb77ed1e.4c6d38",
- "name": "set from input",
- "type": "set",
- "wires": [],
- "x": 962.2620277404785,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n",
- "y": 1616.2678351402283,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "c5d64162.5301c8",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 1711.3333549499512,
- "xml": "<block>\n",
- "y": 2476.586400985718,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1aa61126.14efcf",
- "name": "PendingDelete",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "1a19e1e7.6d515e"
- ]
- ],
- "x": 1555.9999961853027,
- "xml": "<outcome value='PendingDelete'>\n",
- "y": 2431.5863151550293,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "1a19e1e7.6d515e",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 1711.2140884399414,
- "xml": "<block>\n",
- "y": 2432.3631925582886,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a22f9423.3e4f08",
- "name": "Pending Create",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "7b5140c6.1be978"
- ]
- ],
- "x": 1557.9999961853027,
- "xml": "<outcome value='Pending Create'>\n",
- "y": 2388.2528190612793,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "7b5140c6.1be978",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 1711.2140884399414,
- "xml": "<block>\n",
- "y": 2389.0296964645386,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "be3d158a.0afbb",
- "name": "PendingCreate",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "56c1bb65.93ed54"
- ]
- ],
- "x": 1557.9999961853027,
- "xml": "<outcome value='PendingCreate'>\n",
- "y": 2344.9195671081543,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "false",
- "comments": "",
- "id": "56c1bb65.93ed54",
- "name": "block",
- "outputs": 1,
- "type": "block",
- "wires": [
- []
- ],
- "x": 1711.2140884399414,
- "xml": "<block>\n",
- "y": 2345.6964445114136,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "dc8fa939.b773f",
- "name": "for each A&AI subnet",
- "outputs": 1,
- "type": "for",
- "wires": [
- [
- "ca52b163.d4827"
- ]
- ],
- "x": 974.6667633056641,
- "xml": "<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[0].subnets.subnet_length`' >\n",
- "y": 2719.919626235962,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "ca52b163.d4827",
- "name": "set subnet data",
- "type": "set",
- "wires": [],
- "x": 1172.9999389648438,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].ip-version'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].ip-version`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-id'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-id`' />\n",
- "y": 2718.2532052993774,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5090527e.f6c044",
- "name": "set subnet_length",
- "type": "set",
- "wires": [],
- "x": 963.3333282470703,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n value='`$aai.l3-network.l3-network[0].subnets.subnet_length`' />\n",
- "y": 2764.919708251953,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f03f1068.5af0c",
- "name": "set availability-zones.max-count and length",
- "type": "set",
- "wires": [],
- "x": 606.0000610351562,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.max-count'\n value='`$db.vf-model.avail-zone-max-count`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length'\n value='`$aai.az.availability-zone_length`' />\n",
- "y": 3177.6342582702637,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5e785184.8c4128",
- "name": "set vnf-name",
- "type": "set",
- "wires": [],
- "x": 539.666633605957,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name'\n value='`$tmp.vnf-name`' />\n",
- "y": 1264.9197664260864,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "3a4f6bb1.560164",
- "name": "update generic-vnf",
- "outputs": 1,
- "type": "save",
- "wires": [
- [
- "1fc6e960.150607",
- "a8793a07.5d6f48"
- ]
- ],
- "x": 526.3333282470703,
- "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vnf-name\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"equipment-role\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role`\" />\n<parameter name=\"model-invariant-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n",
- "y": 3387.300033569336,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "9bd6668b.dfc92",
- "name": "set vnf-object-path and service-object-path",
- "type": "set",
- "wires": [],
- "x": 606.3333740234375,
- "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>",
- "y": 3310.300537109375,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "391ed085.26b75",
- "name": "set vnf-id",
- "type": "set",
- "wires": [],
- "x": 527.9999771118164,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
- "y": 1216.5863094329834,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "e3fcddaa.ac5538",
- "name": "printContext",
- "outputs": 1,
- "type": "execute",
- "wires": [
- []
- ],
- "x": 504.00009536743164,
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-viprend.log' />\n",
- "y": 3568.967363357544,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "6f3c4400.e28f24",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1449.666805267334,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
- "y": 3253.9671211242676,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "7186d613.fe144",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "89a1c75d.721db8"
- ]
- ],
- "x": 1262.3573722839355,
- "xml": "<outcome value='failure'>\n",
- "y": 3210.919590950012,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "35d8114.d0acf6e",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "6f3c4400.e28f24"
- ]
- ],
- "x": 1270.9288024902344,
- "xml": "<outcome value='not-found'>\n",
- "y": 3255.205304145813,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "89a1c75d.721db8",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1452.3573989868164,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n",
- "y": 3210.729326248169,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "17590340.d661cd",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 929.6667442321777,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
- "y": 3408.967043876648,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1fc6e960.150607",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "d9024ee2.bf5d3"
- ]
- ],
- "x": 742.3573112487793,
- "xml": "<outcome value='failure'>\n",
- "y": 3365.9195137023926,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a8793a07.5d6f48",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "17590340.d661cd"
- ]
- ],
- "x": 750.9287414550781,
- "xml": "<outcome value='not-found'>\n",
- "y": 3410.2052268981934,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "d9024ee2.bf5d3",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 932.3573379516602,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating selflink in generic-vnf in AAI\" />\n",
- "y": 3365.7292490005493,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2e7ae530.0e2cea",
- "name": "set model-customization-uuid",
- "type": "set",
- "wires": [],
- "x": 591.3332977294922,
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n",
- "y": 1668.2529134750366,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c4513e6c.417d88",
- "name": "split related-link",
- "outputs": 1,
- "type": "execute",
- "wires": [
- []
- ],
- "x": 1356.6665954589844,
- "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",
- "y": 1789.6664972305298,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "29a74b62.067044",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "c4513e6c.417d88",
- "f964a25d.454b6",
- "bf8afd9.c73b1"
- ]
- ],
- "x": 1176.3332977294922,
- "xml": "<block atomic=\"true\">",
- "y": 1836.333285331726,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "bf8afd9.c73b1",
- "name": "break",
- "type": "break",
- "wires": [],
- "x": 1326.3332595825195,
- "xml": "<break>\n",
- "y": 1879.666582107544,
- "z": "1f9db9a1.737df6"
- },
- {
- "atomic": "true",
- "id": "509993f3.7086bc",
- "name": "block : atomic",
- "outputs": 1,
- "type": "block",
- "wires": [
- [
- "696846f6.70aa8",
- "765526c8.d4caf"
- ]
- ],
- "x": 838,
- "xml": "<block atomic=\"true\">",
- "y": 3088.7143869400024,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "765526c8.d4caf",
- "name": "save generic-vnf availability-zone relationship",
- "outputs": 1,
- "type": "save",
- "wires": [
- [
- "43f03688.4ffc08",
- "49249c79.4e59a4"
- ]
- ],
- "x": 1129.9048156738281,
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"CloudOwner\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$aai.az.availability-zone[$idx].availability-zone-name`\" />\n",
- "y": 3112.0478343963623,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1fb1c5a4.5564ca",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1583.47607421875,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n",
- "y": 3135.9671936035156,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "43f03688.4ffc08",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "31682c44.dabecc"
- ]
- ],
- "x": 1396.1666412353516,
- "xml": "<outcome value='failure'>\n",
- "y": 3092.9196634292603,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "49249c79.4e59a4",
- "name": "not-found",
- "outputs": 1,
- "type": "not-found",
- "wires": [
- [
- "1fb1c5a4.5564ca"
- ]
- ],
- "x": 1404.7380714416504,
- "xml": "<outcome value='not-found'>\n",
- "y": 3137.205376625061,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "31682c44.dabecc",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1586.1666679382324,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n",
- "y": 3092.729398727417,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "2ca15486.5cc8cc",
- "name": "set mapping rows to 0",
- "type": "set",
- "wires": [],
- "x": 1150.1427688598633,
- "xml": "<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n",
- "y": 2082.52388381958,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "611f691d.f4b31",
- "name": "switch AAI availability-zone_length",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "701b12be.386a5c"
- ]
- ],
- "x": 578.7142868041992,
- "xml": "<switch test='`$aai.az.availability-zone_length`'>\n",
- "y": 2992.523973464966,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "701b12be.386a5c",
- "name": "NULL",
- "outputs": 1,
- "type": "outcome",
- "wires": [
- [
- "1249a549.cc39bb"
- ]
- ],
- "x": 797.2857055664062,
- "xml": "<outcome value=''>",
- "y": 2992.0953826904297,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "a04c4aba.4671b8",
- "name": "set availability-zone_length to 0",
- "type": "set",
- "wires": [],
- "x": 1398.7143478393555,
- "xml": "<set>\n<parameter name='aai.az.availability-zone_length' value='0' />\n",
- "y": 3010.6666202545166,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "1249a549.cc39bb",
- "name": "switch AZ max count > 0",
- "outputs": 1,
- "type": "switchNode",
- "wires": [
- [
- "545772cc.6dbc04",
- "f7e43f63.6a2e5"
- ]
- ],
- "x": 985.857177734375,
- "xml": "<switch test='`$db.vf-model.avail-zone-max-count &gt; 0`'>\n",
- "y": 2992.5236945152283,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "545772cc.6dbc04",
- "name": "true",
- "outputs": 1,
- "type": "outcomeTrue",
- "wires": [
- [
- "be2e43e.cc375c"
- ]
- ],
- "x": 1188.7142848968506,
- "xml": "<outcome value='true'>\n",
- "y": 2966.8094444274902,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "f7e43f63.6a2e5",
- "name": "false",
- "outputs": 1,
- "type": "outcomeFalse",
- "wires": [
- [
- "a04c4aba.4671b8"
- ]
- ],
- "x": 1190.1429061889648,
- "xml": "<outcome value='false'>\n",
- "y": 3011.0951919555664,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "be2e43e.cc375c",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 1340.142822265625,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No availability zones found in AAI for cloud region '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n",
- "y": 2966.5238494873047,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "c510e207.134d3",
- "name": "get-resource availability zones",
- "outputs": 1,
- "type": "get-resource",
- "wires": [
- [
- "5917e224.06e004"
- ]
- ],
- "x": 588.7143096923828,
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"availability-zones\" \n\t\tkey=\"cloud-region.cloud-owner = 'CloudOwner' AND \n\t\t cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t depth='0'\"\n pfx='aai.az' local-only='false' >\n\n",
- "y": 1919.4286441802979,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "5917e224.06e004",
- "name": "failure",
- "outputs": 1,
- "type": "failure",
- "wires": [
- [
- "76d22d4c.7d6684"
- ]
- ],
- "x": 813.9605255126953,
- "xml": "<outcome value='failure'>\n",
- "y": 1918.829496383667,
- "z": "1f9db9a1.737df6"
- },
- {
- "comments": "",
- "id": "76d22d4c.7d6684",
- "name": "return failure",
- "type": "returnFailure",
- "wires": [],
- "x": 987.7104644775391,
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error retrieving availability zones from AAI\" />\n",
- "y": 1917.5796184539795,
- "z": "1f9db9a1.737df6"
- }
-]
+[{"id":"f07e5af5.2a81a8","type":"dgstart","name":"DGSTART","outputs":1,"x":100,"y":80.74699592590332,"z":"4e44f4dc.d3fbac","wires":[["7dfb89c0.30c288"]]},{"id":"7dfb89c0.30c288","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":215.28570556640625,"y":122.65177536010742,"z":"4e44f4dc.d3fbac","wires":[["1bd914ea.94267b"]]},{"id":"1bd914ea.94267b","type":"method","name":"method vnf-topology-operation-assign","xml":"<method rpc='vnf-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":188.09530639648438,"y":165.41365909576416,"z":"4e44f4dc.d3fbac","wires":[["11bf25d2.bdb8da"]]},{"id":"2e619ce7.bf2e34","type":"comment","name":"vnf-topology-operation-assign","info":"","comments":"","x":476.0115280151367,"y":30,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b32ac93e.aaa508","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":486.3809509277344,"y":313.8898277282715,"z":"4e44f4dc.d3fbac","wires":[["95fe5c1b.234a3","1c086997.eb74d6"]]},{"id":"95fe5c1b.234a3","type":"outcome","name":"CreateVnfInstance","xml":"<outcome value='CreateVnfInstance'>\n","comments":"","outputs":1,"x":740.0952453613281,"y":291.0327091217041,"z":"4e44f4dc.d3fbac","wires":[["b3d6c559.f5a1f8"]]},{"id":"1c086997.eb74d6","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":702.0952110290527,"y":336.7470369338989,"z":"4e44f4dc.d3fbac","wires":[["3d3a9ebb.853872"]]},{"id":"b3d6c559.f5a1f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":924.9523735046387,"y":291.0327386856079,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"3d3a9ebb.853872","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'assign' then request-action must be 'CreateVnfInstance'\" />\n","comments":"","x":942.0952186584473,"y":336.746994972229,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ae713fba.3df7f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":186.07147216796875,"y":1577.7707920074463,"z":"4e44f4dc.d3fbac","wires":[["78a8ab8d.e4a224","766c94ea.b9611c","434cb265.75e27c","a6c6204f.95895","b69f4291.61fa5","f416891b.c49b38","b1c5abc7.29b208","c969fd25.a5dbc","5551cb18.77a4d4","27e79a76.199b26","68282397.14338c","4cef2e4e.2eeb7","b4645e2b.83793","19423cf4.442143","59cc3158.776f9","2eaa370.dfe9cca","ab5ed0d2.dee8c","2dd176ed.0041ba","acbd5170.3e4c4","60684400.780c7c","31bebad4.8a5896","438000d4.31b1e","6f6caf00.d957c","277ce9ee.277656","56e0bd4b.bd3f64","58f81e72.df87b","719fd6d4.9a4d78","1fd770ea.bfd8af","183d18f7.8083e7","537d84c0.249e5c","4cc45d68.737674","ed7dcd3d.7a64c","d4e45ae3.95e8e8","569d159b.7974ac"]]},{"id":"3e444c8d.9a16f4","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":498.7142562866211,"y":405.0326976776123,"z":"4e44f4dc.d3fbac","wires":[["474b191f.eb1888","e8e33d1a.e987"]]},{"id":"f4e1f5bf.f95318","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":940.1427345275879,"y":428.46118354797363,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"474b191f.eb1888","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":699.4999542236328,"y":385.413535118103,"z":"4e44f4dc.d3fbac","wires":[["bd82a433.1ab928"]]},{"id":"e8e33d1a.e987","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":708.0713844299316,"y":429.6992483139038,"z":"4e44f4dc.d3fbac","wires":[["f4e1f5bf.f95318"]]},{"id":"bd82a433.1ab928","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_MODEL table\" />\n","comments":"","x":939.4999351501465,"y":383.5564422607422,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"78a8ab8d.e4a224","type":"switchNode","name":"switch service-data.vnfs.vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":532.3809204101562,"y":1155.9851322174072,"z":"4e44f4dc.d3fbac","wires":[["120eef5e.ea3881","a22c3ff8.e2fb3"]]},{"id":"120eef5e.ea3881","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":758.0952491760254,"y":1123.1279201507568,"z":"4e44f4dc.d3fbac","wires":[["b7dbc5c1.1c67c8"]]},{"id":"b7dbc5c1.1c67c8","type":"set","name":"set vnf-index=0","xml":"<set>\n<parameter name='vnf-index' value='0' />\n","comments":"","x":922.3809700012207,"y":1122.1279983520508,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a22c3ff8.e2fb3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":759.523811340332,"y":1187.4137382507324,"z":"4e44f4dc.d3fbac","wires":[["41b7f789.ac4538"]]},{"id":"93cbad48.90b08","type":"set","name":"set vnf-index = vnf_length","xml":"<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n","comments":"","x":1098.3809661865234,"y":1165.699426651001,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a06ff958.ca8818","type":"for","name":"for each existing VNF","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1083.8094787597656,"y":1211.6993656158447,"z":"4e44f4dc.d3fbac","wires":[["8b898020.e1666"]]},{"id":"41b7f789.ac4538","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":895.2380714416504,"y":1187.413703918457,"z":"4e44f4dc.d3fbac","wires":[["93cbad48.90b08","a06ff958.ca8818"]]},{"id":"8b898020.e1666","type":"switchNode","name":"switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n","comments":"","outputs":1,"x":1438.0952453613281,"y":1211.270845413208,"z":"4e44f4dc.d3fbac","wires":[["b372ccf2.90f5f"]]},{"id":"b372ccf2.90f5f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1732.3810005187988,"y":1210.8423299789429,"z":"4e44f4dc.d3fbac","wires":[["2889470.ea41bba"]]},{"id":"2889470.ea41bba","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n + ' already exists'`\" />\n","comments":"","x":1880.9523620605469,"y":1210.8422775268555,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"11adb872.3cc0d8","type":"comment","name":"make sure this VNF doesn't exist already","info":"","comments":"","x":1425.2379760742188,"y":1168.8422756195068,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"766c94ea.b9611c","type":"set","name":"set vnf-topology data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n","comments":"","x":498.0952033996582,"y":1687.6518993377686,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"434cb265.75e27c","type":"switchNode","name":"switch input vnf-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n","comments":"","outputs":1,"x":510.59522247314453,"y":2049.770956993103,"z":"4e44f4dc.d3fbac","wires":[["e8e240a8.b6802","9b1fc0be.8fa7"]]},{"id":"a6c6204f.95895","type":"get-resource","name":"get-resource cloud region","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $vnf-topology-operation-input.vnf-request-input.aic-cloud-region AND\n\t\t depth='all'\"\n pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":542.738166809082,"y":2945.7706928253174,"z":"4e44f4dc.d3fbac","wires":[["8e720469.5e8cb8","7b05d3d.76e1b2c"]]},{"id":"7b05d3d.76e1b2c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":767.9843597412109,"y":2963.921548843384,"z":"4e44f4dc.d3fbac","wires":[["a42ab710.cce278"]]},{"id":"4676d832.85c178","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error retrieving cloud region from AAI\" />\n","comments":"","x":1069.6510314941406,"y":2963.9215660095215,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8e720469.5e8cb8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":776.912956237793,"y":2922.207282066345,"z":"4e44f4dc.d3fbac","wires":[["e0c152ab.e7e04"]]},{"id":"f16260c8.4591b","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cloud region not found in AAI\" />\n","comments":"","x":1069.9289321899414,"y":2921.512840270996,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b69f4291.61fa5","type":"get-resource","name":"get-resource VF_TO_NETWORK_ROLE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_TO_NETWORK_ROLE_MAPPING WHERE vf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-network-role-mapping[]'>\n\n","comments":"","outputs":1,"x":607.9762496948242,"y":3256.8182125091553,"z":"4e44f4dc.d3fbac","wires":[["60a87727.b01328","35785ae2.8b74a6"]]},{"id":"60a87727.b01328","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":903.7619209289551,"y":3235.532377243042,"z":"4e44f4dc.d3fbac","wires":[["7f628377.de20fc"]]},{"id":"35785ae2.8b74a6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.3333511352539,"y":3279.818090438843,"z":"4e44f4dc.d3fbac","wires":[["cb783055.50a9a"]]},{"id":"7fcd46cd.478d88","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error reading VF_TO_NETWORK_ROLE_MAPPING table\" />\n","comments":"","x":1220.428544998169,"y":3235.342109680176,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7b16dda0.235334","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":716.2383193969727,"y":3728.127547264099,"z":"4e44f4dc.d3fbac","wires":[["9c162cfb.04057","32d1bfdb.27738","7cbe8d03.77d1c4","9ecaa4ff.23c328","4bcf8a69.ae8c44","8025807.9d68d8","ccd49d85.073d1","cdefc051.a04bf"]]},{"id":"7cbe8d03.77d1c4","type":"get-resource","name":"get-resource l3-network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-networks\" \n\t\tkey=\"l3-network.network-role = $db.vf-network-role-mapping[$role-index].network-role\"\n pfx='aai.l3-network' local-only='false'\n>\n","comments":"","outputs":1,"x":949.0953369140625,"y":3407.413411140442,"z":"4e44f4dc.d3fbac","wires":[["9891f515.8ee1c8","94d72e9b.4db64"]]},{"id":"94d72e9b.4db64","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1153.143051147461,"y":3429.5562505722046,"z":"4e44f4dc.d3fbac","wires":[["22276dbf.92cb12"]]},{"id":"91d086d5.905598","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error retrieving l3-network from AAI\" />\n","comments":"","x":1468.143081665039,"y":3429.889594078064,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9891f515.8ee1c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1162.071647644043,"y":3387.841983795166,"z":"4e44f4dc.d3fbac","wires":[["85a5708b.39733"]]},{"id":"b5a9325f.8e06e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No active l3-network found in AAI with cloud_region_id '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + ' and network_role '\n + $db.vf-network-role-mapping[$network-index].network-role`\" />\n","comments":"","x":1466.754277229309,"y":3388.8141202926636,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9c162cfb.04057","type":"set","name":"set vnf-network data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-role'\n value='`$db.vf-network-role-mapping[$role-index].network-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-name'\n value='`$aai.l3-network.l3-network[$db-network-index].network-name`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].neutron-id'\n value='`$aai.l3-network.l3-network[$db-network-index].neutron-network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].network-id'\n value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].contrail-network-fqdn'\n value='`$aai.l3-network.l3-network[$db-network-index].contrail-network-fqdn`' />\n","comments":"","x":938.2859268188477,"y":3894.4136543273926,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5551cb18.77a4d4","type":"for","name":"for each cloud-region availability zone","xml":"<for index='idx' start='0' end='`$aai.cloud-region.availability-zones.availability-zone_length`' >\n","comments":"","outputs":1,"x":535.0002975463867,"y":4286.5324420928955,"z":"4e44f4dc.d3fbac","wires":[["858bb9df.ef0b98"]]},{"id":"420bf10a.3f71f","type":"set","name":"set availability-zone","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone[$idx]'\n value='`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`' />\n","comments":"","x":996.6669807434082,"y":4255.865856170654,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"27e79a76.199b26","type":"set","name":"set vnf-parameters-data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n","comments":"","x":494.61922454833984,"y":4136.484802246094,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cbb1f011.821ee","type":"save","name":"save generic-vnf l3-network relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$vnf-nw-index].network-id`\" />\n","comments":"","outputs":1,"x":961.1907577514648,"y":4430.294654846191,"z":"4e44f4dc.d3fbac","wires":[["32a6aa28.4d7b46","22485f0b.22ad6"]]},{"id":"b4645e2b.83793","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":454.42877197265625,"y":4895.913044929504,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4cef2e4e.2eeb7","type":"set","name":"set vnf-level-oper-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":544.2422180175781,"y":4798.250525474548,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b1c5abc7.29b208","type":"for","name":"for each network-role","xml":"<for index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>","comments":"","outputs":1,"x":499.5716247558594,"y":3728.1277503967285,"z":"4e44f4dc.d3fbac","wires":[["7b16dda0.235334"]]},{"id":"f416891b.c49b38","type":"set","name":"set network-index = 0","xml":"<set>\n<parameter name='network-index' value='0' />\n","comments":"","x":510.40474700927734,"y":3310.8660068511963,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"32d1bfdb.27738","type":"set","name":"increment network-index","xml":"<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n","comments":"","x":948.6192855834961,"y":4049.175630569458,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"c969fd25.a5dbc","type":"set","name":"set vnf-network_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length'\n value='`$network-index`' />\n","comments":"","x":493.47631072998047,"y":4086.4848461151123,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"68282397.14338c","type":"set","name":"copy input data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n","comments":"","x":459.76204681396484,"y":4745.913356781006,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"19423cf4.442143","type":"for","name":"for each vnf-network","xml":"<for index='vnf-nw-index' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network_length`' >\n","comments":"","outputs":1,"x":484.19066619873047,"y":4429.294570922852,"z":"4e44f4dc.d3fbac","wires":[["5f481128.d6fd6"]]},{"id":"5f481128.d6fd6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":687.857307434082,"y":4429.294531822205,"z":"4e44f4dc.d3fbac","wires":[["cbb1f011.821ee"]]},{"id":"59cc3158.776f9","type":"set","name":"set new vnf_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n","comments":"","x":481.02384185791016,"y":1208.0090227127075,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"2eaa370.dfe9cca","type":"for","name":"for each cloud-region relationship","xml":"<for index='idx' start='0' end='`$aai.cloud-region.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":555.5952911376953,"y":3033.008864402771,"z":"4e44f4dc.d3fbac","wires":[["e5925a76.815c58"]]},{"id":"e5925a76.815c58","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n","comments":"","outputs":1,"x":803.2738342285156,"y":3032.7587938308716,"z":"4e44f4dc.d3fbac","wires":[["3699dec9.348a82"]]},{"id":"3699dec9.348a82","type":"outcome","name":"complex","xml":"<outcome value='complex'>\n","comments":"","outputs":1,"x":972.7381553649902,"y":3032.1516160964966,"z":"4e44f4dc.d3fbac","wires":[["ed1ad94c.99ecb8"]]},{"id":"98e2f8af.a2f578","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli'\n value='`$aai-uid-split[$aai-uid-split_length - 1]`' />\n","comments":"","x":1293.4524536132812,"y":3031.8182735443115,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ab5ed0d2.dee8c","type":"switchNode","name":"switch aic-clli","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-clli`'>\n","comments":"","outputs":1,"x":488.64291763305664,"y":3146.1039962768555,"z":"4e44f4dc.d3fbac","wires":[["cd42ad7f.c7287"]]},{"id":"cd42ad7f.c7287","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":636.7857513427734,"y":3146.103979110718,"z":"4e44f4dc.d3fbac","wires":[["b6ad7e13.cbdb8"]]},{"id":"f7a16dbf.78dcf","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unable to find aic-clli in AAI for aic-cloud-region ' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n","comments":"","x":927.2619438171387,"y":3147.3420248031616,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"817e056c.b110d8","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$db.vf-model.invariant-uuid`' />\n","comments":"","x":915.0954627990723,"y":2504.9612531661987,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4527349c.9a52ec","type":"for","name":"for each l3-network","xml":"<for index='db-network-index' start='0' end='`$aai.l3-network.l3-network_length`' >\n","comments":"","outputs":1,"x":1058.5479049682617,"y":3718.9850330352783,"z":"4e44f4dc.d3fbac","wires":[["45b722b6.db776c"]]},{"id":"2b805935.a35cb6","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n","comments":"","outputs":1,"x":1477.1190757751465,"y":3653.5564975738525,"z":"4e44f4dc.d3fbac","wires":[["b291cd89.5e04","688efdb4.26b7f4","1dbdf0e3.6d4c4f","3bfc9f47.c3df5","8f5abb8c.6c74f8"]]},{"id":"b291cd89.5e04","type":"outcome","name":"Pending Delete","xml":"<outcome value='Pending Delete'>\n","comments":"","outputs":1,"x":1717.785945892334,"y":3695.2230014801025,"z":"4e44f4dc.d3fbac","wires":[["757bdd4d.6abe74"]]},{"id":"688efdb4.26b7f4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1690.6430854797363,"y":3746.222982406616,"z":"4e44f4dc.d3fbac","wires":[["47f9fe3b.cd325"]]},{"id":"9833efbf.69304","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].related-to`'>\n","comments":"","outputs":1,"x":2226.3575325012207,"y":3714.794277191162,"z":"4e44f4dc.d3fbac","wires":[["440449fc.68ede8"]]},{"id":"47f9fe3b.cd325","type":"for","name":"for each relationship","xml":"<for silentFailure='true' index='db-rel-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":1860.6429977416992,"y":3745.7943592071533,"z":"4e44f4dc.d3fbac","wires":[["46c88819.e15b38"]]},{"id":"440449fc.68ede8","type":"outcome","name":"cloud-region","xml":"<outcome value='cloud-region'>\n","comments":"","outputs":1,"x":2400.6431732177734,"y":3714.3657236099243,"z":"4e44f4dc.d3fbac","wires":[["3d11cc80.c4e0c4"]]},{"id":"3d11cc80.c4e0c4","type":"for","name":"for each relationship data","xml":"<for silentFailure='true' index='db-data-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data_length`' >\n","comments":"","outputs":1,"x":2597.785873413086,"y":3714.7941913604736,"z":"4e44f4dc.d3fbac","wires":[["ced7a748.131728"]]},{"id":"ced7a748.131728","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-key`'>\n","comments":"","outputs":1,"x":2829.2144737243652,"y":3714.365566253662,"z":"4e44f4dc.d3fbac","wires":[["92fbe3e9.e193d"]]},{"id":"92fbe3e9.e193d","type":"outcome","name":"cloud-region.cloud-region-id","xml":"<outcome value='cloud-region.cloud-region-id'>\n","comments":"","outputs":1,"x":3070.643039703369,"y":3714.365662574768,"z":"4e44f4dc.d3fbac","wires":[["3d76bce7.883fc4"]]},{"id":"3d76bce7.883fc4","type":"switchNode","name":"switch relationship-value == cloud-region-id","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value == $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":3374.9289588928223,"y":3714.2227182388306,"z":"4e44f4dc.d3fbac","wires":[["5f95e58e.702e5c"]]},{"id":"5f95e58e.702e5c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3079.929096221924,"y":3831.8656721115112,"z":"4e44f4dc.d3fbac","wires":[["a7f11203.5d359"]]},{"id":"9ecaa4ff.23c328","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":894.762077331543,"y":3650.2706775665283,"z":"4e44f4dc.d3fbac","wires":[["4527349c.9a52ec","be0cee42.5ab7e"]]},{"id":"4bcf8a69.ae8c44","type":"set","name":"set l3-network-id = -1","xml":"<set>\n<parameter name='l3-network-id' value='-1' />\n","comments":"","x":939.0954360961914,"y":3522.1753311157227,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a7f11203.5d359","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3225.7620735168457,"y":3831.3417806625366,"z":"4e44f4dc.d3fbac","wires":[["afc40b2f.c29e28","6f9b0a93.f694a4","2a1ad752.bfcd38"]]},{"id":"afc40b2f.c29e28","type":"set","name":"set l3-network-id = this l3-network","xml":"<set>\n<parameter name='l3-network-id' value='`$aai.l3-network.l3-network[$db-network-index].network-id`' />\n","comments":"","x":3461.0000762939453,"y":3793.4847497940063,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8025807.9d68d8","type":"switchNode","name":"switch l3-network-id","xml":"<switch test='`$l3-network-id`'>\n","comments":"","outputs":1,"x":936.0953598022461,"y":3845.842372894287,"z":"4e44f4dc.d3fbac","wires":[["aa114731.395c08"]]},{"id":"aa114731.395c08","type":"outcome","name":"-1","xml":"<outcome value='-1'>\n","comments":"","outputs":1,"x":1106.0953102111816,"y":3845.842128753662,"z":"4e44f4dc.d3fbac","wires":[["2fba815e.79c32e"]]},{"id":"6395a483.342b9c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unable to find l3-network in AAI for network role ' + $db.vf-network-role-mapping[$role-index].network-role`\" />\n","comments":"","x":1389.4286727905273,"y":3845.8423776626587,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"2dd176ed.0041ba","type":"switchNode","name":"switch input model-invariant-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n","comments":"","outputs":1,"x":558.9525375366211,"y":2527.7856969833374,"z":"4e44f4dc.d3fbac","wires":[["d5c66a20.2113f8","4eb518d2.0c93e8"]]},{"id":"d5c66a20.2113f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":764.6192092895508,"y":2504.9286603927612,"z":"4e44f4dc.d3fbac","wires":[["817e056c.b110d8"]]},{"id":"4eb518d2.0c93e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":766.0478057861328,"y":2549.2142515182495,"z":"4e44f4dc.d3fbac","wires":[["7ce719fb.9a6228"]]},{"id":"7ce719fb.9a6228","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n","comments":"","x":920.3335418701172,"y":2548.6428236961365,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ef5faa7d.94cb58","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$db.vf-model.uuid`' />\n","comments":"","x":916.0477333068848,"y":2593.4999294281006,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"acbd5170.3e4c4","type":"switchNode","name":"switch input model-uuid","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n","comments":"","outputs":1,"x":531.5715560913086,"y":2616.3244342803955,"z":"4e44f4dc.d3fbac","wires":[["ce65d89f.20afc8","34fc501b.a39a8"]]},{"id":"ce65d89f.20afc8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":765.5715293884277,"y":2593.467366218567,"z":"4e44f4dc.d3fbac","wires":[["ef5faa7d.94cb58"]]},{"id":"34fc501b.a39a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":767.0001258850098,"y":2637.752957344055,"z":"4e44f4dc.d3fbac","wires":[["f5981394.788ef"]]},{"id":"f5981394.788ef","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n","comments":"","x":921.2858619689941,"y":2637.181529521942,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"538946a2.181668","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$db.vf-model.version`' />\n","comments":"","x":913.1906661987305,"y":2682.3571367263794,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"60684400.780c7c","type":"switchNode","name":"switch input model-version","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n","comments":"","outputs":1,"x":539.714427947998,"y":2705.1815814971924,"z":"4e44f4dc.d3fbac","wires":[["e137a9dc.787888","5fc591ca.bc88b"]]},{"id":"e137a9dc.787888","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":762.714412689209,"y":2682.324543952942,"z":"4e44f4dc.d3fbac","wires":[["538946a2.181668"]]},{"id":"5fc591ca.bc88b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.143009185791,"y":2726.61013507843,"z":"4e44f4dc.d3fbac","wires":[["b9a36199.dc978"]]},{"id":"b9a36199.dc978","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n","comments":"","x":918.4287452697754,"y":2726.038707256317,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"855b2ca8.132f9","type":"set","name":"set from DB","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$db.vf-model.name`' />\n","comments":"","x":913.1906661987305,"y":2769.4999589920044,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"31bebad4.8a5896","type":"switchNode","name":"switch input model-name","xml":"<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n","comments":"","outputs":1,"x":534.714427947998,"y":2792.3244037628174,"z":"4e44f4dc.d3fbac","wires":[["7a7f7561.1b9f2c","af9f8b2b.cd7db8"]]},{"id":"7a7f7561.1b9f2c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":762.714412689209,"y":2769.467366218567,"z":"4e44f4dc.d3fbac","wires":[["855b2ca8.132f9"]]},{"id":"af9f8b2b.cd7db8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":764.143009185791,"y":2813.752957344055,"z":"4e44f4dc.d3fbac","wires":[["f010777f.4fc4a8"]]},{"id":"f010777f.4fc4a8","type":"set","name":"set from input","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n","comments":"","x":918.4287452697754,"y":2813.181529521942,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"757bdd4d.6abe74","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1871.0000381469727,"y":3695.999878883362,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"8f5abb8c.6c74f8","type":"outcome","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1715.6666793823242,"y":3650.9997930526733,"z":"4e44f4dc.d3fbac","wires":[["689950a3.df60a"]]},{"id":"689950a3.df60a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1870.880771636963,"y":3651.7766704559326,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"3bfc9f47.c3df5","type":"outcome","name":"Pending Create","xml":"<outcome value='Pending Create'>\n","comments":"","outputs":1,"x":1717.6666793823242,"y":3607.6662969589233,"z":"4e44f4dc.d3fbac","wires":[["ea88d2ba.493d6"]]},{"id":"ea88d2ba.493d6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1870.880771636963,"y":3608.4431743621826,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"1dbdf0e3.6d4c4f","type":"outcome","name":"PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":1717.6666793823242,"y":3564.3330450057983,"z":"4e44f4dc.d3fbac","wires":[["8104066e.259008"]]},{"id":"8104066e.259008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1870.880771636963,"y":3565.1099224090576,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"fe91b2bf.8c099","type":"for","name":"for each A&AI subnet","xml":"<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[0].subnets.subnet_length`' >\n","comments":"","outputs":1,"x":1404.047706604004,"y":3985.0472140312195,"z":"4e44f4dc.d3fbac","wires":[["b10f2375.b9afa"]]},{"id":"53c17453.f0880c","type":"set","name":"set subnet_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n value='`$aai.l3-network.l3-network[0].subnets.subnet_length`' />\n","comments":"","x":1392.7142715454102,"y":4030.0472960472107,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"438000d4.31b1e","type":"set","name":"set availability-zones.max-count and length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.max-count'\n value='`$db.vf-model.avail-zone-max-count`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.availability-zones.availability-zone_length'\n value='`$aai.cloud-region.availability-zones.availability-zone_length`' />\n","comments":"","x":554.6668014526367,"y":4374.547909736633,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6f6caf00.d957c","type":"set","name":"set vnf-name","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name'\n value='`$tmp.vnf-name`' />\n","comments":"","x":495.8333511352539,"y":2461.8334608078003,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"277ce9ee.277656","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"vnf-name\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<!-- <parameter name=\"operational-status\" value=\"out-of-service-path\" /> -->\n<parameter name=\"equipment-role\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role`\" />\n<parameter name=\"model-invariant-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid`\" />\n<parameter name=\"model-customization-id\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n","comments":"","outputs":1,"x":475.0000686645508,"y":4584.213672637939,"z":"4e44f4dc.d3fbac","wires":[["7a3c612.03fada","d92cf5a6.33b858"]]},{"id":"56e0bd4b.bd3f64","type":"set","name":"set vnf-object-path","xml":"<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology'`\"/>\n\n","comments":"","x":475.00010681152344,"y":4514.214155197144,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"58f81e72.df87b","type":"set","name":"set vnf-id","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n","comments":"","x":484.1666946411133,"y":2413.5000038146973,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"719fd6d4.9a4d78","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-viprend.log' />\n","comments":"","outputs":1,"x":449.33349990844727,"y":4844.690294265747,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"9263c515.503118","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1511.6669120788574,"y":4450.880569458008,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"32a6aa28.4d7b46","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1211.024112701416,"y":4407.833230018616,"z":"4e44f4dc.d3fbac","wires":[["672f3870.869518"]]},{"id":"22485f0b.22ad6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1219.5955429077148,"y":4452.1189432144165,"z":"4e44f4dc.d3fbac","wires":[["6e62ccc6.dc7f34"]]},{"id":"32930b6a.86e284","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n","comments":"","x":1514.3575057983398,"y":4407.642774581909,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3c4d390f.0ff276","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":946.6668472290039,"y":4604.214105606079,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7a3c612.03fada","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":649.3573989868164,"y":4562.833268165588,"z":"4e44f4dc.d3fbac","wires":[["db6c1834.e91948"]]},{"id":"d92cf5a6.33b858","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":657.9288291931152,"y":4607.118981361389,"z":"4e44f4dc.d3fbac","wires":[["ec9973e.c6a799"]]},{"id":"7baf675.e9c2498","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating selflink in generic-vnf in AAI\" />\n","comments":"","x":949.3574409484863,"y":4560.9763107299805,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"1fd770ea.bfd8af","type":"set","name":"set model-customization-uuid","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n","comments":"","x":547.5000152587891,"y":2865.1666078567505,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"703de5d6.b6b11c","type":"execute","name":"split related-link","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n <parameter name='regex' value='/' />\n","comments":"","outputs":1,"x":1312.8333129882812,"y":2986.5801916122437,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"ed1ad94c.99ecb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1132.500015258789,"y":3033.24697971344,"z":"4e44f4dc.d3fbac","wires":[["703de5d6.b6b11c","98e2f8af.a2f578","62cd4dc6.bccf24"]]},{"id":"62cd4dc6.bccf24","type":"break","name":"break","xml":"<break>\n","comments":"","x":1282.4999771118164,"y":3076.580276489258,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"858bb9df.ef0b98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":786.6667404174805,"y":4285.628026008606,"z":"4e44f4dc.d3fbac","wires":[["420bf10a.3f71f","e9021688.b099b8"]]},{"id":"e9021688.b099b8","type":"save","name":"save generic-vnf availability-zone relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n <parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$aai.cloud-region.availability-zones.availability-zone[$idx].availability-zone-name`\" />\n","comments":"","outputs":1,"x":1080.000129699707,"y":4308.961480140686,"z":"4e44f4dc.d3fbac","wires":[["3a86920a.c74fce","85b44524.f59068"]]},{"id":"2639188b.f42278","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1637.1427917480469,"y":4332.880808830261,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3a86920a.c74fce","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1344.833381652832,"y":4289.833302497864,"z":"4e44f4dc.d3fbac","wires":[["c2464793.9ffc08"]]},{"id":"85b44524.f59068","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1353.4048118591309,"y":4334.119015693665,"z":"4e44f4dc.d3fbac","wires":[["9d10abef.aa9d68"]]},{"id":"2754abb3.b85874","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating generic-vnf in AAI\" />\n","comments":"","x":1639.8333854675293,"y":4289.643013954163,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cb783055.50a9a","type":"set","name":"set mapping rows to 0","xml":"<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n","comments":"","x":1106.3094863891602,"y":3279.437578201294,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"183d18f7.8083e7","type":"switchNode","name":"switch AAI availability-zone_length","xml":"<switch test='`$aai.cloud-region.availability-zones.availability-zone_length`'>\n","comments":"","outputs":1,"x":527.3810272216797,"y":4189.437612533569,"z":"4e44f4dc.d3fbac","wires":[["bd16fb24.0fe038"]]},{"id":"bd16fb24.0fe038","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":745.9524459838867,"y":4189.009021759033,"z":"4e44f4dc.d3fbac","wires":[["44f8e0c6.bf172"]]},{"id":"a4deaa00.e82908","type":"set","name":"set availability-zone_length to 0","xml":"<set>\n<parameter name='aai.cloud-region.availability-zones.availability-zone_length' value='0' />\n","comments":"","x":1347.381088256836,"y":4207.58025932312,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"44f8e0c6.bf172","type":"switchNode","name":"switch AZ max count > 0","xml":"<switch test='`$db.vf-model.avail-zone-max-count &gt; 0`'>\n","comments":"","outputs":1,"x":934.5239181518555,"y":4189.437333583832,"z":"4e44f4dc.d3fbac","wires":[["d06ce29c.e7c56","91254f4.8fe1bb"]]},{"id":"d06ce29c.e7c56","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1137.381025314331,"y":4163.723083496094,"z":"4e44f4dc.d3fbac","wires":[["2bf16ac7.c29516"]]},{"id":"91254f4.8fe1bb","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1138.8096466064453,"y":4208.00883102417,"z":"4e44f4dc.d3fbac","wires":[["a4deaa00.e82908"]]},{"id":"66145063.39707","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No availability zones found in AAI for cloud region '\n + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" />\n","comments":"","x":1428.8095321655273,"y":4161.770775794983,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a0fc8588.9798e8","type":"execute","name":"execute PropertiesNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":495.95240020751953,"y":233.84224128723145,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"e8e240a8.b6802","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":712.6190414428711,"y":1863.2470073699951,"z":"4e44f4dc.d3fbac","wires":[["fda0d94d.246058"]]},{"id":"6ba58c99.3d6c54","type":"switchNode","name":"switch ecomp-naming","xml":"<switch test='`$db.vf-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1090.2384300231934,"y":1763.961443901062,"z":"4e44f4dc.d3fbac","wires":[["6bc3ca08.30d814","1bd7e0e4.afcd3f","59311d10.015684"]]},{"id":"fda0d94d.246058","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":858.3335418701172,"y":1863.247124671936,"z":"4e44f4dc.d3fbac","wires":[["6ba58c99.3d6c54","68402099.cbb6e"]]},{"id":"1bd7e0e4.afcd3f","type":"outcome","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1276.6668167114258,"y":1764.4375705718994,"z":"4e44f4dc.d3fbac","wires":[["8abd4d2f.9ce9"]]},{"id":"8abd4d2f.9ce9","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"No vnf-name was received but ecomp-generated-naming is not Y\" />\n","comments":"","x":1430.9526023864746,"y":1783.009015083313,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6bc3ca08.30d814","type":"outcome","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1276.6668090820312,"y":1723.0090246200562,"z":"4e44f4dc.d3fbac","wires":[["d6abe0cd.f17a7"]]},{"id":"59311d10.015684","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1276.6667556762695,"y":1807.2947025299072,"z":"4e44f4dc.d3fbac","wires":[["8abd4d2f.9ce9"]]},{"id":"d6abe0cd.f17a7","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1413.809726715088,"y":1723.151891708374,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"9b1fc0be.8fa7","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":697.8097686767578,"y":2217.866183280945,"z":"4e44f4dc.d3fbac","wires":[["68621ac1.29c734"]]},{"id":"68621ac1.29c734","type":"set","name":"set tmp.vnf-name","xml":"<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-request-input.vnf-name`\" />\n","comments":"","x":863.5717315673828,"y":2216.7234535217285,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e954ebf6.540d38","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n","comments":"","outputs":1,"x":1748.643009185791,"y":1913.0089440345764,"z":"4e44f4dc.d3fbac","wires":[["e58cf0cd.381b5","7d1e3ef3.b14f9"]]},{"id":"e58cf0cd.381b5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2025.7858123779297,"y":1886.5804772377014,"z":"4e44f4dc.d3fbac","wires":[["f78aa92e.072f88"]]},{"id":"7d1e3ef3.b14f9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2030.5475578308105,"y":1931.9613881111145,"z":"4e44f4dc.d3fbac","wires":[["67192240.ef86fc"]]},{"id":"8e80323.5aec3d","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.action' value='ASSIGN' />\n<parameter name='generate-unique-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='generate-unique-name-input.index-table-name' value='VNF_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='vnf_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='VNF_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`'z' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region + $db.vf-model.nf-code`\" />\n","comments":"","x":1703.6432609558105,"y":1864.1042637825012,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"67192240.ef86fc","type":"set","name":"set tmp.vnf-name to generated name","xml":"<set>\n<parameter name='tmp.vnf-name' value='`$generate-unique-name-output.generated-name`' />\n","comments":"","x":2253.4519538879395,"y":1931.4374632835388,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f78aa92e.072f88","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`$generate-unique-name-output.error-message`\" />\n","comments":"","x":2179.3572731018066,"y":1886.0089869499207,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"68402099.cbb6e","type":"switchNode","name":"switch naming-policy","xml":"<switch test='`$db.vf-model.naming-policy`'>\n","comments":"","outputs":1,"x":1088.024013519287,"y":1972.2470607757568,"z":"4e44f4dc.d3fbac","wires":[["a1c920b0.57e32","54eaf052.a1d45"]]},{"id":"a1c920b0.57e32","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1278.0239448547363,"y":1893.675615310669,"z":"4e44f4dc.d3fbac","wires":[["bccad88.6a02328"]]},{"id":"54eaf052.a1d45","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1278.2621841430664,"y":2021.056559562683,"z":"4e44f4dc.d3fbac","wires":[["334f9686.9dd50a"]]},{"id":"bccad88.6a02328","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1430.8812141418457,"y":1892.2470817565918,"z":"4e44f4dc.d3fbac","wires":[["8e80323.5aec3d","e954ebf6.540d38"]]},{"id":"f9872f82.e6538","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":1769.9291381835938,"y":2036.7709412574768,"z":"4e44f4dc.d3fbac","wires":[["63e66d57.ad35d4","47bb6c9e.5da7d4"]]},{"id":"334f9686.9dd50a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1432.786033630371,"y":2021.056559562683,"z":"4e44f4dc.d3fbac","wires":[["7ca84586.ce108c","f9872f82.e6538"]]},{"id":"7ca84586.ce108c","type":"set","name":"set variables for generating name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.policy-instance-name' value='`$db.vf-model.naming-policy`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='ASSIGN' />\n<parameter name='naming-policy-generate-name-input.query-parameter' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />","comments":"","x":1679.929054260254,"y":1991.05659532547,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"1c84fc68.b37734","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Unable to generate VNF name\" />\n","comments":"","x":2212.786087036133,"y":2010.6278791427612,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7fa1a5bb.63414c","type":"set","name":"set tmp.vnf-name to generated name","xml":"<set>\n<parameter name='tmp.vnf-name' value='`$naming-policy-generate-name-output.vnf-name`' />\n","comments":"","x":2291.214656829834,"y":2055.3421812057495,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"159fe4a1.e3dfcb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1802.6188735961914,"y":2735.746706008911,"z":"4e44f4dc.d3fbac","wires":[["10cd1a1d.c198e6","1a70e102.4df24f"]]},{"id":"1a70e102.4df24f","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":2126.9045791625977,"y":2762.3182373046875,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"10cd1a1d.c198e6","type":"set","name":"set variables for deleting name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.naming-type' value='VNF' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n","comments":"","x":2028.3331985473633,"y":2715.175308227539,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b587067c.c12fd8","type":"comment","name":"Unassign the VNF name","info":"","comments":"","x":1894.2855224609375,"y":2655.746808052063,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e0c152ab.e7e04","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":914.2857818603516,"y":2922.4135060310364,"z":"4e44f4dc.d3fbac","wires":[["f16260c8.4591b","159fe4a1.e3dfcb"]]},{"id":"a42ab710.cce278","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":912.6190643310547,"y":2964.080258369446,"z":"4e44f4dc.d3fbac","wires":[["4676d832.85c178","159fe4a1.e3dfcb"]]},{"id":"b6ad7e13.cbdb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":769.2857360839844,"y":3145.7468881607056,"z":"4e44f4dc.d3fbac","wires":[["f7a16dbf.78dcf","159fe4a1.e3dfcb"]]},{"id":"7f628377.de20fc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1060.9524230957031,"y":3235.7468881607056,"z":"4e44f4dc.d3fbac","wires":[["7fcd46cd.478d88","159fe4a1.e3dfcb"]]},{"id":"85a5708b.39733","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1297.6190490722656,"y":3388.0801401138306,"z":"4e44f4dc.d3fbac","wires":[["b5a9325f.8e06e","159fe4a1.e3dfcb"]]},{"id":"22276dbf.92cb12","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1295.9523315429688,"y":3429.74689245224,"z":"4e44f4dc.d3fbac","wires":[["91d086d5.905598","159fe4a1.e3dfcb"]]},{"id":"2fba815e.79c32e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1239.2856750488281,"y":3845.7468881607056,"z":"4e44f4dc.d3fbac","wires":[["6395a483.342b9c","159fe4a1.e3dfcb"]]},{"id":"2bf16ac7.c29516","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1272.6190490722656,"y":4162.413392066956,"z":"4e44f4dc.d3fbac","wires":[["66145063.39707","159fe4a1.e3dfcb"]]},{"id":"c2464793.9ffc08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1492.6190490722656,"y":4290.413392066956,"z":"4e44f4dc.d3fbac","wires":[["2754abb3.b85874","159fe4a1.e3dfcb"]]},{"id":"9d10abef.aa9d68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1490.9523315429688,"y":4334.080144405365,"z":"4e44f4dc.d3fbac","wires":[["2639188b.f42278","159fe4a1.e3dfcb"]]},{"id":"672f3870.869518","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1355.9524230957031,"y":4407.413392066956,"z":"4e44f4dc.d3fbac","wires":[["32930b6a.86e284","159fe4a1.e3dfcb"]]},{"id":"6e62ccc6.dc7f34","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1354.2857055664062,"y":4451.080144405365,"z":"4e44f4dc.d3fbac","wires":[["9263c515.503118","159fe4a1.e3dfcb"]]},{"id":"db6c1834.e91948","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":802.619083404541,"y":4562.413507461548,"z":"4e44f4dc.d3fbac","wires":[["7baf675.e9c2498","159fe4a1.e3dfcb"]]},{"id":"ec9973e.c6a799","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":800.9523658752441,"y":4606.080259799957,"z":"4e44f4dc.d3fbac","wires":[["3c4d390f.0ff276","159fe4a1.e3dfcb"]]},{"id":"63e66d57.ad35d4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2068.095184326172,"y":2011.6994485855103,"z":"4e44f4dc.d3fbac","wires":[["1c84fc68.b37734"]]},{"id":"47bb6c9e.5da7d4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2072.8569297790527,"y":2057.0803594589233,"z":"4e44f4dc.d3fbac","wires":[["7fa1a5bb.63414c"]]},{"id":"3e07f67c.a7124a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":723.3332824707031,"y":1366.666666984558,"z":"4e44f4dc.d3fbac","wires":[["baf35ab4.de3628","1a10c87.b7e5338"]]},{"id":"537d84c0.249e5c","type":"for","name":"for each instance group id","xml":"<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n","comments":"","outputs":1,"x":506.66662979125977,"y":1367.333312034607,"z":"4e44f4dc.d3fbac","wires":[["3e07f67c.a7124a"]]},{"id":"baf35ab4.de3628","type":"get-resource","name":"get-resource instance-group","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"instance-group\" \n\t\tkey=\"instance-group.id = $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\"\n pfx='aai.instance-group' local-only='false' >\n\n","comments":"","outputs":1,"x":954.6666412353516,"y":1290.0000486373901,"z":"4e44f4dc.d3fbac","wires":[["5a73dff4.a3a92","1cc3de9c.f21291"]]},{"id":"1cc3de9c.f21291","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1168.9128494262695,"y":1308.150897026062,"z":"4e44f4dc.d3fbac","wires":[["8ab060f.9d1f2a"]]},{"id":"5a73dff4.a3a92","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1177.8414459228516,"y":1266.4366302490234,"z":"4e44f4dc.d3fbac","wires":[["6cb384a2.611ddc"]]},{"id":"6cb384a2.611ddc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Cannot find instance group id ' +\n $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n + ' in AAI'`\" />\n","comments":"","x":1350.6666564941406,"y":1264.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8ab060f.9d1f2a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error retrieving instance-group from AAI\" />\n","comments":"","x":1350.6666564941406,"y":1308.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"4cc45d68.737674","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnf.log' />\n","comments":"","outputs":1,"x":485.8095016479492,"y":2334.2858095169067,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"1a10c87.b7e5338","type":"for","name":"for each relationship","xml":"<for index='rel-index' start='0' end='`$aai.instance-group.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":928.3332977294922,"y":1438.3333644866943,"z":"4e44f4dc.d3fbac","wires":[["334e1afb.9c1a56"]]},{"id":"334e1afb.9c1a56","type":"switchNode","name":"switch related-to","xml":"<switch test='`$aai.instance-group.relationship-list.relationship[$rel-index].related-to`'>\n","comments":"","outputs":1,"x":1141.6667404174805,"y":1438.333303451538,"z":"4e44f4dc.d3fbac","wires":[["9ec622df.a4f79"]]},{"id":"9ec622df.a4f79","type":"outcome","name":"collection","xml":"<outcome value='collection'>\n","comments":"","outputs":1,"x":1313.3333778381348,"y":1438.3333854675293,"z":"4e44f4dc.d3fbac","wires":[["f0af7cfb.630f1"]]},{"id":"f0af7cfb.630f1","type":"get-resource","name":"get-resource collection","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"collection\" \n\t\tkey=\"collection.collection-id = $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n pfx='aai.collection' local-only='false' >\n\n","comments":"","outputs":1,"x":1533.3332824707031,"y":1436.6666469573975,"z":"4e44f4dc.d3fbac","wires":[["5a9a2b.446c05d4","ed35d4f2.f5a3d8","86f300a3.7cafb"]]},{"id":"ed35d4f2.f5a3d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1747.579475402832,"y":1388.1508359909058,"z":"4e44f4dc.d3fbac","wires":[["58b0fdde.ff35b4"]]},{"id":"5a9a2b.446c05d4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1756.508071899414,"y":1346.4365692138672,"z":"4e44f4dc.d3fbac","wires":[["a61328d2.f754c8"]]},{"id":"a61328d2.f754c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Cannot find collection ' +\n $aai.instance-group.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\n + ' in AAI'`\" />\n","comments":"","x":1913.3332824707031,"y":1345.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"58b0fdde.ff35b4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"System error retrieving collection from AAI\" />\n","comments":"","x":1913.3332824707031,"y":1389.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"86f300a3.7cafb","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1746.6666831970215,"y":1525.000012397766,"z":"4e44f4dc.d3fbac","wires":[["81df8930.31e0f8"]]},{"id":"81df8930.31e0f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.9998245239258,"y":1524.3333082199097,"z":"4e44f4dc.d3fbac","wires":[["8a522d26.71257","a4f68cb7.668a2","8d0504d7.cdc028","cc147160.20bfe","3198ae9f.e95542"]]},{"id":"8a522d26.71257","type":"for","name":"for each network-instance-group","xml":"<for silentFailure='true' index='nig-index' start='0' end='`$service-data.network-instance-groups.network-instance-group_length`' >\n","comments":"","outputs":1,"x":2138.333168029785,"y":1475.0000562667847,"z":"4e44f4dc.d3fbac","wires":[["9063a8ee.f7faa8"]]},{"id":"a4f68cb7.668a2","type":"set","name":"set found-network-instance-group to false","xml":"<set>\n<parameter name='found-network-instance-group' value='false' />\n","comments":"","x":2168.3331298828125,"y":1428.3334283828735,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"9063a8ee.f7faa8","type":"switchNode","name":"network-instance-group-id matches?","xml":"<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n == $service-data.network-instance-groups.network-instance-group[$nig-index].network-instance-group-id`'>\n","comments":"","outputs":1,"x":2454.9996795654297,"y":1475.0000553131104,"z":"4e44f4dc.d3fbac","wires":[["98d54f6d.c932"]]},{"id":"98d54f6d.c932","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2676.666458129883,"y":1475.0000200271606,"z":"4e44f4dc.d3fbac","wires":[["a9385545.8b31c8"]]},{"id":"a9385545.8b31c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2806.666488647461,"y":1475.000096321106,"z":"4e44f4dc.d3fbac","wires":[["85ee6cee.1bd2a","a14aee8f.5893a"]]},{"id":"85ee6cee.1bd2a","type":"set","name":"set found-network-instance-group to true","xml":"<set>\n<parameter name='found-network-instance-group' value='true' />\n","comments":"","x":3039.9996643066406,"y":1446.6667213439941,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"a14aee8f.5893a","type":"break","name":"break","xml":"<break>\n","comments":"","x":2933.333278656006,"y":1495.0000915527344,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"8d0504d7.cdc028","type":"switchNode","name":"switch found-network-instance-group","xml":"<switch test='`$found-network-instance-group`'>\n","comments":"","outputs":1,"x":2149.999786376953,"y":1525.0000371932983,"z":"4e44f4dc.d3fbac","wires":[["9189bba.faf6f48"]]},{"id":"9189bba.faf6f48","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2371.666633605957,"y":1525.0000596046448,"z":"4e44f4dc.d3fbac","wires":[["520b2234.8e265c"]]},{"id":"520b2234.8e265c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Could not find network instance group ' +\n $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id\n + ' in MD-SAL'`\" />\n","comments":"","x":2518.333206176758,"y":1523.3333940505981,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ed7dcd3d.7a64c","type":"set","name":"set tmp.vnf-network-collection_length to 0","xml":"<set>\n<parameter name='tmp.vnf-network-collection_length' value='0' />\n","comments":"","x":554.9999694824219,"y":1318.3334436416626,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"cc147160.20bfe","type":"set","name":"set vnf-network-collection data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-function'\n value='`$aai.instance-group.instance-group-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-instance-group-id'\n value='`$aai.instance-group.id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-service-instance-id'\n value='`$service-data.network-instance-groups.network-instance-group[$nig-index].service-instance-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection[$tmp.vnf-network-collection_length].network-collection-customization-uuid'\n value='`$aai.collection.collection-customization-id`' />\n","comments":"","x":2130.0001106262207,"y":1573.3333730697632,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3198ae9f.e95542","type":"set","name":"increment tmp.vnf-network-collection_length","xml":"<set>\n<parameter name='tmp.vnf-network-collection_length' value='`$tmp.vnf-network-collection_length + 1`' />\n","comments":"","x":2171.666816711426,"y":1620.0000410079956,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"d4e45ae3.95e8e8","type":"set","name":"set vnf-network-collection_length","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-network-collections.vnf-network-collection_length'\n value='`$tmp.vnf-network-collection_length`' />\n","comments":"","x":534.1666641235352,"y":1575.8333930969238,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5602ea58.f558a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":711.666690826416,"y":4678.809533119202,"z":"4e44f4dc.d3fbac","wires":[["f145731.7dc939"]]},{"id":"569d159b.7974ac","type":"for","name":"for each instance group id","xml":"<for silentFailure='true' index='inst-group-index' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids_length`' >\n","comments":"","outputs":1,"x":495.00003814697266,"y":4679.4761781692505,"z":"4e44f4dc.d3fbac","wires":[["5602ea58.f558a4"]]},{"id":"f145731.7dc939","type":"save","name":"save generic-vnf relationship to instance-group","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"generic-vnf:relationship-list\"\n key=\"generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-information.vnf-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"instance-group\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/instance-groups/instance-group/'\n + $vnf-topology-operation-input.vnf-request-input.vnf-network-instance-group-ids[$inst-group-index].vnf-network-instance-group-id`\" />\n","comments":"","outputs":1,"x":995.0000190734863,"y":4678.333213806152,"z":"4e44f4dc.d3fbac","wires":[["aa364f8f.633a1","d50f251f.b38a38"]]},{"id":"2c0352e1.886b8e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'No generic-vnf found in AAI for vnf ID ' + $service-data.vnfs.vnf[$vnf-index].vnf-id`\" />\n","comments":"","x":1551.666690826416,"y":4696.666466712952,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"aa364f8f.633a1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1254.3572425842285,"y":4655.285629272461,"z":"4e44f4dc.d3fbac","wires":[["b6ef2322.ecde1"]]},{"id":"d50f251f.b38a38","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1262.9286727905273,"y":4699.571342468262,"z":"4e44f4dc.d3fbac","wires":[["c25bd07f.ba3dc"]]},{"id":"39611e1d.841192","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating relationship in generic-vnf in AAI\" />\n","comments":"","x":1554.357292175293,"y":4653.428730010986,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"b6ef2322.ecde1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1407.6189270019531,"y":4654.86586856842,"z":"4e44f4dc.d3fbac","wires":[["39611e1d.841192","159fe4a1.e3dfcb"]]},{"id":"c25bd07f.ba3dc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1405.9522094726562,"y":4698.53262090683,"z":"4e44f4dc.d3fbac","wires":[["2c0352e1.886b8e","159fe4a1.e3dfcb"]]},{"id":"ccd49d85.073d1","type":"switchNode","name":"switch subnet_length","xml":"<switch test='`$aai.l3-network.l3-network[0].subnets.subnet_length`'>\n","comments":"","outputs":1,"x":940.2381057739258,"y":3966.428771018982,"z":"4e44f4dc.d3fbac","wires":[["13f8461f.02754a","4f0f1832.9d6238","4a7eee29.bdad1"]]},{"id":"13f8461f.02754a","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1113.0952682495117,"y":3929.2858304977417,"z":"4e44f4dc.d3fbac","wires":[["d7fec3a.cf03e4"]]},{"id":"4f0f1832.9d6238","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1114.523838043213,"y":3967.856993675232,"z":"4e44f4dc.d3fbac","wires":[["d7fec3a.cf03e4"]]},{"id":"4a7eee29.bdad1","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1113.095302581787,"y":4006.428385734558,"z":"4e44f4dc.d3fbac","wires":[["7e5c1302.e8982c"]]},{"id":"7e5c1302.e8982c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1234.5238571166992,"y":4006.4286527633667,"z":"4e44f4dc.d3fbac","wires":[["fe91b2bf.8c099","53c17453.f0880c"]]},{"id":"d7fec3a.cf03e4","type":"set","name":"set subnet_length to 0","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data_length'\n value='0' />\n","comments":"","x":1305.9524612426758,"y":3937.856993675232,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6d2f55b8.a2759c","type":"switchNode","name":"switch: sdnc-model-name && sdnc-artifact-name != null","xml":"<switch test=\"`$db.vf-model.sdnc-model-name != '' and $db.vf-model.sdnc-artifact-name != ''`\">","comments":"","outputs":1,"x":1539.8175621032715,"y":949.9999332427979,"z":"4e44f4dc.d3fbac","wires":[["6dd97b97.b67924","7c6a046e.7cc64c"]]},{"id":"6dd97b97.b67924","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1842.8889503479004,"y":922.6785984039307,"z":"4e44f4dc.d3fbac","wires":[["5b2ce020.a36b2"]]},{"id":"86ca6d15.0e146","type":"switchNode","name":"switch: param[].name","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$p].name`\">\n","comments":"","outputs":1,"x":1053.9484024047852,"y":598.2024068832397,"z":"4e44f4dc.d3fbac","wires":[["af0da8d9.d8ece8","6b384f33.32a78"]]},{"id":"63f83908.751498","type":"for","name":"for p in vnf-input-parameters,param[]","xml":"<for silentFailure='true' index='p' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >\n","comments":"","outputs":1,"x":760.055549621582,"y":598.7024393081665,"z":"4e44f4dc.d3fbac","wires":[["86ca6d15.0e146"]]},{"id":"e3aa680f.7c2008","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1250.2581176757812,"y":949.9521970748901,"z":"4e44f4dc.d3fbac","wires":[["6d2f55b8.a2759c"]]},{"id":"542091af.e959d","type":"call","name":"call self-serve-vnf-assign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-assign' mode='sync' >\n","comments":"","outputs":1,"x":2132.257625579834,"y":717.845365524292,"z":"4e44f4dc.d3fbac","wires":[["a34d6a59.d39c18"]]},{"id":"ecba7f02.a0e2c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Failed to create self-serve assignment for vnf with vnf-id=' + $vnf-topology-operation-input.vnf-information.vnf-id`\" />\n","comments":"","x":2516.329002380371,"y":717.8453159332275,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"7c6a046e.7cc64c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1845.78169631958,"y":979.2856025695801,"z":"4e44f4dc.d3fbac","wires":[["ae713fba.3df7f"]]},{"id":"84263c0c.96c43","type":"set","name":"set tmp.exist.sdnc-artifact-name = true","xml":"<set>\n<parameter name='tmp.exist.sdnc-artifact-name' value='true' />","comments":"","x":1595.8413314819336,"y":648.0595769882202,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"ae12ffc.41b2a","type":"set","name":"set tmp.exist.sdnc-model-name = true","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='true' />\n","comments":"","x":1592.5554389953613,"y":598.0595922470093,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3f17b073.bbbcb","type":"switchNode","name":"switch: tmp.exist.sdnc-model-name && tmp.exist.sdnc-artifact-name == true","xml":"<switch test=\"`$tmp.exist.sdnc-model-name == 'true' and $tmp.exist.sdnc-artifact-name == 'true'`\">\n","comments":"","outputs":1,"x":877.9960327148438,"y":767.0237197875977,"z":"4e44f4dc.d3fbac","wires":[["d1f392c4.1dab8","e3aa680f.7c2008"]]},{"id":"d1f392c4.1dab8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1246.5079917907715,"y":719.1427278518677,"z":"4e44f4dc.d3fbac","wires":[["5b2ce020.a36b2"]]},{"id":"cd40e494.6d16b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":453.65077209472656,"y":500.8691177368164,"z":"4e44f4dc.d3fbac","wires":[["63f83908.751498","3f17b073.bbbcb","e38b7cc3.75e77","806e0f23.0111b"]]},{"id":"d5dac1e.b0d824","type":"comment","name":"SELF-SERVE FORK","info":"","comments":"","x":442.2221984863281,"y":624.6786069869995,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"af0da8d9.d8ece8","type":"outcome","name":"sdnc_model_name","xml":"<outcome value='sdnc_model_name'>\n","comments":"","outputs":1,"x":1310.1269781930105,"y":598.1072013037544,"z":"4e44f4dc.d3fbac","wires":[["ae12ffc.41b2a"]]},{"id":"6b384f33.32a78","type":"outcome","name":"sdnc_artifact_name","xml":"<outcome value='sdnc_artifact_name'>\n","comments":"","outputs":1,"x":1312.9841003417969,"y":647.5357732772827,"z":"4e44f4dc.d3fbac","wires":[["84263c0c.96c43"]]},{"id":"a34d6a59.d39c18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2337.555206298828,"y":717.3333969116211,"z":"4e44f4dc.d3fbac","wires":[["ecba7f02.a0e2c"]]},{"id":"11bf25d2.bdb8da","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":233.4126968383789,"y":234.2857322692871,"z":"4e44f4dc.d3fbac","wires":[["a0fc8588.9798e8","b32ac93e.aaa508","3e444c8d.9a16f4","cd40e494.6d16b8"]]},{"id":"b10f2375.b9afa","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1575.71431350708,"y":3985.0328483581543,"z":"4e44f4dc.d3fbac","wires":[["5bcbda97.98c4e4","3b85bc8c.02f794","e6ea74fb.9af718","f638c11c.6fd0e"]]},{"id":"cdefc051.a04bf","type":"set","name":"clear aai.l3-network","xml":"<set>\n<parameter name='aai.l3-network.' value='' />\n","comments":"","x":934.285758972168,"y":3357.8899669647217,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"6f9b0a93.f694a4","type":"break","name":"break","xml":"<break>\n","comments":"","x":3375.9996948242188,"y":3885.032530784607,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"be0cee42.5ab7e","type":"set","name":"set found-network to false","xml":"<set>\n<parameter name='found-network' value='false' />\n","comments":"","x":1075.7142868041992,"y":3590.746934890747,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"46c88819.e15b38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2047.4285926818848,"y":3745.0327310562134,"z":"4e44f4dc.d3fbac","wires":[["9833efbf.69304","5f2e36ac.da9228"]]},{"id":"5f2e36ac.da9228","type":"switchNode","name":"switch found-network","xml":"<switch test='`$found-network`'>\n","comments":"","outputs":1,"x":2238.8571395874023,"y":3775.0327854156494,"z":"4e44f4dc.d3fbac","wires":[["66e2cd5f.2e0f04"]]},{"id":"2a1ad752.bfcd38","type":"set","name":"set found-network to true","xml":"<set>\n<parameter name='found-network' value='true' />\n","comments":"","x":3431.714572906494,"y":3839.318211555481,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"66e2cd5f.2e0f04","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2407.4286308288574,"y":3775.03271484375,"z":"4e44f4dc.d3fbac","wires":[["10d190b5.dcecdf"]]},{"id":"10d190b5.dcecdf","type":"break","name":"break","xml":"<break>\n","comments":"","x":2537.428699493408,"y":3773.604108810425,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"45b722b6.db776c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1247.7143096923828,"y":3718.7470092773438,"z":"4e44f4dc.d3fbac","wires":[["2b805935.a35cb6","c7e830d3.e9283"]]},{"id":"c7e830d3.e9283","type":"switchNode","name":"switch found-network","xml":"<switch test='`$found-network`'>\n","comments":"","outputs":1,"x":1457.7142639160156,"y":3790.746892929077,"z":"4e44f4dc.d3fbac","wires":[["24156eb7.6d1de2"]]},{"id":"24156eb7.6d1de2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1626.2857551574707,"y":3790.7468223571777,"z":"4e44f4dc.d3fbac","wires":[["25a3a86e.400be8"]]},{"id":"25a3a86e.400be8","type":"break","name":"break","xml":"<break>\n","comments":"","x":1756.2858238220215,"y":3789.3182163238525,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"e38b7cc3.75e77","type":"set","name":"initialize tmp.exist.sdnc-model-name && tmp.exist.sdnc-artifact-name = false","xml":"<set>\n<parameter name='tmp.exist.sdnc-model-name' value='false' />\n<parameter name='tmp.exist.sdnc-artifact-name' value='false' />","comments":"","x":880.1429061889648,"y":501.33330821990967,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"fb1b0696.2b0118","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":2098.666561126709,"y":879.9999332427979,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"893e0d25.a86ef","type":"set","name":"set vnf-level-oper-status to PendingCreate","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":2188.480007171631,"y":782.3374137878418,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f4cb36d0.800108","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnfend.log' />\n","comments":"","outputs":1,"x":2093.5712890625,"y":828.7771825790405,"z":"4e44f4dc.d3fbac","wires":[[]]},{"id":"5b2ce020.a36b2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.6664695739746,"y":718.3333206176758,"z":"4e44f4dc.d3fbac","wires":[["542091af.e959d","893e0d25.a86ef","f4cb36d0.800108","fb1b0696.2b0118"]]},{"id":"e6ea74fb.9af718","type":"set","name":"set subnet data","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].ip-version'\n value='`$tmp.ip-version`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-id'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].neutron-subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].sdnc-subnet-id'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-role'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].subnet-name'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-name`' />\n","comments":"","x":1730.0000801086426,"y":4015.7145948410034,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"f638c11c.6fd0e","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].dhcp-enabled`'>\n","comments":"","outputs":1,"x":1744.5238609313965,"y":4068.557548522949,"z":"4e44f4dc.d3fbac","wires":[["1616a214.4d52fe","6cb55598.b5519c"]]},{"id":"1616a214.4d52fe","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1907.3810255868093,"y":4047.12890625,"z":"4e44f4dc.d3fbac","wires":[["9228e480.6386e8"]]},{"id":"6cb55598.b5519c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1905.9523582458496,"y":4092.8433322906494,"z":"4e44f4dc.d3fbac","wires":[["10fd862a.7096da"]]},{"id":"9228e480.6386e8","type":"set","name":"set dhcp-enabled to Y","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n value='Y' />\n","comments":"","x":2080.238224029541,"y":4045.7003021240234,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"10fd862a.7096da","type":"set","name":"set dhcp-enabled to N","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].dhcp-enabled'\n value='N' />\n","comments":"","x":2077.3809928894043,"y":4092.8433322906494,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"5bcbda97.98c4e4","type":"switchNode","name":"switch subnet-role","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role`'>\n","comments":"","outputs":1,"x":1745.0000305175781,"y":3897.6052207946777,"z":"4e44f4dc.d3fbac","wires":[["2f3e4a5d.7c3b36"]]},{"id":"2f3e4a5d.7c3b36","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1911.666633605957,"y":3897.6048727035522,"z":"4e44f4dc.d3fbac","wires":[["24afcaa5.1defa6"]]},{"id":"24afcaa5.1defa6","type":"set","name":"set subnet-role to NONE","xml":"<set>\n<parameter name='aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].subnet-role' value='NONE' />\n","comments":"","x":2093.3334197998047,"y":3896.93852519989,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"3b85bc8c.02f794","type":"switchNode","name":"switch ip-version","xml":"<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].ip-version`'>\n","comments":"","outputs":1,"x":1740.2383651733398,"y":3962.096326828003,"z":"4e44f4dc.d3fbac","wires":[["1c2233e9.20214c","e680d1ed.d7f9c"]]},{"id":"1c2233e9.20214c","type":"outcome","name":"4","xml":"<outcome value='4'>\n","comments":"","outputs":1,"x":1905.952507019043,"y":3943.524724006653,"z":"4e44f4dc.d3fbac","wires":[["f01b1452.dd9f88"]]},{"id":"e680d1ed.d7f9c","type":"outcome","name":"6","xml":"<outcome value='6'>\n","comments":"","outputs":1,"x":1905.9524688720703,"y":3984.9534673690796,"z":"4e44f4dc.d3fbac","wires":[["319040e.ea0d5c"]]},{"id":"f01b1452.dd9f88","type":"set","name":"set tmp.ip-version to ipv4","xml":"<set>\n<parameter name='tmp.ip-version' value='ipv4' />\n","comments":"","x":2093.095272064209,"y":3942.6676511764526,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"319040e.ea0d5c","type":"set","name":"set tmp.ip-version to ipv6","xml":"<set>\n<parameter name='tmp.ip-version' value='ipv6' />\n","comments":"","x":2091.6668243408203,"y":3984.953469276428,"z":"4e44f4dc.d3fbac","wires":[]},{"id":"806e0f23.0111b","type":"switchNode","name":"switch: vnf-input-parameters.param_length","xml":"<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n","comments":"","outputs":1,"x":778.5714645385742,"y":547.1428127288818,"z":"4e44f4dc.d3fbac","wires":[["f780fd19.5435b"]]},{"id":"f780fd19.5435b","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1042.1428833007812,"y":547.4285526275635,"z":"4e44f4dc.d3fbac","wires":[["7fdf9810.65be18"]]},{"id":"7fdf9810.65be18","type":"set","name":"set vnf-input-parameters.param_length = 0","xml":"<set>\n<parameter name='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length' value='0' />\n","comments":"","x":1315.8571243286133,"y":547.2857141494751,"z":"4e44f4dc.d3fbac","wires":[]}] \ No newline at end of file