summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json5076
1 files changed, 5076 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json
new file mode 100644
index 00000000..ccb31485
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json
@@ -0,0 +1,5076 @@
+[
+ {
+ "id": "68a2ca98.9f9ad4",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 131,
+ "y": 97,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b3005114.46b4"
+ ]
+ ]
+ },
+ {
+ "id": "b3005114.46b4",
+ "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": 246.28570556640625,
+ "y": 138.9047794342041,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9df64b25.dd612"
+ ]
+ ]
+ },
+ {
+ "id": "9df64b25.dd612",
+ "type": "method",
+ "name": "method vnf-topology-operation-assign-sync",
+ "xml": "<method rpc='vnf-topology-operation-assign-sync' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 219.09530639648438,
+ "y": 181.66666316986084,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "71c37da.ca45504"
+ ]
+ ]
+ },
+ {
+ "id": "a437c9a1.ecb588",
+ "type": "comment",
+ "name": "vnf-topology-operation-assign-sync",
+ "info": "",
+ "comments": "",
+ "x": 498.01153564453125,
+ "y": 20,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "b64fdf51.475e6",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 517.3809509277344,
+ "y": 330.14283180236816,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e0cef711.07db28",
+ "83a11a05.d1ae6"
+ ]
+ ]
+ },
+ {
+ "id": "e0cef711.07db28",
+ "type": "outcome",
+ "name": "CreateVnfInstance",
+ "xml": "<outcome value='CreateVnfInstance'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.0952453613281,
+ "y": 307.2857131958008,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1ae2ebb5.48fe8c"
+ ]
+ ]
+ },
+ {
+ "id": "83a11a05.d1ae6",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 733.0952110290527,
+ "y": 353.0000410079956,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "62d8946f.abc51c"
+ ]
+ ]
+ },
+ {
+ "id": "1ae2ebb5.48fe8c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 955.9523735046387,
+ "y": 307.2857427597046,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "62d8946f.abc51c",
+ "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": 973.0952186584473,
+ "y": 352.9999990463257,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "aefac3f0.23ec18",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 188.73814392089844,
+ "y": 3379.0238666534424,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "262b86d7.63add2",
+ "b5d1933a.895ac",
+ "7fb3ca84.c2b9f4",
+ "2c8b9159.a537a6",
+ "784bc6dd.9f30b8",
+ "130edd17.8e3adb",
+ "d0683c56.880d08",
+ "b5d09f96.ee588",
+ "80f569c8.42ebd",
+ "64d293a9.e3132c",
+ "495cb896.1a51b",
+ "93b7d995.70383",
+ "446bb70b.d44dc",
+ "6a8ad94c.f3e7e8",
+ "a28166da.a237f8",
+ "626d1b8e.d0accc",
+ "cd35b6fb.34c568",
+ "b931907d.b30a08",
+ "f455bc8c.50b508",
+ "968e0675.5c2c38",
+ "1aa28b1b.cad405",
+ "3368c7e5.1fd09",
+ "70a29720.d1a208",
+ "313ffbab.c11cec",
+ "4ddaa8b9.ea6108",
+ "e672ed3d.7fae28",
+ "ea6f7aeb.38755",
+ "3175fdda.28a8fa",
+ "51bff44c.19d854",
+ "16cb3af3.980cad",
+ "4394124c.44d794",
+ "2407628e.2ee6be",
+ "a323fa5.3a8dc88",
+ "fa6296d4.7da71"
+ ]
+ ]
+ },
+ {
+ "id": "4603d416.c13b14",
+ "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": 529.7142562866211,
+ "y": 421.285701751709,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d2e0fe86.f6031",
+ "d496667f.88329"
+ ]
+ ]
+ },
+ {
+ "id": "21d8f539.b04a8a",
+ "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": 971.1427345275879,
+ "y": 444.7141876220703,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "d2e0fe86.f6031",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 730.4999542236328,
+ "y": 401.6665391921997,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b84fe458.594a9"
+ ]
+ ]
+ },
+ {
+ "id": "d496667f.88329",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 739.0713844299316,
+ "y": 445.9522523880005,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "21d8f539.b04a8a"
+ ]
+ ]
+ },
+ {
+ "id": "b84fe458.594a9",
+ "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": 970.4999351501465,
+ "y": 399.80944633483887,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "262b86d7.63add2",
+ "type": "switchNode",
+ "name": "switch service-data.vnfs.vnf_length",
+ "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 563.3809204101562,
+ "y": 1172.238136291504,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "170fc08c.20c9bf",
+ "1b92a587.ab61da"
+ ]
+ ]
+ },
+ {
+ "id": "170fc08c.20c9bf",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 789.0952491760254,
+ "y": 1139.3809242248535,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "75a9ee97.0539e8"
+ ]
+ ]
+ },
+ {
+ "id": "75a9ee97.0539e8",
+ "type": "set",
+ "name": "set vnf-index=0",
+ "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
+ "comments": "",
+ "x": 953.3809700012207,
+ "y": 1138.3810024261475,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "1b92a587.ab61da",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 790.523811340332,
+ "y": 1203.666742324829,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7e74978.394e568"
+ ]
+ ]
+ },
+ {
+ "id": "e0443834.bed6f8",
+ "type": "set",
+ "name": "set vnf-index = vnf_length",
+ "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
+ "comments": "",
+ "x": 1129.3809661865234,
+ "y": 1181.9524307250977,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "12da173.76480e9",
+ "type": "for",
+ "name": "for each existing VNF",
+ "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1114.8094787597656,
+ "y": 1227.9523696899414,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3f1d0bbb.d9c134"
+ ]
+ ]
+ },
+ {
+ "id": "7e74978.394e568",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 926.2380714416504,
+ "y": 1203.6667079925537,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e0443834.bed6f8",
+ "12da173.76480e9"
+ ]
+ ]
+ },
+ {
+ "id": "3f1d0bbb.d9c134",
+ "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": 1469.0952453613281,
+ "y": 1227.5238494873047,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "fc86eb00.db8fd"
+ ]
+ ]
+ },
+ {
+ "id": "fc86eb00.db8fd",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1763.3810005187988,
+ "y": 1227.0953340530396,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ddc96b74.6dda5"
+ ]
+ ]
+ },
+ {
+ "id": "ddc96b74.6dda5",
+ "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": 1911.9523620605469,
+ "y": 1227.0952816009521,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "567844bc.d79374",
+ "type": "comment",
+ "name": "make sure this VNF doesn't exist already",
+ "info": "",
+ "comments": "",
+ "x": 1456.2379760742188,
+ "y": 1185.0952796936035,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "b5d1933a.895ac",
+ "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": 529.0952033996582,
+ "y": 1703.9049034118652,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "7fb3ca84.c2b9f4",
+ "type": "switchNode",
+ "name": "switch input vnf-name",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 541.5952224731445,
+ "y": 2066.0239610671997,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f66a80dc.7487a8",
+ "aabbb10c.1ba08"
+ ]
+ ]
+ },
+ {
+ "id": "2c8b9159.a537a6",
+ "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": 573.738166809082,
+ "y": 2962.023696899414,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "fa77ec84.cfd948",
+ "d2b50e19.23138"
+ ]
+ ]
+ },
+ {
+ "id": "d2b50e19.23138",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.9843597412109,
+ "y": 2980.1745529174805,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bca359aa.ea657"
+ ]
+ ]
+ },
+ {
+ "id": "d8746dc5.16b6a8",
+ "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": 1100.6510314941406,
+ "y": 2980.174570083618,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "fa77ec84.cfd948",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 807.912956237793,
+ "y": 2938.460286140442,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "de36732.02f1d9"
+ ]
+ ]
+ },
+ {
+ "id": "267c8333.b6b41c",
+ "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": 1100.9289321899414,
+ "y": 2937.765844345093,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "784bc6dd.9f30b8",
+ "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": 638.9762496948242,
+ "y": 3273.071216583252,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b35aa70d.9171b",
+ "a87731d3.ac1c58"
+ ]
+ ]
+ },
+ {
+ "id": "b35aa70d.9171b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.7619209289551,
+ "y": 3251.7853813171387,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "29b9ea01.3157fe"
+ ]
+ ]
+ },
+ {
+ "id": "a87731d3.ac1c58",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 943.3333511352539,
+ "y": 3296.0710945129395,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "73b88fba.e9b14"
+ ]
+ ]
+ },
+ {
+ "id": "9f2c8e1d.bc9d48",
+ "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": 1251.428544998169,
+ "y": 3251.5951137542725,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "7818536.37f0dac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1046.5716552734375,
+ "y": 4016.3804264068604,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bc29a717.b4dae8",
+ "3d503c9c.832644",
+ "35a5b4f7.7797ec",
+ "852ecf97.3adc68",
+ "7188a6e4.ef2cc",
+ "224ee4c1.326304",
+ "d4a87018.ef3a9",
+ "85e069bd.2867e",
+ "ddb641a.0cdf6c"
+ ]
+ ]
+ },
+ {
+ "id": "35a5b4f7.7797ec",
+ "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": 1303.4287300109863,
+ "y": 3425.3330307006836,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bae8c678.c02cc",
+ "34b7ef3.10b4a1"
+ ]
+ ]
+ },
+ {
+ "id": "34b7ef3.10b4a1",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1507.4764442443848,
+ "y": 3447.4758701324463,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ce329189.366548"
+ ]
+ ]
+ },
+ {
+ "id": "47e87554.0101b4",
+ "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": 1822.476474761963,
+ "y": 3447.8092136383057,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "bae8c678.c02cc",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1516.4050407409668,
+ "y": 3405.7616033554077,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f8b0e31a.69846"
+ ]
+ ]
+ },
+ {
+ "id": "3ad691fc.ce86ce",
+ "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": 1821.087670326233,
+ "y": 3406.7337398529053,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "bc29a717.b4dae8",
+ "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": 1292.6193199157715,
+ "y": 3912.3332738876343,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "80f569c8.42ebd",
+ "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": 513.000358581543,
+ "y": 5159.452251434326,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "eb0700ec.359b5"
+ ]
+ ]
+ },
+ {
+ "id": "3a33cdc9.d2b98a",
+ "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": 974.6670417785645,
+ "y": 5128.785665512085,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "64d293a9.e3132c",
+ "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": 472.6192855834961,
+ "y": 5009.404611587524,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "817f795f.7d9e58",
+ "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": 939.1908187866211,
+ "y": 5303.214464187622,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "528a3002.e9b57",
+ "89b44b94.d5d48"
+ ]
+ ]
+ },
+ {
+ "id": "446bb70b.d44dc",
+ "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": 432.4288330078125,
+ "y": 5768.832854270935,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "93b7d995.70383",
+ "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": 522.2422790527344,
+ "y": 5671.170334815979,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "d0683c56.880d08",
+ "type": "for",
+ "name": "for each network-role",
+ "xml": "<for silentFailure='true' index='role-index' start='0' end='`$db.vf-network-role-mapping_length`'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 506.571590423584,
+ "y": 3989.7140951156616,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f3f529c4.6b12c"
+ ]
+ ]
+ },
+ {
+ "id": "130edd17.8e3adb",
+ "type": "set",
+ "name": "set network-index = 0",
+ "xml": "<set>\n<parameter name='network-index' value='0' />\n",
+ "comments": "",
+ "x": 541.4047470092773,
+ "y": 3327.119010925293,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3d503c9c.832644",
+ "type": "set",
+ "name": "increment network-index",
+ "xml": "<set>\n<parameter name='network-index' value='`$network-index + 1`' />\n",
+ "comments": "",
+ "x": 1274.6193084716797,
+ "y": 4960.09521484375,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "b5d09f96.ee588",
+ "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": 471.4763717651367,
+ "y": 4959.404655456543,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "495cb896.1a51b",
+ "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": 437.7621078491211,
+ "y": 5618.8331661224365,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "6a8ad94c.f3e7e8",
+ "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": 462.1907272338867,
+ "y": 5302.214380264282,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f4c1e324.b2d9f8"
+ ]
+ ]
+ },
+ {
+ "id": "f4c1e324.b2d9f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 665.8573684692383,
+ "y": 5302.214341163635,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "817f795f.7d9e58"
+ ]
+ ]
+ },
+ {
+ "id": "a28166da.a237f8",
+ "type": "set",
+ "name": "set new vnf_length",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
+ "comments": "",
+ "x": 512.0238418579102,
+ "y": 1224.2620267868042,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "626d1b8e.d0accc",
+ "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": 586.5952911376953,
+ "y": 3049.2618684768677,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5af7d118.38ea4"
+ ]
+ ]
+ },
+ {
+ "id": "5af7d118.38ea4",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$aai.cloud-region.relationship-list.relationship[$idx].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 834.2738342285156,
+ "y": 3049.0117979049683,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bcf1a4f2.c60d2"
+ ]
+ ]
+ },
+ {
+ "id": "bcf1a4f2.c60d2",
+ "type": "outcome",
+ "name": "complex",
+ "xml": "<outcome value='complex'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1003.7381553649902,
+ "y": 3048.4046201705933,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "919a9da7.1f7448"
+ ]
+ ]
+ },
+ {
+ "id": "ed342eb3.35926",
+ "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": 1324.4524536132812,
+ "y": 3048.071277618408,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "cd35b6fb.34c568",
+ "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": 519.6429176330566,
+ "y": 3162.357000350952,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9ad55fa5.5100e"
+ ]
+ ]
+ },
+ {
+ "id": "9ad55fa5.5100e",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 667.7857513427734,
+ "y": 3162.3569831848145,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "17e0c5d6.6b5e32"
+ ]
+ ]
+ },
+ {
+ "id": "4c53fd4b.741ad4",
+ "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": 958.2619438171387,
+ "y": 3163.5950288772583,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5ff9dc5f.b0154c",
+ "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": 946.0954627990723,
+ "y": 2521.2142572402954,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "6c9db393.4e1bcc",
+ "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": 1412.8812980651855,
+ "y": 3736.90465259552,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5b55e55c.75e71c"
+ ]
+ ]
+ },
+ {
+ "id": "d845e519.b3b708",
+ "type": "switchNode",
+ "name": "switch orchestration-status",
+ "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].orchestration-status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1831.4524688720703,
+ "y": 3671.4761171340942,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "350f54c6.4f17c4",
+ "e8af3b91.a0a3f",
+ "53568d6f.73782c",
+ "31601472.8b3a34",
+ "8c589650.804078"
+ ]
+ ]
+ },
+ {
+ "id": "350f54c6.4f17c4",
+ "type": "outcome",
+ "name": "Pending Delete",
+ "xml": "<outcome value='Pending Delete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2072.119338989258,
+ "y": 3713.1426210403442,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1031ff3c.e50d89"
+ ]
+ ]
+ },
+ {
+ "id": "e8af3b91.a0a3f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2044.9764785766602,
+ "y": 3764.142601966858,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "81380f6b.9e4dd8"
+ ]
+ ]
+ },
+ {
+ "id": "1327057d.754d53",
+ "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": 2580.6907806396484,
+ "y": 3709.380518913269,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ae878b3e.96dcc8",
+ "6cf05edd.c5677"
+ ]
+ ]
+ },
+ {
+ "id": "81380f6b.9e4dd8",
+ "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": 2214.976390838623,
+ "y": 3763.713978767395,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "62e527d2.1d70b"
+ ]
+ ]
+ },
+ {
+ "id": "ae878b3e.96dcc8",
+ "type": "outcome",
+ "name": "cloud-region",
+ "xml": "<outcome value='cloud-region'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2754.9765663146973,
+ "y": 3732.285343170166,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d451f3c0.15adf8"
+ ]
+ ]
+ },
+ {
+ "id": "d451f3c0.15adf8",
+ "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": 2952.1192665100098,
+ "y": 3732.7138109207153,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "452b836d.c38914"
+ ]
+ ]
+ },
+ {
+ "id": "452b836d.c38914",
+ "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": 3183.547866821289,
+ "y": 3732.285185813904,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "520ded75.9767fc"
+ ]
+ ]
+ },
+ {
+ "id": "520ded75.9767fc",
+ "type": "outcome",
+ "name": "cloud-region.cloud-region-id",
+ "xml": "<outcome value='cloud-region.cloud-region-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3424.976432800293,
+ "y": 3732.2852821350098,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "37116d50.cf56a2"
+ ]
+ ]
+ },
+ {
+ "id": "37116d50.cf56a2",
+ "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": 3729.262351989746,
+ "y": 3732.1423377990723,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a2bcc8dd.1057e8"
+ ]
+ ]
+ },
+ {
+ "id": "a2bcc8dd.1057e8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3434.2624893188477,
+ "y": 3849.785291671753,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "47b616fe.13117"
+ ]
+ ]
+ },
+ {
+ "id": "852ecf97.3adc68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1249.0954704284668,
+ "y": 3668.19029712677,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6c9db393.4e1bcc",
+ "721426a5.cd4d3"
+ ]
+ ]
+ },
+ {
+ "id": "7188a6e4.ef2cc",
+ "type": "set",
+ "name": "set l3-network-id = -1",
+ "xml": "<set>\n<parameter name='l3-network-id' value='-1' />\n",
+ "comments": "",
+ "x": 1293.4288291931152,
+ "y": 3540.0949506759644,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "47b616fe.13117",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3580.0954666137695,
+ "y": 3849.2614002227783,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e7097d49.1fec",
+ "55b96b73.a3fe2c",
+ "d5b2ed44.4c2308"
+ ]
+ ]
+ },
+ {
+ "id": "e7097d49.1fec",
+ "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": 3815.333469390869,
+ "y": 3811.404369354248,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "224ee4c1.326304",
+ "type": "switchNode",
+ "name": "switch l3-network-id",
+ "xml": "<switch test='`$l3-network-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1290.42875289917,
+ "y": 3863.761992454529,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "16bd9f79.c62dc9"
+ ]
+ ]
+ },
+ {
+ "id": "16bd9f79.c62dc9",
+ "type": "outcome",
+ "name": "-1",
+ "xml": "<outcome value='-1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1460.4287033081055,
+ "y": 3863.761748313904,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "65b6c831.c5485"
+ ]
+ ]
+ },
+ {
+ "id": "93dfd24c.069538",
+ "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": 1743.7620658874512,
+ "y": 3863.7619972229004,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "b931907d.b30a08",
+ "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": 589.9525375366211,
+ "y": 2544.038701057434,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7fb229b6.3c85c8",
+ "82f8f081.0af77"
+ ]
+ ]
+ },
+ {
+ "id": "7fb229b6.3c85c8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.6192092895508,
+ "y": 2521.181664466858,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5ff9dc5f.b0154c"
+ ]
+ ]
+ },
+ {
+ "id": "82f8f081.0af77",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 797.0478057861328,
+ "y": 2565.467255592346,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1c3ddf94.b28f8"
+ ]
+ ]
+ },
+ {
+ "id": "1c3ddf94.b28f8",
+ "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": 951.3335418701172,
+ "y": 2564.895827770233,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5b6749b4.40c77",
+ "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": 947.0477333068848,
+ "y": 2609.7529335021973,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "f455bc8c.50b508",
+ "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": 562.5715560913086,
+ "y": 2632.577438354492,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "cd34a0af.96b0b",
+ "161c9d30.1c1f83"
+ ]
+ ]
+ },
+ {
+ "id": "cd34a0af.96b0b",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 796.5715293884277,
+ "y": 2609.7203702926636,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5b6749b4.40c77"
+ ]
+ ]
+ },
+ {
+ "id": "161c9d30.1c1f83",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 798.0001258850098,
+ "y": 2654.005961418152,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ddf4a9f0.bb3bb"
+ ]
+ ]
+ },
+ {
+ "id": "ddf4a9f0.bb3bb",
+ "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": 952.2858619689941,
+ "y": 2653.434533596039,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "6dacecbd.5288fc",
+ "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": 944.1906661987305,
+ "y": 2698.610140800476,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "968e0675.5c2c38",
+ "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": 570.714427947998,
+ "y": 2721.434585571289,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "8880dbfd.516398",
+ "c5886381.b5bd18"
+ ]
+ ]
+ },
+ {
+ "id": "8880dbfd.516398",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 793.714412689209,
+ "y": 2698.5775480270386,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6dacecbd.5288fc"
+ ]
+ ]
+ },
+ {
+ "id": "c5886381.b5bd18",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.143009185791,
+ "y": 2742.863139152527,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3a72fbc9.bc28e4"
+ ]
+ ]
+ },
+ {
+ "id": "3a72fbc9.bc28e4",
+ "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": 949.4287452697754,
+ "y": 2742.291711330414,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3807e625.baedda",
+ "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": 944.1906661987305,
+ "y": 2785.752963066101,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "1aa28b1b.cad405",
+ "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": 565.714427947998,
+ "y": 2808.577407836914,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "8c87d49f.d1134",
+ "f0452bd2.1ea45"
+ ]
+ ]
+ },
+ {
+ "id": "8c87d49f.d1134",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 793.714412689209,
+ "y": 2785.7203702926636,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3807e625.baedda"
+ ]
+ ]
+ },
+ {
+ "id": "f0452bd2.1ea45",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 795.143009185791,
+ "y": 2830.005961418152,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "19788717.fc0ab9"
+ ]
+ ]
+ },
+ {
+ "id": "19788717.fc0ab9",
+ "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": 949.4287452697754,
+ "y": 2829.434533596039,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "1031ff3c.e50d89",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2225.3334312438965,
+ "y": 3713.9194984436035,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8c589650.804078",
+ "type": "outcome",
+ "name": "PendingDelete",
+ "xml": "<outcome value='PendingDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2070.000072479248,
+ "y": 3668.919412612915,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d760cdd9.ad965"
+ ]
+ ]
+ },
+ {
+ "id": "d760cdd9.ad965",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2225.2141647338867,
+ "y": 3669.6962900161743,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31601472.8b3a34",
+ "type": "outcome",
+ "name": "Pending Create",
+ "xml": "<outcome value='Pending Create'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2072.000072479248,
+ "y": 3625.585916519165,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "4a882a52.6c0e4c"
+ ]
+ ]
+ },
+ {
+ "id": "4a882a52.6c0e4c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2225.2141647338867,
+ "y": 3626.3627939224243,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "53568d6f.73782c",
+ "type": "outcome",
+ "name": "PendingCreate",
+ "xml": "<outcome value='PendingCreate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2072.000072479248,
+ "y": 3582.25266456604,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5220610c.a8f22"
+ ]
+ ]
+ },
+ {
+ "id": "5220610c.a8f22",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2225.2141647338867,
+ "y": 3583.0295419692993,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b66dbfec.08d64",
+ "type": "for",
+ "name": "for each A&AI subnet",
+ "xml": "<for index='subnet-index' start='0' end='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1758.3810997009277,
+ "y": 4002.966833591461,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a874eb32.f6f168"
+ ]
+ ]
+ },
+ {
+ "id": "e13df041.93d998",
+ "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[$db-network-index].subnets.subnet_length`' />\n",
+ "comments": "",
+ "x": 1747.047664642334,
+ "y": 4047.9669156074524,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3368c7e5.1fd09",
+ "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": 532.666862487793,
+ "y": 5247.467719078064,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "70a29720.d1a208",
+ "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": 526.8333511352539,
+ "y": 2478.086464881897,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "313ffbab.c11cec",
+ "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=\"in-maint\" value=\"true\" />\n<parameter name=\"selflink\" value=\"`$vnf-object-path`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 453.00012969970703,
+ "y": 5457.13348197937,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3ec43c9e.01f064",
+ "7b2826bc.a116b8"
+ ]
+ ]
+ },
+ {
+ "id": "4ddaa8b9.ea6108",
+ "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<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "comments": "",
+ "x": 453.0001678466797,
+ "y": 5387.133964538574,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "e672ed3d.7fae28",
+ "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": 515.1666946411133,
+ "y": 2429.753007888794,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "ea6f7aeb.38755",
+ "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": 427.3335609436035,
+ "y": 5717.610103607178,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "902bb36e.02d208",
+ "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": 1489.6669731140137,
+ "y": 5323.8003787994385,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "528a3002.e9b57",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1189.0241737365723,
+ "y": 5280.753039360046,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6d66a46f.8f258c"
+ ]
+ ]
+ },
+ {
+ "id": "89b44b94.d5d48",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1197.595603942871,
+ "y": 5325.038752555847,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7cc448d4.16c81"
+ ]
+ ]
+ },
+ {
+ "id": "2359ac2a.3e0f14",
+ "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": 1492.357566833496,
+ "y": 5280.56258392334,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "8634857d.82a3b8",
+ "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": 924.6669082641602,
+ "y": 5477.13391494751,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3ec43c9e.01f064",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 627.3574600219727,
+ "y": 5435.753077507019,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d9ff6d90.7eee28"
+ ]
+ ]
+ },
+ {
+ "id": "7b2826bc.a116b8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 635.9288902282715,
+ "y": 5480.03879070282,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "33df4ca0.132d64"
+ ]
+ ]
+ },
+ {
+ "id": "73b9cad.4267434",
+ "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": 927.3575019836426,
+ "y": 5433.896120071411,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3175fdda.28a8fa",
+ "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": 578.5000152587891,
+ "y": 2881.419611930847,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "959170f0.d10dc",
+ "type": "execute",
+ "name": "split related-link",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split'>\n <parameter name='ctx_memory_result_key' value='aai-uid-split' />\n <parameter name='original_string' value='`$aai.cloud-region.relationship-list.relationship[$idx].related-link`' />\n <parameter name='regex' value='/' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1343.8333129882812,
+ "y": 3002.8331956863403,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "919a9da7.1f7448",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1163.500015258789,
+ "y": 3049.4999837875366,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "959170f0.d10dc",
+ "ed342eb3.35926",
+ "a6da362b.ee5178"
+ ]
+ ]
+ },
+ {
+ "id": "a6da362b.ee5178",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 1313.4999771118164,
+ "y": 3092.8332805633545,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "eb0700ec.359b5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 764.6668014526367,
+ "y": 5158.547835350037,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3a33cdc9.d2b98a",
+ "ddd1b4bb.1f863"
+ ]
+ ]
+ },
+ {
+ "id": "ddd1b4bb.1f863",
+ "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": 1058.0001907348633,
+ "y": 5181.881289482117,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2d7b0f8a.557578",
+ "e85b6745.2ad308"
+ ]
+ ]
+ },
+ {
+ "id": "6b436e6b.f83b58",
+ "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": 1615.1428527832031,
+ "y": 5205.800618171692,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "2d7b0f8a.557578",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.8334426879883,
+ "y": 5162.753111839294,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "27a776e9.fbab3a"
+ ]
+ ]
+ },
+ {
+ "id": "e85b6745.2ad308",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1331.404872894287,
+ "y": 5207.038825035095,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f9343030.e19f98"
+ ]
+ ]
+ },
+ {
+ "id": "ff4464bf.dffb6",
+ "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": 1617.8334465026855,
+ "y": 5162.562823295593,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "73b88fba.e9b14",
+ "type": "set",
+ "name": "set mapping rows to 0",
+ "xml": "<set>\n<parameter name='db.vf-network-role-mapping_length' value='0' />\n",
+ "comments": "",
+ "x": 1137.3094863891602,
+ "y": 3295.6905822753906,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "51bff44c.19d854",
+ "type": "switchNode",
+ "name": "switch AAI availability-zone_length",
+ "xml": "<switch test='`$aai.cloud-region.availability-zones.availability-zone_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 505.38108825683594,
+ "y": 5062.357421875,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7fb16597.60b6c4"
+ ]
+ ]
+ },
+ {
+ "id": "7fb16597.60b6c4",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 723.952507019043,
+ "y": 5061.928831100464,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "4e3b7f46.0e5608"
+ ]
+ ]
+ },
+ {
+ "id": "2be48f2.fe16cf",
+ "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": 1325.3811492919922,
+ "y": 5080.500068664551,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "4e3b7f46.0e5608",
+ "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": 912.5239791870117,
+ "y": 5062.357142925262,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b4f1f3f1.16192",
+ "c45624a2.82a55"
+ ]
+ ]
+ },
+ {
+ "id": "b4f1f3f1.16192",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1115.3810863494873,
+ "y": 5036.642892837524,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "643da192.6cbbb8"
+ ]
+ ]
+ },
+ {
+ "id": "c45624a2.82a55",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1116.8097076416016,
+ "y": 5080.928640365601,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2be48f2.fe16cf"
+ ]
+ ]
+ },
+ {
+ "id": "189b8c3d.25fac4",
+ "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": 1406.8095932006836,
+ "y": 5034.690585136414,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "f0fccd2a.ef011",
+ "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": 525.2857360839844,
+ "y": 203.42858695983887,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f66a80dc.7487a8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 743.6190414428711,
+ "y": 1879.5000114440918,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ac22119.a35ce7"
+ ]
+ ]
+ },
+ {
+ "id": "7385e826.1e20b8",
+ "type": "switchNode",
+ "name": "switch ecomp-naming",
+ "xml": "<switch test='`$db.vf-model.ecomp-generated-naming`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1121.2384300231934,
+ "y": 1780.2144479751587,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "c7848c1b.2755",
+ "63b39cde.16cae4",
+ "79c7d709.311e18"
+ ]
+ ]
+ },
+ {
+ "id": "ac22119.a35ce7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 889.3335418701172,
+ "y": 1879.5001287460327,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7385e826.1e20b8",
+ "a2a899d6.631ce"
+ ]
+ ]
+ },
+ {
+ "id": "63b39cde.16cae4",
+ "type": "outcome",
+ "name": "N",
+ "xml": "<outcome value='N'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.6668167114258,
+ "y": 1780.690574645996,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ced87cfe.6267b"
+ ]
+ ]
+ },
+ {
+ "id": "ced87cfe.6267b",
+ "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": 1461.9526023864746,
+ "y": 1799.2620191574097,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "c7848c1b.2755",
+ "type": "outcome",
+ "name": "Y",
+ "xml": "<outcome value='Y'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.6668090820312,
+ "y": 1739.2620286941528,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a3cf01ba.66ac98"
+ ]
+ ]
+ },
+ {
+ "id": "79c7d709.311e18",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1307.6667556762695,
+ "y": 1823.547706604004,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ced87cfe.6267b"
+ ]
+ ]
+ },
+ {
+ "id": "a3cf01ba.66ac98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1444.809726715088,
+ "y": 1739.4048957824707,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aabbb10c.1ba08",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 728.8097686767578,
+ "y": 2234.1191873550415,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6314c0d9.140b2"
+ ]
+ ]
+ },
+ {
+ "id": "6314c0d9.140b2",
+ "type": "set",
+ "name": "set tmp.vnf-name",
+ "xml": "<set>\n<parameter name='tmp.vnf-name' value=\"`$vnf-topology-operation-input.vnf-information.vnf-name`\" />\n",
+ "comments": "",
+ "x": 894.5717315673828,
+ "y": 2232.976457595825,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "3beb7057.231e78",
+ "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": 1779.643009185791,
+ "y": 1929.261948108673,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "81027dc0.e3c148",
+ "21154e6f.895c62"
+ ]
+ ]
+ },
+ {
+ "id": "81027dc0.e3c148",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2056.7858123779297,
+ "y": 1902.833481311798,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ce9dddcd.2aaf8"
+ ]
+ ]
+ },
+ {
+ "id": "21154e6f.895c62",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2061.5475578308105,
+ "y": 1948.2143921852112,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "262123d3.5f7d2c"
+ ]
+ ]
+ },
+ {
+ "id": "806c7812.c6106",
+ "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": 1734.6432609558105,
+ "y": 1880.357267856598,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "262123d3.5f7d2c",
+ "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": 2284.4519538879395,
+ "y": 1947.6904673576355,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "ce9dddcd.2aaf8",
+ "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": 2210.3572731018066,
+ "y": 1902.2619910240173,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "a2a899d6.631ce",
+ "type": "switchNode",
+ "name": "switch naming-policy",
+ "xml": "<switch test='`$db.vf-model.naming-policy`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1119.024013519287,
+ "y": 1988.5000648498535,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ed656bab.19a14",
+ "57a640a4.897548"
+ ]
+ ]
+ },
+ {
+ "id": "ed656bab.19a14",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1309.0239448547363,
+ "y": 1909.9286193847656,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "886e4a38.baf3f"
+ ]
+ ]
+ },
+ {
+ "id": "57a640a4.897548",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1309.2621841430664,
+ "y": 2037.3095636367798,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7b7e647a.75f324"
+ ]
+ ]
+ },
+ {
+ "id": "886e4a38.baf3f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1461.8812141418457,
+ "y": 1908.5000858306885,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "806c7812.c6106",
+ "3beb7057.231e78"
+ ]
+ ]
+ },
+ {
+ "id": "e253edf1.811a",
+ "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": 1800.9291381835938,
+ "y": 2053.0239453315735,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "212d48d0.479528",
+ "9de38862.6225"
+ ]
+ ]
+ },
+ {
+ "id": "7b7e647a.75f324",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1463.786033630371,
+ "y": 2037.3095636367798,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a1f5d870.7f1b1",
+ "e253edf1.811a"
+ ]
+ ]
+ },
+ {
+ "id": "a1f5d870.7f1b1",
+ "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": 1710.929054260254,
+ "y": 2007.3095993995667,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "642508b0.79c448",
+ "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": 2243.786087036133,
+ "y": 2026.880883216858,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "59675eaa.bff9a",
+ "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": 2322.214656829834,
+ "y": 2071.595185279846,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "cc558d50.a15698",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2005.2854461669922,
+ "y": 2853.6662101745605,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5d8843b.a7451bc",
+ "a7b55ced.0acf5"
+ ]
+ ]
+ },
+ {
+ "id": "a7b55ced.0acf5",
+ "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": 2329.5711517333984,
+ "y": 2880.237741470337,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5d8843b.a7451bc",
+ "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": 2230.999771118164,
+ "y": 2833.0948123931885,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "f6f1f4aa.91ffa",
+ "type": "comment",
+ "name": "Unassign the VNF name",
+ "info": "",
+ "comments": "",
+ "x": 2096.9520950317383,
+ "y": 2773.6663122177124,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "de36732.02f1d9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.2857818603516,
+ "y": 2938.666510105133,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "267c8333.b6b41c",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "bca359aa.ea657",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 943.6190643310547,
+ "y": 2980.3332624435425,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d8746dc5.16b6a8",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "17e0c5d6.6b5e32",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 800.2857360839844,
+ "y": 3161.9998922348022,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "4c53fd4b.741ad4",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "29b9ea01.3157fe",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1091.9524230957031,
+ "y": 3251.9998922348022,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9f2c8e1d.bc9d48",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "f8b0e31a.69846",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1651.9524421691895,
+ "y": 3405.9997596740723,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3ad691fc.ce86ce",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "ce329189.366548",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1650.2857246398926,
+ "y": 3447.6665120124817,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "47e87554.0101b4",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "65b6c831.c5485",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1593.619068145752,
+ "y": 3863.6665077209473,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "93dfd24c.069538",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "643da192.6cbbb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1250.6191101074219,
+ "y": 5035.333201408386,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "189b8c3d.25fac4",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "27a776e9.fbab3a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1470.6191101074219,
+ "y": 5163.333201408386,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ff4464bf.dffb6",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "f9343030.e19f98",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1468.952392578125,
+ "y": 5206.999953746796,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6b436e6b.f83b58",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "6d66a46f.8f258c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1333.9524841308594,
+ "y": 5280.333201408386,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2359ac2a.3e0f14",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "7cc448d4.16c81",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1332.2857666015625,
+ "y": 5323.999953746796,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "902bb36e.02d208",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "d9ff6d90.7eee28",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 780.6191444396973,
+ "y": 5435.3333168029785,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "73b9cad.4267434",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "33df4ca0.132d64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 778.9524269104004,
+ "y": 5479.000069141388,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "8634857d.82a3b8",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "212d48d0.479528",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2099.095184326172,
+ "y": 2027.952452659607,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "642508b0.79c448"
+ ]
+ ]
+ },
+ {
+ "id": "9de38862.6225",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2103.8569297790527,
+ "y": 2073.33336353302,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "59675eaa.bff9a"
+ ]
+ ]
+ },
+ {
+ "id": "6549374f.d5df9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 754.3332824707031,
+ "y": 1382.9196710586548,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "db3e2bd5.25d1d8",
+ "74dc73bc.f91dbc"
+ ]
+ ]
+ },
+ {
+ "id": "16cb3af3.980cad",
+ "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": 537.6666297912598,
+ "y": 1383.5863161087036,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6549374f.d5df9"
+ ]
+ ]
+ },
+ {
+ "id": "db3e2bd5.25d1d8",
+ "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": 985.6666412353516,
+ "y": 1306.2530527114868,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "677b47d4.197f1",
+ "4f975206.42b044"
+ ]
+ ]
+ },
+ {
+ "id": "4f975206.42b044",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.9128494262695,
+ "y": 1324.4039011001587,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d9bdda6f.0d718"
+ ]
+ ]
+ },
+ {
+ "id": "677b47d4.197f1",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1208.8414459228516,
+ "y": 1282.6896343231201,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1478d3df.88a424"
+ ]
+ ]
+ },
+ {
+ "id": "1478d3df.88a424",
+ "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": 1381.6666564941406,
+ "y": 1280.2530450820923,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "d9bdda6f.0d718",
+ "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": 1381.6666564941406,
+ "y": 1324.2530450820923,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "74dc73bc.f91dbc",
+ "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": 959.3332977294922,
+ "y": 1454.586368560791,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "63151d66.27336c"
+ ]
+ ]
+ },
+ {
+ "id": "63151d66.27336c",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$aai.instance-group.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1172.6667404174805,
+ "y": 1454.5863075256348,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d19c02e6.4b8bc8"
+ ]
+ ]
+ },
+ {
+ "id": "d19c02e6.4b8bc8",
+ "type": "outcome",
+ "name": "collection",
+ "xml": "<outcome value='collection'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1344.3333778381348,
+ "y": 1454.586389541626,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9b35c121.bc33e"
+ ]
+ ]
+ },
+ {
+ "id": "9b35c121.bc33e",
+ "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": 1564.3332824707031,
+ "y": 1452.9196510314941,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f9f8813c.08693",
+ "24f587c8.0c75a8",
+ "b6e5c42f.a30fd"
+ ]
+ ]
+ },
+ {
+ "id": "24f587c8.0c75a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1778.579475402832,
+ "y": 1404.4038400650024,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5ddf9f2b.f357e"
+ ]
+ ]
+ },
+ {
+ "id": "f9f8813c.08693",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1787.508071899414,
+ "y": 1362.6895732879639,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f9dc29da.b3b21"
+ ]
+ ]
+ },
+ {
+ "id": "f9dc29da.b3b21",
+ "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": 1944.3332824707031,
+ "y": 1361.2530450820923,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5ddf9f2b.f357e",
+ "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": 1944.3332824707031,
+ "y": 1405.2530450820923,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "b6e5c42f.a30fd",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.6666831970215,
+ "y": 1541.2530164718628,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d656a0a2.00b1e8"
+ ]
+ ]
+ },
+ {
+ "id": "d656a0a2.00b1e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1930.9998245239258,
+ "y": 1540.5863122940063,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "27451716.fec75",
+ "250da88.60119d8",
+ "67857de.8994284",
+ "a686c66d.95e1a8",
+ "ffe952b4.3e93e8"
+ ]
+ ]
+ },
+ {
+ "id": "27451716.fec75",
+ "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": 2169.333168029785,
+ "y": 1491.2530603408813,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "540078c7.3e22f"
+ ]
+ ]
+ },
+ {
+ "id": "250da88.60119d8",
+ "type": "set",
+ "name": "set found-network-instance-group to false",
+ "xml": "<set>\n<parameter name='found-network-instance-group' value='false' />\n",
+ "comments": "",
+ "x": 2199.3331298828125,
+ "y": 1444.5864324569702,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "540078c7.3e22f",
+ "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": 2485.9996795654297,
+ "y": 1491.253059387207,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1359274a.c9e751"
+ ]
+ ]
+ },
+ {
+ "id": "1359274a.c9e751",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2707.666458129883,
+ "y": 1491.2530241012573,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1f76ed63.309293"
+ ]
+ ]
+ },
+ {
+ "id": "1f76ed63.309293",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2837.666488647461,
+ "y": 1491.2531003952026,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a8b95ef5.c774a",
+ "38775c89.04b34c"
+ ]
+ ]
+ },
+ {
+ "id": "a8b95ef5.c774a",
+ "type": "set",
+ "name": "set found-network-instance-group to true",
+ "xml": "<set>\n<parameter name='found-network-instance-group' value='true' />\n",
+ "comments": "",
+ "x": 3070.9996643066406,
+ "y": 1462.9197254180908,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "38775c89.04b34c",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2964.333278656006,
+ "y": 1511.253095626831,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "67857de.8994284",
+ "type": "switchNode",
+ "name": "switch found-network-instance-group",
+ "xml": "<switch test='`$found-network-instance-group`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2180.999786376953,
+ "y": 1541.253041267395,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "8b10053b.c507b8"
+ ]
+ ]
+ },
+ {
+ "id": "8b10053b.c507b8",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2402.666633605957,
+ "y": 1541.2530636787415,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "73628974.41794"
+ ]
+ ]
+ },
+ {
+ "id": "73628974.41794",
+ "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": 2549.333206176758,
+ "y": 1539.5863981246948,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "4394124c.44d794",
+ "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": 585.9999694824219,
+ "y": 1334.5864477157593,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "a686c66d.95e1a8",
+ "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": 2161.0001106262207,
+ "y": 1589.5863771438599,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "ffe952b4.3e93e8",
+ "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": 2202.666816711426,
+ "y": 1636.2530450820923,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "2407628e.2ee6be",
+ "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": 565.1666641235352,
+ "y": 1592.0863971710205,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "7a429165.827b78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 689.6667518615723,
+ "y": 5551.729342460632,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bf4aeb08.2c39a"
+ ]
+ ]
+ },
+ {
+ "id": "a323fa5.3a8dc88",
+ "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": 473.0000991821289,
+ "y": 5552.395987510681,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7a429165.827b78"
+ ]
+ ]
+ },
+ {
+ "id": "bf4aeb08.2c39a",
+ "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": 973.0000801086426,
+ "y": 5551.253023147583,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1715949a.0a3723",
+ "36f68961.b1e9ee"
+ ]
+ ]
+ },
+ {
+ "id": "62aedcf5.8101fc",
+ "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": 1529.6667518615723,
+ "y": 5569.586276054382,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "1715949a.0a3723",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1232.3573036193848,
+ "y": 5528.205438613892,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "cd0daf19.9d1e"
+ ]
+ ]
+ },
+ {
+ "id": "36f68961.b1e9ee",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1240.9287338256836,
+ "y": 5572.491151809692,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2487c202.d2179e"
+ ]
+ ]
+ },
+ {
+ "id": "52665799.0d53d",
+ "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": 1532.3573532104492,
+ "y": 5526.348539352417,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "cd0daf19.9d1e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1385.6189880371094,
+ "y": 5527.785677909851,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "52665799.0d53d",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "2487c202.d2179e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1383.9522705078125,
+ "y": 5571.4524302482605,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "62aedcf5.8101fc",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "d4a87018.ef3a9",
+ "type": "switchNode",
+ "name": "switch subnet_length",
+ "xml": "<switch test='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.5714988708496,
+ "y": 3984.3483905792236,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b0edb11e.282bc",
+ "b1855265.5e5398",
+ "5293df59.0d5738"
+ ]
+ ]
+ },
+ {
+ "id": "b0edb11e.282bc",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1467.4286613464355,
+ "y": 3947.2054500579834,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "39976e51.0d3af2"
+ ]
+ ]
+ },
+ {
+ "id": "b1855265.5e5398",
+ "type": "outcome",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1468.8572311401367,
+ "y": 3985.7766132354736,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "39976e51.0d3af2"
+ ]
+ ]
+ },
+ {
+ "id": "5293df59.0d5738",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1467.428695678711,
+ "y": 4024.3480052948,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "4ce6f696.2fb698"
+ ]
+ ]
+ },
+ {
+ "id": "4ce6f696.2fb698",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1588.857250213623,
+ "y": 4024.3482723236084,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b66dbfec.08d64",
+ "e13df041.93d998"
+ ]
+ ]
+ },
+ {
+ "id": "39976e51.0d3af2",
+ "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": 1660.2858543395996,
+ "y": 3955.7766132354736,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "f6f8007e.44c25",
+ "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": 1154.9719772338867,
+ "y": 582.5269885063171,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bbf73747.fb38e8"
+ ]
+ ]
+ },
+ {
+ "id": "750a541f.389b9c",
+ "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 + ' with error: ' + $error-message`\" />\n",
+ "comments": "",
+ "x": 1539.0433540344238,
+ "y": 582.5269389152527,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "40830cf7.851d3c",
+ "type": "comment",
+ "name": "SELF-SERVE FORK",
+ "info": "",
+ "comments": "",
+ "x": 885.8413009643555,
+ "y": 604.9792346954346,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "bbf73747.fb38e8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1360.2695579528809,
+ "y": 582.0150198936462,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "750a541f.389b9c"
+ ]
+ ]
+ },
+ {
+ "id": "71c37da.ca45504",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 271.0793685913086,
+ "y": 421.87208461761475,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f0fccd2a.ef011",
+ "b64fdf51.475e6",
+ "4603d416.c13b14",
+ "54a690a3.566b7",
+ "2eb275c7.eda4b2",
+ "d1195cfa.559228"
+ ]
+ ]
+ },
+ {
+ "id": "a874eb32.f6f168",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1930.047706604004,
+ "y": 4002.952467918396,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5916323f.9579e4",
+ "920a9f96.de71d8",
+ "c34c6358.0d5a1",
+ "a8f75919.b0f548"
+ ]
+ ]
+ },
+ {
+ "id": "85e069bd.2867e",
+ "type": "set",
+ "name": "clear aai.l3-network",
+ "xml": "<set>\n<parameter name='aai.l3-network.' value='' />\n",
+ "comments": "",
+ "x": 1288.6191520690918,
+ "y": 3375.8095865249634,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "55b96b73.a3fe2c",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 3730.3330879211426,
+ "y": 3902.9521503448486,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "721426a5.cd4d3",
+ "type": "set",
+ "name": "set found-network to false",
+ "xml": "<set>\n<parameter name='found-network' value='false' />\n",
+ "comments": "",
+ "x": 1430.047679901123,
+ "y": 3608.6665544509888,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "62e527d2.1d70b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2401.7619857788086,
+ "y": 3762.952350616455,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1327057d.754d53",
+ "5d3cb1c3.7483"
+ ]
+ ]
+ },
+ {
+ "id": "5d3cb1c3.7483",
+ "type": "switchNode",
+ "name": "switch found-network",
+ "xml": "<switch test='`$found-network`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2593.190532684326,
+ "y": 3792.952404975891,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "580a5665.5e59c8"
+ ]
+ ]
+ },
+ {
+ "id": "d5b2ed44.4c2308",
+ "type": "set",
+ "name": "set found-network to true",
+ "xml": "<set>\n<parameter name='found-network' value='true' />\n",
+ "comments": "",
+ "x": 3786.047966003418,
+ "y": 3857.2378311157227,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "580a5665.5e59c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2761.7620239257812,
+ "y": 3792.9523344039917,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a329bff7.fcce5"
+ ]
+ ]
+ },
+ {
+ "id": "a329bff7.fcce5",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2891.762092590332,
+ "y": 3791.5237283706665,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5b55e55c.75e71c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1602.0477027893066,
+ "y": 3736.6666288375854,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d845e519.b3b708",
+ "b0c27a22.aa05d"
+ ]
+ ]
+ },
+ {
+ "id": "b0c27a22.aa05d",
+ "type": "switchNode",
+ "name": "switch found-network",
+ "xml": "<switch test='`$found-network`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1812.0476570129395,
+ "y": 3808.666512489319,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "55660d1.d082974"
+ ]
+ ]
+ },
+ {
+ "id": "55660d1.d082974",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1980.6191482543945,
+ "y": 3808.6664419174194,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ee901ebf.55824"
+ ]
+ ]
+ },
+ {
+ "id": "ee901ebf.55824",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 2110.6192169189453,
+ "y": 3807.2378358840942,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "813f9f7d.79ca28",
+ "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": 1127.3809127807617,
+ "y": 736.681556224823,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "35d8f89f.cae8e8",
+ "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": 1209.1943588256836,
+ "y": 634.019036769867,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "11521b87.cda144",
+ "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": 1117.2856407165527,
+ "y": 684.4588055610657,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "2f302cda.06e25c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 905.9521713256836,
+ "y": 653.967264175415,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "f6f8007e.44c25",
+ "35d8f89f.cae8e8",
+ "11521b87.cda144",
+ "813f9f7d.79ca28"
+ ]
+ ]
+ },
+ {
+ "id": "c34c6358.0d5a1",
+ "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<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].network-start-address'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].network-start-address`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].gateway-address'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].gateway-address`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].subnets-data.subnet-data[$subnet-index].cidr-mask'\n value='`$aai.l3-network.l3-network[$db-network-index].subnets.subnet[$subnet-index].cidr-mask`' />\n",
+ "comments": "",
+ "x": 2084.3334732055664,
+ "y": 4033.634214401245,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "a8f75919.b0f548",
+ "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": 2098.8572540283203,
+ "y": 4086.477168083191,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5b9cfd56.94cab4",
+ "20b53f2d.6d298"
+ ]
+ ]
+ },
+ {
+ "id": "5b9cfd56.94cab4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2261.714418683733,
+ "y": 4065.0485258102417,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "5825a0c3.778368"
+ ]
+ ]
+ },
+ {
+ "id": "20b53f2d.6d298",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2260.2857513427734,
+ "y": 4110.762951850891,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "4ebb03e8.e8e0ec"
+ ]
+ ]
+ },
+ {
+ "id": "5825a0c3.778368",
+ "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": 2434.571617126465,
+ "y": 4063.619921684265,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "4ebb03e8.e8e0ec",
+ "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": 2431.714385986328,
+ "y": 4110.762951850891,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5916323f.9579e4",
+ "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": 2099.333423614502,
+ "y": 3915.5248403549194,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e517ce5c.e07be8"
+ ]
+ ]
+ },
+ {
+ "id": "e517ce5c.e07be8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2266.000026702881,
+ "y": 3915.524492263794,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2b57ab32.a2f884"
+ ]
+ ]
+ },
+ {
+ "id": "2b57ab32.a2f884",
+ "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": 2447.6668128967285,
+ "y": 3914.858144760132,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "920a9f96.de71d8",
+ "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": 2094.5717582702637,
+ "y": 3980.0159463882446,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "cc335709.20c6a",
+ "d22c3e1.6742e4"
+ ]
+ ]
+ },
+ {
+ "id": "cc335709.20c6a",
+ "type": "outcome",
+ "name": "4",
+ "xml": "<outcome value='4'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2260.285900115967,
+ "y": 3961.4443435668945,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b999772a.e74e08"
+ ]
+ ]
+ },
+ {
+ "id": "d22c3e1.6742e4",
+ "type": "outcome",
+ "name": "6",
+ "xml": "<outcome value='6'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2260.285861968994,
+ "y": 4002.8730869293213,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "baf052e9.035a8"
+ ]
+ ]
+ },
+ {
+ "id": "b999772a.e74e08",
+ "type": "set",
+ "name": "set tmp.ip-version to ipv4",
+ "xml": "<set>\n<parameter name='tmp.ip-version' value='ipv4' />\n",
+ "comments": "",
+ "x": 2447.428665161133,
+ "y": 3960.5872707366943,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "baf052e9.035a8",
+ "type": "set",
+ "name": "set tmp.ip-version to ipv6",
+ "xml": "<set>\n<parameter name='tmp.ip-version' value='ipv6' />\n",
+ "comments": "",
+ "x": 2446.000217437744,
+ "y": 4002.87308883667,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "f3f529c4.6b12c",
+ "type": "switchNode",
+ "name": "switch network-role",
+ "xml": "<switch test='`$db.vf-network-role-mapping[$role-index].network-role`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 726.9999504089355,
+ "y": 3988.2529973983765,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ad907250.d52f88",
+ "1e7fd31a.7311cd",
+ "ffba2516.16032",
+ "dfcf0f8b.63ead"
+ ]
+ ]
+ },
+ {
+ "id": "ad907250.d52f88",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 895.09521484375,
+ "y": 3886.5864086151123,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "98619fd2.bec62"
+ ]
+ ]
+ },
+ {
+ "id": "1e7fd31a.7311cd",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 893.6665916442871,
+ "y": 4014.919596672058,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7818536.37f0dac"
+ ]
+ ]
+ },
+ {
+ "id": "98619fd2.bec62",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1032.4762229919434,
+ "y": 3926.347988128662,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ddb641a.0cdf6c",
+ "type": "get-resource",
+ "name": "get-resource VNF_RELATED_NETWORK_ROLE",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VNF_RELATED_NETWORK_ROLE where vnf_customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid\n and network_role = $db.vf-network-role-mapping[$role-index].network-role'\n pfx='db.vnf-related-network-role[]'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1389.0000457763672,
+ "y": 4317.99951171875,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "6e176994.c9fc08",
+ "a8e7219.491b5e"
+ ]
+ ]
+ },
+ {
+ "id": "6e176994.c9fc08",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1657.6667098999023,
+ "y": 4148.666353225708,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "cf025be1.019988"
+ ]
+ ]
+ },
+ {
+ "id": "34f534dd.e70314",
+ "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 VNF_RELATED_NETWORK_ROLE table\" />\n",
+ "comments": "",
+ "x": 1967.6666831970215,
+ "y": 4148.475923538208,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "cf025be1.019988",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1804.8572273254395,
+ "y": 4147.214367866516,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "34f534dd.e70314",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "a8e7219.491b5e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660.6667404174805,
+ "y": 4511.3328647613525,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2d2c045a.605fac"
+ ]
+ ]
+ },
+ {
+ "id": "2d2c045a.605fac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1827.0000457763672,
+ "y": 4509.33251953125,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d22411ae.cfab38",
+ "f00be450.6e03b8",
+ "ed5ab810.0698c",
+ "fe2e985b.3fac1",
+ "85d1660f.115f8",
+ "56fd3cba.9c5d9c",
+ "b51e7fb9.9341e",
+ "be6e885e.eba838",
+ "af3119a2.d6d4a8"
+ ]
+ ]
+ },
+ {
+ "id": "6cf05edd.c5677",
+ "type": "outcome",
+ "name": "service-instance",
+ "xml": "<outcome value='service-instance'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2765.285514831543,
+ "y": 3681.5711908340454,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ec948079.0335d"
+ ]
+ ]
+ },
+ {
+ "id": "ec948079.0335d",
+ "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": 2990.7613525390625,
+ "y": 3681.9998207092285,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ecc5143d.d0e99"
+ ]
+ ]
+ },
+ {
+ "id": "ecc5143d.d0e99",
+ "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": 3225.9999237060547,
+ "y": 3680.333251953125,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "bbd443c8.b2a97"
+ ]
+ ]
+ },
+ {
+ "id": "bbd443c8.b2a97",
+ "type": "outcome",
+ "name": "service-instance.service-instance-id",
+ "xml": "<outcome value='service-instance.service-instance-id'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3492.4282836914062,
+ "y": 3680.333315849304,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b0369bab.d1cf"
+ ]
+ ]
+ },
+ {
+ "id": "b0369bab.d1cf",
+ "type": "set",
+ "name": "set network-service-instance-id",
+ "xml": "<set>\n<parameter name='network-service-instance-id'\n value='`$aai.l3-network.l3-network[$db-network-index].relationship-list.relationship[$db-rel-index].relationship-data[$db-data-index].relationship-value`' />\n",
+ "comments": "",
+ "x": 3786.000068664551,
+ "y": 3678.6667308807373,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "d22411ae.cfab38",
+ "type": "execute",
+ "name": "generate network-topology-identifier-structure url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-topology-identifier-structure`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$network-service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2146.3332138061523,
+ "y": 4205.000152587891,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ed5ab810.0698c",
+ "type": "execute",
+ "name": "execute RestApiCallNode - get network-topology-identifier-structure",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ntis-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ntis\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2203.3330078125,
+ "y": 4308.428893089294,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e6cc22fc.af83a8"
+ ]
+ ]
+ },
+ {
+ "id": "f00be450.6e03b8",
+ "type": "execute",
+ "name": "generate network-topology-identifier-structure url (part 2)",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ntis-url\"/>\n <parameter name=\"target\" value=\"{network-id}\"/>\n <parameter name=\"replacement\" value=\"`$l3-network-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2167.999801635742,
+ "y": 4248.33349609375,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fa6296d4.7da71",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-vnfa.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 473.3334197998047,
+ "y": 4154.99951171875,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e6cc22fc.af83a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2532.442195892334,
+ "y": 4308.179370880127,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "282f7afe.cbc7c6"
+ ]
+ ]
+ },
+ {
+ "id": "9143790a.31996",
+ "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=\"`\n 'Error retrieving network-topology-identifier-structure for service instance '\n + $network-service-instance-id\n + ' and network-id '\n + $l3-network-id`\" />\n",
+ "comments": "",
+ "x": 2837.666572570801,
+ "y": 4318.665860176086,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "282f7afe.cbc7c6",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2669.8570861816406,
+ "y": 4307.404459953308,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9143790a.31996",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "fe2e985b.3fac1",
+ "type": "set",
+ "name": "set is-trunked and segmentation-id in vnf-network",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].is-trunked'\n value='`$mdsal-ntis.network-topology-identifier-structure.is-trunked`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].segmentation-id'\n value='`$mdsal-ntis.network-topology-identifier-structure.segmentation-id`' />\n ",
+ "comments": "",
+ "x": 2146.000030517578,
+ "y": 4368.66651725769,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "56fd3cba.9c5d9c",
+ "type": "save",
+ "name": "custom query: get owning entity",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.oe\">\n<parameter name=\"start[0]\" value=\"`'nodes/service-instances/service-instance?service-instance-id=' + $network-service-instance-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"/query/owning-entity-fromService-instance\" /> \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2086.9999237060547,
+ "y": 4444,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2a32fc41.36b374",
+ "2dd01fd8.93e128"
+ ]
+ ]
+ },
+ {
+ "id": "2a32fc41.36b374",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2297.2379722595215,
+ "y": 4422.666354179382,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "fe87cf4c.666438"
+ ]
+ ]
+ },
+ {
+ "id": "2dd01fd8.93e128",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2304.3808670043945,
+ "y": 4468.380578994751,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "d8b53acc.a4a998"
+ ]
+ ]
+ },
+ {
+ "id": "21db44b1.f7526c",
+ "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 getting owning entity from service instance\" />\n",
+ "comments": "",
+ "x": 2601.9999237060547,
+ "y": 4420.66650390625,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "fe87cf4c.666438",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2439.1904678344727,
+ "y": 4419.404948234558,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "21db44b1.f7526c",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "84457b19.381f68",
+ "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 owning entity from service instance\" />\n",
+ "comments": "",
+ "x": 2600.3334197998047,
+ "y": 4470.66650390625,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "d8b53acc.a4a998",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2437.5239639282227,
+ "y": 4469.404948234558,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "84457b19.381f68",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "e71b1bdf.e3349",
+ "type": "save",
+ "name": "custom query: get tenant network",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.get-networks\">\n<parameter name=\"start[0]\" value=\"`'/business/owning-entities/owning-entity/' + $tmp.AnAI-data.oe.results[0].owning-entity.owning-entity-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"`'/query/getNetworks?networkRole=' + $db.vnf-related-network-role[$rel-network-role-index].related-network-role\n + '&amp;cloudRegionId=' + $vnf-topology-operation-input.vnf-request-input.aic-cloud-region`\" /> \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2536.6667404174805,
+ "y": 4617.000137329102,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "76ce5749.456708",
+ "822b2122.3612e8"
+ ]
+ ]
+ },
+ {
+ "id": "76ce5749.456708",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2749.9047889709473,
+ "y": 4595.66663646698,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "9637e847.9f9948"
+ ]
+ ]
+ },
+ {
+ "id": "822b2122.3612e8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2757.0476837158203,
+ "y": 4641.380861282349,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "846ade0e.b07b78"
+ ]
+ ]
+ },
+ {
+ "id": "66764ab7.27f574",
+ "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 calling getNetworks custom query in AAI\" />\n",
+ "comments": "",
+ "x": 3054.6667404174805,
+ "y": 4593.666786193848,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "9637e847.9f9948",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2891.8572845458984,
+ "y": 4592.405230522156,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "66764ab7.27f574",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "b8d55e2e.271e08",
+ "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 l3-network returned from getNetworks custom query for related network role '\n + $db.vnf-related-network-role[0].related-network-role`\" />\n",
+ "comments": "",
+ "x": 3053.0002365112305,
+ "y": 4643.666786193848,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "846ade0e.b07b78",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2890.1907806396484,
+ "y": 4642.405230522156,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "b8d55e2e.271e08",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "e134937a.177c2",
+ "type": "for",
+ "name": "for each relationship",
+ "xml": "<for index='rel-index' start='0' end='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2503.6667404174805,
+ "y": 4743.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "52894cbe.44c3ac"
+ ]
+ ]
+ },
+ {
+ "id": "52894cbe.44c3ac",
+ "type": "switchNode",
+ "name": "switch related-to",
+ "xml": "<switch test='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship[$rel-index].related-to`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2701.6667404174805,
+ "y": 4743.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "304c09da.85f77e"
+ ]
+ ]
+ },
+ {
+ "id": "304c09da.85f77e",
+ "type": "outcome",
+ "name": "vlan-tag",
+ "xml": "<outcome value='vlan-tag'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2871.6667404174805,
+ "y": 4743.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3e80d79f.f3105"
+ ]
+ ]
+ },
+ {
+ "id": "3e80d79f.f3105",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3039.6667404174805,
+ "y": 4741.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "1f10b656.cec3a2",
+ "ce9fe060.e2a868",
+ "bbb52bca.889a8"
+ ]
+ ]
+ },
+ {
+ "id": "1f10b656.cec3a2",
+ "type": "set",
+ "name": "set vlan-tag-id",
+ "xml": "<set>\n<parameter name='vlan-tag-id' value='`$tmp.AnAI-data.get-networks.results[0].l3-network.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value`' />\n",
+ "comments": "",
+ "x": 3215.6667404174805,
+ "y": 4701.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "ce9fe060.e2a868",
+ "type": "get-resource",
+ "name": "get-resource vlan-tag",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"vlan-tag\" \n\t\tkey=\"vlan-tag.vlan-tag-id = $vlan-tag-id\"\n pfx='aai.vlan-tag' local-only='false'\n>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3237.6667404174805,
+ "y": 4759.000282287598,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "56d9856.c67207c",
+ "21dc559b.022632"
+ ]
+ ]
+ },
+ {
+ "id": "56d9856.c67207c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3417.7143478393555,
+ "y": 4741.143348693848,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "23eac337.91b434"
+ ]
+ ]
+ },
+ {
+ "id": "23eac337.91b434",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3560.5236282348633,
+ "y": 4741.333990573883,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "ca977500.30f7b",
+ "cc558d50.a15698"
+ ]
+ ]
+ },
+ {
+ "id": "ca977500.30f7b",
+ "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 getting vlan-tag object from AAI\" />\n",
+ "comments": "",
+ "x": 3721.666633605957,
+ "y": 4737.000509262085,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "85d1660f.115f8",
+ "type": "for",
+ "name": "for each related network role",
+ "xml": "<for index='rel-network-role-index' start='0' end='`$db.vnf-related-network-role_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2074.6666717529297,
+ "y": 4673.333847045898,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3baee05d.ce7ed"
+ ]
+ ]
+ },
+ {
+ "id": "3baee05d.ce7ed",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2279.6666717529297,
+ "y": 4674.6669921875,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "e71b1bdf.e3349",
+ "e134937a.177c2",
+ "656856.eda49fac"
+ ]
+ ]
+ },
+ {
+ "id": "be6e885e.eba838",
+ "type": "switchNode",
+ "name": "switch rn-index",
+ "xml": "<switch test='`$rn-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2035.6666717529297,
+ "y": 4563,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "284c1661.f85f52"
+ ]
+ ]
+ },
+ {
+ "id": "b51e7fb9.9341e",
+ "type": "set",
+ "name": "set rn-index to related network length",
+ "xml": "<set>\n<parameter name='rn-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network_length`' />\n",
+ "comments": "",
+ "x": 2104.3332595825195,
+ "y": 4513.999853134155,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "284c1661.f85f52",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2199.6666717529297,
+ "y": 4563,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "983fc56f.c30ce"
+ ]
+ ]
+ },
+ {
+ "id": "983fc56f.c30ce",
+ "type": "set",
+ "name": "set rn-index to 0",
+ "xml": "<set>\n<parameter name='rn-index' value='0' />\n",
+ "comments": "",
+ "x": 2359.6666717529297,
+ "y": 4563,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "656856.eda49fac",
+ "type": "set",
+ "name": "set related-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].related-networks.related-network[$rn-index].network-id'\n value='`$tmp.AnAI-data.get-networks.results[0].l3-network.network-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].network-role'\n value='`$tmp.AnAI-data.get-networks.results[0].l3-network.network-role`' />\n",
+ "comments": "",
+ "x": 2507.3333282470703,
+ "y": 4673.66682434082,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "af3119a2.d6d4a8",
+ "type": "set",
+ "name": "set new related network 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].related-networks.related-network_length'\n value='`$rn-index + 1`' />\n",
+ "comments": "",
+ "x": 2069.6667404174805,
+ "y": 4817.000137329102,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "21dc559b.022632",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3419.6667404174805,
+ "y": 4789.000137329102,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "a3807c8f.32092"
+ ]
+ ]
+ },
+ {
+ "id": "a3807c8f.32092",
+ "type": "set",
+ "name": "set related-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].related-networks.related-network[$rn-index].vlan-tags.vlan-interface'\n value='`$aai.vlan-tag.vlan-tag-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.upper-tag-id'\n value='`$aai.vlan-tag.vlan-id-outer`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.lower-tag-id'\n value='`$aai.vlan-tag.vlan-id-inner`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-resource-assignments.vnf-networks.vnf-network[$network-index].related-networks.related-network[$rn-index].vlan-tags.is-private'\n value='`$aai.vlan-tag.is-private`' />\n",
+ "comments": "",
+ "x": 3611.6667404174805,
+ "y": 4789.000137329102,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "bbb52bca.889a8",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 3189.6667404174805,
+ "y": 4827.000137329102,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "5f19f981.44f8e8",
+ "type": "comment",
+ "name": "temporary data issue: also ignore string \"null\" and \"NULL\"",
+ "info": "",
+ "comments": "",
+ "x": 866.0000534057617,
+ "y": 3846.7621212005615,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "ffba2516.16032",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value='null'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 893.1428756713867,
+ "y": 3929.6192626953125,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "98619fd2.bec62"
+ ]
+ ]
+ },
+ {
+ "id": "dfcf0f8b.63ead",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value='NULL'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 893.1428852081299,
+ "y": 3972.4763345718384,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "98619fd2.bec62"
+ ]
+ ]
+ },
+ {
+ "id": "54a690a3.566b7",
+ "type": "switchNode",
+ "name": "switch input cloud-owner",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.cloud-owner`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 525.9999923706055,
+ "y": 258.6666564941406,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "36ae954f.893402",
+ "721bab5f.eced9c"
+ ]
+ ]
+ },
+ {
+ "id": "36ae954f.893402",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 709.333366394043,
+ "y": 228.66664505004883,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "7432cce1.83deac"
+ ]
+ ]
+ },
+ {
+ "id": "721bab5f.eced9c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 709.095272064209,
+ "y": 269.61913871765137,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "3204702c.f7b9d8"
+ ]
+ ]
+ },
+ {
+ "id": "7432cce1.83deac",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 844.3333206176758,
+ "y": 226.99998474121094,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "3204702c.f7b9d8",
+ "type": "set",
+ "name": "set prop.cloud-region.cloud-owner",
+ "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$vnf-topology-operation-input.vnf-request-input.cloud-owner`' />\n",
+ "comments": "",
+ "x": 925.9999771118164,
+ "y": 268.6666660308838,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ },
+ {
+ "id": "2eb275c7.eda4b2",
+ "type": "call",
+ "name": "call self-serve-vnf-forking-logic",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 543.8571472167969,
+ "y": 551.9673004150391,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d1195cfa.559228",
+ "type": "switchNode",
+ "name": "switch ss.self-serve-flag",
+ "xml": "<switch test=\"`$ss.self-serve-flag`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 523.9998626708984,
+ "y": 717.5387878417969,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "272b86e.2f2c07a",
+ "af9ed331.fb3a28"
+ ]
+ ]
+ },
+ {
+ "id": "272b86e.2f2c07a",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.7140197753906,
+ "y": 790.8240718841553,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "aefac3f0.23ec18"
+ ]
+ ]
+ },
+ {
+ "id": "af9ed331.fb3a28",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.2855377197266,
+ "y": 654.3959054946899,
+ "z": "8c36dbb6.ab0628",
+ "wires": [
+ [
+ "2f302cda.06e25c"
+ ]
+ ]
+ },
+ {
+ "id": "88c71ce1.a67868",
+ "type": "comment",
+ "name": "'Old' version of DG, called for flows where SO does not expect async response (so-sdnc-adapter)",
+ "info": "",
+ "comments": "",
+ "x": 454,
+ "y": 55,
+ "z": "8c36dbb6.ab0628",
+ "wires": []
+ }
+] \ No newline at end of file