Fix tunnelxconn create/delete ip bugs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json
index 960679f..43ac4a7 100644 (file)
 [
   {
-    "id":"b4ab3cc5.98a8",
-    "type":"dgstart",
-    "name":"DGSTART",
-    "outputs":1,
-    "x":77,
-    "y":35,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "f5a8ee3a.716df8",
+    "type": "dgstart",
+    "name": "DGSTART",
+    "outputs": 1,
+    "x": 92,
+    "y": 90,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "e6efa6d3.e15398"
+        "181c6e18.5e551a"
       ]
     ]
   },
   {
-    "id":"e6efa6d3.e15398",
-    "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":338,
-    "y":106,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "181c6e18.5e551a",
+    "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": 353,
+    "y": 161,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "55bb413f.73fa7"
+        "4deec5d.bc3e13c"
       ]
     ]
   },
   {
-    "id":"55bb413f.73fa7",
-    "type":"method",
-    "name":"method dci-connects-network-topology-operation-deactivate",
-    "xml":"<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":228,
-    "y":191,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "4deec5d.bc3e13c",
+    "type": "method",
+    "name": "method dci-connects-network-topology-operation-deactivate",
+    "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 243,
+    "y": 246,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "750ee4c.8fdd21c"
+        "db590270.2247a"
       ]
     ]
   },
   {
-    "id":"750ee4c.8fdd21c",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "outputs":1,
-    "x":527,
-    "y":185,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "db590270.2247a",
+    "type": "block",
+    "name": "block : atomic",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "outputs": 1,
+    "x": 578.0000152587891,
+    "y": 246.00000953674316,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "ea6f8a69.5601e8",
-        "2f344129.2fe78e",
-        "33c821d9.b212fe",
-        "15fa4d45.d0b353",
-        "7e978ea8.0c5a1",
-        "a04a290c.948ab8"
+        "ab4a3388.0c6b38",
+        "a32bd41.02ddda8",
+        "10699173.9d62bf",
+        "517a5a14.a94154",
+        "efd1462b.b12ac8",
+        "73a3e34f.020a74"
       ]
     ]
   },
   {
-    "id":"ea6f8a69.5601e8",
-    "type":"call",
-    "name":"call GENERIC-RESOURCE-API:validate-network-input-parameters",
-    "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":898,
-    "y":60,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "ab4a3388.0c6b38",
+    "type": "call",
+    "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
+    "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 913,
+    "y": 115,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "a32bd41.02ddda8",
+    "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": 787,
+    "y": 1008,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "9bf0ea3a.343b6",
+    "type": "block",
+    "name": "block : sendRequest",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 974.5000305175781,
+    "y": 589.5156650543213,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-
+        "9dd304ed.281768",
+        "efaa0ea1.0c4f18",
+        "c52f3ac0.e967a8",
+        "f2e7b7ab.8ad1d",
+        "c98e6def.0e6fb8"
       ]
     ]
   },
   {
-    "id":"2f344129.2fe78e",
-    "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":763.9999771118164,
-    "y":838.9999732971191,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
+    "id": "b2910a08.b9547",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1506.999927520752,
+    "y": 386.51519107818604,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      [
+        "c0709608.52e74"
+      ]
     ]
   },
   {
-    "id":"33c821d9.b212fe",
-    "type":"get-resource",
-    "name":"get-resource dci-connects",
-    "xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"dci-connects\" \n\t\tkey=\"dci-connects.id AND depth = '1'\"\n        pfx='tmp.aai.dci-connects' local-only='false' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":803.9999847412109,
-    "y":306.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "7302542d.935134",
+    "type": "not-found",
+    "name": "not-found",
+    "xml": "<outcome value='not-found'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1513.999927520752,
+    "y": 424.51519107818604,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "bcbac350.046e5",
-        "bcb8c268.c1efd",
-        "95a7f0ae.33df5"
+        "46e7f2ba.30df5c"
       ]
     ]
   },
   {
-    "id":"bcbac350.046e5",
-    "type":"success",
-    "name":"success",
-    "xml":"<outcome value='success'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1052.999984741211,
-    "y":270.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "c3c5a87c.e92ec",
+    "type": "other",
+    "name": "other",
+    "xml": "<outcome value='Other'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1505.999927520752,
+    "y": 466.51519107818604,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "9441b536.e2c908"
+        "c4b5e7cb.79f558"
       ]
     ]
   },
   {
-    "id":"bcb8c268.c1efd",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1059.999984741211,
-    "y":308.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "46e7f2ba.30df5c",
+    "type": "returnFailure",
+    "name": "return failure",
+    "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+    "comments": "",
+    "x": 1670.999927520752,
+    "y": 428.51519107818604,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "c4b5e7cb.79f558",
+    "type": "returnFailure",
+    "name": "return failure",
+    "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+    "comments": "",
+    "x": 1663.999927520752,
+    "y": 475.51519107818604,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "9dd304ed.281768",
+    "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 = $prop.dci-connects.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1283.000015258789,
+    "y": 433.51519799232483,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "22635f7c.d7e7a"
+        "b2910a08.b9547",
+        "7302542d.935134",
+        "c3c5a87c.e92ec"
       ]
     ]
   },
   {
-    "id":"95a7f0ae.33df5",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1051.999984741211,
-    "y":350.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "c0709608.52e74",
+    "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.templateDir' value='/opt/onap/sdnc/data' />\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\n",
+    "comments": "",
+    "x": 1686.4998779296875,
+    "y": 379.01513671875,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "ad303774.891d",
+    "type": "execute",
+    "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.id`\"/>\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1782.5003051757812,
+    "y": 652.5156202316284,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "efaa0ea1.0c4f18",
+    "type": "switchNode",
+    "name": "switch tunnelType",
+    "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1245.4997634887695,
+    "y": 677.0151309967041,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "a0aae260.9c5c2"
+        "96ca330.e8be2d",
+        "cc0d585a.c5e7e"
       ]
     ]
   },
   {
-    "id":"22635f7c.d7e7a",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
-    "comments":"",
-    "x":1216.999984741211,
-    "y":312.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"a0aae260.9c5c2",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
-    "comments":"",
-    "x":1209.999984741211,
-    "y":359.9999887943268,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
-    ]
-  },
-  {
-    "id":"15fa4d45.d0b353",
-    "type":"block",
-    "name":"block : sendRequest",
-    "xml":"<block atomic=\"true\">",
-    "atomic":"true",
-    "comments":"",
-    "outputs":1,
-    "x":765.5,
-    "y":606.5156269073486,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "96ca330.e8be2d",
+    "type": "outcomeTrue",
+    "name": "L3-DCI",
+    "xml": "<outcome value='L3-DCI'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1458.4998931884766,
+    "y": 657.0151309967041,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "e1e92378.2c99d",
-        "673c8079.171c7",
-        "5c11d741.ea97f8"
+        "ad303774.891d"
       ]
     ]
   },
   {
-    "id":"c5be9b53.183ee8",
-    "type":"success",
-    "name":"success",
-    "xml":"<outcome value='success'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1258.9997673034668,
-    "y":458.51514625549316,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "cc0d585a.c5e7e",
+    "type": "outcomeTrue",
+    "name": "L2-DCI",
+    "xml": "<outcome value='L2-DCI'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1456.499713897705,
+    "y": 729.0151309967041,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "c033d341.3f6dc"
+        "bacc084b.3ec41"
       ]
     ]
   },
   {
-    "id":"dcc81047.e0f45",
-    "type":"not-found",
-    "name":"not-found",
-    "xml":"<outcome value='not-found'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1265.9997673034668,
-    "y":496.51514625549316,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "bacc084b.3ec41",
+    "type": "execute",
+    "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
+    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.id`\"/>\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+    "comments": "",
+    "outputs": 1,
+    "x": 1776.500259399414,
+    "y": 729.5155563354492,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "a2b7f400.1f465",
+    "type": "for",
+    "name": "for each network-input-parameters",
+    "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1036.999984741211,
+    "y": 190.51563167572021,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "a86ff2ba.5ed55"
+        "225b5a0e.27e1d6"
       ]
     ]
   },
   {
-    "id":"38f7300e.03a3f",
-    "type":"other",
-    "name":"other",
-    "xml":"<outcome value='Other'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1257.9997673034668,
-    "y":538.5151462554932,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "c52f3ac0.e967a8",
+    "type": "record",
+    "name": "record",
+    "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"dci-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field7\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field8\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field9\" value=\"sdncRestApi.thirdpartySdnc.url\"/>\n<parameter name=\"field10\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
+    "comments": "",
+    "outputs": 1,
+    "x": 1220.3333740234375,
+    "y": 542,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "225b5a0e.27e1d6",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 1270.3334274291992,
+    "y": 190.00000762939453,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "d2f0ad9e.7cf8d"
+        "be8fe02b.02612",
+        "9b16a3b9.1f3098"
       ]
     ]
   },
   {
-    "id":"c033d341.3f6dc",
-    "type":"block",
-    "name":"block : atomic",
-    "xml":"<block atomic=\"true\">\n",
-    "atomic":"false",
-    "comments":"",
-    "outputs":1,
-    "x":1423.9997673034668,
-    "y":447.51514625549316,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "be8fe02b.02612",
+    "type": "switchNode",
+    "name": "switch site1_id",
+    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1476.6666374206543,
+    "y": 159.00000381469727,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-
+        "97e27afd.097dc"
       ]
     ]
   },
   {
-    "id":"a86ff2ba.5ed55",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
-    "comments":"",
-    "x":1422.9997673034668,
-    "y":500.51514625549316,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
+    "id": "97e27afd.097dc",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1677.666732788086,
+    "y": 158.00000286102295,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      [
+        "b51077df.7867c"
+      ]
     ]
   },
   {
-    "id":"d2f0ad9e.7cf8d",
-    "type":"returnFailure",
-    "name":"return failure",
-    "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
-    "comments":"",
-    "x":1415.9997673034668,
-    "y":547.5151462554932,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
+    "id": "b51077df.7867c",
+    "type": "set",
+    "name": "set id",
+    "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+    "comments": "",
+    "x": 1851.3330841064453,
+    "y": 157.66654777526855,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "9b16a3b9.1f3098",
+    "type": "switchNode",
+    "name": "switch tunnelType",
+    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1486.6667175292969,
+    "y": 212.00000977516174,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      [
+        "f71924ef.335e7"
+      ]
     ]
   },
   {
-    "id":"e1e92378.2c99d",
-    "type":"get-resource",
-    "name":"get-resource dci-connects",
-    "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 = $prop.dci-connects.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
-    "comments":"",
-    "outputs":1,
-    "x":1070.9998893737793,
-    "y":505.5151653289795,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "f71924ef.335e7",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1692.6667175292969,
+    "y": 212.00000977516174,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "c5be9b53.183ee8",
-        "dcc81047.e0f45",
-        "38f7300e.03a3f"
+        "81bda338.0c501"
       ]
     ]
   },
   {
-    "id":"673c8079.171c7",
-    "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[0].esr-system-info.serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`\" />\n\n",
-    "comments":"",
-    "x":1042.499740600586,
-    "y":607.0151195526123,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
+    "id": "81bda338.0c501",
+    "type": "set",
+    "name": "set tunnelType",
+    "xml": "<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+    "comments": "",
+    "x": 1861.6668167114258,
+    "y": 212.0000250339508,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "10699173.9d62bf",
+    "type": "block",
+    "name": "block : executeSite1",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 766.3333358764648,
+    "y": 191.66666412353516,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      [
+        "a2b7f400.1f465",
+        "9bf0ea3a.343b6"
+      ]
     ]
   },
   {
-    "id":"2589b144.7be4de",
-    "type":"execute",
-    "name":"execute RestApiCallNode De-Activate Vxlan Tunnel",
-    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.id\"/>\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1573.5002746582031,
-    "y":669.5155820846558,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "13dfccf8.bd0803",
+    "type": "for",
+    "name": "for each network-input-parameters",
+    "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1042.0000686645508,
+    "y": 296.66663551330566,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-
+        "9c692b97.c836f"
       ]
     ]
   },
   {
-    "id":"5c11d741.ea97f8",
-    "type":"switchNode",
-    "name":"switch tunnelType",
-    "xml":"<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
-    "comments":"",
-    "outputs":1,
-    "x":1036.4997329711914,
-    "y":694.0150928497314,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "9c692b97.c836f",
+    "type": "block",
+    "name": "block",
+    "xml": "<block>\n",
+    "atomic": "false",
+    "comments": "",
+    "outputs": 1,
+    "x": 1270.3334350585938,
+    "y": 299.15101146698,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "6492045a.52a02c",
-        "647c96d8.6f1708"
+        "3edb515.a48a22e"
       ]
     ]
   },
   {
-    "id":"6492045a.52a02c",
-    "type":"outcomeTrue",
-    "name":"L3-DCI",
-    "xml":"<outcome value='L3-DCI'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1249.4998626708984,
-    "y":674.0150928497314,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "3edb515.a48a22e",
+    "type": "switchNode",
+    "name": "switch site2_id",
+    "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1471.3333854675293,
+    "y": 299.15099716186523,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "2589b144.7be4de"
+        "948a60aa.59ad7"
       ]
     ]
   },
   {
-    "id":"647c96d8.6f1708",
-    "type":"outcomeTrue",
-    "name":"L2-DCI",
-    "xml":"<outcome value='L2-DCI'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1247.499683380127,
-    "y":746.0150928497314,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "948a60aa.59ad7",
+    "type": "outcomeTrue",
+    "name": "true",
+    "xml": "<outcome value='true'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1672.333480834961,
+    "y": 298.1509962081909,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "4fb66e63.84804"
+        "1962949c.26443b"
       ]
     ]
   },
   {
-    "id":"4fb66e63.84804",
-    "type":"execute",
-    "name":"execute RestApiCallNode De-Activate Vxlan Tunnel",
-    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.id\"/>\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>",
-    "comments":"",
-    "outputs":1,
-    "x":1567.500228881836,
-    "y":746.5155181884766,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "1962949c.26443b",
+    "type": "set",
+    "name": "set id",
+    "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
+    "comments": "",
+    "x": 1845.9998321533203,
+    "y": 297.8175411224365,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "517a5a14.a94154",
+    "type": "block",
+    "name": "block : executeSite1",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 766.3333435058594,
+    "y": 300.8176679611206,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-
+        "13dfccf8.bd0803",
+        "9bf0ea3a.343b6"
       ]
     ]
   },
   {
-    "id":"7e978ea8.0c5a1",
-    "type":"record",
-    "name":"record",
-    "xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>",
-    "comments":"",
-    "outputs":1,
-    "x":739,
-    "y":429.0000171661377,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "8eb2a0d4.825dc8",
+    "type": "set",
+    "name": "set object-path",
+    "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/network-topology/'` \" />\n \n",
+    "comments": "",
+    "x": 1081.3373260498047,
+    "y": 821.8607425689697,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "56c4779e.6fd13",
+    "type": "set",
+    "name": "set networkId",
+    "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
+    "comments": "",
+    "x": 1075.622959136963,
+    "y": 784.7178506851196,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "efd1462b.b12ac8",
+    "type": "block",
+    "name": "block : saveNetworkData",
+    "xml": "<block atomic=\"true\">",
+    "atomic": "true",
+    "comments": "",
+    "outputs": 1,
+    "x": 818.3333969116211,
+    "y": 760.6666917800903,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-
+        "56c4779e.6fd13",
+        "8eb2a0d4.825dc8",
+        "cc5c05c.b33c178",
+        "36a63a6b.ba56a6"
       ]
     ]
   },
   {
-    "id":"9441b536.e2c908",
-    "type":"set",
-    "name":"set tunnelType",
-    "xml":"<set>\n<parameter name='prop.dci-connects.tunnelType' value=\"`$tmp.aai.dci-connects.dci-connects.serviceType`\" />\n",
-    "comments":"",
-    "x":1241.0000839233398,
-    "y":260.51568603515625,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
+    "id": "edaf65d1.c9376",
+    "type": "comment",
+    "name": "TODO",
+    "info": "Currently deactivate does deletion too, later divide in two phases.",
+    "comments": "",
+    "x": 700.3333358764648,
+    "y": 54,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "cc5c05c.b33c178",
+    "type": "set",
+    "name": "copy input to service-data",
+    "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n",
+    "comments": "",
+    "x": 1111.3334045410156,
+    "y": 741.0000038146973,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "36a63a6b.ba56a6",
+    "type": "set",
+    "name": "set network-level-oper-status",
+    "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
+    "comments": "",
+    "x": 1125.3333358764648,
+    "y": 868.9999618530273,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "73a3e34f.020a74",
+    "type": "delete",
+    "name": "delete underlay configuration in AAI",
+    "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 855,
+    "y": 928,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
     ]
   },
   {
-    "id":"a04a290c.948ab8",
-    "type":"for",
-    "name":"for each network-input-parameters",
-    "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n",
-    "comments":"",
-    "outputs":1,
-    "x":791,
-    "y":180.51562690734863,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "f2e7b7ab.8ad1d",
+    "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": "",
+    "outputs": 1,
+    "x": 1255,
+    "y": 490,
+    "z": "4f2829e5.fc576",
+    "wires": [
+      []
+    ]
+  },
+  {
+    "id": "c98e6def.0e6fb8",
+    "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\"/>",
+    "comments": "",
+    "outputs": 1,
+    "x": 1462,
+    "y": 574,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "ecdadcb9.f534b"
+        "2ccb6350.67574c",
+        "5977545b.66d21c"
       ]
     ]
   },
   {
-    "id":"ecdadcb9.f534b",
-    "type":"switchNode",
-    "name":"switch id",
-    "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
-    "comments":"",
-    "outputs":1,
-    "x":1045.500099182129,
-    "y":181.5156364440918,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "2ccb6350.67574c",
+    "type": "success",
+    "name": "success",
+    "xml": "<outcome value='success'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1702,
+    "y": 537,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "6f6c6213.b682dc"
+        "b77a0163.0800d"
       ]
     ]
   },
   {
-    "id":"6f6c6213.b682dc",
-    "type":"outcomeTrue",
-    "name":"true",
-    "xml":"<outcome value='true'>\n",
-    "comments":"",
-    "outputs":1,
-    "x":1247.5002250671387,
-    "y":180.51565170288086,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
+    "id": "5977545b.66d21c",
+    "type": "failure",
+    "name": "failure",
+    "xml": "<outcome value='failure'>\n",
+    "comments": "",
+    "outputs": 1,
+    "x": 1709.25,
+    "y": 603.6428833007812,
+    "z": "4f2829e5.fc576",
+    "wires": [
       [
-        "9c537412.9158a8"
+        "ad04fb75.6d618"
       ]
     ]
   },
   {
-    "id":"9c537412.9158a8",
-    "type":"set",
-    "name":"set id",
-    "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
-    "comments":"",
-    "x":1429.1666069030762,
-    "y":179.18220138549805,
-    "z":"4954cd5d.30ecf4",
-    "wires":[
-
-    ]
+    "id": "b77a0163.0800d",
+    "type": "set",
+    "name": "set token-id",
+    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
+    "comments": "",
+    "x": 1887,
+    "y": 534,
+    "z": "4f2829e5.fc576",
+    "wires": []
+  },
+  {
+    "id": "ad04fb75.6d618",
+    "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 get token rest api\" />\n",
+    "comments": "",
+    "x": 1890,
+    "y": 602.3929443359375,
+    "z": "4f2829e5.fc576",
+    "wires": []
   }
 ]