SDWAN vpn-create DG reoptimized 72/85972/2
authorprakash.e <prakash.e@huawei.com>
Mon, 22 Apr 2019 14:00:15 +0000 (19:30 +0530)
committerprakash eswaramoorthy <prakash.e@huawei.com>
Mon, 22 Apr 2019 14:04:16 +0000 (14:04 +0000)
Removed duplicate nodes to fetch vnf-id from
service-data where it is present in both validate
input parameter DG and vpn-create DG

Change-Id: I2188f040b199f9f986a80855f7164a015eff835d
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 92753192dce9d0f526c0ddf79b3c5de6f05721e4

platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json
platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.xml

index 475c093..58dcb22 100644 (file)
@@ -1,37 +1,35 @@
 [\r
     {\r
-        "id": "2464f2e7.0e2fce",\r
+        "id": "86705660.0abdc8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 450.00390625,\r
-        "y": 347.0000014305115,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 476.00390625,\r
+        "y": 401.9999997615814,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "32c4b65c.2d59aa",\r
-                "5509b148.13914",\r
-                "aad7e68e.3b6ca8",\r
-                "94574a55.b19c88",\r
-                "7de1d3e.65c652c",\r
-                "7b54ca79.4bc724",\r
-                "e23c49d7.715338",\r
-                "a50b2df2.ad39e",\r
-                "e9af352a.620918",\r
-                "bbeb53a3.c2576",\r
-                "37a48c20.31bdf4",\r
-                "c012bd48.a280b",\r
-                "3e34e572.c1fb4a",\r
-                "83fb72db.90602",\r
-                "370a2393.20ff3c"\r
+                "33a55b62.a48504",\r
+                "c9956259.20d27",\r
+                "92e109fc.d487c8",\r
+                "fa6a2af9.45d408",\r
+                "96b8a138.b9de9",\r
+                "1072d79c.c97df8",\r
+                "7fb4c42e.fff1cc",\r
+                "8252c529.c8dc08",\r
+                "d1676675.1b3088",\r
+                "80911d80.565f6",\r
+                "f1c0f2fa.5d8e8",\r
+                "69439d08.c30934",\r
+                "a6352f7.5aa86d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4af2ac42.490d34",\r
+        "id": "4414eba1.be7024",\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": 292.00392150878906,\r
-        "y": 130.99999284744263,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 318.00392150878906,\r
+        "y": 185.99999117851257,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "5b6c766c.98d2a8"\r
+                "665e6349.0f20bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5b6c766c.98d2a8",\r
+        "id": "665e6349.0f20bc",\r
         "type": "method",\r
         "name": "sdwan-vf-operation-vpn-create",\r
         "xml": "<method rpc='sdwan-vf-operation-vpn-create' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 291.00392150878906,\r
-        "y": 230.99999284744263,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 317.00392150878906,\r
+        "y": 285.9999911785126,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "2464f2e7.0e2fce"\r
+                "86705660.0abdc8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4418c0ab.c80bf",\r
+        "id": "c5e65dcf.93a1d",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 121.50392150878906,\r
-        "y": 42.00000047683716,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 147.50392150878906,\r
+        "y": 96.9999988079071,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "4af2ac42.490d34"\r
+                "4414eba1.be7024"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "32c4b65c.2d59aa",\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": 750.3333282470703,\r
-        "y": 238.4961256980896,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": [\r
-            [\r
-                "3161e290.49fc4e"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "3161e290.49fc4e",\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": 1002.3334197998047,\r
-        "y": 237.16278886795044,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": [\r
-            [\r
-                "5b45671f.cd82a8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e5b08bcc.460cf8",\r
-        "type": "set",\r
-        "name": "set vnf-index",\r
-        "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n\n",\r
-        "comments": "",\r
-        "x": 1373.9999084472656,\r
-        "y": 239.1627917289734,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "5b45671f.cd82a8",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1220.6667366027832,\r
-        "y": 239.16277074813843,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": [\r
-            [\r
-                "e5b08bcc.460cf8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "94574a55.b19c88",\r
+        "id": "c9956259.20d27",\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": 824.2541122436523,\r
-        "y": 460.6666588783264,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 851.2541379928589,\r
+        "y": 410.66667890548706,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "213647dd.26e428"\r
+                "5f7e52d8.71003c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "213647dd.26e428",\r
+        "id": "5f7e52d8.71003c",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1039.032455444336,\r
-        "y": 458.22224283218384,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1066.0324811935425,\r
+        "y": 408.2222628593445,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "501e761.bc5eb88",\r
-                "76a61aa5.aca9e4"\r
+                "b5888647.1272c8",\r
+                "f88a8224.ffbd4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "501e761.bc5eb88",\r
+        "id": "b5888647.1272c8",\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": 1235.2886581420898,\r
-        "y": 435.9703812599182,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1262.2886838912964,\r
+        "y": 385.97040128707886,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "76a61aa5.aca9e4",\r
+        "id": "f88a8224.ffbd4",\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": 1204.7330856323242,\r
-        "y": 472.9704976081848,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1231.7331113815308,\r
+        "y": 422.97051763534546,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "801b9de7.f8983",\r
+        "id": "84649b93.490df8",\r
         "type": "comment",\r
         "name": "Take the parameter names by removing prefix",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1208.2543144226074,\r
-        "y": 395.333327293396,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "5509b148.13914",\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": 764.7539215087891,\r
-        "y": 193.99999475479126,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": [\r
-            [\r
-                "1afa6ba0.b560d4"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "1afa6ba0.b560d4",\r
-        "type": "other",\r
-        "name": "NULL",\r
-        "xml": "<outcome value=''>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 951.4206008911133,\r
-        "y": 193.33329248428345,\r
-        "z": "4e5f9446.b42e3c",\r
-        "wires": [\r
-            [\r
-                "f6ded972.6369c8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "f6ded972.6369c8",\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": 1133.0872268676758,\r
-        "y": 193.33329248428345,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1235.254340171814,\r
+        "y": 345.33334732055664,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "aad7e68e.3b6ca8",\r
+        "id": "33a55b62.a48504",\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": 806.0039110183716,\r
-        "y": 313.9999957084656,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 833.0039367675781,\r
+        "y": 264.0000157356262,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "e139df7a.80637",\r
-                "caf10502.734168"\r
+                "5e528a3d.403a94",\r
+                "e1430919.889a48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e139df7a.80637",\r
+        "id": "5e528a3d.403a94",\r
         "type": "other",\r
         "name": "Null",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1037.003921508789,\r
-        "y": 289.9999928474426,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1064.0039472579956,\r
+        "y": 240.00001287460327,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "b4a2933f.20169"\r
+                "d1fe70de.0d5a2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "caf10502.734168",\r
+        "id": "e1430919.889a48",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1037.003921508789,\r
-        "y": 329.9999928474426,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1064.0039472579956,\r
+        "y": 280.00001287460327,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "63770f1.c37c1f"\r
+                "550ac6cc.1a43f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b4a2933f.20169",\r
+        "id": "d1fe70de.0d5a2",\r
         "type": "set",\r
         "name": "set vf-index",\r
         "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
         "comments": "",\r
-        "x": 1179.503921508789,\r
-        "y": 289.9999928474426,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1206.5039472579956,\r
+        "y": 240.00001287460327,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "63770f1.c37c1f",\r
+        "id": "550ac6cc.1a43f8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1181.3609657287598,\r
-        "y": 329.93650484085083,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1208.3609914779663,\r
+        "y": 279.9365248680115,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "82e73ea.9f6d1c",\r
-                "facab090.c3497"\r
+                "2b30e41b.b2df2c",\r
+                "735539ef.d045e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "facab090.c3497",\r
+        "id": "735539ef.d045e8",\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": 1334.059440612793,\r
-        "y": 299.55560353351757,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1361.0594663619995,\r
+        "y": 249.5556235606782,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "82e73ea.9f6d1c",\r
+        "id": "2b30e41b.b2df2c",\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": 1390.4879455566406,\r
-        "y": 352.77773332595825,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1417.4879713058472,\r
+        "y": 302.7777533531189,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "df7833b0.b66c4"\r
+                "e7001097.30f29"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f1cb1fc.e0fb2e",\r
+        "id": "87bb5bc0.359988",\r
         "type": "comment",\r
         "name": "make sure this network doesn't exist already",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1614.1386756896973,\r
-        "y": 311.0317907333374,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1641.1387014389038,\r
+        "y": 261.03181076049805,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "df7833b0.b66c4",\r
+        "id": "e7001097.30f29",\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": 1665.773666381836,\r
-        "y": 352.3492360115051,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1692.7736921310425,\r
+        "y": 302.34925603866577,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "f0bc8641.c01b88"\r
+                "c77c794f.c68788"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f0bc8641.c01b88",\r
+        "id": "c77c794f.c68788",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1566.50386428833,\r
-        "y": 410.92066717147827,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1593.5038900375366,\r
+        "y": 360.9206871986389,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "ac9ea707.076ba8"\r
+                "1ae23876.21a108"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ac9ea707.076ba8",\r
+        "id": "1ae23876.21a108",\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": 1714.2539672851562,\r
-        "y": 410.7778592403047,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1741.2539930343628,\r
+        "y": 360.7778792674653,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a50b2df2.ad39e",\r
+        "id": "1072d79c.c97df8",\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.vpn-vf-index`' />\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\n\n",\r
         "comments": "",\r
-        "x": 819.8571014404297,\r
-        "y": 763.4962468147278,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 846.8571271896362,\r
+        "y": 713.4962668418884,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "e23c49d7.715338",\r
+        "id": "96b8a138.b9de9",\r
         "type": "execute",\r
         "name": "execute generate-vf-module-index",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-vf-index\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 831.190673828125,\r
-        "y": 716.1629490852356,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 858.1906995773315,\r
+        "y": 666.1629691123962,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "7b54ca79.4bc724",\r
+        "id": "fa6a2af9.45d408",\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": 803.1907348632812,\r
-        "y": 667.1629490852356,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 830.1907606124878,\r
+        "y": 617.1629691123962,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7de1d3e.65c652c",\r
+        "id": "92e109fc.d487c8",\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": 803.1902618408203,\r
-        "y": 613.1542372703552,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 830.1902875900269,\r
+        "y": 563.1542572975159,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "e9af352a.620918",\r
+        "id": "7fb4c42e.fff1cc",\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`' />",\r
         "comments": "",\r
-        "x": 813.5040893554688,\r
-        "y": 861.0000678896904,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 840.5041151046753,\r
+        "y": 811.000087916851,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "83fb72db.90602",\r
+        "id": "69439d08.c30934",\r
         "type": "save",\r
         "name": "save sdwan vpn resource in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n      key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\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-version`' />\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.vpn-vf-index + '/vf-module-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 820.0039501190186,\r
-        "y": 906.5000157356262,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 847.0039758682251,\r
+        "y": 856.5000357627869,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "bbeb53a3.c2576",\r
+        "id": "8252c529.c8dc08",\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": 767.7264232635498,\r
-        "y": 999.673906326294,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 794.7264490127563,\r
+        "y": 949.6739263534546,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "37a48c20.31bdf4",\r
+        "id": "d1676675.1b3088",\r
         "type": "for",\r
         "name": "for loop i - Network 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",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 831.2578277587891,\r
-        "y": 549.5039067268372,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 858.2578535079956,\r
+        "y": 499.5039267539978,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "4c79fd81.204e24"\r
+                "63318660.a4e798"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4c79fd81.204e24",\r
+        "id": "63318660.a4e798",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1118.4807052612305,\r
-        "y": 549.7262206077576,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1145.480731010437,\r
+        "y": 499.7262406349182,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "6ee57e2b.017f1",\r
-                "6d15949f.a4f72c"\r
+                "1e3ec759.b2be29",\r
+                "bfacfb85.875b78"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6ee57e2b.017f1",\r
+        "id": "1e3ec759.b2be29",\r
         "type": "switchNode",\r
         "name": "switch name",\r
         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1306.702548980713,\r
-        "y": 532.0595247745514,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1333.7025747299194,\r
+        "y": 482.05954480171204,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "3f65f879.eac058"\r
+                "4c3c07dc.109bb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6d15949f.a4f72c",\r
+        "id": "bfacfb85.875b78",\r
         "type": "switchNode",\r
         "name": "switch topology",\r
         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'topology'`\">",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1317.5422096252441,\r
-        "y": 572.0595228672028,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1344.5422353744507,\r
+        "y": 522.0595428943634,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "a2b79be1.ed04c8"\r
+                "8910bf6.fa8bd4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3f65f879.eac058",\r
+        "id": "4c3c07dc.109bb8",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1493.702548980713,\r
-        "y": 528.0595247745514,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1520.7025747299194,\r
+        "y": 478.05954480171204,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "2305c57e.8cca7a"\r
+                "330c74f0.0fa8ac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a2b79be1.ed04c8",\r
+        "id": "8910bf6.fa8bd4",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1487.5422096252441,\r
-        "y": 568.0595228672028,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1514.5422353744507,\r
+        "y": 518.0595428943634,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             [\r
-                "4726038d.e1157c"\r
+                "c760e70.ca63518"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2305c57e.8cca7a",\r
+        "id": "330c74f0.0fa8ac",\r
         "type": "set",\r
         "name": "set name",\r
         "xml": "<set>\n<parameter name='prop.name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",\r
         "comments": "",\r
-        "x": 1643.70267868042,\r
-        "y": 526.6595313549042,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1670.7027044296265,\r
+        "y": 476.6595513820648,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4726038d.e1157c",\r
+        "id": "c760e70.ca63518",\r
         "type": "set",\r
         "name": "set topology",\r
         "xml": "<set>\n<parameter name='prop.topology' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",\r
         "comments": "",\r
-        "x": 1674.8756504058838,\r
-        "y": 566.5206797122955,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 1701.8756761550903,\r
+        "y": 516.5206997394562,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c012bd48.a280b",\r
+        "id": "80911d80.565f6",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 932.5078277587891,\r
-        "y": 139.00390672683716,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 954.5077972412109,\r
+        "y": 190.0039086341858,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "3e34e572.c1fb4a",\r
+        "id": "f1c0f2fa.5d8e8",\r
         "type": "set",\r
         "name": "set vf-module-object-path",\r
         "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\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 + $prop.vpn-vf-index\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": 805.5039672851562,\r
-        "y": 812.0312873721123,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 832.5039930343628,\r
+        "y": 762.0313073992729,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": []\r
     },\r
     {\r
-        "id": "370a2393.20ff3c",\r
+        "id": "a6352f7.5aa86d",\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[0].related-to\" value=\"sdwan-vpn\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-vpns/sdwan-vpn/' + $prop.vpn-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vpn-vf-index`\" />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 820.0040283203125,\r
-        "y": 954.000156879425,\r
-        "z": "4e5f9446.b42e3c",\r
+        "x": 847.004054069519,\r
+        "y": 904.0001769065857,\r
+        "z": "12e5b519.7c42cb",\r
         "wires": [\r
             []\r
         ]\r
index 02a816b..360cb47 100644 (file)
@@ -4,24 +4,6 @@
     <method rpc='sdwan-vf-operation-vpn-create' mode='sync'>\r
         <block atomic="true">\r
             <call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync' ></call>\r
-            <switch test='`$service-data.vnfs.vnf_length`'>\r
-                <outcome value=''>\r
-                    <return status='failure'>\r
-                        <parameter name='ack-final' value='Y'/>\r
-                        <parameter name="error-code" value="404" />\r
-                        <parameter name="error-message" value="There are no VNFs in MD-SAL" />\r
-                    </return>\r
-                </outcome>\r
-            </switch>\r
-            <for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\r
-                <switch test="`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`">\r
-                    <outcome value='true'>\r
-                        <set>\r
-                            <parameter name='vnf-index' value='`$idx`' />\r
-                        </set>\r
-                    </outcome>\r
-                </switch>\r
-            </for>\r
             <switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\r
                 <outcome value=''>\r
                     <set>\r