DGs for SOTN NNI based service creation
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json
index e137522..f259816 100644 (file)
@@ -1,37 +1,20 @@
 [\r
     {\r
-        "id": "5567fb41.3853ac",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 442.02733993530273,\r
-        "y": 433.74087047576904,\r
-        "z": "6cf3d2be.22379c",\r
-        "wires": [\r
-            [\r
-                "a47debf4.9031c"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "67dcf0d.95d1c1",\r
+        "id": "e9f5d8f7.e285a8",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 166.5,\r
-        "y": 82.66665649414062,\r
-        "z": "6cf3d2be.22379c",\r
+        "x": 83.47266006469727,\r
+        "y": 26,\r
+        "z": "8abb02c9.ea909",\r
         "wires": [\r
             [\r
-                "13cbcd0e.cde623"\r
+                "f361420f.d2dd5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "13cbcd0e.cde623",\r
+        "id": "f361420f.d2dd5",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
         "outputs": 1,\r
-        "x": 297.7856903076172,\r
-        "y": 131.90476512908936,\r
-        "z": "6cf3d2be.22379c",\r
+        "x": 214.75835037231445,\r
+        "y": 75.23810863494873,\r
+        "z": "8abb02c9.ea909",\r
         "wires": [\r
             [\r
-                "90d8ef48.9bbbb8"\r
+                "83b54aea.5a2e08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "90d8ef48.9bbbb8",\r
+        "id": "83b54aea.5a2e08",\r
         "type": "method",\r
         "name": "method sotn-vf-operation-uni-create",\r
         "xml": "<method rpc='sotn-vf-operation-uni-create' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 300.9286193847656,\r
-        "y": 216.66668891906738,\r
-        "z": "6cf3d2be.22379c",\r
+        "x": 217.9012794494629,\r
+        "y": 160.00003242492676,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "d23ea373.2facb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "129ae0d2.67909f",\r
+        "type": "switchNode",\r
+        "name": "switch vnf_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 592,\r
+        "y": 45,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "4518c55e.2af6cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4518c55e.2af6cc",\r
+        "type": "other",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 778.6666793823242,\r
+        "y": 44.33329772949219,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "49f6673c.896c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "49f6673c.896c38",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",\r
+        "comments": "",\r
+        "x": 960.3333053588867,\r
+        "y": 44.33329772949219,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "344a6d66.006ae2",\r
+        "type": "for",\r
+        "name": "for each vnf",\r
+        "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 581.5794200897217,\r
+        "y": 99.50003504753113,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "b740b835.934dd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b740b835.934dd8",\r
+        "type": "switchNode",\r
+        "name": "switch this vnf-id == input vnf-id",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 832.5795154571533,\r
+        "y": 95.16665554046631,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "7d8c54e9.05fcdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d8c54e9.05fcdc",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1050.9128322601318,\r
+        "y": 97.1666374206543,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "4090d448.987d9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4090d448.987d9c",\r
+        "type": "set",\r
+        "name": "set vnf-index",\r
+        "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
+        "comments": "",\r
+        "x": 1204.2460041046143,\r
+        "y": 97.16665840148926,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d6f734d6.542738",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-index",\r
+        "xml": "<switch test='`$vnf-index`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 595.579439163208,\r
+        "y": 160.5000331401825,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "cc5e7b73.313338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc5e7b73.313338",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 757.5794849395752,\r
+        "y": 159.50003218650818,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "d5e799c5.aa66e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5e799c5.aa66e8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf id not found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 906.8295764923096,\r
+        "y": 157.27790999412537,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e3b155c.1acdba",\r
+        "type": "switchNode",\r
+        "name": "switch vf-modules.vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 630.2500219345093,\r
+        "y": 221.99999403953552,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "d6b8c302.00cb5",\r
+                "74fd2b9a.39bbc4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6b8c302.00cb5",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861.2500324249268,\r
+        "y": 197.99999117851257,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "b130c62a.6d5b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74fd2b9a.39bbc4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 861.2500324249268,\r
+        "y": 237.99999117851257,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "aa20e5dd.34f068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b130c62a.6d5b28",\r
+        "type": "set",\r
+        "name": "set vf-index",\r
+        "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1003.7500324249268,\r
+        "y": 197.99999117851257,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "aa20e5dd.34f068",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1005.6070766448975,\r
+        "y": 237.93650317192078,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "290ec3b5.b78dec",\r
+                "ba0b306b.1384c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba0b306b.1384c",\r
+        "type": "set",\r
+        "name": "set vf-index",\r
+        "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1158.3055515289307,\r
+        "y": 207.55560186458752,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "290ec3b5.b78dec",\r
+        "type": "for",\r
+        "name": "for each existing vf-index",\r
+        "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1214.7340564727783,\r
+        "y": 260.7777316570282,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "f5468be4.2d7768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "55b24f6b.1c68",\r
+        "type": "comment",\r
+        "name": "make sure this network doesn't exist already",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1438.384786605835,\r
+        "y": 219.03178906440735,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f5468be4.2d7768",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1490.0197772979736,\r
+        "y": 260.3492343425751,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "416b188c.9635e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "416b188c.9635e8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1390.7499752044678,\r
+        "y": 318.9206655025482,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "5ff9d421.bc0c2c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ff9d421.bc0c2c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",\r
+        "comments": "",\r
+        "x": 1538.500078201294,\r
+        "y": 318.7778575713746,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3005c7c.22f1c",\r
+        "type": "comment",\r
+        "name": "Take the parameter names by removing prefix",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 674.8297939300537,\r
+        "y": 294.8294517993927,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c2f9b109.0e45",\r
+        "type": "for",\r
+        "name": "for loop idx - VF input parameters",\r
+        "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 636.8295917510986,\r
+        "y": 338.16278433799744,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "c2930fc2.e5909"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2930fc2.e5909",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 851.6079349517822,\r
+        "y": 335.71836829185486,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "d1ed645d.aa3a78",\r
+                "6dcf8b92.c77424"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1ed645d.aa3a78",\r
+        "type": "execute",\r
+        "name": "execute split parameterName",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1047.8641376495361,\r
+        "y": 313.46650671958923,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6dcf8b92.c77424",\r
+        "type": "set",\r
+        "name": "set parameterName",\r
+        "xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",\r
+        "comments": "",\r
+        "x": 1017.3085651397705,\r
+        "y": 350.46662306785583,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d23ea373.2facb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 290.5794315338135,\r
+        "y": 355.4961154460907,\r
+        "z": "8abb02c9.ea909",\r
         "wires": [\r
             [\r
-                "5567fb41.3853ac"\r
+                "c2f9b109.0e45",\r
+                "129ae0d2.67909f",\r
+                "2e3b155c.1acdba",\r
+                "a11f77d.859bf88",\r
+                "7c53c20f.68b9dc",\r
+                "42215efb.1d8e4",\r
+                "91211121.8f53",\r
+                "d001c737.a47218",\r
+                "b74ff3ee.b1d98",\r
+                "344a6d66.006ae2",\r
+                "d6f734d6.542738",\r
+                "3cca5aeb.576896",\r
+                "6ba0a91d.74fdb8",\r
+                "c0fe8566.aad758",\r
+                "3368b1eb.e464fe",\r
+                "29fa2ed2.416422"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a47debf4.9031c",\r
+        "id": "d001c737.a47218",\r
         "type": "returnSuccess",\r
         "name": "return success",\r
         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
         "comments": "",\r
-        "x": 709.9444580078125,\r
-        "y": 516.2777709960938,\r
-        "z": "6cf3d2be.22379c",\r
+        "x": 577.8019104003906,\r
+        "y": 893.00732421875,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "91211121.8f53",\r
+        "type": "save",\r
+        "name": "save service relationship in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' 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[$tmp.relationship_length].related-to`\" value=\"uni\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].related-link`\" value=\"`'/network/unis/uni/' + $prop.vf-id`\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].relationship-data[0].relationship-key`\" value=\"id\" />\n<parameter name=\"`relationship-list.relationship[$tmp.relationship_length].relationship-data[0].relationship-value`\" value=\"`$prop.vf-id`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 633.0794067382812,\r
+        "y": 851.83349609375,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "42215efb.1d8e4",\r
+        "type": "save",\r
+        "name": "save uni resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $prop.vf-id' >\n<parameter name=\"id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"tpId\" value='`$prop.uni.tpId`' />\n<parameter name='cVLAN' value='`$prop.uni.vlanId`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 615.0794677734375,\r
+        "y": 747.83349609375,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b74ff3ee.b1d98",\r
+        "type": "set",\r
+        "name": "set vf-module-level-oper-status",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status'  value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",\r
+        "comments": "",\r
+        "x": 632.579439163208,\r
+        "y": 698.5000331401825,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7c53c20f.68b9dc",\r
+        "type": "set",\r
+        "name": "set vf-module-object-path",\r
+        "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-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/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-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 + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
+        "comments": "",\r
+        "x": 616.079475402832,\r
+        "y": 656.3335154056549,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a11f77d.859bf88",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n",\r
+        "comments": "",\r
+        "x": 627.9325504302979,\r
+        "y": 604.8296692371368,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c0fe8566.aad758",\r
+        "type": "set",\r
+        "name": "set new vf-module_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",\r
+        "comments": "",\r
+        "x": 608,\r
+        "y": 497,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3cca5aeb.576896",\r
+        "type": "set",\r
+        "name": "set vf-module-request-input.",\r
+        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
+        "comments": "",\r
+        "x": 614.9995880126953,\r
+        "y": 391.9912657737732,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ba0a91d.74fdb8",\r
+        "type": "call",\r
+        "name": "call sotn-get-vf-module-uni-param",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-vf-module-uni-param' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653.8132629394531,\r
+        "y": 444.83709144592285,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3368b1eb.e464fe",\r
+        "type": "execute",\r
+        "name": "execute generate-vf-id",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 606.8132781982422,\r
+        "y": 553.3409690856934,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "29fa2ed2.416422",\r
+        "type": "get-resource",\r
+        "name": "get-resource generic-vnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 605,\r
+        "y": 803,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "5c744e64.d3743"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c744e64.d3743",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 808,\r
+        "y": 798,\r
+        "z": "8abb02c9.ea909",\r
+        "wires": [\r
+            [\r
+                "79532ac9.38abe4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "79532ac9.38abe4",\r
+        "type": "set",\r
+        "name": "set tmp.relationship_length",\r
+        "xml": "<set>\n<parameter name=\"tmp.relationship_length\" value='`$tmp.aai.generic-vnf.relationship-list.relation_length`'/>\n",\r
+        "comments": "",\r
+        "x": 991,\r
+        "y": 795,\r
+        "z": "8abb02c9.ea909",\r
         "wires": []\r
     }\r
 ]
\ No newline at end of file