Clean up A1 controller code
[nonrtric.git] / sdnc-a1-controller / oam / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
diff --git a/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json b/sdnc-a1-controller/oam/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
deleted file mode 100644 (file)
index bccb618..0000000
+++ /dev/null
@@ -1,2087 +0,0 @@
-[\r
-  {\r
-    "id": "ff549c79.63961",\r
-    "type": "dgstart",\r
-    "name": "DGSTART",\r
-    "outputs": 1,\r
-    "x": 94.03125,\r
-    "y": 49.00012397766113,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "a05176da.ae3e48"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "a05176da.ae3e48",\r
-    "type": "service-logic",\r
-    "name": "GENERIC-RESOURCE-API ${project.version}",\r
-    "module": "GENERIC-RESOURCE-API",\r
-    "version": "${project.version}",\r
-    "comments": "",\r
-    "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
-    "outputs": 1,\r
-    "x": 275.03125381469727,\r
-    "y": 109.00014114379883,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "fe524cbe.32e62"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "fe524cbe.32e62",\r
-    "type": "method",\r
-    "name": "sotn-attachment-topology-operation-deactivate",\r
-    "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 263.0313720703125,\r
-    "y": 197.00012397766113,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "437c9c25.6eb2d4"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "437c9c25.6eb2d4",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 279.0313720703125,\r
-    "y": 752.0003685951233,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "a802b53.c930648",\r
-        "1068510.ffabdaf",\r
-        "90b4d4b2.478c88",\r
-        "96a33d9.74471c",\r
-        "f6798703.c71c48",\r
-        "74b419be.6c1dc8",\r
-        "cea5b658.f38fb8",\r
-        "8fc6baf4.1c66d8",\r
-        "bd5b936a.6f494",\r
-        "1ecf912a.ad8d5f",\r
-        "754f8876.c41b88",\r
-        "1fa63937.8805f7",\r
-        "8e1d23f5.d1706",\r
-        "d507ebff.314fd8",\r
-        "9f388371.4f18e",\r
-        "31cf3c93.494fc4",\r
-        "61d4f147.44641",\r
-        "7bc058aa.42a598",\r
-        "7c847f3c.b2ac4",\r
-        "f0fb1a1c.cc2828"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "a802b53.c930648",\r
-    "type": "set",\r
-    "name": "set tmp.ar.allotted-resource-id,etc",\r
-    "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",\r
-    "comments": "",\r
-    "x": 676.0248107910156,\r
-    "y": 150.99361085891724,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "88124680.e6b8a8",\r
-    "type": "comment",\r
-    "name": "set tmp ar-id to fetch resource from MDSAL",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 704.9851226806641,\r
-    "y": 115.02540683746338,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "1068510.ffabdaf",\r
-    "type": "set",\r
-    "name": "set tmp.ar.self-link",\r
-    "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",\r
-    "comments": "",\r
-    "x": 630.0247497558594,\r
-    "y": 243.99361610412598,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "f6798703.c71c48",\r
-    "type": "execute",\r
-    "name": "execute Properties",\r
-    "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",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 636.2866401672363,\r
-    "y": 331.66034507751465,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "90b4d4b2.478c88",\r
-    "type": "execute",\r
-    "name": "generate allotted-resource tmp.ar-url",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 686.2867431640625,\r
-    "y": 418.66034603118896,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "182d3b03.4e2c15",\r
-    "type": "comment",\r
-    "name": "GET connection-attachment-allotted-resource from mdsal",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 729.8397369384766,\r
-    "y": 489.5388927459717,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "bbe52b99.83dd68",\r
-    "type": "comment",\r
-    "name": "Used for setting output to API Handler",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 684.0247802734375,\r
-    "y": 210.99362564086914,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "dce4912.220bb7",\r
-    "type": "comment",\r
-    "name": "Obtain different URL, template location etc",\r
-    "info": "For saving resource information to MDSAL & for AAI",\r
-    "comments": "",\r
-    "x": 702.0247459411621,\r
-    "y": 296.88250637054443,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "66940a34.fde394",\r
-    "type": "comment",\r
-    "name": "Used to Get AR by id to MDSAL, same as self-link",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 728.0247650146484,\r
-    "y": 383.8824653625488,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "55776be8.abf844",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1170.6980781555176,\r
-    "y": 537.0001525878906,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "5a06af0c.5db4c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "5a06af0c.5db4c",\r
-    "type": "block",\r
-    "name": "block: atomic",\r
-    "xml": "<block atomic=\"true\">\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1339.6980819702148,\r
-    "y": 535.5000534057617,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "faae066.03a7ef8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "faae066.03a7ef8",\r
-    "type": "switchNode",\r
-    "name": "switch cr length",\r
-    "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1512.5553512573242,\r
-    "y": 473.119215965271,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "74bd4c84.2a01f4",\r
-        "6215df1.a21872"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "74bd4c84.2a01f4",\r
-    "type": "other",\r
-    "name": "outcome 1",\r
-    "xml": "<outcome value='1'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1749.8885955810547,\r
-    "y": 451.11916637420654,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "932b115b.ef744"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "932b115b.ef744",\r
-    "type": "block",\r
-    "name": "block: atomic",\r
-    "xml": "<block atomic='true'>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1934.4124851226807,\r
-    "y": 448.0240001678467,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "d5b08a67.3e5c48",\r
-        "5ce1e592.04689c",\r
-        "fa1f1660.477578"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "1d1825f2.925d0a",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
-    "comments": "",\r
-    "x": 1858.5503273010254,\r
-    "y": 573.0662412643433,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "2f2bf02.ca60d1",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1162.5498809814453,\r
-    "y": 572.066237449646,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "82e6da2.ad6fd28"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "82e6da2.ad6fd28",\r
-    "type": "block",\r
-    "name": "block: atomic",\r
-    "xml": "<block atomic=\"true\">\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1342.5498313903809,\r
-    "y": 572.7327880859375,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "1d1825f2.925d0a"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6215df1.a21872",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1738.2165489196777,\r
-    "y": 488.39952659606934,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "1d1825f2.925d0a"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "d5b08a67.3e5c48",\r
-    "type": "set",\r
-    "name": "set connection-attachment-ar from get",\r
-    "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",\r
-    "comments": "",\r
-    "x": 2180.476043701172,\r
-    "y": 408.00022983551025,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "fa1f1660.477578",\r
-    "type": "set",\r
-    "name": "set oper-status",\r
-    "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",\r
-    "comments": "",\r
-    "x": 2113.4760398864746,\r
-    "y": 498.42878437042236,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "5ce1e592.04689c",\r
-    "type": "switchNode",\r
-    "name": "switch order-status",\r
-    "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2124.475875854492,\r
-    "y": 452.0002336502075,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "46412cb7.a5f6f4",\r
-        "b5fc3d64.54bed"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "46412cb7.a5f6f4",\r
-    "type": "outcome",\r
-    "name": "outcome Active",\r
-    "xml": "<outcome value='Active'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2331.075824737549,\r
-    "y": 442.0002336502075,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "11963437.b728dc"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "b5fc3d64.54bed",\r
-    "type": "outcome",\r
-    "name": "outcome Other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2330.7903442382812,\r
-    "y": 484.42882442474365,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "1c1d147e.4224ac"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "11963437.b728dc",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2483.5463790893555,\r
-    "y": 440.3758840560913,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "1c1d147e.4224ac",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",\r
-    "comments": "",\r
-    "x": 2503.6982345581055,\r
-    "y": 481.00023555755615,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "6ad0e2bd.71bc3c",\r
-    "type": "call",\r
-    "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",\r
-    "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 891.3343658447266,\r
-    "y": 633.4937148094177,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "74b419be.6c1dc8",\r
-    "type": "block",\r
-    "name": "block: atomic",\r
-    "xml": "<block atomic=\"true\">\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 588.3405303955078,\r
-    "y": 634.5000629425049,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6ad0e2bd.71bc3c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "8a5e890a.680be8",\r
-    "type": "comment",\r
-    "name": "GET parent-service-data from mdsal to check existence of other End point",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 770.0316925048828,\r
-    "y": 695.5318222045898,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "2205c5d5.df45ea",\r
-    "type": "for",\r
-    "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",\r
-    "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1660.2162475585938,\r
-    "y": 899.0042066574097,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "325e72dd.42ae0e"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "f3fcb7.3cb38348",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1066.3582191467285,\r
-    "y": 1031.5756673812866,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "ed4934e0.63e078"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "640c50fa.9b815",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 1257.4856204986572,\r
-    "y": 896.7016951814294,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "2205c5d5.df45ea"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "325e72dd.42ae0e",\r
-    "type": "switchNode",\r
-    "name": "switch allotted-resource-id",\r
-    "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2095.327648162842,\r
-    "y": 899.0041036605835,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "27ec9aa5.cff036",\r
-        "495a6869.e7e8d8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "27ec9aa5.cff036",\r
-    "type": "outcomeTrue",\r
-    "name": "true",\r
-    "xml": "<outcome value='true'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2304.137996673584,\r
-    "y": 879.468560218811,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "ac118201.9b0e6"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "7260dcf8.1fb0a4",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 2452.898750305176,\r
-    "y": 915.3257417678833,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "5e185008.36b4b"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "5e185008.36b4b",\r
-    "type": "set",\r
-    "name": "set tmp.pidx and ptx.consumed-ar",\r
-    "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",\r
-    "comments": "",\r
-    "x": 2687.756187438965,\r
-    "y": 913.8972730636597,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "b3d0356b.e2dd48",\r
-    "type": "comment",\r
-    "name": "Check existence of other AR in parent service data",\r
-    "info": "Check if other allotted resource is available.",\r
-    "comments": "",\r
-    "x": 693.9940948486328,\r
-    "y": 865.8930444717407,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "31b6e940.d005b6",\r
-    "type": "other",\r
-    "name": "outcome 1",\r
-    "xml": "<outcome value='1'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1077.0105667114258,\r
-    "y": 966.6773881912231,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "864fe6a.0f93518"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ed4934e0.63e078",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
-    "comments": "",\r
-    "x": 1239.0105628967285,\r
-    "y": 1030.677409172058,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "998ab047.1d3cb",\r
-    "type": "other",\r
-    "name": "outcome 2",\r
-    "xml": "<outcome value='2'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1083.0106410980225,\r
-    "y": 897.6773955598474,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "640c50fa.9b815"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ac118201.9b0e6",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2433.122055053711,\r
-    "y": 874.677300453186,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "495a6869.e7e8d8",\r
-    "type": "outcomeTrue",\r
-    "name": "false",\r
-    "xml": "<outcome value='false'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2304.1220474243164,\r
-    "y": 913.6773042678833,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "7260dcf8.1fb0a4"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "e0954e7f.0fc95",\r
-    "type": "switchNode",\r
-    "name": "switch mdsal-psd.networks_length",\r
-    "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1489.3442459106445,\r
-    "y": 969.8998851776123,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6d21348c.4e000c",\r
-        "8b08dda8.1325d"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "8b08dda8.1325d",\r
-    "type": "other",\r
-    "name": "outcome 1",\r
-    "xml": "<outcome value='1'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1719.3442687988281,\r
-    "y": 945.7887172698975,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "2e4674ae.83d44c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6d21348c.4e000c",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1713.3443908691406,\r
-    "y": 1005.7887172698975,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "33f517e8.5f1128"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "33f517e8.5f1128",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n    \n",\r
-    "comments": "",\r
-    "x": 1885.9967765808105,\r
-    "y": 1005.8905239105225,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "6f8f7dac.c1bd54",\r
-    "type": "set",\r
-    "name": "set tmp.network.",\r
-    "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",\r
-    "comments": "",\r
-    "x": 2087.789192199707,\r
-    "y": 935.7888765335083,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "864fe6a.0f93518",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 1249.454921722412,\r
-    "y": 967.7886362075806,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "e0954e7f.0fc95"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "2e4674ae.83d44c",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 1887.121940612793,\r
-    "y": 964.7885513305664,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6f8f7dac.c1bd54",\r
-        "ac5226f5.253788"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ac5226f5.253788",\r
-    "type": "for",\r
-    "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",\r
-    "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2263.12255859375,\r
-    "y": 1007.7885589599609,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "314fe564.900c2a"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "314fe564.900c2a",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2586.6782188415527,\r
-    "y": 1008.7886362075806,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6d64b0f1.beb81",\r
-        "e3bdd7fd.7d8fe8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6d64b0f1.beb81",\r
-    "type": "switchNode",\r
-    "name": "switch access-node-id",\r
-    "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2765.1883239746094,\r
-    "y": 992.799054145813,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "c510bd0d.90a2"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "c510bd0d.90a2",\r
-    "type": "outcomeTrue",\r
-    "name": "true",\r
-    "xml": "<outcome value='true'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2952.1883239746094,\r
-    "y": 993.799054145813,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "a92bc658.3e7468"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "a92bc658.3e7468",\r
-    "type": "set",\r
-    "name": "set tmp.found-in-network tmp.ep-available",\r
-    "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",\r
-    "comments": "",\r
-    "x": 3203.188331604004,\r
-    "y": 993.3989963531494,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "e3bdd7fd.7d8fe8",\r
-    "type": "returnSuccess",\r
-    "name": "return success",\r
-    "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
-    "comments": "",\r
-    "x": 2748.17822265625,\r
-    "y": 1037.7886533737183,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "96a33d9.74471c",\r
-    "type": "switchNode",\r
-    "name": "switch tmp.ep-available",\r
-    "xml": "<switch test='`$tmp.ep-available`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 625.3441162109375,\r
-    "y": 1170.2329092025757,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "61b02086.d03f9",\r
-        "6c4d286f.2a00a8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6c4d286f.2a00a8",\r
-    "type": "outcomeTrue",\r
-    "name": "true",\r
-    "xml": "<outcome value='true'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 808.0109519958496,\r
-    "y": 1194.5663175582886,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "929ee9e7.521368"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "61b02086.d03f9",\r
-    "type": "outcomeTrue",\r
-    "name": "false",\r
-    "xml": "<outcome value='false'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 810.8997230529785,\r
-    "y": 1133.5664157867432,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "856596b.3c40368"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "856596b.3c40368",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 947.8997993469238,\r
-    "y": 1132.4552297592163,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "929ee9e7.521368",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 978.1220397949219,\r
-    "y": 1192.5662755966187,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "be61dd8a.9e196"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "eb0bfad4.778f58",\r
-    "type": "comment",\r
-    "name": "GET connection-attachment-ar to store AR data from mdsal",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 2163.504196166992,\r
-    "y": 372.504093170166,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "114f8c87.a5aa33",\r
-    "type": "comment",\r
-    "name": "Set source end point",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 602.0040893554688,\r
-    "y": 602.2541885375977,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "cea5b658.f38fb8",\r
-    "type": "set",\r
-    "name": "set tmp.ar.parent-service-instance-id",\r
-    "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",\r
-    "comments": "",\r
-    "x": 655.0001678466797,\r
-    "y": 727.0003328323364,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "5d8dc0c4.ff757",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1033.0001640319824,\r
-    "y": 776.0003318786621,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6a1bf843.4d25b8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "83b7907.b55937",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1024.8519668579102,\r
-    "y": 811.0664167404175,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "4f4eb4c7.cc9fdc"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "4f4eb4c7.cc9fdc",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
-    "comments": "",\r
-    "x": 1200.0006523132324,\r
-    "y": 807.3337669372559,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "6a1bf843.4d25b8",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1184.0001640319824,\r
-    "y": 774.0003318786621,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "8fc6baf4.1c66d8",\r
-    "type": "set",\r
-    "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",\r
-    "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",\r
-    "comments": "",\r
-    "x": 742.0001602172852,\r
-    "y": 901.0003061294556,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "ce5d7876.710a68",\r
-    "type": "comment",\r
-    "name": "If other EP exists delete from domain controller",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 676.0000610351562,\r
-    "y": 1095.0001211166382,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "fd46c38b.b0e06",\r
-    "type": "set",\r
-    "name": "set controller data",\r
-    "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",\r
-    "comments": "",\r
-    "x": 2674.000877380371,\r
-    "y": 1385.0007133483887,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "ff817e6a.4c262",\r
-    "type": "get-resource",\r
-    "name": "get-resource esr-thirdparty-sdnc",\r
-    "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 = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2237.500816345215,\r
-    "y": 1444.0007133483887,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "f3622c21.50f46",\r
-        "e431ae5e.58828",\r
-        "a151b89e.28add8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "f3622c21.50f46",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2476.500816345215,\r
-    "y": 1397.0007133483887,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "fd46c38b.b0e06"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "e431ae5e.58828",\r
-    "type": "not-found",\r
-    "name": "not-found",\r
-    "xml": "<outcome value='not-found'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2479.99178314209,\r
-    "y": 1444.57474899292,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "236bc0bf.99bb6"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "a151b89e.28add8",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2475.32479095459,\r
-    "y": 1485.9080619812012,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6adb79b2.e33818"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "236bc0bf.99bb6",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
-    "comments": "",\r
-    "x": 2656.5631942749023,\r
-    "y": 1432.8604850769043,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "6adb79b2.e33818",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
-    "comments": "",\r
-    "x": 2663.0973472595215,\r
-    "y": 1481.3472547531128,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "993c0a9c.fa2968",\r
-    "type": "get-resource",\r
-    "name": "get-resource pnf",\r
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2187.0009841918945,\r
-    "y": 1336.000542640686,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "6cbbdc6c.177994",\r
-        "d6b323fb.dd5df",\r
-        "691cb9fb.eb1b88"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6cbbdc6c.177994",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2375.0009994506836,\r
-    "y": 1282.0005350112915,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "f3a2b0cc.a6cd3"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "d6b323fb.dd5df",\r
-    "type": "not-found",\r
-    "name": "not-found",\r
-    "xml": "<outcome value='not-found'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2380.492046356201,\r
-    "y": 1324.5744314193726,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "44a433a2.c4cb1c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "691cb9fb.eb1b88",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2366.825054168701,\r
-    "y": 1362.9077672958374,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "a204db7f.ac39f8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "44a433a2.c4cb1c",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
-    "comments": "",\r
-    "x": 2534.063346862793,\r
-    "y": 1314.8602380752563,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "a204db7f.ac39f8",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
-    "comments": "",\r
-    "x": 2530.597526550293,\r
-    "y": 1354.3470573425293,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "f3a2b0cc.a6cd3",\r
-    "type": "set",\r
-    "name": "set tmp.thirdparty-sdnc-id",\r
-    "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",\r
-    "comments": "",\r
-    "x": 2575.0010147094727,\r
-    "y": 1277.0005350112915,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "d61e54ea.0473f8",\r
-    "type": "comment",\r
-    "name": "get domain controller information",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 2230.5048904418945,\r
-    "y": 1305.0045099258423,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "10d17cd1.f30ab3",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode Delete ethernet Service",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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`\" />",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2761.001152038574,\r
-    "y": 1730.000747680664,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "94d88f9c.771f9",\r
-        "f2badd12.3e9c1"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "94d88f9c.771f9",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 3107.000801086426,\r
-    "y": 1714.0007457733154,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "1c7ac915.f6a6b7"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "1c7ac915.f6a6b7",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 3277.0007400512695,\r
-    "y": 1717.0007457733154,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "73cc424c.c105bc",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
-    "comments": "",\r
-    "x": 3277.000862121582,\r
-    "y": 1673.0007457733154,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "f2badd12.3e9c1",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 3110.0007400512695,\r
-    "y": 1673.0007457733154,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "73cc424c.c105bc"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "4d3c7e74.2037b",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 904.7619972229004,\r
-    "y": 1694.9529141187668,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "9a2c9c7c.b67bf"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "9a2c9c7c.b67bf",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",\r
-    "comments": "",\r
-    "x": 1071.2858772277832,\r
-    "y": 1706.5719851255417,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "76fdd751.58a9d8",\r
-    "type": "failure",\r
-    "name": "not-found",\r
-    "xml": "<outcome value='not-found'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 911.8572845458984,\r
-    "y": 1727.7148817777634,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "9a2c9c7c.b67bf"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "4fec1ce6.1b1a34",\r
-    "type": "comment",\r
-    "name": "Save Resource to AAI",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 623.8097114562988,\r
-    "y": 1677.3023023605347,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "d507ebff.314fd8",\r
-    "type": "set",\r
-    "name": "set output to api handler",\r
-    "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",\r
-    "comments": "",\r
-    "x": 638.5774078369141,\r
-    "y": 1598.8277835845947,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "9f388371.4f18e",\r
-    "type": "returnSuccess",\r
-    "name": "return success",\r
-    "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
-    "comments": "",\r
-    "x": 606.9904899597168,\r
-    "y": 1759.4435358047485,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "8e1d23f5.d1706",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode - PUT AR by id",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 688.3095092773438,\r
-    "y": 1506.468557357788,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "e11c7417.4fa658",\r
-        "64cfcda1.4c2f84",\r
-        "c55d4506.901118"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "e11c7417.4fa658",\r
-    "type": "not-found",\r
-    "name": "not-found",\r
-    "xml": "<outcome value='not-found'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 956.9508857727051,\r
-    "y": 1557.799969099462,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "14bdf473.21930c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "64cfcda1.4c2f84",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 947.9509353637695,\r
-    "y": 1526.2999948486686,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "14bdf473.21930c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "c55d4506.901118",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 951.7009735107422,\r
-    "y": 1496.657099723816,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "82c892ac.f910d"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "14bdf473.21930c",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",\r
-    "comments": "",\r
-    "x": 1117.7009735107422,\r
-    "y": 1527.0500186905265,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "82c892ac.f910d",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1093.3569412231445,\r
-    "y": 1492.849268913269,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "bd5b936a.6f494",\r
-    "type": "set",\r
-    "name": "set ar-data",\r
-    "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",\r
-    "comments": "",\r
-    "x": 588.5231285095215,\r
-    "y": 1356.8494803905487,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "754f8876.c41b88",\r
-    "type": "execute",\r
-    "name": "execute getTime",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 605.8089714050293,\r
-    "y": 1429.4690780639648,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "1fa63937.8805f7",\r
-    "type": "set",\r
-    "name": "set allotted-resource-oper-status",\r
-    "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",\r
-    "comments": "",\r
-    "x": 660.796028137207,\r
-    "y": 1467.4202156066895,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "1ecf912a.ad8d5f",\r
-    "type": "set",\r
-    "name": "set model-data",\r
-    "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",\r
-    "comments": "",\r
-    "x": 602.3646697998047,\r
-    "y": 1396.024130821228,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "3d5eb994.20a306",\r
-    "type": "comment",\r
-    "name": "Prepare data for allotted-resource addition to MDSAL",\r
-    "info": "This will add to allotted-resource which is present inside service.",\r
-    "comments": "",\r
-    "x": 715.6981315612793,\r
-    "y": 1317.0240828990936,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "35db93ec.682e9c",\r
-    "type": "comment",\r
-    "name": "Add to allotted-resources in mdsal",\r
-    "info": "",\r
-    "comments": "",\r
-    "x": 657.2779579162598,\r
-    "y": 1284.4373846054077,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "31cf3c93.494fc4",\r
-    "type": "update",\r
-    "name": "update AAI allotted-resource",\r
-    "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 650.2539901733398,\r
-    "y": 1714.7544450759888,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "4d3c7e74.2037b",\r
-        "76fdd751.58a9d8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "be61dd8a.9e196",\r
-    "type": "get-resource",\r
-    "name": "get-resource connectivity",\r
-    "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.connectivity' local-only='false' >\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1184.0318145751953,\r
-    "y": 1192.504550933838,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "ec3a781a.b17a88",\r
-        "13bcbf26.d71d71"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "3730ddb4.d493b2",\r
-    "type": "block",\r
-    "name": "block : atomic",\r
-    "xml": "<block atomic=\"true\">",\r
-    "atomic": "true",\r
-    "outputs": 1,\r
-    "x": 1957.1491241455078,\r
-    "y": 1389.3446836471558,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "76aabffd.38e",\r
-        "ddc37a19.aa1838",\r
-        "993c0a9c.fa2968",\r
-        "ff817e6a.4c262",\r
-        "d2c267be.388018",\r
-        "4ec4550f.fd160c",\r
-        "767b76a3.973bd8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "2d7c3367.b4917c",\r
-    "type": "outcome",\r
-    "name": "vpn-binding",\r
-    "xml": "<outcome value='vpn-binding'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1783.317642211914,\r
-    "y": 1391.8262071609497,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "3730ddb4.d493b2"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "95f1a2bf.0b285",\r
-    "type": "for",\r
-    "name": "for each relationship",\r
-    "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1405.0315856933594,\r
-    "y": 1390.004433631897,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "68b3b3fe.7b312c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "68b3b3fe.7b312c",\r
-    "type": "switchNode",\r
-    "name": "switch related-to",\r
-    "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1617.0315971374512,\r
-    "y": 1391.004433631897,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "2d7c3367.b4917c"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ddc37a19.aa1838",\r
-    "type": "set",\r
-    "name": "set tmp.vpn-name",\r
-    "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",\r
-    "comments": "",\r
-    "x": 2190.0317916870117,\r
-    "y": 1103.00475025177,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "76aabffd.38e",\r
-    "type": "execute",\r
-    "name": "split vpnName to find nodeId",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2226.0317459106445,\r
-    "y": 1204.004117012024,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "78a77003.35ea4",\r
-        "637ec688.c44a88"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "637ec688.c44a88",\r
-    "type": "failure",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2427.031936645508,\r
-    "y": 1181.0041093826294,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "b87e837.b66ce8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "b87e837.b66ce8",\r
-    "type": "set",\r
-    "name": "set tmp.node-id",\r
-    "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",\r
-    "comments": "",\r
-    "x": 2580.032096862793,\r
-    "y": 1179.0041103363037,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "857b862a.e6a0b8",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
-    "comments": "",\r
-    "x": 2564.032262802124,\r
-    "y": 1228.0041122436523,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "78a77003.35ea4",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2424.03191947937,\r
-    "y": 1229.004114151001,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "857b862a.e6a0b8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ec3a781a.b17a88",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1365.0314140319824,\r
-    "y": 1227.0001955032349,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "8cc479bc.b82368"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "13bcbf26.d71d71",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1367.883144378662,\r
-    "y": 1154.0664405822754,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "c5f74144.ebbac"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "c5f74144.ebbac",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n    \n",\r
-    "comments": "",\r
-    "x": 1510.0319137573242,\r
-    "y": 1154.3338508605957,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "8cc479bc.b82368",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 1367.0314254760742,\r
-    "y": 1305.000361442566,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "95f1a2bf.0b285"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "61d4f147.44641",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 803.3652038574219,\r
-    "y": 553.5000734329224,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "55776be8.abf844",\r
-        "2f2bf02.ca60d1"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "7bc058aa.42a598",\r
-    "type": "execute",\r
-    "name": "get parent-service-data tmp.ar-url-psd",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 657.0314483642578,\r
-    "y": 762.0003347396851,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "7c847f3c.b2ac4",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode - get-resource parent service data",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 724.0314102172852,\r
-    "y": 797.0004186630249,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "5d8dc0c4.ff757",\r
-        "83b7907.b55937"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "f0fb1a1c.cc2828",\r
-    "type": "switchNode",\r
-    "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",\r
-    "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 740.2155303955078,\r
-    "y": 971.7182464599609,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "f3fcb7.3cb38348",\r
-        "31b6e940.d005b6",\r
-        "998ab047.1d3cb"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "d2c267be.388018",\r
-    "type": "update",\r
-    "name": "delete AAI vpn-binding",\r
-    "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpn-name' >",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2211.031204223633,\r
-    "y": 1801.0002889633179,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "e8b749f3.e275f8",\r
-        "ef20a9a9.f1fb18"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "e8b749f3.e275f8",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2465.5392112731934,\r
-    "y": 1781.1987580060959,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "b53766de.89b208"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "ef20a9a9.f1fb18",\r
-    "type": "failure",\r
-    "name": "not-found",\r
-    "xml": "<outcome value='not-found'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2472.6344985961914,\r
-    "y": 1813.9607256650925,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "b53766de.89b208"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "b53766de.89b208",\r
-    "type": "returnFailure",\r
-    "name": "return failure",\r
-    "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",\r
-    "comments": "",\r
-    "x": 2632.063091278076,\r
-    "y": 1792.8178290128708,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "4ec4550f.fd160c",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode Get token",\r
-    "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.onap.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\"/>",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2250.7854080200195,\r
-    "y": 1581.254126548767,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "d144148d.dc75b8",\r
-        "6622df6c.28bd"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "d144148d.dc75b8",\r
-    "type": "success",\r
-    "name": "success",\r
-    "xml": "<outcome value='success'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2485.7854080200195,\r
-    "y": 1559.254126548767,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "11df681e.1cd4c8"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "6622df6c.28bd",\r
-    "type": "failure",\r
-    "name": "failure",\r
-    "xml": "<outcome value='failure'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2478.0354080200195,\r
-    "y": 1612.8970098495483,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "a07b50ef.81562"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "11df681e.1cd4c8",\r
-    "type": "set",\r
-    "name": "set token-id",\r
-    "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
-    "comments": "",\r
-    "x": 2639.7854080200195,\r
-    "y": 1560.254126548767,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": []\r
-  },\r
-  {\r
-    "id": "767b76a3.973bd8",\r
-    "type": "switchNode",\r
-    "name": "switch prop.sdncRestApi.token_id",\r
-    "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2257.031126022339,\r
-    "y": 1686.5312061309814,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "647e08e2.0afec8",\r
-        "4b8f5cd7.3f8294"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "4b8f5cd7.3f8294",\r
-    "type": "other",\r
-    "name": "other",\r
-    "xml": "<outcome value='Other'>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2477.0312519073486,\r
-    "y": 1726.031084060669,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "10d17cd1.f30ab3"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "647e08e2.0afec8",\r
-    "type": "other",\r
-    "name": "Null",\r
-    "xml": "<outcome value=''>\n",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2483.031373977661,\r
-    "y": 1662.5310831069946,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "e34fee1b.784d2"\r
-      ]\r
-    ]\r
-  },\r
-  {\r
-    "id": "a07b50ef.81562",\r
-    "type": "block",\r
-    "name": "block",\r
-    "xml": "<block>\n",\r
-    "atomic": "false",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2623.0311431884766,\r
-    "y": 1610.5309600830078,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      []\r
-    ]\r
-  },\r
-  {\r
-    "id": "e34fee1b.784d2",\r
-    "type": "execute",\r
-    "name": "execute RestApiCallNode Delete ethernet Service",\r
-    "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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",\r
-    "comments": "",\r
-    "outputs": 1,\r
-    "x": 2762.03125,\r
-    "y": 1659.5311279296875,\r
-    "z": "f47a0348.da1fc",\r
-    "wires": [\r
-      [\r
-        "f2badd12.3e9c1",\r
-        "94d88f9c.771f9"\r
-      ]\r
-    ]\r
-  }\r
-]\r