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-deactivate.json
index ad6eb1e..38cff21 100644 (file)
 [
   {
-    "id": "29fa8678.95f9ca",
-    "type": "dgstart",
-    "name": "DGSTART",
+    "id": "d86fdeaf.90856",
+    "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": 131,
-    "y": 118,
-    "z": "af5ae803.904aa8",
+    "x": 182.8570785522461,
+    "y": 146.23809719085693,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "d48a6f16.dbc94"
+        "8c1fcf5.c30ac3"
       ]
     ]
   },
   {
-    "id": "d48a6f16.dbc94",
-    "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}'>",
+    "id": "c3f643e9.793bf",
+    "type": "dgstart",
+    "name": "DGSTART",
     "outputs": 1,
-    "x": 206.28570556640625,
-    "y": 158.23811149597168,
-    "z": "af5ae803.904aa8",
+    "x": 107.57137298583984,
+    "y": 105.99998569488525,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "7ed81cb7.0a51d4"
+        "d86fdeaf.90856"
       ]
     ]
   },
   {
-    "id": "7ed81cb7.0a51d4",
+    "id": "8c1fcf5.c30ac3",
     "type": "method",
     "name": "method site-vnf-topology-operation-deactivate",
-    "xml": "<method rpc='site-vnf-topology-operation-deactivate' mode='sync'>\n",
+    "xml": "<method rpc='site-vnf-topology-operation-deactivate' mode='sync'>",
     "comments": "",
     "outputs": 1,
-    "x": 227.42861938476562,
-    "y": 248,
-    "z": "af5ae803.904aa8",
+    "x": 176,
+    "y": 185.99997997283936,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "aa23d49.327ed28"
+        "ed73a4d4.18b998"
       ]
     ]
   },
   {
-    "id": "aa23d49.327ed28",
+    "id": "ed73a4d4.18b998",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 207.66666412353516,
-    "y": 419.6666717529297,
-    "z": "af5ae803.904aa8",
+    "x": 216.73809814453125,
+    "y": 257.69349098205566,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "9bb8f3a8.802f5",
-        "15d3779a.2c8a88",
-        "9540c63d.a06978",
-        "78df0c0e.576094",
-        "99b35972.99c3a8",
-        "61eb6b8d.7cad14",
-        "4080214.adfeae",
-        "6f647857.5c6b48",
-        "4302e938.be3ef8",
-        "1364166a.1d494a"
+        "59f08d7c.e40f14",
+        "c44bdf39.f49ac",
+        "af671a8b.af38d8",
+        "35b8b725.755a88",
+        "6ebc8511.a2521c",
+        "cf959324.083ab",
+        "82cb066d.91c668",
+        "2ec82407.2cc83c",
+        "ab2363bc.936b4"
       ]
     ]
   },
   {
-    "id": "9bb8f3a8.802f5",
-    "type": "for",
-    "name": "for loop i - VNF input parameters",
-    "xml": "<for index='idx' start='0' end='`$ctx.vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
-    "comments": "",
+    "id": "6ebc8511.a2521c",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "outputs": 1,
-    "x": 660.104736328125,
-    "y": 307.06783294677734,
-    "z": "af5ae803.904aa8",
+    "x": 623.7856979370117,
+    "y": 122.8095064163208,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "a5175fe3.e03a"
+        "3eca00ab.dea9f",
+        "33bd2a9b.930326",
+        "fb6a76d8.c72038",
+        "d8062777.1e2a88"
       ]
     ]
   },
   {
-    "id": "a5175fe3.e03a",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
+    "id": "3eca00ab.dea9f",
+    "type": "switchNode",
+    "name": "switch service-data.vnfs.vnf_length",
+    "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 906.8829312324524,
-    "y": 307.623462411575,
-    "z": "af5ae803.904aa8",
+    "x": 903.6747055053711,
+    "y": 148.14282417297363,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "a25f1f5b.132b7",
-        "617dd8fe.aa7948",
-        "15ed8251.27c1ce",
-        "984a8326.9a457",
-        "ff594d8d.7aa95",
-        "20f2971f.ecec88"
+        "b63df83d.881f98",
+        "2d9f4a28.834cf6"
       ]
     ]
   },
   {
-    "id": "a25f1f5b.132b7",
-    "type": "switchNode",
-    "name": "switch name",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
+    "id": "b63df83d.881f98",
+    "type": "other",
+    "name": "outcome Null",
+    "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1112.1048202514648,
-    "y": 262.62343978881836,
-    "z": "af5ae803.904aa8",
+    "x": 1157.2858276367188,
+    "y": 129.80951118469238,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "e1ea29c6.845788"
+        "ce144d22.a6862"
       ]
     ]
   },
   {
-    "id": "e1ea29c6.845788",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "ce144d22.a6862",
+    "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": 1331.2858428955078,
+    "y": 129.80951118469238,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "2d9f4a28.834cf6",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1299.1048202514648,
-    "y": 258.62343978881836,
-    "z": "af5ae803.904aa8",
+    "x": 1140.7857971191406,
+    "y": 165.80952167510986,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "cda20cf5.41ce9"
+        "5e80a5f7.14668c"
       ]
     ]
   },
   {
-    "id": "cda20cf5.41ce9",
-    "type": "set",
-    "name": "set name",
-    "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
-    "comments": "",
-    "x": 1467.1048202514648,
-    "y": 259.223445892334,
-    "z": "af5ae803.904aa8",
+    "id": "5e80a5f7.14668c",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "outputs": 1,
+    "x": 1322.7859954833984,
+    "y": 176.80952739715576,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "68893bf6.030534",
+        "ef8a4172.bf9b"
+      ]
     ]
   },
   {
-    "id": "617dd8fe.aa7948",
+    "id": "ef8a4172.bf9b",
     "type": "switchNode",
-    "name": "switch description",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'description'`\">\n",
+    "name": "switch tmp.vidx ",
+    "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1129.944538116455,
-    "y": 305.6234350204468,
-    "z": "af5ae803.904aa8",
+    "x": 1512.785888671875,
+    "y": 193.80952167510986,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "9accb009.2112d"
+        "3898f902.da4f46"
       ]
     ]
   },
   {
-    "id": "9accb009.2112d",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "fb6a76d8.c72038",
+    "type": "switchNode",
+    "name": "switch vnf-level-oper-status",
+    "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1316.944538116455,
-    "y": 301.6234350204468,
-    "z": "af5ae803.904aa8",
+    "x": 866.952507019043,
+    "y": 243.69837760925293,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "8ca9a7db.ec8f18"
+        "9a6e14da.4f6898",
+        "830ab1c4.069de"
       ]
     ]
   },
   {
-    "id": "8ca9a7db.ec8f18",
-    "type": "set",
-    "name": "set description",
-    "xml": "<set>\n<parameter name='prop.site.description' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
-    "comments": "",
-    "x": 1478.278018951416,
-    "y": 301.0845947265625,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
-  },
-  {
-    "id": "15ed8251.27c1ce",
-    "type": "switchNode",
-    "name": "switch location",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location'`\">\n",
+    "id": "9a6e14da.4f6898",
+    "type": "outcome",
+    "name": "outcome Active",
+    "xml": "<outcome value='Active'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1120.0306510925293,
-    "y": 348.03077697753906,
-    "z": "af5ae803.904aa8",
+    "x": 1173.7858200073242,
+    "y": 224.8094997406006,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "8dc32f9.9a097d"
+        "c41182b7.2c8a4"
       ]
     ]
   },
   {
-    "id": "8dc32f9.9a097d",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "830ab1c4.069de",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1307.0306510925293,
-    "y": 344.03077697753906,
-    "z": "af5ae803.904aa8",
+    "x": 1141.7858200073242,
+    "y": 264.8094997406006,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "c9cae02e.83783"
+        "ff8457d6.891c88"
       ]
     ]
   },
   {
-    "id": "c9cae02e.83783",
-    "type": "set",
-    "name": "set location",
-    "xml": "<set>\n<parameter name='prop.site.location' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+    "id": "ff8457d6.891c88",
+    "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 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": 1475.0306510925293,
-    "y": 344.6307830810547,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 1299.2858200073242,
+    "y": 264.8094997406006,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "984a8326.9a457",
+    "id": "33bd2a9b.930326",
     "type": "switchNode",
-    "name": "switch id",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'id'`\">\n",
+    "name": "switch vnf-id",
+    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1109.9999694824219,
-    "y": 216.59676361083984,
-    "z": "af5ae803.904aa8",
+    "x": 845.7858047485352,
+    "y": 88.80949878692627,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "96a74444.b53228"
+        "660d1ca1.7f5824"
       ]
     ]
   },
   {
-    "id": "96a74444.b53228",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "660d1ca1.7f5824",
+    "type": "outcome",
+    "name": "NULL",
+    "xml": "<outcome value=''>",
     "comments": "",
     "outputs": 1,
-    "x": 1296.9999694824219,
-    "y": 212.59676361083984,
-    "z": "af5ae803.904aa8",
+    "x": 988.7857971191406,
+    "y": 88.80950164794922,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "df6964b4.228f78"
+        "da90fecc.888a8"
       ]
     ]
   },
   {
-    "id": "df6964b4.228f78",
-    "type": "set",
-    "name": "set id",
-    "xml": "<set>\n<parameter name='prop.site.id' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
+    "id": "da90fecc.888a8",
+    "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-information.vnf-id is a required input\" />\n",
+    "comments": "",
+    "x": 1137.2857971191406,
+    "y": 88.8095006942749,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "68893bf6.030534",
+    "type": "for",
+    "name": "for vidx..service-data.vnfs.vnf[]",
+    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
     "comments": "",
-    "x": 1464.9999694824219,
-    "y": 213.19676971435547,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1558.2859191894531,
+    "y": 155.80951118469238,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "32659e4e.c6e252"
+      ]
     ]
   },
   {
-    "id": "ff594d8d.7aa95",
+    "id": "32659e4e.c6e252",
     "type": "switchNode",
-    "name": "switch type",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
+    "name": "switch vnf-id found",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1118.9999694824219,
-    "y": 391.5967559814453,
-    "z": "af5ae803.904aa8",
+    "x": 1844.2859191894531,
+    "y": 155.80951118469238,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "343eddcc.c79502"
+        "760edd7e.39ca84"
       ]
     ]
   },
   {
-    "id": "343eddcc.c79502",
+    "id": "760edd7e.39ca84",
     "type": "outcomeTrue",
     "name": "true",
     "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1305.9999694824219,
-    "y": 387.5967559814453,
-    "z": "af5ae803.904aa8",
+    "x": 2029.7859954833984,
+    "y": 155.80951309204102,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "c923d4d2.c53e48"
+        "e7380240.e1e34"
       ]
     ]
   },
   {
-    "id": "c923d4d2.c53e48",
+    "id": "e7380240.e1e34",
     "type": "set",
-    "name": "set type",
-    "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />",
+    "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].vnf-data.`' />\n",
     "comments": "",
-    "x": 1473.9999694824219,
-    "y": 388.19676208496094,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 2237.785919189453,
+    "y": 155.80951118469238,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "20f2971f.ecec88",
-    "type": "switchNode",
-    "name": "switch role",
-    "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
+    "id": "9f76132b.ac81b",
+    "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-information.vnf-id not found in service-data\" />\n",
+    "comments": "",
+    "x": 1804.285888671875,
+    "y": 193.80952167510986,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "3898f902.da4f46",
+    "type": "outcome",
+    "name": "NULL",
+    "xml": "<outcome value=''>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1121.9999694824219,
-    "y": 434.5967559814453,
-    "z": "af5ae803.904aa8",
+    "x": 1666.785888671875,
+    "y": 193.80952167510986,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "4a74022c.fbbfdc"
+        "9f76132b.ac81b"
       ]
     ]
   },
   {
-    "id": "4a74022c.fbbfdc",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "59f08d7c.e40f14",
+    "type": "set",
+    "name": "set vnf in service-data",
+    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />",
+    "comments": "",
+    "x": 610.5715866088867,
+    "y": 591.0002222061157,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "c44bdf39.f49ac",
+    "type": "set",
+    "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/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
     "comments": "",
+    "x": 632.1271820068359,
+    "y": 628.2224435806274,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "35b8b725.755a88",
+    "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": 585.9049634933472,
+    "y": 778.7778730392456,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "af671a8b.af38d8",
+    "type": "set",
+    "name": "set vnf-level-oper-status to PendingDelete",
+    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].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[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
+    "comments": "",
+    "x": 670.5715866088867,
+    "y": 672.0002851486206,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "c41182b7.2c8a4",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "outputs": 1,
-    "x": 1308.9999694824219,
-    "y": 430.5967559814453,
-    "z": "af5ae803.904aa8",
+    "x": 1367.713279724121,
+    "y": 228.88886868953705,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      [
-        "ed0bb784.6f5f28"
-      ]
+      []
     ]
   },
   {
-    "id": "ed0bb784.6f5f28",
-    "type": "set",
-    "name": "set role & sdwan.site",
-    "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='tmp.sdwan.site' value='true' />\n",
+    "id": "d8062777.1e2a88",
+    "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": 1516.9999694824219,
-    "y": 430.19676971435547,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 895.5716171264648,
+    "y": 50.999999046325684,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      []
     ]
   },
   {
-    "id": "15d3779a.2c8a88",
-    "type": "switchNode",
-    "name": "switch service-data.vnfs.vnf_length",
-    "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
+    "id": "b2ebc544.1e6068",
+    "type": "comment",
+    "name": "site-vnf-topology-operation-deactivate",
+    "info": "",
+    "comments": "",
+    "x": 489.8570785522461,
+    "y": 51.238097190856934,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "cf959324.083ab",
+    "type": "for",
+    "name": "for loop idx - VNF input parameters",
+    "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`' >\n",
     "comments": "",
     "outputs": 1,
-    "x": 667.9895935058594,
-    "y": 108.98958587646484,
-    "z": "af5ae803.904aa8",
+    "x": 667.8572273254395,
+    "y": 322.00002098083496,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "ce757eba.3051d",
-        "317e6180.be733e",
-        "355929c1.e3c516"
+        "fe2f83f9.8338"
       ]
     ]
   },
   {
-    "id": "ce757eba.3051d",
-    "type": "other",
-    "name": "Null",
-    "xml": "<outcome value=''>\n",
+    "id": "fe2f83f9.8338",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 1080.9895935058594,
-    "y": 101.9896469116211,
-    "z": "af5ae803.904aa8",
+    "x": 874.7529640197754,
+    "y": 321.92188453674316,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "3a71c6fc.a403ea"
+        "550bedb1.f170d4",
+        "b37adbd9.2464a8"
       ]
     ]
   },
   {
-    "id": "3a71c6fc.a403ea",
-    "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",
+    "id": "550bedb1.f170d4",
+    "type": "switchNode",
+    "name": "switch role",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
     "comments": "",
-    "x": 1299.7670593261719,
-    "y": 77.87859344482422,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1011.8701667785645,
+    "y": 321.89532470703125,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "de4a1711.c3fb08"
+      ]
     ]
   },
   {
-    "id": "317e6180.be733e",
-    "type": "other",
-    "name": "other",
-    "xml": "<outcome value='Other'>\n",
+    "id": "de4a1711.c3fb08",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 992.9899597167969,
-    "y": 155.98966217041016,
-    "z": "af5ae803.904aa8",
+    "x": 1151.870174407959,
+    "y": 322.89532470703125,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "6231a17a.01c0e"
+        "d4dca6e6.2c3458"
       ]
     ]
   },
   {
-    "id": "6231a17a.01c0e",
+    "id": "d4dca6e6.2c3458",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 1164.2594909667969,
-    "y": 139.54419708251953,
-    "z": "af5ae803.904aa8",
+    "x": 1300.419822692871,
+    "y": 323.92201805114746,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "b34aef0c.acf71",
-        "8f0f5852.1fb888"
+        "8481bd23.50386"
       ]
     ]
   },
   {
-    "id": "b34aef0c.acf71",
-    "type": "for",
-    "name": "for vidx..service-data.vnfs.vnf_length[]",
-    "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+    "id": "8481bd23.50386",
+    "type": "set",
+    "name": "set role",
+    "xml": "<set>\n<parameter name='prop.site.role' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
+    "comments": "",
+    "x": 1444.7531852722168,
+    "y": 324.92203521728516,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "82cb066d.91c668",
+    "type": "switchNode",
+    "name": "switch prop.site.sdwan",
+    "xml": "<switch test=\"`$prop.site.sdwan`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 1462.2754821777344,
-    "y": 120.41820526123047,
-    "z": "af5ae803.904aa8",
+    "x": 641.8570785522461,
+    "y": 477.00004291534424,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "dbdd8064.8b575"
+        "44689f8b.efef2"
       ]
     ]
   },
   {
-    "id": "8f0f5852.1fb888",
-    "type": "switchNode",
-    "name": "switch tmp.vidx ",
-    "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
+    "id": "44689f8b.efef2",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1383.5768737792969,
-    "y": 163.4013900756836,
-    "z": "af5ae803.904aa8",
+    "x": 822.8572120666504,
+    "y": 478.0000696182251,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "790650c4.ec7c"
+        "92d1a385.88b4d"
       ]
     ]
   },
   {
-    "id": "790650c4.ec7c",
-    "type": "outcome",
-    "name": "NULL",
-    "xml": "<outcome value=''>\n",
+    "id": "1f34e7d.f4ed818",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1584.0054626464844,
-    "y": 168.9728012084961,
-    "z": "af5ae803.904aa8",
+    "x": 1527.357234954834,
+    "y": 446.00012397766113,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "3c6f340.b39b3cc"
+        "444dfd43.933654"
       ]
     ]
   },
   {
-    "id": "dbdd8064.8b575",
-    "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": "444dfd43.933654",
+    "type": "set",
+    "name": "set controller data",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
+    "comments": "",
+    "x": 1715.8573303222656,
+    "y": 440.0001336336136,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "20f5a47d.bf5c7c",
+    "type": "not-found",
+    "name": "not-found",
+    "xml": "<outcome value='not-found'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1772.7040710449219,
-    "y": 118.66829681396484,
-    "z": "af5ae803.904aa8",
+    "x": 1530.848201751709,
+    "y": 493.5741596221924,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "442b99c7.862238"
+        "efd0bf42.a45d2"
       ]
     ]
   },
   {
-    "id": "3c6f340.b39b3cc",
+    "id": "efd0bf42.a45d2",
     "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
     "comments": "",
-    "x": 1755.4339294433594,
-    "y": 169.11565399169922,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 1704.4196128845215,
+    "y": 481.85989570617676,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "442b99c7.862238",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "43e41f52.73e87",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 1978.6563415527344,
-    "y": 117.56102752685547,
-    "z": "af5ae803.904aa8",
+    "x": 1523.181209564209,
+    "y": 534.9074726104736,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "9a4c2f33.323f8"
+        "b91e604b.71e8a"
       ]
     ]
   },
   {
-    "id": "9a4c2f33.323f8",
-    "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",
+    "id": "b91e604b.71e8a",
+    "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
     "comments": "",
-    "x": 2217.1880798339844,
-    "y": 113.31102752685547,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 1710.9537658691406,
+    "y": 530.3466653823853,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "355929c1.e3c516",
-    "type": "outcome",
-    "name": "0",
-    "xml": "<outcome value='0'>\n",
+    "id": "5edbf1df.1812f",
+    "type": "get-resource",
+    "name": "get-resource esr-thirdparty-sdnc",
+    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
     "comments": "",
     "outputs": 1,
-    "x": 1074.9583435058594,
-    "y": 65.95833587646484,
-    "z": "af5ae803.904aa8",
+    "x": 1260.3571472167969,
+    "y": 494.0001298189163,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "3a71c6fc.a403ea"
+        "1f34e7d.f4ed818",
+        "20f5a47d.bf5c7c",
+        "43e41f52.73e87"
       ]
     ]
   },
   {
-    "id": "28632f1f.75eb4",
-    "type": "comment",
-    "name": "TODO: Check validation",
-    "info": "",
+    "id": "850d49b7.5d6588",
+    "type": "execute",
+    "name": "execute RestApiCallNode Create  SDWAN site",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"site-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
     "comments": "",
-    "x": 624.9895935058594,
-    "y": 60.989585876464844,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1288.8574905395508,
+    "y": 692.0002012252808,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "ea765af1.578958",
+        "a315c86f.c08e38"
+      ]
     ]
   },
   {
-    "id": "9540c63d.a06978",
-    "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": "27adc5f9.0dcbfa",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "comments": "",
-    "x": 603.3332824707031,
-    "y": 757.3333358764648,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1782.5236206054688,
+    "y": 665.8889733552933,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      []
     ]
   },
   {
-    "id": "78df0c0e.576094",
-    "type": "set",
-    "name": "set vnf-level-oper-status to PendingDelete",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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",
+    "id": "ffec3641.8f04a8",
+    "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 executing Create vpn rest api\" />\n",
     "comments": "",
-    "x": 682.8133850097656,
-    "y": 585.6704711914062,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 1757.96826171875,
+    "y": 727.4443560838699,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "99b35972.99c3a8",
-    "type": "set",
-    "name": "copy input data to service data",
-    "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\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\n",
+    "id": "a315c86f.c08e38",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
     "comments": "",
-    "x": 649.6665344238281,
-    "y": 542.6667098999023,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1612.96826171875,
+    "y": 724.4443560838699,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "ffec3641.8f04a8"
+      ]
     ]
   },
   {
-    "id": "61eb6b8d.7cad14",
-    "type": "save",
-    "name": "update siteInstance configuration in AAI",
-    "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf' \n      key='generic-vnf.vnf-id = $prop.vnf-index' >\n<parameter name='vnf-id' value='`$prop.vnf-index`' />\n<parameter name='in-maint' value='true' />\n<parameter name='is-closed-loop-disabled' value='false' />\n<parameter name='orchestration-status' value='PendingDelete' />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` \" />\n",
+    "id": "ea765af1.578958",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 677,
-    "y": 665.5556030273438,
-    "z": "af5ae803.904aa8",
+    "x": 1609.4126358032227,
+    "y": 666.1111413240433,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        
+        "27adc5f9.0dcbfa"
       ]
     ]
   },
   {
-    "id": "4080214.adfeae",
-    "type": "save",
-    "name": "save service relationship in AAI",
-    "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />",
+    "id": "326c4c2.f406bb4",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 651.0000305175781,
-    "y": 708.3333358764648,
-    "z": "af5ae803.904aa8",
+    "x": 1526.611125946045,
+    "y": 572.0040856599808,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        
+        "9184b52b.37e358"
       ]
     ]
   },
   {
-    "id": "6f647857.5c6b48",
-    "type": "set",
-    "name": "set vnf-index and vnf-object-path",
-    "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` \" />",
+    "id": "e3754930.79e2e8",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
     "comments": "",
-    "x": 656.5000305175781,
-    "y": 625.3333358764648,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 1518.861125946045,
+    "y": 613.646968960762,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "41ddc45.064fd3c"
+      ]
     ]
   },
   {
-    "id": "1364166a.1d494a",
-    "type": "switchNode",
-    "name": "switch sdwan.site",
-    "xml": "<switch test=\"`$tmp.sdwan.site`\">\n",
+    "id": "41ddc45.064fd3c",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
     "comments": "",
     "outputs": 1,
-    "x": 611.9895935058594,
-    "y": 387.98958587646484,
-    "z": "af5ae803.904aa8",
+    "x": 1644.944622039795,
+    "y": 613.8930016756058,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      [
-        "2e02ce5b.120d72",
-        "c3598024.ef229"
-      ]
+      []
     ]
   },
   {
-    "id": "4302e938.be3ef8",
+    "id": "9184b52b.37e358",
     "type": "set",
-    "name": "set sdwan.site",
-    "xml": "<set>\n<parameter name='tmp.sdwan.site' value='false' />\n",
+    "name": "set token-id",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
     "comments": "",
-    "x": 602.9895935058594,
-    "y": 256.98958587646484,
-    "z": "af5ae803.904aa8",
-    "wires": [
-      
-    ]
+    "x": 1663.611125946045,
+    "y": 572.0040856599808,
+    "z": "662bc73e.2f2df8",
+    "wires": []
   },
   {
-    "id": "c3598024.ef229",
-    "type": "outcomeTrue",
-    "name": "true",
-    "xml": "<outcome value='true'>\n",
+    "id": "6736685b.bef9d8",
+    "type": "comment",
+    "name": "tmp.thirdparty-sdnc-id is hardcoded value?",
+    "info": "",
     "comments": "",
+    "x": 1256.8610382080078,
+    "y": 461.0040513277054,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "92d1a385.88b4d",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
     "outputs": 1,
-    "x": 747.9895935058594,
-    "y": 480.98958587646484,
-    "z": "af5ae803.904aa8",
+    "x": 983.8571472167969,
+    "y": 478.66657733917236,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "38d8d2a8.f58c0e"
+        "5edbf1df.1812f",
+        "5a50b7d1.a81c28",
+        "850d49b7.5d6588"
       ]
     ]
   },
   {
-    "id": "2e02ce5b.120d72",
-    "type": "outcomeTrue",
-    "name": "false",
-    "xml": "<outcome value='false'>\n",
+    "id": "2ec82407.2cc83c",
+    "type": "save",
+    "name": "update siteInstance configuration in AAI",
+    "xml": "<save 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<parameter name='id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />      \n<parameter name='operational-status' value='PendingDelete' />\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 663.8571701049805,
+    "y": 711.0001020431519,
+    "z": "662bc73e.2f2df8",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "b37adbd9.2464a8",
+    "type": "switchNode",
+    "name": "switch siteId",
+    "xml": "<switch test=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].name == 'siteId'`\">\n",
     "comments": "",
     "outputs": 1,
-    "x": 791.8783874511719,
-    "y": 400.9896469116211,
-    "z": "af5ae803.904aa8",
+    "x": 1011.8700637817383,
+    "y": 396.8953676223755,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        "ad672f8e.2adcd"
+        "a2554bc6.d49ce8"
       ]
     ]
   },
   {
-    "id": "ad672f8e.2adcd",
-    "type": "block",
-    "name": "block",
-    "xml": "<block>\n",
-    "atomic": "false",
+    "id": "a2554bc6.d49ce8",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
     "comments": "",
     "outputs": 1,
-    "x": 930.9895935058594,
-    "y": 400.98958587646484,
-    "z": "af5ae803.904aa8",
+    "x": 1151.8700714111328,
+    "y": 397.8953676223755,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        
+        "6ecb0b06.7fedc4"
       ]
     ]
   },
   {
-    "id": "38d8d2a8.f58c0e",
+    "id": "6ecb0b06.7fedc4",
     "type": "block",
     "name": "block : atomic",
     "xml": "<block atomic=\"true\">",
     "atomic": "true",
     "outputs": 1,
-    "x": 909.9895935058594,
-    "y": 479.98958587646484,
-    "z": "af5ae803.904aa8",
+    "x": 1300.419719696045,
+    "y": 398.9220609664917,
+    "z": "662bc73e.2f2df8",
     "wires": [
       [
-        
+        "83210993.fce798"
       ]
     ]
   },
   {
-    "id": "d9bbd64d.c1dfa8",
+    "id": "83210993.fce798",
+    "type": "set",
+    "name": "set siteId",
+    "xml": "<set>\n<parameter name='prop.site.siteId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
+    "comments": "",
+    "x": 1444.7530822753906,
+    "y": 399.9220781326294,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "48d793e7.102a6c",
     "type": "comment",
-    "name": "TODO: SDWAN implementation for site",
+    "name": "Get siteId to delete",
     "info": "",
     "comments": "",
-    "x": 1067.9895935058594,
-    "y": 521.9895858764648,
-    "z": "af5ae803.904aa8",
+    "x": 1023.857048034668,
+    "y": 366.0000238418579,
+    "z": "662bc73e.2f2df8",
+    "wires": []
+  },
+  {
+    "id": "5a50b7d1.a81c28",
+    "type": "execute",
+    "name": "execute RestApiCallNode Get token",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
+    "comments": "",
+    "outputs": 1,
+    "x": 1277.0000762939453,
+    "y": 595.0000381469727,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      [
+        "326c4c2.f406bb4",
+        "e3754930.79e2e8"
+      ]
     ]
   },
   {
-    "id": "dfb2bb0b.f25f38",
-    "type": "comment",
-    "name": "TODO: AAI",
-    "info": "",
+    "id": "ab2363bc.936b4",
+    "type": "execute",
+    "name": "execute Properties",
+    "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": "",
-    "x": 902,
-    "y": 671,
-    "z": "af5ae803.904aa8",
+    "outputs": 1,
+    "x": 617,
+    "y": 232,
+    "z": "662bc73e.2f2df8",
     "wires": [
-      
+      []
     ]
   }
 ]