SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json
index 0c55234..0426b67 100644 (file)
@@ -1,20 +1,20 @@
 [
   {
-    "id": "a2b91e00.0dacb",
+    "id": "1e0cb698.a04019",
     "type": "dgstart",
     "name": "DGSTART",
     "outputs": 1,
-    "x": 119,
-    "y": 37,
-    "z": "7bfb2dad.3744a4",
+    "x": 107.57138061523438,
+    "y": 61.999998569488525,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "17fbd1a8.a9b4ce"
+        "277c65c2.ed804a"
       ]
     ]
   },
   {
-    "id": "17fbd1a8.a9b4ce",
+    "id": "277c65c2.ed804a",
     "type": "service-logic",
     "name": "GENERIC-RESOURCE-API ${project.version}",
     "module": "GENERIC-RESOURCE-API",
     "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": 194.28570556640625,
-    "y": 77.23811149597168,
-    "z": "7bfb2dad.3744a4",
+    "x": 182.85708618164062,
+    "y": 102.2381100654602,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "cd1ac734.4667a8"
+        "a7e1f73c.bc4948"
       ]
     ]
   },
   {
-    "id": "cd1ac734.4667a8",
+    "id": "a7e1f73c.bc4948",
     "type": "method",
     "name": "method site-vnf-topology-operation-delete",
     "xml": "<method rpc='site-vnf-topology-operation-delete' mode='sync'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 215.42861938476562,
-    "y": 167,
-    "z": "7bfb2dad.3744a4",
+    "x": 163,
+    "y": 237.99999856948853,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "8f642f93.2a801"
+        "bdf1765.0f24c88"
       ]
     ]
   },
   {
-    "id": "8f642f93.2a801",
+    "id": "ca44419d.5ab99",
+    "type": "comment",
+    "name": "site-vnf-topology-operation-delete",
+    "info": "",
+    "comments": "",
+    "x": 556.9162979125977,
+    "y": 135.58639764785767,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
+  },
+  {
+    "id": "bdf1765.0f24c88",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 347.6666564941406,
-    "y": 226.66668701171875,
-    "z": "7bfb2dad.3744a4",
+    "x": 184.23804473876953,
+    "y": 363.6666703224182,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "76c48b79.d84cf4",
-        "bfaa0886.4026e8",
-        "d0626629.81a8c8",
-        "a00c6468.40dc18",
-        "d6cddc91.15c3a",
-        "1aa89ef4.371e21"
+        "372cbde7.587372",
+        "5c8ef11.4d9e21",
+        "c063c177.c449a",
+        "b76f0527.dbb128",
+        "bcc212f6.b90ab",
+        "12ca3dc.2d458c2",
+        "c460861f.38f098",
+        "6a5ea2dd.9c807c",
+        "55ed5ce8.2b1ae4",
+        "ba708495.2ebbe8",
+        "4890886d.4993b8"
       ]
     ]
   },
   {
-    "id": "76c48b79.d84cf4",
+    "id": "bcc212f6.b90ab",
     "type": "switchNode",
     "name": "switch service-data.vnfs.vnf_length",
     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 668.9895935058594,
-    "y": 73.98958587646484,
-    "z": "7bfb2dad.3744a4",
+    "x": 645.6660842895508,
+    "y": 297.2611689567566,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "e84dd0b6.bd49f",
-        "6abf3e26.6123e",
-        "cad37430.9a8ae8"
+        "d5d54ea4.ba5c6",
+        "291bcf0.559d232"
       ]
     ]
   },
   {
-    "id": "e84dd0b6.bd49f",
+    "id": "d5d54ea4.ba5c6",
     "type": "other",
-    "name": "Null",
+    "name": "outcome Null",
     "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1081.9895935058594,
-    "y": 66.9896469116211,
-    "z": "7bfb2dad.3744a4",
+    "x": 910.3883972167969,
+    "y": 279.81679105758667,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "1e4a1529.eacc1b"
+        "30ee642f.b18d2c"
       ]
     ]
   },
   {
-    "id": "1e4a1529.eacc1b",
+    "id": "30ee642f.b18d2c",
     "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
     "comments": "",
-    "x": 1300.7670593261719,
-    "y": 42.87859344482422,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 1091.3882675170898,
+    "y": 274.81666898727417,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "6abf3e26.6123e",
+    "id": "291bcf0.559d232",
     "type": "other",
     "name": "other",
     "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 993.9899597167969,
-    "y": 120.98966217041016,
-    "z": "7bfb2dad.3744a4",
+    "x": 895.8883972167969,
+    "y": 331.81675386428833,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "8e41da85.f0c968"
+        "fb8a0e1a.913bb"
       ]
     ]
   },
   {
-    "id": "8e41da85.f0c968",
+    "id": "fb8a0e1a.913bb",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1165.2594909667969,
-    "y": 104.54419708251953,
-    "z": "7bfb2dad.3744a4",
+    "x": 1067.8881034851074,
+    "y": 331.8167519569397,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "40ff91c4.16b8c",
-        "901feb4d.552588"
+        "5412f014.12424",
+        "97fd60bf.39c2c"
       ]
     ]
   },
   {
-    "id": "40ff91c4.16b8c",
-    "type": "for",
-    "name": "for vidx..service-data.vnfs.vnf_length[]",
-    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+    "id": "97fd60bf.39c2c",
+    "type": "switchNode",
+    "name": "switch tmp.nidx ",
+    "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1463.2754821777344,
-    "y": 85.41820526123047,
-    "z": "7bfb2dad.3744a4",
+    "x": 1242.8882751464844,
+    "y": 350.81667375564575,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "21662e74.a22c42"
+        "7e0c16e8.e0d2b8"
       ]
     ]
   },
   {
-    "id": "901feb4d.552588",
+    "id": "b76f0527.dbb128",
     "type": "switchNode",
-    "name": "switch tmp.vidx ",
-    "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+    "name": "switch vnf-level-oper-status",
+    "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1384.5768737792969,
-    "y": 128.4013900756836,
-    "z": "7bfb2dad.3744a4",
+    "x": 616.0550842285156,
+    "y": 371.705632686615,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "ee9e043e.1f4d08"
+        "2c1cb407.0b20fc",
+        "7a49e612.028b78"
       ]
     ]
   },
   {
-    "id": "ee9e043e.1f4d08",
+    "id": "2c1cb407.0b20fc",
     "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
+    "name": "outcome PendingDelete",
+    "xml": "<outcome value='PendingDelete'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1585.0054626464844,
-    "y": 133.9728012084961,
-    "z": "7bfb2dad.3744a4",
+    "x": 906.8883514404297,
+    "y": 375.81675577163696,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "b08c7bb.174c688"
+        "4b86cba0.d35104"
       ]
     ]
   },
   {
-    "id": "21662e74.a22c42",
-    "type": "switchNode",
-    "name": "switch vnfid found",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
+    "id": "7a49e612.028b78",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1773.7040710449219,
-    "y": 83.66829681396484,
-    "z": "7bfb2dad.3744a4",
+    "x": 852.8884124755859,
+    "y": 422.81675958633423,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "c6e29244.22831"
+        "cae57504.d32048"
       ]
     ]
   },
   {
-    "id": "b08c7bb.174c688",
+    "id": "cae57504.d32048",
     "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
+    "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
     "comments": "",
-    "x": 1756.4339294433594,
-    "y": 134.11565399169922,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 1012.3881797790527,
+    "y": 425.8167586326599,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "c6e29244.22831",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "12ca3dc.2d458c2",
+    "type": "switchNode",
+    "name": "switch vnf-id",
+    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1979.6563415527344,
-    "y": 82.56102752685547,
-    "z": "7bfb2dad.3744a4",
+    "x": 581.8884010314941,
+    "y": 252.81676244735718,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "34cb4af6.5dade6"
+        "479f1e18.fbfce"
       ]
     ]
   },
   {
-    "id": "34cb4af6.5dade6",
-    "type": "set",
-    "name": "set tmp.vidx and ctx.vnf-data",
-    "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
-    "comments": "",
-    "x": 2218.1880798339844,
-    "y": 78.31102752685547,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
-  },
-  {
-    "id": "cad37430.9a8ae8",
+    "id": "479f1e18.fbfce",
     "type": "outcome",
-    "name": "0",
-    "xml": "<outcome value='0'>\n",
+    "name": "NULL",
+    "xml": "<outcome value=''>",
     "comments": "",
     "outputs": 1,
-    "x": 1075.9583435058594,
-    "y": 30.958335876464844,
-    "z": "7bfb2dad.3744a4",
+    "x": 779.8884658813477,
+    "y": 242.8167748451233,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "1e4a1529.eacc1b"
+        "e26d76c0.5decd8"
       ]
     ]
   },
   {
-    "id": "4dc3e987.9fd4e8",
-    "type": "comment",
-    "name": "TODO: Check validation",
-    "info": "",
+    "id": "e26d76c0.5decd8",
+    "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-request-input.vnf-input-parameters.name is a required input\" />\n",
     "comments": "",
-    "x": 625.9895935058594,
-    "y": 25.989585876464844,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 946.3883514404297,
+    "y": 239.8167691230774,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "bfaa0886.4026e8",
-    "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",
+    "id": "c460861f.38f098",
+    "type": "execute",
+    "name": "execute requiredParameters",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
     "comments": "",
-    "x": 590.333251953125,
-    "y": 562.3333740234375,
-    "z": "7bfb2dad.3744a4",
+    "outputs": 1,
+    "x": 639.3884582519531,
+    "y": 192.81676149368286,
+    "z": "4e13a6ca.bd7208",
     "wires": [
-      
+      []
     ]
   },
   {
-    "id": "728d2d28.940264",
+    "id": "5412f014.12424",
     "type": "for",
-    "name": "for each vnf",
-    "xml": "<for index='idx' start='`$vnf-index + 1`' end='`$service-data.vnfs.vnf_length`' >\n",
+    "name": "for nidx..service-data.vnfs.vnf[]",
+    "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 1117.7793083190918,
-    "y": 393.66661167144775,
-    "z": "7bfb2dad.3744a4",
+    "x": 1303.3882789611816,
+    "y": 286.8166699409485,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "7caecd51.491534"
+        "148fbb0c.c24365"
       ]
     ]
   },
   {
-    "id": "347e4d01.6da902",
-    "type": "comment",
-    "name": "Remove VNF from service data",
-    "info": "",
-    "comments": "",
-    "x": 640.9380798339844,
-    "y": 342.2382507324219,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
-  },
-  {
-    "id": "7caecd51.491534",
-    "type": "set",
-    "name": "move vnf to remove one",
-    "xml": "<set>\n\t<parameter name=\"$tmpidx\" value=\"`$idx - 1`\"/>\n\t<parameter name=\"service-data.vnfs.vnf[$tmpidx].\" value=\"$service-data.vnfs.vnf[$idx].\" />\n\t\n",
-    "comments": "",
-    "x": 1351.3704414367676,
-    "y": 392.6905632019043,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
-  },
-  {
-    "id": "d6cddc91.15c3a",
+    "id": "148fbb0c.c24365",
     "type": "switchNode",
-    "name": "switch vnf_length",
-    "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+    "name": "switch vnf-id found",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$nidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 604.0371704101562,
-    "y": 395.2462406158447,
-    "z": "7bfb2dad.3744a4",
+    "x": 1559.388298034668,
+    "y": 286.8166699409485,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "f6c22b0f.9c87a8",
-        "3909fa08.1288e6"
+        "b65bbab.9ca2c48"
       ]
     ]
   },
   {
-    "id": "f6c22b0f.9c87a8",
-    "type": "outcome",
-    "name": "1",
-    "xml": "<outcome value='1'>\n",
+    "id": "b65bbab.9ca2c48",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 781.0372123718262,
-    "y": 355.91282749176025,
-    "z": "7bfb2dad.3744a4",
+    "x": 1735.8883514404297,
+    "y": 289.8166699409485,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "489f0baa.cc5474"
+        "1a4ecfb7.7d8f8"
       ]
     ]
   },
   {
-    "id": "489f0baa.cc5474",
+    "id": "1a4ecfb7.7d8f8",
     "type": "set",
-    "name": "Remove vnfs",
-    "xml": "<set>\n\t<parameter name=\"service-data.vnfs.\" value=\"\"/>\n\n",
+    "name": "set tmp.nidx and ctx.vnf-data",
+    "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$nidx].vnf-data.`' />\n",
     "comments": "",
-    "x": 944.7037086486816,
-    "y": 355.91292667388916,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 1902.8883666992188,
+    "y": 350.8166699409485,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "3909fa08.1288e6",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
+    "id": "e8e5a7c0.1c4938",
+    "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
+    "comments": "",
+    "x": 1548.3882904052734,
+    "y": 350.81667375564575,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
+  },
+  {
+    "id": "7e0c16e8.e0d2b8",
+    "type": "outcome",
+    "name": "NULL",
+    "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 779.7039566040039,
-    "y": 439.2461004257202,
-    "z": "7bfb2dad.3744a4",
+    "x": 1410.8882904052734,
+    "y": 350.81667375564575,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "1459edc6.fe9a92"
+        "e8e5a7c0.1c4938"
       ]
     ]
   },
   {
-    "id": "e0ce4e15.0694e",
+    "id": "5c8ef11.4d9e21",
     "type": "set",
-    "name": "set new vnf length",
-    "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value=\"`$service-data.vnfs.vnf_length - 1`\"/>\n\n\t\n",
+    "name": "set vnfId and vnf-object-path",
+    "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
     "comments": "",
-    "x": 1137.333396911621,
-    "y": 484.2461853027344,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 578.9050178527832,
+    "y": 641.3335304260254,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "1b0c5771.6e6a79",
-    "type": "set",
-    "name": "Remove the last vnf in the list",
-    "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$service-data.vnfs.vnf_length-1].\" value=\"\"/>\n\n",
+    "id": "c063c177.c449a",
+    "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": 538.0161476135254,
+    "y": 759.8890404701233,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
+  },
+  {
+    "id": "372cbde7.587372",
+    "type": "delete",
+    "name": "delete site instance configuration in AAI",
+    "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='site-resource' \n        key='site-resource.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
     "comments": "",
-    "x": 1173.037052154541,
-    "y": 439.3572063446045,
-    "z": "7bfb2dad.3744a4",
+    "outputs": 1,
+    "x": 606.4265480041504,
+    "y": 697.1378149986267,
+    "z": "4e13a6ca.bd7208",
     "wires": [
-      
+      []
     ]
   },
   {
-    "id": "1459edc6.fe9a92",
+    "id": "4b86cba0.d35104",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 948.3704452514648,
-    "y": 439.9127473831177,
-    "z": "7bfb2dad.3744a4",
+    "x": 1104.194751739502,
+    "y": 386.14191007614136,
+    "z": "4e13a6ca.bd7208",
     "wires": [
-      [
-        "728d2d28.940264",
-        "1b0c5771.6e6a79",
-        "e0ce4e15.0694e"
-      ]
-    ]
-  },
-  {
-    "id": "d0626629.81a8c8",
-    "type": "switchNode",
-    "name": "switch current vnf-level-oper-status == PendingDelete",
-    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status == 'PendingDelete'`\">\n",
-    "comments": "",
-    "outputs": 1,
-    "x": 702.9999885559082,
-    "y": 181.00003623962402,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      [
-        "aa414c85.4ebad"
-      ]
+      []
     ]
   },
   {
-    "id": "350728d2.6ecb38",
-    "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 delete a VNF in a Created state\" />\n",
+    "id": "6a5ea2dd.9c807c",
+    "type": "set",
+    "name": "set prop.vnfNewidx",
+    "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
     "comments": "",
-    "x": 1165.9999809265137,
-    "y": 180,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 585.0000762939453,
+    "y": 422.00006771087646,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "a00c6468.40dc18",
-    "type": "switchNode",
-    "name": "switch current vf-module_length",
-    "xml": "<switch test=\"`$ctx.vnf-data.vf-modules.vf-module_length`\">\n",
+    "id": "55ed5ce8.2b1ae4",
+    "type": "for",
+    "name": "for lidx..service-data.vnfs.vnf[]",
+    "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 653.3333320617676,
-    "y": 267.00000190734863,
-    "z": "7bfb2dad.3744a4",
+    "x": 602.0000381469727,
+    "y": 472.00007152557373,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "e2c40a8f.28c2e8",
-        "efcade27.df8a7",
-        "fdf813a0.7dec9"
+        "1913c26.edfaf3e"
       ]
     ]
   },
   {
-    "id": "e2c40a8f.28c2e8",
-    "type": "outcome",
-    "name": "0",
-    "xml": "<outcome value='0'>\n",
-    "comments": "",
+    "id": "1913c26.edfaf3e",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "outputs": 1,
-    "x": 881.9999732971191,
-    "y": 223.6666431427002,
-    "z": "7bfb2dad.3744a4",
+    "x": 863.000114440918,
+    "y": 476.0001063346863,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "4056136c.450bfc"
+        "b02e3feb.ffee3"
       ]
     ]
   },
   {
-    "id": "efcade27.df8a7",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>",
+    "id": "b02e3feb.ffee3",
+    "type": "switchNode",
+    "name": "switch vnf-id found",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 880.5713844299316,
-    "y": 265.0953006744385,
-    "z": "7bfb2dad.3744a4",
+    "x": 1055.0000610351562,
+    "y": 485.000150680542,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "4056136c.450bfc"
+        "e6008550.52d2f8"
       ]
     ]
   },
   {
-    "id": "4056136c.450bfc",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
+    "id": "e6008550.52d2f8",
+    "type": "outcomeFalse",
+    "name": "false",
+    "xml": "<outcome value='false'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1029.1428985595703,
-    "y": 245.0953016281128,
-    "z": "7bfb2dad.3744a4",
+    "x": 1241.0000762939453,
+    "y": 469.00003719329834,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        
+        "59e45e4c.5156f"
       ]
     ]
   },
   {
-    "id": "fdf813a0.7dec9",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
-    "comments": "",
+    "id": "59e45e4c.5156f",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "outputs": 1,
-    "x": 880.5714340209961,
-    "y": 306.52388858795166,
-    "z": "7bfb2dad.3744a4",
+    "x": 1392,
+    "y": 470.00007343292236,
+    "z": "4e13a6ca.bd7208",
     "wires": [
       [
-        "dbbd756.2a74488"
+        "9655d3b.ed2503",
+        "ee40dd88.8d1f1"
       ]
     ]
   },
   {
-    "id": "dbbd756.2a74488",
-    "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 delete the VNF because there are VFs defined\" />\n",
+    "id": "9655d3b.ed2503",
+    "type": "set",
+    "name": "set  vnf data",
+    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",
     "comments": "",
-    "x": 1047.7143287658691,
-    "y": 306.09527683258057,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 1557.0000953674316,
+    "y": 445.00022888183594,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "aa414c85.4ebad",
-    "type": "outcomeTrue",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
+    "id": "ee40dd88.8d1f1",
+    "type": "set",
+    "name": "set prop.vnfNewidx",
+    "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
     "comments": "",
-    "outputs": 1,
-    "x": 1005,
-    "y": 181,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      [
-        "350728d2.6ecb38"
-      ]
-    ]
+    "x": 1579.0000953674316,
+    "y": 501.0001926422119,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "1aa89ef4.371e21",
-    "type": "delete",
-    "name": "delete Site in AAI",
-    "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n      key='generic-vnf.vnf-id = $prop.vnf-index' >",
+    "id": "ba708495.2ebbe8",
+    "type": "set",
+    "name": "set new vnf length",
+    "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
     "comments": "",
-    "outputs": 1,
-    "x": 604,
-    "y": 510,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      [
-        
-      ]
-    ]
+    "x": 571.101432800293,
+    "y": 525.8043546676636,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   },
   {
-    "id": "e61bcb70.9a5e48",
-    "type": "comment",
-    "name": "TODO: AAI",
-    "info": "",
+    "id": "4890886d.4993b8",
+    "type": "set",
+    "name": "Remove vnf from ServiceData",
+    "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
     "comments": "",
-    "x": 775,
-    "y": 512,
-    "z": "7bfb2dad.3744a4",
-    "wires": [
-      
-    ]
+    "x": 608.0001106262207,
+    "y": 581.0001163482666,
+    "z": "4e13a6ca.bd7208",
+    "wires": []
   }
 ]