Support individual CLL deletion, and UNI removal from Ethernet Service, and
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-delete.json
index 5af3b36..fb09dbd 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "931a69bb.dae57",\r
+        "id": "d1a7bbc1.540ca8",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 158,\r
-        "y": 111,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 171.88333129882812,\r
+        "y": 131.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "631f62d5.74088c"\r
+                "6b49e250.7dcf1c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "631f62d5.74088c",\r
+        "id": "6b49e250.7dcf1c",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
         "outputs": 1,\r
-        "x": 289.2856903076172,\r
-        "y": 160.23810863494873,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 456.1690216064453,\r
+        "y": 193.12143993377686,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "b7a67e25.a3d65"\r
+                "7d29f447.50c89c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b7a67e25.a3d65",\r
+        "id": "7d29f447.50c89c",\r
         "type": "method",\r
         "name": "method cll-vnf-topology-operation-cll-delete",\r
         "xml": "<method rpc='cll-vnf-topology-operation-cll-delete' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 292.4286193847656,\r
-        "y": 245.00003242492676,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 462.3119354248047,\r
+        "y": 277.88336181640625,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "bcc86fda.38b13"\r
+                "eaada3e3.80126"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bcc86fda.38b13",\r
+        "id": "eaada3e3.80126",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 442.238037109375,\r
-        "y": 374.6666564941406,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 811.8833312988281,\r
+        "y": 336.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "f53defcd.3a7dd",\r
-                "c20e131e.73b7b",\r
-                "d160ef14.daae98"\r
+                "48b97bf1.34ba04",\r
+                "4cae2f6c.f9579",\r
+                "47d3b263.d1c534"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f53defcd.3a7dd",\r
+        "id": "48b97bf1.34ba04",\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": 716.5716552734375,\r
-        "y": 641.59716796875,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1113.2168273925781,\r
+        "y": 607.8136291503906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c20e131e.73b7b",\r
+        "id": "4cae2f6c.f9579",\r
         "type": "save",\r
         "name": "get service-instance from aai",\r
-        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--vnf-topology-operation-input.service-information.service-instance-id-->",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 768,\r
-        "y": 412,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1134.6452941894531,\r
+        "y": 310.2166442871094,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "73ebc7bf.bf03e8",\r
-                "4161fc92.ab54b4",\r
-                "f0a5f72e.4756d"\r
+                "eecf5ed7.260848",\r
+                "c7a2a22f.bd7b1",\r
+                "44494afd.f0c474"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "73ebc7bf.bf03e8",\r
+        "id": "eecf5ed7.260848",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 966,\r
-        "y": 350,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1359.6452941894531,\r
+        "y": 168.21664428710938,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9fe92008.1b7c9"\r
+                "cddb4078.0dee18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4161fc92.ab54b4",\r
+        "id": "c7a2a22f.bd7b1",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 996.490966796875,\r
-        "y": 392.57403564453125,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1355.1362609863281,\r
+        "y": 237.79067993164062,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "8782adc7.ab141"\r
+                "7789aaf8.1fe7d4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f0a5f72e.4756d",\r
+        "id": "44494afd.f0c474",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 985,\r
-        "y": 439,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1343.6452941894531,\r
+        "y": 284.2166442871094,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "ecf8d005.e02b48"\r
+                "64127148.01c618"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8782adc7.ab141",\r
+        "id": "1679e3cd.763d6c",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1113.6452941894531,\r
+        "y": 198.21664428710938,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "47d3b263.d1c534",\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' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1101.6452941894531,\r
+        "y": 250.21664428710938,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cddb4078.0dee18",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resources_length != 0",\r
+        "xml": "<switch test='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length != 0`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1599.8833312988281,\r
+        "y": 164.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6a54ba66.1cde8c",\r
+                "7bb2b732.d43ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7789aaf8.1fe7d4",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1150.0623779296875,\r
-        "y": 395.8597717285156,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1509.9457092285156,\r
+        "y": 240.74310302734375,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ecf8d005.e02b48",\r
+        "id": "64127148.01c618",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 1154,\r
-        "y": 440,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1513.8833312988281,\r
+        "y": 284.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5b569a16.745f1c",\r
-        "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "id": "6a54ba66.1cde8c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1184,\r
-        "y": 346,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1804.8833312988281,\r
+        "y": 201.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "25ca27fd.dbc988"\r
+                "d1e88455.43ef2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "25ca27fd.dbc988",\r
-        "type": "switchNode",\r
-        "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "id": "7bb2b732.d43ff8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1407.33349609375,\r
-        "y": 345.99993896484375,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1814.8833312988281,\r
+        "y": 128.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            [\r
-                "f6a0c4df.5c0238"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "f6a0c4df.5c0238",\r
-        "type": "outcome",\r
-        "name": "connectivity",\r
-        "xml": "<outcome value='connectivity'>\n",\r
+        "id": "d1e88455.43ef2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1587.0001220703125,\r
-        "y": 346.0000305175781,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1797.8833312988281,\r
+        "y": 276.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "b1afa8c.9d08258"\r
+                "8390a16b.5a156",\r
+                "341b8f1.ea5ec7",\r
+                "1d2c9241.740b2e",\r
+                "4208fd35.4a6c74",\r
+                "e351db25.84cdc8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d160ef14.daae98",\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' />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 734,\r
-        "y": 360,\r
-        "z": "de2a2b68.0a5d7",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "b1afa8c.9d08258",\r
+        "id": "2db9f3bd.0d65e4",\r
         "type": "save",\r
-        "name": "get connectivity from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
+        "name": "get allotted-resource from aai",\r
+        "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"allotted-resource\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type-->\n<!--         AND allotted-resource.id = $allotted-resource-id'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">-->\n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1787,\r
-        "y": 346,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2283.883331298828,\r
+        "y": 327.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "c3a2010c.f5d48",\r
-                "fb144142.e9ac68",\r
-                "ba20a9b3.14be2"\r
+                "11f248b6.2b0fe7",\r
+                "fd3681a1.487b1",\r
+                "9338a88f.aebeb"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c3a2010c.f5d48",\r
+        "id": "11f248b6.2b0fe7",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1958,\r
-        "y": 299,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2499.883331298828,\r
+        "y": 394.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9386fbbc.1d2048"\r
+                "7fe5ebf8.de6a64"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb144142.e9ac68",\r
+        "id": "fd3681a1.487b1",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2039.490966796875,\r
-        "y": 1139.5740356445312,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2500.374298095703,\r
+        "y": 294.4573059082031,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9e1c850d.74d728"\r
+                "6e8f233d.c6dbd4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ba20a9b3.14be2",\r
+        "id": "9338a88f.aebeb",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2037,\r
-        "y": 1183,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2495.883331298828,\r
+        "y": 343.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "c9b57000.53acb8"\r
+                "8a3025a0.71b76"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9e1c850d.74d728",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "id": "8390a16b.5a156",\r
+        "type": "for",\r
+        "name": "for each allotted-resource",\r
+        "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2000.8833312988281,\r
+        "y": 308.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7858ac8a.d0ed24",\r
+                "2db9f3bd.0d65e4",\r
+                "98563074.1e7ea",\r
+                "c475408d.68ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7858ac8a.d0ed24",\r
+        "type": "set",\r
+        "name": "set the current allotted-resource-id",\r
+        "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 2202.0623779296875,\r
-        "y": 1139.8597717285156,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2280.883331298828,\r
+        "y": 246.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c9b57000.53acb8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "4208fd35.4a6c74",\r
+        "type": "set",\r
+        "name": "set tmp.arr",\r
+        "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n\n",\r
         "comments": "",\r
-        "x": 2206,\r
-        "y": 1184,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1974.8833312988281,\r
+        "y": 258.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ad889722.664b08",\r
-        "type": "save",\r
-        "name": "get vpn-binding from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
+        "id": "341b8f1.ea5ec7",\r
+        "type": "get-resource",\r
+        "name": "get-resource pnfs-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"pnfs\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/pnfs?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopopnfs\" >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3062,\r
-        "y": 386,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2017.8833312988281,\r
+        "y": 117.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            [\r
-                "640b0e20.b1d3e",\r
-                "ce9c63b.0255a2",\r
-                "7ad6314d.3b89c8"\r
-            ]\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d2c9241.740b2e",\r
+        "type": "get-resource",\r
+        "name": "get-resource logical-links",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-links\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/logical-links?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"ccsdkTopologicalLinks\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2029.8833312988281,\r
+        "y": 158.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "e28a48f8.db57f8",\r
+        "id": "a3743fb5.49e31",\r
+        "type": "comment",\r
+        "name": "The following two nodes are for PCE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2054.883331298828,\r
+        "y": 70.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a5956784.1c6ce8",\r
+        "type": "set",\r
+        "name": "set tmp.arr",\r
+        "xml": "<set>\n<parameter name='tmp.arr.' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='otn-tunnel-slice.' value='' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1974.8833312988281,\r
+        "y": 204.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6e8f233d.c6dbd4",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2678.883331298828,\r
+        "y": 296.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8a3025a0.71b76",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 2678.820831298828,\r
+        "y": 346.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7fe5ebf8.de6a64",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3439,\r
-        "y": 378,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2680.820831298828,\r
+        "y": 397.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "1c93c389.0c8c2c",\r
-                "c798ad9c.1234b",\r
-                "fd7fa756.f7d6e8",\r
-                "270a4545.e66b22",\r
-                "d4768fc2.d5865"\r
+                "27474730.1479c8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "640b0e20.b1d3e",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "27474730.1479c8",\r
+        "type": "save",\r
+        "name": "get allotted-resource relationship from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"allotted-resource:relationship-list\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type\n         AND allotted-resource.id = $allotted-resource-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.allotted-resource.relationship-list\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3273,\r
-        "y": 388,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2973.820831298828,\r
+        "y": 344.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "e28a48f8.db57f8"\r
+                "bdd221b3.05669",\r
+                "9c61f989.c8eaf8",\r
+                "fabffff4.e28138"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ce9c63b.0255a2",\r
+        "id": "9c61f989.c8eaf8",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3273.490966796875,\r
-        "y": 433.57403564453125,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3247.311798095703,\r
+        "y": 236.59756469726562,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "714cc291.22ce0c"\r
+                "1e4b4cbe.e5dbab"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7ad6314d.3b89c8",\r
+        "id": "1e4b4cbe.e5dbab",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3424.883331298828,\r
+        "y": 236.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fabffff4.e28138",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3271,\r
-        "y": 477,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3242.820831298828,\r
+        "y": 286.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "525b4279.2df8f4"\r
+                "3e91db11.95e81c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "525b4279.2df8f4",\r
+        "id": "3e91db11.95e81c",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 3438,\r
-        "y": 476,\r
-        "z": "de2a2b68.0a5d7",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "714cc291.22ce0c",\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.l3vpn.pe1_id`\" />\n\n",\r
-        "comments": "",\r
-        "x": 3436.0623779296875,\r
-        "y": 433.8597717285156,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3424.820831298828,\r
+        "y": 286.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c57d1cb2.40bd38",\r
-        "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
+        "id": "bdd221b3.05669",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2261,\r
-        "y": 301,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3246.820831298828,\r
+        "y": 337.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9dbcf55e.4925c8"\r
+                "8cb6a22.c9637e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9dbcf55e.4925c8",\r
-        "type": "switchNode",\r
-        "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
-        "comments": "",\r
+        "id": "8cb6a22.c9637e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2458,\r
-        "y": 315,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3426.820831298828,\r
+        "y": 337.0235900878906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "b564f315.834a2",\r
-                "e7d69f06.780b38"\r
+                "6f3506c3.cf97d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b564f315.834a2",\r
-        "type": "outcome",\r
-        "name": "vpn-binding",\r
-        "xml": "<outcome value='vpn-binding'>\n",\r
+        "id": "6f3506c3.cf97d8",\r
+        "type": "switchNode",\r
+        "name": "switch allotted-resource.relationship-list not empty",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship_length != 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2626,\r
-        "y": 308,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2992.883331298828,\r
+        "y": 471.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "491489ec.617558"\r
+                "5a58fe79.709e",\r
+                "5401f43b.ed03f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "491489ec.617558",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "5401f43b.ed03f4",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 2789,\r
-        "y": 308,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3302.883331298828,\r
+        "y": 478.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            [\r
-                "ad889722.664b08"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "1c93c389.0c8c2c",\r
-        "type": "set",\r
-        "name": "set pnf-name",\r
-        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-binding.src-access-node-id`\" />\n",\r
-        "comments": "",\r
-        "x": 3661,\r
-        "y": 96,\r
-        "z": "de2a2b68.0a5d7",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "c798ad9c.1234b",\r
-        "type": "get-resource",\r
-        "name": "get-resource src pnf",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "id": "5a58fe79.709e",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3687,\r
-        "y": 213,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3301.883331298828,\r
+        "y": 532.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "76dc6e0a.1ab268",\r
-                "826ceead.c2f69",\r
-                "d5b03fc8.b6e088"\r
+                "126c6f21.417e99"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "76dc6e0a.1ab268",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "24e00055.8ca808",\r
+        "type": "outcome",\r
+        "name": "network-policy",\r
+        "xml": "<outcome value='network-policy'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3882.5001220703125,\r
-        "y": 165,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4046.883331298828,\r
+        "y": 486.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "feb1370b.46393"\r
+                "8c1020d2.e3fc88"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "826ceead.c2f69",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
+        "id": "8c1020d2.e3fc88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3874.5001220703125,\r
-        "y": 220,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4223.883209228516,\r
+        "y": 479.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "f38f34bb.7a9748"\r
+                "709d8f82.9f2e1",\r
+                "cef8768a.ac6e48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "feb1370b.46393",\r
+        "id": "126c6f21.417e99",\r
         "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 4026.8824462890625,\r
-        "y": 164.65567016601562,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3465.883331298828,\r
+        "y": 458.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "21f3a77a.346fa8"\r
+                "f0253be2.ef6388",\r
+                "d30875df.4619e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "21f3a77a.346fa8",\r
+        "id": "f0253be2.ef6388",\r
         "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4211,\r
-        "y": 163,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3746.883331298828,\r
+        "y": 414.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "a51bf440.0c5b6"\r
+                "6ce9e370.67b09c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a51bf440.0c5b6",\r
+        "id": "6ce9e370.67b09c",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4406,\r
-        "y": 163,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4008.883331298828,\r
+        "y": 414.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "34e2f8df.de6cf8"\r
+                "24e00055.8ca808"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5b03fc8.b6e088",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "709d8f82.9f2e1",\r
+        "type": "set",\r
+        "name": "set the 1st network-policy-id",\r
+        "xml": "<set>\n<parameter name='network-policy-id' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4466.883209228516,\r
+        "y": 436.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cef8768a.ac6e48",\r
+        "type": "save",\r
+        "name": "get network-policy from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\"\n\tkey='network-policy.network-policy-id = $network-policy-id'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-policy\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4455.883209228516,\r
+        "y": 491.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "442d2e35.9513b",\r
+                "6b7a340a.d73c24",\r
+                "1cf09fd1.237e88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cf09fd1.237e88",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3879.5001220703125,\r
-        "y": 277,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4708.883331298828,\r
+        "y": 377.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "8eb64fc1.c84cd"\r
+                "830d3a39.a47178"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8eb64fc1.c84cd",\r
+        "id": "830d3a39.a47178",\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
+        "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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 4031.5001220703125,\r
-        "y": 278,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4857.454864501953,\r
+        "y": 378.1690979003906,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f38f34bb.7a9748",\r
+        "id": "4e42818f.48a268",\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
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 4042.5001220703125,\r
-        "y": 221,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4856.392364501953,\r
+        "y": 422.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "41c68962.37006",\r
-        "type": "execute",\r
-        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "id": "6b7a340a.d73c24",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4697.392364501953,\r
+        "y": 422.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4e42818f.48a268"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "442d2e35.9513b",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4994,\r
-        "y": 180,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4704.392364501953,\r
+        "y": 501.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "b0076b13.2e399",\r
-                "f818e30c.1ed2d",\r
-                "cd5ca056.adec1"\r
+                "dd05e839.54d638"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb2612bc.a6aea8",\r
+        "id": "dd05e839.54d638",\r
         "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 4788,\r
-        "y": 167,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4843.392364501953,\r
+        "y": 501.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "a86d0a2.d48def8",\r
-                "41c68962.37006",\r
-                "3b61ff6d.8dced"\r
+                "d5c9a2a0.f0c188",\r
+                "585ee28c.970d44"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a86d0a2.d48def8",\r
+        "id": "d5c9a2a0.f0c188",\r
         "type": "set",\r
-        "name": "set esr-thirdparty-sdnc domain id",\r
-        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='maximum-bandwidth' value=\"`$tmp.aai.network-policy.max-bandwidth`\" />\n<parameter name='route-distinguisher' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
         "comments": "",\r
-        "x": 5024,\r
-        "y": 128,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 5048.883331298828,\r
+        "y": 498.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b0076b13.2e399",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "585ee28c.970d44",\r
+        "type": "set",\r
+        "name": "set the max bandwidth",\r
+        "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
+        "comments": "",\r
+        "x": 5047.883331298828,\r
+        "y": 544.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d30875df.4619e8",\r
+        "type": "for",\r
+        "name": "for each allotted-resource relationship",\r
+        "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5204,\r
-        "y": 171,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3563.883331298828,\r
+        "y": 530.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9a62192a.51df38"\r
+                "bcf8f8b2.ee17c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f818e30c.1ed2d",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "bcf8f8b2.ee17c",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5196,\r
-        "y": 226,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3843.883331298828,\r
+        "y": 530.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "cb7716d3.6ef01"\r
+                "f92213c8.e6e61"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cd5ca056.adec1",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "f92213c8.e6e61",\r
+        "type": "outcome",\r
+        "name": "logical-link",\r
+        "xml": "<outcome value='logical-link'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5201,\r
-        "y": 283,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 2256.8834533691406,\r
+        "y": 783.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "6a7cfa93.2ccb4c"\r
+                "f147a584.43d0d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6a7cfa93.2ccb4c",\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
+        "id": "f147a584.43d0d8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2433.883331298828,\r
+        "y": 776.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5a35df58.3972",\r
+                "2dab28b6.2641a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a35df58.3972",\r
+        "type": "set",\r
+        "name": "set the current logical-link-name",\r
+        "xml": "<set>\n<parameter name='logical-link-name' value=\"`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].relationship-data[0].relationship-value`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2676.883331298828,\r
+        "y": 733.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2dab28b6.2641a",\r
+        "type": "save",\r
+        "name": "get logical-link from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\"\n\tkey='logical-link.link-name = $logical-link-name'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.logical-link\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2665.883331298828,\r
+        "y": 788.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ffb30860.4224d",\r
+                "abeb5cc2.3015b",\r
+                "e13761ad.544c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffb30860.4224d",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2957.374298095703,\r
+        "y": 767.4573059082031,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "bd849955.1204b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abeb5cc2.3015b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2945.883331298828,\r
+        "y": 811.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "33701bc2.b5a40c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd849955.1204b",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "x": 5353,\r
-        "y": 284,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3105.945831298828,\r
+        "y": 767.7430725097656,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "cb7716d3.6ef01",\r
+        "id": "33701bc2.b5a40c",\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
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 5364,\r
-        "y": 229,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3104.883331298828,\r
+        "y": 811.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9a62192a.51df38",\r
+        "id": "e13761ad.544c58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2952.883331298828,\r
+        "y": 890.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d2f3b92.5263348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2f3b92.5263348",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 5348.38232421875,\r
-        "y": 168.65567016601562,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3091.883331298828,\r
+        "y": 890.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "1e654428.bcfdbc"\r
+                "ef467ac0.6f7c18",\r
+                "f9d1859a.061ab8",\r
+                "3e963f23.c2be88",\r
+                "f9ae4741.757498",\r
+                "2907fb26.565cec",\r
+                "26f3b8c8.1692a",\r
+                "94a806e9.b63df",\r
+                "a001cedc.58f128",\r
+                "221f1c18.663f6c",\r
+                "77955a17.d633ac",\r
+                "1e4146ab.95c211",\r
+                "c8da4017.620ba8",\r
+                "a4dfc5e6.4600f",\r
+                "ce0d81bd.d28a7",\r
+                "7f04acf4.5afc3c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "34e2f8df.de6cf8",\r
-        "type": "outcome",\r
-        "name": "esr-thirdparty-sdnc",\r
-        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "id": "4165b419.5fd914",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for ethernet-service-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4609,\r
-        "y": 167,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3405.883331298828,\r
+        "y": 696.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            [\r
-                "fb2612bc.a6aea8"\r
-            ]\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef467ac0.6f7c18",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for otn-tunnel-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3386.883331298828,\r
+        "y": 746.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "1e654428.bcfdbc",\r
+        "id": "c8da4017.620ba8",\r
         "type": "set",\r
-        "name": "set controller domain data",\r
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "name": "set new ethernet-service-name",\r
+        "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 5563,\r
-        "y": 165,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3343.883331298828,\r
+        "y": 791.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3b61ff6d.8dced",\r
-        "type": "break",\r
-        "name": "break",\r
-        "xml": "<break>\n",\r
+        "id": "f9d1859a.061ab8",\r
+        "type": "set",\r
+        "name": "set network-route-one",\r
+        "xml": "<set>\n<parameter name='network-route-one' value=\"`$tmp.aai.logical-link.link-name`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 4944,\r
-        "y": 244,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3318.883331298828,\r
+        "y": 854.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "10401b5c.b05865",\r
-        "type": "execute",\r
-        "name": "execute RestApiCallNode Delete ethernet Service without token",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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
+        "id": "3e963f23.c2be88",\r
+        "type": "set",\r
+        "name": "set network-route-two",\r
+        "xml": "<set>\n<parameter name='network-route-two' value=\"`$tmp.aai.logical-link.link-name2`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3319.883331298828,\r
+        "y": 909.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f9ae4741.757498",\r
+        "type": "save",\r
+        "name": "get network-route-one from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-one'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-one\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3335.883331298828,\r
+        "y": 957.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d029c3a1.942f48",\r
+                "34db9b18.f85a0c",\r
+                "a8f47dda.1a0bb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2907fb26.565cec",\r
+        "type": "save",\r
+        "name": "get network-route-two from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-route\"\n\tkey='network-route.route-id = $network-route-two'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-two\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3324.883331298828,\r
+        "y": 1044.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ad570631.23385",\r
+                "75596bb2.8de11c",\r
+                "ae6194f6.92ada8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d029c3a1.942f48",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4322,\r
-        "y": 593,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3536.883331298828,\r
+        "y": 841.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "7f6c606d.64ab48",\r
-                "c3eb517a.b7781"\r
+                "9c52bc0.78abb48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7f6c606d.64ab48",\r
+        "id": "34db9b18.f85a0c",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4668.5,\r
-        "y": 586,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3532.392364501953,\r
+        "y": 891.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "8c5003e.5a8698"\r
+                "946c30bd.bd527"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c3eb517a.b7781",\r
+        "id": "a8f47dda.1a0bb8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4672.5,\r
-        "y": 626,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3536.392364501953,\r
+        "y": 944.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "19571e12.890ec2"\r
+                "1dcb46a1.3c7d49"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "19571e12.890ec2",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "9c52bc0.78abb48",\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.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 4830,\r
-        "y": 626,\r
-        "z": "de2a2b68.0a5d7",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 3685.454864501953,\r
+        "y": 841.1690979003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "8c5003e.5a8698",\r
+        "id": "946c30bd.bd527",\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 delete ethernet service rest api\" />\n",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 4826.5,\r
-        "y": 586,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3675.392364501953,\r
+        "y": 891.3093566894531,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fd7fa756.f7d6e8",\r
-        "type": "execute",\r
-        "name": "execute RestApiCallNode Delete OTN tunnel with token",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\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
+        "id": "ad570631.23385",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3790,\r
-        "y": 480,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3547.883331298828,\r
+        "y": 1014.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "7d0f2c32.be1c14",\r
-                "d337892f.188d2"\r
+                "5f295173.cbbf5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7d0f2c32.be1c14",\r
+        "id": "75596bb2.8de11c",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4122.5,\r
-        "y": 450,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3543.392364501953,\r
+        "y": 1064.3092346191406,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "bcce4236.8aab4"\r
+                "355d767e.1de55a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d337892f.188d2",\r
+        "id": "ae6194f6.92ada8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4127.5,\r
-        "y": 515,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3544.392364501953,\r
+        "y": 1117.3092346191406,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "fe33b47b.c7292"\r
+                "a436621f.a466c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bcce4236.8aab4",\r
+        "id": "5f295173.cbbf5",\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 delete OTN tunnel rest api\" />\n",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3696.454864501953,\r
+        "y": 1014.1689758300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "355d767e.1de55a",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 4298.5,\r
-        "y": 450,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3686.392364501953,\r
+        "y": 1064.3092346191406,\r
+        "z": "82de8dcf.518d88",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fe33b47b.c7292",\r
+        "id": "1dcb46a1.3c7d49",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
-        "comments": "",\r
         "outputs": 1,\r
-        "x": 4294,\r
-        "y": 515,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3697.883331298828,\r
+        "y": 943.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            []\r
+            [\r
+                "f5b5d495.086d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a436621f.a466c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3697.883331298828,\r
+        "y": 1116.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "43e5bf6b.ff29a8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "270a4545.e66b22",\r
+        "id": "f5b5d495.086d",\r
         "type": "switchNode",\r
-        "name": "switch connectivity has ethernet service",\r
-        "xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",\r
+        "name": "switch nr type",\r
+        "xml": "<switch test='`$tmp.aai.network-route-one.type`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3728,\r
-        "y": 615,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3869.883331298828,\r
+        "y": 943.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9b17a7a2.876",\r
-                "67f91d39.722cb4"\r
+                "55f80e1b.2635f",\r
+                "43049869.5a7d88"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "67f91d39.722cb4",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "43e5bf6b.ff29a8",\r
+        "type": "switchNode",\r
+        "name": "switch nr type",\r
+        "xml": "<switch test='`$tmp.aai.network-route-two.type`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3981,\r
-        "y": 593,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3870.883331298828,\r
+        "y": 1116.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "10401b5c.b05865"\r
+                "f9772113.de9e58",\r
+                "79517b7a.195d94"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9b17a7a2.876",\r
+        "id": "55f80e1b.2635f",\r
         "type": "outcome",\r
-        "name": "Null",\r
-        "xml": "<outcome value=''>\n",\r
+        "name": "ROOT",\r
+        "xml": "<outcome value='ROOT'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3981,\r
-        "y": 649,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4045.883331298828,\r
+        "y": 922.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            []\r
+            [\r
+                "d9c9bf69.d54ef8"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "9c7846e0.04a7f",\r
-        "type": "save",\r
-        "name": "delete connectivity resource in AAI",\r
-        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n",\r
+        "id": "43049869.5a7d88",\r
+        "type": "outcome",\r
+        "name": "LEAF",\r
+        "xml": "<outcome value='LEAF'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2277,\r
-        "y": 1030,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4047.883331298828,\r
+        "y": 976.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            []\r
+            [\r
+                "5ac63627.c33ff"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "d4768fc2.d5865",\r
-        "type": "save",\r
-        "name": "delete vpn-binding resource in AAI",\r
-        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",\r
+        "id": "f9772113.de9e58",\r
+        "type": "outcome",\r
+        "name": "ROOT",\r
+        "xml": "<outcome value='ROOT'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3709,\r
-        "y": 731,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4046.883331298828,\r
+        "y": 1086.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            []\r
+            [\r
+                "35523eeb.15287a"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "e7d69f06.780b38",\r
+        "id": "79517b7a.195d94",\r
         "type": "outcome",\r
-        "name": "uni",\r
-        "xml": "<outcome value='uni'>\n",\r
+        "name": "LEAF",\r
+        "xml": "<outcome value='LEAF'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2642,\r
-        "y": 710,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 4048.883331298828,\r
+        "y": 1140.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "f282643f.862928"\r
+                "377b88b8.aaeb48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f282643f.862928",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "eba0d9fe.14aff8",\r
+        "type": "set",\r
+        "name": "set network-route-ROOT",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4355.883331298828,\r
+        "y": 874.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b156164c.4afee",\r
+        "type": "set",\r
+        "name": "set network-route-LEAF",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4348.883331298828,\r
+        "y": 972.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c46834b2.126828",\r
+        "type": "set",\r
+        "name": "set network-route-ROOT",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4348.883331298828,\r
+        "y": 1059.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "67f1e499.325a54",\r
+        "type": "set",\r
+        "name": "set network-route-LEAF",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-LEAF.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4352.883331298828,\r
+        "y": 1152.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fa18abdb.1f3b58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 2805,\r
-        "y": 710,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3579.883331298828,\r
+        "y": 1561.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "7484e145.9ae3a8"\r
+                "acfe7f1b.815bb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7484e145.9ae3a8",\r
-        "type": "save",\r
-        "name": "delete uni resource in AAI",\r
-        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value'>\n",\r
+        "id": "504369a4.383c58",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3048,\r
-        "y": 710,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3589.374298095703,\r
+        "y": 1604.4573669433594,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
-            []\r
+            [\r
+                "2cc2d2a0.0189de"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "9386fbbc.1d2048",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "48dc6834.fa2a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2087,\r
-        "y": 299,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3577.883331298828,\r
+        "y": 1650.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "c57d1cb2.40bd38",\r
-                "9c7846e0.04a7f"\r
+                "5165f4d1.561cf4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9fe92008.1b7c9",\r
-        "type": "switchNode",\r
-        "name": "switch has any relationship",\r
-        "xml": "<switch test=\"`$tmp.aai.service-instance.relationship-list.relationship_length != ''`\">\n",\r
+        "id": "a5821370.c906a8",\r
+        "type": "comment",\r
+        "name": "Question?",\r
+        "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
+        "comments": "",\r
+        "x": 3279.883331298828,\r
+        "y": 1523.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "94a806e9.b63df",\r
+        "type": "save",\r
+        "name": "get p-interface-src from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-A.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-A.p-interface-src\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1162,\r
-        "y": 234,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3322.883331298828,\r
+        "y": 1588.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "9d9cab47.ce0658"\r
+                "fa18abdb.1f3b58",\r
+                "504369a4.383c58",\r
+                "48dc6834.fa2a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9d9cab47.ce0658",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "26f3b8c8.1692a",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA-pnfName\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3323.883331298828,\r
+        "y": 1258.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e1766e3b.d98f7",\r
+                "2b2fec17.7ad784"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b2fec17.7ad784",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1391,\r
-        "y": 230,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3546.883331298828,\r
+        "y": 1244.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
         "wires": [\r
             [\r
-                "5b569a16.745f1c"\r
+                "9fa24ca4.2bf57"\r
             ]\r
         ]\r
+    },\r
+    {\r
+        "id": "e1766e3b.d98f7",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3548.883331298828,\r
+        "y": 1277.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "43f11543.33be3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "acfe7f1b.815bb8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3752.549835205078,\r
+        "y": 1560.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "72fd24ba.a9210c",\r
+                "abb77544.4a8348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cc2d2a0.0189de",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3742.9457092285156,\r
+        "y": 1607.7431030273438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5165f4d1.561cf4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 3746.883331298828,\r
+        "y": 1651.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72fd24ba.a9210c",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-A.p-interface-src.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainA\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4016.883331298828,\r
+        "y": 1544.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e6b87836.bef2f8",\r
+                "b8a921ef.444378"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b8a921ef.444378",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4239.883331298828,\r
+        "y": 1499.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "54ec9e81.9a2fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6b87836.bef2f8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4241.883331298828,\r
+        "y": 1563.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "27ce4c05.8bf1dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27ce4c05.8bf1dc",\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": 4403.883331298828,\r
+        "y": 1559.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54ec9e81.9a2fc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4404.883331298828,\r
+        "y": 1496.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f6774ff2.abd22",\r
+                "bb24ac55.01a618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e1ea98e.240716",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4018.883331298828,\r
+        "y": 1703.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "19e24364.492f0d",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for connectivity domainA",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-domainA-uuid\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4063.883331298828,\r
+        "y": 1613.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "aefdb41a.15ed9",\r
+        "type": "save",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4146.883331298828,\r
+        "y": 1751.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "43f11543.33be3c",\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": 3691.883331298828,\r
+        "y": 1274.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fa24ca4.2bf57",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3694.883331298828,\r
+        "y": 1237.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fc422c00.a0a738",\r
+                "4c9af5cc.7cdc6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc422c00.a0a738",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n",\r
+        "comments": "",\r
+        "x": 3868.883331298828,\r
+        "y": 1193.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "abb77544.4a8348",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='pividx' start='0' end='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3970.883331298828,\r
+        "y": 1828.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "af71b606.ad1ca8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af71b606.ad1ca8",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4176.883331298828,\r
+        "y": 1828.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1586191.cb5c467"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1586191.cb5c467",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4392.168975830078,\r
+        "y": 1828.7051086425781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2efd1433.a69a04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c9af5cc.7cdc6c",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3883.883331298828,\r
+        "y": 1304.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f48c8915.33d9e8",\r
+                "cce55dcf.842618",\r
+                "5e74a015.2ca67"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f48c8915.33d9e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4079.3834533691406,\r
+        "y": 1256.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5a7d862f.3b4ad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cce55dcf.842618",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4071.3834533691406,\r
+        "y": 1311.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9061c72.32ffe38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e74a015.2ca67",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4076.3834533691406,\r
+        "y": 1368.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6b55247c.21dab4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b55247c.21dab4",\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": 4228.383453369141,\r
+        "y": 1369.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9061c72.32ffe38",\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": 4239.383453369141,\r
+        "y": 1314.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5a7d862f.3b4ad8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4223.765777587891,\r
+        "y": 1254.5390014648438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d89a976.d88e5e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d89a976.d88e5e8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4407.883331298828,\r
+        "y": 1268.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "155fb221.0dbf8e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb24ac55.01a618",\r
+        "type": "set",\r
+        "name": "set ltpId",\r
+        "xml": "<set>\n<parameter name='tmp.src.ltpId' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n",\r
+        "comments": "",\r
+        "x": 4574.883331298828,\r
+        "y": 1454.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6774ff2.abd22",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.src.pnf-name' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n",\r
+        "comments": "",\r
+        "x": 4575.883331298828,\r
+        "y": 1562.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f2d63dd.89956c",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
+        "comments": "",\r
+        "x": 4576.883331298828,\r
+        "y": 1511.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2efd1433.a69a04",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4599.000518798828,\r
+        "y": 1829.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9738e3.11ec3f2",\r
+                "b90b51f7.bc063",\r
+                "e565f202.9406"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9738e3.11ec3f2",\r
+        "type": "set",\r
+        "name": "set source ttp-id",\r
+        "xml": "<set>\n<parameter name='tmp.source.ttp-id' value=\"`$tmp.aai.network-route-A.p-interface-src.relationship-list.relationship[$pividx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 4814.000518798828,\r
+        "y": 1791.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b90b51f7.bc063",\r
+        "type": "get-resource",\r
+        "name": "get-resource src TTP",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.source.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.source-ttp' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4811.000518798828,\r
+        "y": 1830.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2d0e3a15.1426a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e565f202.9406",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4766.500518798828,\r
+        "y": 1872.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2d0e3a15.1426a6",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4991.500518798828,\r
+        "y": 1829.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a863747c.f65e78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60c94053.2751c",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4805.883331298828,\r
+        "y": 1272.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "de3b61b0.e43d2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de3b61b0.e43d2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4982.883331298828,\r
+        "y": 1264.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b2f44bdb.9dc5e8",\r
+                "1f8e5eff.5b4f51"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "155fb221.0dbf8e",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4602.883331298828,\r
+        "y": 1268.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "60c94053.2751c",\r
+                "ecc099ad.aafee8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ecc099ad.aafee8",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4808.883331298828,\r
+        "y": 1346.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e5e04393.9d571"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5e04393.9d571",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4985.883331298828,\r
+        "y": 1338.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "39969cdd.a78634"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a863747c.f65e78",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5149.500518798828,\r
+        "y": 1829.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9ec1944.f167b68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ec1944.f167b68",\r
+        "type": "set",\r
+        "name": "set source tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5356.500518798828,\r
+        "y": 1829.2236633300781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f8e5eff.5b4f51",\r
+        "type": "execute",\r
+        "name": "get 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.domainA.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainA.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5190.883331298828,\r
+        "y": 1271.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1422dd1f.ed1903",\r
+                "306288e7.8d0b68",\r
+                "adc4d006.c9a618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2f44bdb.9dc5e8",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainA id",\r
+        "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5220.883331298828,\r
+        "y": 1219.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1422dd1f.ed1903",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5400.883331298828,\r
+        "y": 1262.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9be58098.9885c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "306288e7.8d0b68",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5392.883331298828,\r
+        "y": 1317.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ddbc66fb.291808"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "adc4d006.c9a618",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5397.883331298828,\r
+        "y": 1374.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f026a629.a20b28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f026a629.a20b28",\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": 5549.883331298828,\r
+        "y": 1375.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ddbc66fb.291808",\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": 5560.883331298828,\r
+        "y": 1320.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9be58098.9885c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5545.265655517578,\r
+        "y": 1260.5390014648438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b1324a29.092c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39969cdd.a78634",\r
+        "type": "set",\r
+        "name": "set domainA ethernet layer network-id",\r
+        "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5220.883331298828,\r
+        "y": 1462.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b1324a29.092c8",\r
+        "type": "set",\r
+        "name": "set controller domainA data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 5759.883331298828,\r
+        "y": 1256.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e7c33475.7e91e8",\r
+        "type": "set",\r
+        "name": "set network-route-B",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4343.883331298828,\r
+        "y": 910.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5025b50.00b0f4c",\r
+        "type": "set",\r
+        "name": "set network-route-A",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4334.883331298828,\r
+        "y": 1008.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d9c9bf69.d54ef8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4168.883331298828,\r
+        "y": 916.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "eba0d9fe.14aff8",\r
+                "e7c33475.7e91e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ac63627.c33ff",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4174.883331298828,\r
+        "y": 980.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b156164c.4afee",\r
+                "5025b50.00b0f4c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35523eeb.15287a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4174.883331298828,\r
+        "y": 1086.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c46834b2.126828",\r
+                "7dcc31dd.14e278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "377b88b8.aaeb48",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4177.883331298828,\r
+        "y": 1139.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "67f1e499.325a54",\r
+                "e00fdb48.f91848"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7dcc31dd.14e278",\r
+        "type": "set",\r
+        "name": "set network-route-B",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-B.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4334.883331298828,\r
+        "y": 1099.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e00fdb48.f91848",\r
+        "type": "set",\r
+        "name": "set network-route-A",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-A.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4337.883331298828,\r
+        "y": 1190.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b1c3c9b6.d1dd38",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3709.883331298828,\r
+        "y": 2400.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8d971e70.183d4",\r
+                "ac7f0ae7.0820f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37cdc12f.574c9e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3537.216827392578,\r
+        "y": 2401.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b1c3c9b6.d1dd38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17fb9abf.e94b5d",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3546.707794189453,\r
+        "y": 2444.4573669433594,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ffec1f14.6b38f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "77126cff.9c26a4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3535.216827392578,\r
+        "y": 2490.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6fe13c0.1437ac4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffec1f14.6b38f8",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3700.2792053222656,\r
+        "y": 2447.7431030273438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6fe13c0.1437ac4",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 3704.216827392578,\r
+        "y": 2491.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8d971e70.183d4",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.p-interface-dst.interface-name`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB\"/>\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3996.216827392578,\r
+        "y": 2404.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "53133799.37d4b",\r
+                "a86f569d.6ab9f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a86f569d.6ab9f8",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4219.216827392578,\r
+        "y": 2359.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "66c68013.ddb6b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53133799.37d4b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4221.216827392578,\r
+        "y": 2423.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7ccc7afc.6f2a8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ccc7afc.6f2a8c",\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": 4380.216827392578,\r
+        "y": 2442.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "66c68013.ddb6b8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4384.216827392578,\r
+        "y": 2356.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "14b7c942.3a7d87",\r
+                "705ad60b.9c1b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b364584.e1350c",\r
+        "type": "save",\r
+        "name": "save connectivity resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3998.216827392578,\r
+        "y": 2563.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e817e1e.7658f2",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for connectivity domainB",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.connectivity-domainB-uuid\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4043.216827392578,\r
+        "y": 2473.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f716896.64ed2f",\r
+        "type": "save",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4125.216827392578,\r
+        "y": 2628.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "221f1c18.663f6c",\r
+        "type": "save",\r
+        "name": "get p-interface-dst from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"p-interface\"\n\t    key=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-B.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-B.p-interface-dst\" >\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"p-interface\"-->\n<!--\t    key=\"pnf.pnf-name = $unique-src-node-Id-->\n<!--\t        and p-interface.interface-name = $tmp.aai.endpointA.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"-->\n<!--\t\tlocal-only=\"false\" -->\n<!--\t\tpfx=\"tmp.aai.endpointA.p-interface-src\" >-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3309.216827392578,\r
+        "y": 2436.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "37cdc12f.574c9e",\r
+                "17fb9abf.e94b5d",\r
+                "77126cff.9c26a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3b2ce86.7d813",\r
+        "type": "comment",\r
+        "name": "Question?",\r
+        "info": "How to know if DG would send this get request\nin \"nodes\" namespace instead of \"network\" namespace?",\r
+        "comments": "",\r
+        "x": 3270.216827392578,\r
+        "y": 2380.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a001cedc.58f128",\r
+        "type": "execute",\r
+        "name": "execute split tp-id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.network-route-B.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainB-pnfName\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3327.216827392578,\r
+        "y": 2099.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d5568173.1326d",\r
+                "27e39e34.e8a4aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "27e39e34.e8a4aa",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3550.216827392578,\r
+        "y": 2085.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ba49d8fd.b81698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5568173.1326d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3552.216827392578,\r
+        "y": 2118.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "54689cfb.423da4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "54689cfb.423da4",\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": 3695.216827392578,\r
+        "y": 2115.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ba49d8fd.b81698",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3698.216827392578,\r
+        "y": 2078.8832092285156,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e65b9c6b.1cea38",\r
+                "e0207e5b.773f7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e65b9c6b.1cea38",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n",\r
+        "comments": "",\r
+        "x": 3892.216827392578,\r
+        "y": 2081.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ac7f0ae7.0820f",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3955.216827392578,\r
+        "y": 2713.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "eb66de49.8a6178"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb66de49.8a6178",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4161.216827392578,\r
+        "y": 2713.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a3eb7777.2808e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3eb7777.2808e",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4378.502471923828,\r
+        "y": 2712.705108642578,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "90bfeab5.6e04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0207e5b.773f7",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n        pfx='tmp.aai.destination-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3914.216827392578,\r
+        "y": 2149.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ff3d2407.61718",\r
+                "f34e14e1.674a08",\r
+                "f7ebc3eb.0fe87"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ff3d2407.61718",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4109.716949462891,\r
+        "y": 2101.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e4f3177f.7fd418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f34e14e1.674a08",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4101.716949462891,\r
+        "y": 2156.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7e75e0e1.a6768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7ebc3eb.0fe87",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4106.716949462891,\r
+        "y": 2213.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "917fd40f.ec43b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "917fd40f.ec43b",\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": 4258.716949462891,\r
+        "y": 2214.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7e75e0e1.a6768",\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": 4269.716949462891,\r
+        "y": 2159.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4f3177f.7fd418",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4254.099273681641,\r
+        "y": 2099.5390014648438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "96db4a5c.6d74f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14b7c942.3a7d87",\r
+        "type": "set",\r
+        "name": "set ltpId",\r
+        "xml": "<set>\n<parameter name='tmp.dst.ltpId' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n",\r
+        "comments": "",\r
+        "x": 4554.216827392578,\r
+        "y": 2317.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "705ad60b.9c1b38",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.pnf-name' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n",\r
+        "comments": "",\r
+        "x": 4555.216827392578,\r
+        "y": 2422.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe24857d.ec88f8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "using the output of regex string arrays,\nconcatinate index 0 to index[length-2] all together\nin order to assemble the correct pnf-name",\r
+        "comments": "",\r
+        "x": 4550.216827392578,\r
+        "y": 2371.8834533691406,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "90bfeab5.6e04",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4585.334014892578,\r
+        "y": 2702.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d29ec4c3.e3026",\r
+                "3dd34bd3.f84b34",\r
+                "855f6bda.886bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d29ec4c3.e3026",\r
+        "type": "set",\r
+        "name": "set destination ttp-id",\r
+        "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 4800.334014892578,\r
+        "y": 2664.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3dd34bd3.f84b34",\r
+        "type": "get-resource",\r
+        "name": "get-resource src TTP",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4797.334014892578,\r
+        "y": 2703.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "498fc826.7744e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "855f6bda.886bb",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4752.834014892578,\r
+        "y": 2745.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "498fc826.7744e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4977.834014892578,\r
+        "y": 2702.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3dffa556.ecd0ba"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3dffa556.ecd0ba",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5135.834014892578,\r
+        "y": 2702.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e57a350c.677e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e57a350c.677e18",\r
+        "type": "set",\r
+        "name": "set destination tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5342.834014892578,\r
+        "y": 2702.2237854003906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "321528be.3d7ae",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4836.216827392578,\r
+        "y": 2117.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e56d9c92.9b763"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e56d9c92.9b763",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5013.216827392578,\r
+        "y": 2109.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "251b7dfd.9c2dea",\r
+                "f747044b.58f4e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96db4a5c.6d74f",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4438.216827392578,\r
+        "y": 2113.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3dedc7fb.152e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3dedc7fb.152e08",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4633.216827392578,\r
+        "y": 2113.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "321528be.3d7ae",\r
+                "b22cff66.f669e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f747044b.58f4e",\r
+        "type": "execute",\r
+        "name": "get 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.domainB.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5221.216827392578,\r
+        "y": 2116.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1f813de4.828122",\r
+                "d83bccad.38e8b8",\r
+                "c46088f8.fb1e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd687e81.f269c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5015.216827392578,\r
+        "y": 2182.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "44576406.503604"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b22cff66.f669e8",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4838.216827392578,\r
+        "y": 2190.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "cd687e81.f269c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "251b7dfd.9c2dea",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainB id",\r
+        "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5251.216827392578,\r
+        "y": 2064.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "44576406.503604",\r
+        "type": "set",\r
+        "name": "set domainB ethernet layer network-id",\r
+        "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5250.216827392578,\r
+        "y": 2306.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f813de4.828122",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5431.216827392578,\r
+        "y": 2107.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9f1d5683.34bf48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d83bccad.38e8b8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5423.216827392578,\r
+        "y": 2162.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3d8c6a19.63c47e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c46088f8.fb1e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5428.216827392578,\r
+        "y": 2219.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "868d602e.d270d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "868d602e.d270d8",\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": 5580.216827392578,\r
+        "y": 2220.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d8c6a19.63c47e",\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": 5591.216827392578,\r
+        "y": 2165.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9f1d5683.34bf48",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5575.599151611328,\r
+        "y": 2105.5390014648438,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "580e8311.7470f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "580e8311.7470f4",\r
+        "type": "set",\r
+        "name": "set controller domainB data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 5790.216827392578,\r
+        "y": 2101.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "77955a17.d633ac",\r
+        "type": "set",\r
+        "name": "set LEAF stuff",\r
+        "xml": "<set>\n<parameter name='tmp.LEAF.pnf-name-long' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $param-prefix-domainA-pnfName[6] + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />\n\n<!--<parameter name='tmp.LEAF.pnf-name-short' value=\"`$param-prefix-domainA-pnfName[8]`\" />-->\n<parameter name='tmp.LEAF.pnf-name-short' value=\"`$tmp.src.pnf-name`\" />\n\n<parameter name='tmp.LEAF.uni-p-interface-long' value=\"`$tmp.aai.network-route-A.next-hop`\" />\n<parameter name='tmp.LEAF.uni-tp-id' value=\"`$tmp.src.ltpId`\" />\n",\r
+        "comments": "",\r
+        "x": 3288.883331298828,\r
+        "y": 1711.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "88408865.7d27f8",\r
+        "type": "comment",\r
+        "name": "This is it (should be)",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4510.883331298828,\r
+        "y": 994.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d43945c8.bc5bc",\r
+        "type": "comment",\r
+        "name": "This is it (should be)",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4502.883331298828,\r
+        "y": 1084.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1e4146ab.95c211",\r
+        "type": "set",\r
+        "name": "set ROOT stuff",\r
+        "xml": "<set>\n<parameter name='tmp.ROOT.pnf-name-long' value=\"`$param-prefix-domainB-pnfName[0] + '-' +\n                                                   $param-prefix-domainB-pnfName[1] + '-' +\n                                                   $param-prefix-domainB-pnfName[2] + '-' +\n                                                   $param-prefix-domainB-pnfName[3] + '-' +\n                                                   $param-prefix-domainB-pnfName[4] + '-' +\n                                                   $param-prefix-domainB-pnfName[5] + '-' +\n                                                   $param-prefix-domainB-pnfName[6] + '-' +\n                                                   $param-prefix-domainB-pnfName[7] + '-' +\n                                                   $param-prefix-domainB-pnfName[8]`\" />\n\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.ROOT.pnf-name-short' value=\"`$tmp.dst.pnf-name`\" />\n\n<parameter name='tmp.ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-B.next-hop`\" />\n<parameter name='tmp.ROOT.uni-tp-id' value=\"`$tmp.dst.ltpId`\" />\n",\r
+        "comments": "",\r
+        "x": 3269.883331298828,\r
+        "y": 2567.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "893317d2.3ef5f",\r
+        "type": "save",\r
+        "name": "save connectivityA relationship to UNI-LEAF, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $prop.connectivity-domainA-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"uni\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/unis/uni/' + $tmp.LEAF.uni-p-interface-long`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"uni.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.LEAF.uni-p-interface-long`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3401.883331298828,\r
+        "y": 1817.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd0edd2e.c98978",\r
+        "type": "save",\r
+        "name": "save LEAF UNI in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.LEAF.uni-p-interface-long`' />\n<parameter name='tp-id' value='`$tmp.LEAF.uni-p-interface-short`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3308.883331298828,\r
+        "y": 1764.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "98563074.1e7ea",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for ethernet-service-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2426.883331298828,\r
+        "y": 142.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c475408d.68ef",\r
+        "type": "set",\r
+        "name": "set new ethernet-service-name",\r
+        "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2360.883331298828,\r
+        "y": 178.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e109d5f4.51e5d",\r
+        "type": "comment",\r
+        "name": "The following two nodes are to make sure all connectivities for an E-Tree have same etht-srv-name",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2545.883331298828,\r
+        "y": 105.88333129882812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e92209c.b2514",\r
+        "type": "comment",\r
+        "name": "NOT NEEDED ANYMORE?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4036.883331298828,\r
+        "y": 1795.8833312988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc84986.18b2868",\r
+        "type": "comment",\r
+        "name": "NOT NEEDED ANYMORE?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4014.883331298828,\r
+        "y": 2665.883331298828,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e351db25.84cdc8",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-F1-activate",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-F1-activate' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3441.8837890625,\r
+        "y": 7438.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbb27c53.89e32",\r
+        "type": "comment",\r
+        "name": "START OF DELETE OPERATION",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3288.88330078125,\r
+        "y": 2897.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3023ae1c.6e2482",\r
+        "type": "save",\r
+        "name": "delete LEAF uni resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.LEAF.uni-p-interface-long'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3874.566650390625,\r
+        "y": 3087.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4dfc5e6.4600f",\r
+        "type": "save",\r
+        "name": "get LEAF uni from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.LEAF.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.leafuni\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3245.566650390625,\r
+        "y": 3017.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3c4fb74b.12c308",\r
+                "cc5ca51c.d55828",\r
+                "10482aca.fa7bbd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc5ca51c.d55828",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3473.0576171875,\r
+        "y": 2989.857421875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f3fff98e.f3e778"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10482aca.fa7bbd",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3468.566650390625,\r
+        "y": 3034.2833862304688,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "686bd6b1.dd501"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3fff98e.f3e778",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3635.629150390625,\r
+        "y": 2989.1431274414062,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "686bd6b1.dd501",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 3636.566650390625,\r
+        "y": 3034.2833862304688,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3c4fb74b.12c308",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3480.566650390625,\r
+        "y": 3084.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9563229e.3fe02"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9563229e.3fe02",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3632.88330078125,\r
+        "y": 3087.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f32c210.90e5fe",\r
+                "3023ae1c.6e2482",\r
+                "dfd78621.0c4df"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f32c210.90e5fe",\r
+        "type": "set",\r
+        "name": "set bwToBeDecreased tpid cvlan",\r
+        "xml": "<set>\n<parameter name='bwToBeDecreased' value=\"`$tmp.aai.leafuni.data-source`\" />\n<parameter name='tpid' value='`$tmp.aai.leafuni.tp-id`' />\n<parameter name='cvlan' value='`$tmp.aai.leafuni.cvlan`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 3877.566650390625,\r
+        "y": 3030.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c9abbae.5d458c",\r
+        "type": "comment",\r
+        "name": "Update ROOT UNI's bw",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3833.566650390625,\r
+        "y": 3193.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "547f08e5.b430b",\r
+        "type": "save",\r
+        "name": "update ROOT UNI in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='data-source' value='`$tmp.newbw`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4435.566650390625,\r
+        "y": 3298.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfd78621.0c4df",\r
+        "type": "save",\r
+        "name": "get root uni from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.rootuni\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3825.56640625,\r
+        "y": 3239.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "51d31fac.6dab6",\r
+                "d9c98a3d.c2af8",\r
+                "e932164d.0b10e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d9c98a3d.c2af8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4053.057373046875,\r
+        "y": 3211.6572265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f1a39628.bdc748"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e932164d.0b10e8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4048.56640625,\r
+        "y": 3256.0831909179688,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "dfc7b8eb.48de78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1a39628.bdc748",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4215.62890625,\r
+        "y": 3210.9429321289062,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfc7b8eb.48de78",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 4216.56640625,\r
+        "y": 3256.0831909179688,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dd0cc66d.fbf3a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4213.56640625,\r
+        "y": 3306.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9a3f7682.b82b9",\r
+                "547f08e5.b430b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "51d31fac.6dab6",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4044.56640625,\r
+        "y": 3306.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "dd0cc66d.fbf3a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a3f7682.b82b9",\r
+        "type": "set",\r
+        "name": "set new bw",\r
+        "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source - $bwToBeDecreased`' />\n",\r
+        "comments": "",\r
+        "x": 4395.567138671875,\r
+        "y": 3248.083251953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "998e4ab7.4d5be",\r
+        "type": "comment",\r
+        "name": "Delete LEAF UNI",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3825.88330078125,\r
+        "y": 2971.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "44b90aa0.b32f1c",\r
+        "type": "set",\r
+        "name": "set current-provider-id and current-cvlan-id",\r
+        "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->",\r
+        "comments": "",\r
+        "x": 3311.749969482422,\r
+        "y": 3750.483367919922,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a719f3a.33348",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3444.749969482422,\r
+        "y": 3798.483367919922,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "33975a1e.497a26",\r
+        "type": "switchNode",\r
+        "name": "switch found-connectivity?",\r
+        "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3266.749969482422,\r
+        "y": 3850.283416748047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6169e5ef.6af5c4",\r
+                "e3565ed9.a6bae8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6169e5ef.6af5c4",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3459.749969482422,\r
+        "y": 3851.283416748047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3f7c202a.f0897"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f7c202a.f0897",\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=\"LEAF CONN DOES NOT EXIST BUT IT SHOULD BE.\" />\n\n",\r
+        "comments": "",\r
+        "x": 3603.749969482422,\r
+        "y": 3847.483367919922,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e3565ed9.a6bae8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3463.749969482422,\r
+        "y": 3895.283416748047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c54729aa.dea04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c54729aa.dea04",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3602.749969482422,\r
+        "y": 3890.283416748047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "563cd7a4.5a9238",\r
+                "f2c9af7.5a8ebd",\r
+                "2a4d2a1b.ff481e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "563cd7a4.5a9238",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3853.149627685547,\r
+        "y": 3898.800018310547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ec034714.60ea58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec034714.60ea58",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.the-connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4075.149627685547,\r
+        "y": 3876.800018310547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e531db92.56031"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e531db92.56031",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4235.149139404297,\r
+        "y": 3856.800018310547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d94f5698.a9e22"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "717ee9f8.5f5168",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4388.149658203125,\r
+        "y": 3837.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "44024f46.b6d6d",\r
+                "8cf84976.9daac8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44024f46.b6d6d",\r
+        "type": "set",\r
+        "name": "set tmp.stillHasUni to TRUE",\r
+        "xml": "<set>\n<parameter name='tmp.stillHasUni' value='true' />\n",\r
+        "comments": "",\r
+        "x": 4584.649871826172,\r
+        "y": 3805.883270263672,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2c9af7.5a8ebd",\r
+        "type": "set",\r
+        "name": "set tmp.stillHasUn tmp.keepVPNBs to FALSE",\r
+        "xml": "<set>\n<parameter name='tmp.stillHasUni' value='false' />\n<parameter name='tmp.keepVPNBs' value='false' />\n",\r
+        "comments": "",\r
+        "x": 3959.64990234375,\r
+        "y": 3817.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a4d2a1b.ff481e",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.keepVPNBs?",\r
+        "xml": "\n<switch test=\"`$tmp.keepVPNBs`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3767.64990234375,\r
+        "y": 4238.883544921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "39fb0c16.c2b2c4",\r
+                "808499cb.5bf588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8cf84976.9daac8",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4552.88330078125,\r
+        "y": 3873.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "808499cb.5bf588",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 154.65066528320312,\r
+        "y": 5302.8837890625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7018ac1a.7a3c7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39fb0c16.c2b2c4",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3988.650634765625,\r
+        "y": 4340.883544921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a235b563.2e3c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a235b563.2e3c2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4131.650634765625,\r
+        "y": 4336.883544921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ca74ec50.92ce48",\r
+                "76172197.657ac",\r
+                "2a3f4733.a29bc",\r
+                "c850b8e4.0504c8",\r
+                "46570b89.8afbb4",\r
+                "819543bf.270a9",\r
+                "ca7e6690.5ab92",\r
+                "26004944.36227e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d4f67a6.1fc128",\r
+        "type": "comment",\r
+        "name": "keepVPNBs == false, then check tmp.stillHasUni",\r
+        "info": "(2) keepVPNBs == false, means there are no other UNIs in this\nsame domain and same connectivity that share the same OLT node.\n\ncheck if tmp.stillHasUni is True or False?\n\nif TRUE --> means this domain (connectivity) still has other UNIs\n- delete VPNBs\n- delete LEAF UNI in AAI -- DONE\n- upadte bw in ROOT UNI -- DONE\n- delete LEAF UNI in LEAF ethernet service PNC\n- change ROOT conn status to Modified\n\nif FALSE --> means this domain (connectivity) has no other UNIs\n\nif MMstillHasUni == TRUE, means scenario (3), else, means scenario (4)\n\n(3) & (4) both:\n- delete VPNBs\n- delete LEAF connectivity\n- delete LEAF Ethernet Service from PNC\n\n(3) only:\n- change ROOT conn status to Modified\n- Keep the middle-man-conn and DON'T delete\n\n(4) only:\n- delete ROOT UNI\n- delete ROOT conn from AAI\n- delete ROOT Ethernet Service from PNC\n- delete middle-man-conn from AAI\n\n",\r
+        "comments": "",\r
+        "x": 181,\r
+        "y": 5258.8837890625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cbdd9201.8f12c8",\r
+        "type": "comment",\r
+        "name": "There are still other UNIs in this connectivity that share same OLT node. Only update bw of the vpn-bindings involved",\r
+        "info": "(1) keepVPNBs == true, means there are still other UNIs in this\nsame domain and same connectivity that share the same OLT node.\n\n- Only update bw of the vpn-bindings involved -- DONE\n- upadte bw in ROOT UNI -- DONE\n- change ROOT conn status to Modified -- DONE\n- delete LEAF UNI in AAI -- DONE\n- delete LEAF UNI in LEAF ethernet service PNC -- DONE\n- DON'T delete the connectivities of LEAF and ROOT -- DONE\nAlso update the ethernet services",\r
+        "comments": "",\r
+        "x": 4007.884033203125,\r
+        "y": 4303.883544921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a3d91414.090028",\r
+        "type": "set",\r
+        "name": "set srcTtp OTN layer",\r
+        "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4820.667724609375,\r
+        "y": 4494.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8bf6af15.0a9a48",\r
+        "type": "switchNode",\r
+        "name": "switch provider-id domainA",\r
+        "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5165.667724609375,\r
+        "y": 4356.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8859d6ca.2f75b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c067ba23.0c8be",\r
+        "type": "for",\r
+        "name": "for netwidx..allNetworksList_length",\r
+        "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4872.667724609375,\r
+        "y": 4350.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8bf6af15.0a9a48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2da7141c.ae03fc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5127.667724609375,\r
+        "y": 4307.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cbc0879.d4095",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
+        "comments": "",\r
+        "x": 4816.667724609375,\r
+        "y": 4402.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "faedf550.ca72d",\r
+        "type": "set",\r
+        "name": "set tmp.pce-src-node",\r
+        "xml": "<set>\n<!--<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[1] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[2] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[3] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[4] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[5] + '-' +-->\n<!--                                                   1 + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[7] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[8]`\" />-->\n\n<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $otnTopoIdSrc + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />",\r
+        "comments": "",\r
+        "x": 4824.667724609375,\r
+        "y": 4447.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b550765.eaf4d1",\r
+        "type": "set",\r
+        "name": "unset otnTopoIdSrc",\r
+        "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
+        "comments": "",\r
+        "x": 4821.667724609375,\r
+        "y": 4300.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8859d6ca.2f75b8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5074.667724609375,\r
+        "y": 4424.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b9fd6938.f76ca8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b9fd6938.f76ca8",\r
+        "type": "switchNode",\r
+        "name": "switch te-topo-id",\r
+        "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5259.667724609375,\r
+        "y": 4423.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d7c2d227.430278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7c2d227.430278",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5451.667724609375,\r
+        "y": 4426.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9062d4ad.31e34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9062d4ad.31e34",\r
+        "type": "set",\r
+        "name": "set otnTopoIdSrc",\r
+        "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
+        "comments": "",\r
+        "x": 5623.667724609375,\r
+        "y": 4422.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c312f389.231768",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4999.667724609375,\r
+        "y": 4537.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca74ec50.92ce48",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4516.667724609375,\r
+        "y": 4322.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3f12b93a.0cf81e",\r
+                "24786620.817bb2",\r
+                "1cbc0879.d4095",\r
+                "faedf550.ca72d",\r
+                "a3d91414.090028",\r
+                "c067ba23.0c8be",\r
+                "c312f389.231768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1877ba6b.c5c236",\r
+        "type": "comment",\r
+        "name": "The following section is to find srcTtp OTN layer (its long name)",\r
+        "info": "The following section is to find srcTtp OTN layer (its long name)",\r
+        "comments": "",\r
+        "x": 4501.667724609375,\r
+        "y": 4256.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "24786620.817bb2",\r
+        "type": "get-resource",\r
+        "name": "get-resource network-resources-list",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resources\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"allNetworksList\" >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4880.667724609375,\r
+        "y": 4243.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c082f0f0.3fe63",\r
+                "8aa79b73.5d91b",\r
+                "2da7141c.ae03fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c082f0f0.3fe63",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5116.667724609375,\r
+        "y": 4226.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8aa79b73.5d91b",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5113.667724609375,\r
+        "y": 4267.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f12b93a.0cf81e",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
+        "comments": "",\r
+        "x": 4829.667724609375,\r
+        "y": 4200.6669921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76172197.657ac",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.all-vpn-bindings",\r
+        "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value='' />\n",\r
+        "comments": "",\r
+        "x": 4336.667724609375,\r
+        "y": 4655.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d9693eef.d5133",\r
+        "type": "comment",\r
+        "name": "find all OTNs that have srcTtpOtnLayer and decrease their bandwidth",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4459.968017578125,\r
+        "y": 4694.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a3f4733.a29bc",\r
+        "type": "save",\r
+        "name": "get all-vpn-bindings from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4357.968017578125,\r
+        "y": 4729.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e8babd58.4782b",\r
+                "e0bbecb2.837888",\r
+                "bb53595.0530328"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8babd58.4782b",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4562.968017578125,\r
+        "y": 4726.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8299b116.2a1f1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0bbecb2.837888",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4546.458984375,\r
+        "y": 4787.640930175781,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "af952dc7.60185"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb53595.0530328",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4543.968017578125,\r
+        "y": 4831.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a2d64007.4e8e68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8299b116.2a1f1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4730.96826171875,\r
+        "y": 4721.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "575eea2a.c26ae4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af952dc7.60185",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4709.0303955078125,\r
+        "y": 4787.926666259766,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a2d64007.4e8e68",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 4710.968017578125,\r
+        "y": 4830.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "575eea2a.c26ae4",\r
+        "type": "for",\r
+        "name": "for vpnidx in all-vpn-bindings",\r
+        "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4968.96826171875,\r
+        "y": 4726.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b0cdcdcc.86b948"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0cdcdcc.86b948",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5202.968017578125,\r
+        "y": 4733.06689453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fe17da41.8d7458"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63f7f511.d89814",\r
+        "type": "comment",\r
+        "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5188.784423828125,\r
+        "y": 4955.2333984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe17da41.8d7458",\r
+        "type": "switchNode",\r
+        "name": "switch ops-note is srcTtpOtnLayer",\r
+        "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5221.784423828125,\r
+        "y": 5023.2333984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "adceca9b.52be78",\r
+                "6371c80.a864db8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6371c80.a864db8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5465.784454345703,\r
+        "y": 4995.233184814453,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "adceca9b.52be78",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5346.784423828125,\r
+        "y": 4921.233154296875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "eabe2b02.0bc13"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eabe2b02.0bc13",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5473.767822265625,\r
+        "y": 4859.649658203125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b15dfc5.1130d",\r
+                "7054ba61.11f874",\r
+                "e5483e65.23a9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "771d8350.1c0644",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='vpnbridx' start='0' end='`$tmp.aai.the-vpn-binding.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5709.8173828125,\r
+        "y": 4743.64990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3a42df45.8a578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a42df45.8a578",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.the-vpn-binding.relationship-list.relationship[$vpnbridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5901.8173828125,\r
+        "y": 4732.650146484375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f5feb746.9bcea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b15dfc5.1130d",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.the-vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"\" />\n",\r
+        "comments": "",\r
+        "x": 5658.334228515625,\r
+        "y": 4633.866943359375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7054ba61.11f874",\r
+        "type": "set",\r
+        "name": "set tmp.aai.the-vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.the-vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
+        "comments": "",\r
+        "x": 5650.334228515625,\r
+        "y": 4682.866943359375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5483e65.23a9a",\r
+        "type": "save",\r
+        "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.the-vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.the-vpn-binding.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.the-vpn-binding.vpn-name`' />\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<parameter name='route-distinguisher' value='`$tmp.aai.the-vpn-binding.route-distinguisher - $bwToBeDecreased`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5881.751220703125,\r
+        "y": 4864.032958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c01f7460.fab75",\r
+        "type": "save",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n<!--<parameter name='bandwidth-profile-name' value='`$gfp`' />-->\n<!--<parameter name='cir' value='`$gfp *1000000`' />-->\n<!--<parameter name='eir' value='`$gfp *1000000`' />-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5833.401123046875,\r
+        "y": 4911.349853515625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a637b405.b076f",\r
+        "type": "comment",\r
+        "name": "decrease the bw of the-vpn-binding and change status to modified",\r
+        "info": "decrease the bw of the-vpn-binding\nchange status to modified\n",\r
+        "comments": "",\r
+        "x": 5905.751220703125,\r
+        "y": 4825.032958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f5feb746.9bcea8",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6083.8173828125,\r
+        "y": 4711.650146484375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4f7dc832.d994c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f7dc832.d994c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 6245.8173828125,\r
+        "y": 4700.650146484375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f7240b03.b46408",\r
+                "a1eea84d.7200b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7240b03.b46408",\r
+        "type": "set",\r
+        "name": "unset tmp.the-connectivity",\r
+        "xml": "<set>\n<parameter name='tmp.the-connectivity.' value='' />\n",\r
+        "comments": "",\r
+        "x": 6442.8173828125,\r
+        "y": 4629.650146484375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a1eea84d.7200b",\r
+        "type": "set",\r
+        "name": "set tmp.the-connectivity",\r
+        "xml": "<set>\n<parameter name='tmp.the-connectivity.' value='`$tmp.aai.the-vpn-binding.relationship-list.relationship[$vpnbridx].relationship-data[0].relationship-value`' />\n",\r
+        "comments": "",\r
+        "x": 6440.2841796875,\r
+        "y": 4728.866943359375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ce0d81bd.d28a7",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-logic",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-logic' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3097.800048828125,\r
+        "y": 3187.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f04acf4.5afc3c",\r
+        "type": "switchNode",\r
+        "name": "switch found-middle-man?",\r
+        "xml": "<switch test='`$found-middle-man`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2974.800048828125,\r
+        "y": 3297.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d1c2eeb4.215af8",\r
+                "f1f6bb53.ccd5d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1c2eeb4.215af8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3158.800048828125,\r
+        "y": 3276.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d53b6d30.115bd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d53b6d30.115bd",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3301.800048828125,\r
+        "y": 3276.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5f773b5f.84092c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f773b5f.84092c",\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=\"LEAF CONN DOES NOT EXIST BUT IT SHOULD BE.\" />\n\n",\r
+        "comments": "",\r
+        "x": 3477.800048828125,\r
+        "y": 3274.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f1f6bb53.ccd5d8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3156.800048828125,\r
+        "y": 3331.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e42ba1d9.fa7b7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e42ba1d9.fa7b7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3003.800048828125,\r
+        "y": 3464.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "44b90aa0.b32f1c",\r
+                "2a719f3a.33348",\r
+                "33975a1e.497a26",\r
+                "c19f56be.5aa798",\r
+                "eb35e3d0.6d25d",\r
+                "5aebe180.f62f68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c85f7ca.d8c4a",\r
+        "type": "comment",\r
+        "name": "Find LEAF connectivity",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3225.88330078125,\r
+        "y": 3704.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c19f56be.5aa798",\r
+        "type": "set",\r
+        "name": "set tmp.MMstillHasUni to FALSE",\r
+        "xml": "<set>\n<parameter name='tmp.MMstillHasUni' value='false' />\n",\r
+        "comments": "",\r
+        "x": 3308.333251953125,\r
+        "y": 3477.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eb35e3d0.6d25d",\r
+        "type": "for",\r
+        "name": "for each relationship of middle-man-conn",\r
+        "xml": "<for silentFailure='true' index='cridx' start='0' end='`$middle-man-conn.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3306.8330078125,\r
+        "y": 3523.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ca4bb58e.913108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca4bb58e.913108",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$middle-man-conn.relationship-list.relationship[$cridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3569.8330078125,\r
+        "y": 3518.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "468a474d.40c4d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "468a474d.40c4d8",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3729.83251953125,\r
+        "y": 3498.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e61de8ad.7030f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3444ada9.d2b992",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4498.833740234375,\r
+        "y": 3533.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7b31b3f.9c4444c",\r
+                "31b46b09.5b560c",\r
+                "a9c3a9a9.0f7c28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b31b3f.9c4444c",\r
+        "type": "set",\r
+        "name": "set tmp.MMstillHasUni to TRUE",\r
+        "xml": "<set>\n<parameter name='tmp.MMstillHasUni' value='true' />\n",\r
+        "comments": "",\r
+        "x": 4738.334228515625,\r
+        "y": 3482.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "31b46b09.5b560c",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4671.567657470703,\r
+        "y": 3555.683380126953,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dbe78677.7f04b8",\r
+        "type": "comment",\r
+        "name": "Find LEAF and ROOT connectivities and remove UNI from PNC",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4432.88427734375,\r
+        "y": 5085.883544921875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c850b8e4.0504c8",\r
+        "type": "set",\r
+        "name": "set tmp.leafconn.",\r
+        "xml": "<set>\n<parameter name='tmp.leafconn.' value='`$tmp.the-connectivity.`' />\n",\r
+        "comments": "",\r
+        "x": 4331.317138671875,\r
+        "y": 5137.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ca7e6690.5ab92",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4482.317138671875,\r
+        "y": 5580.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "26004944.36227e",\r
+        "type": "switchNode",\r
+        "name": "switch found-root-connectivity",\r
+        "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4297.317138671875,\r
+        "y": 5647.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c57768ca.7a8088",\r
+                "7224490d.b02598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c57768ca.7a8088",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4562.317138671875,\r
+        "y": 5632.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "25615183.2d4bd6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7224490d.b02598",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4558.317138671875,\r
+        "y": 5680.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5dcdd7b9.89499"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25615183.2d4bd6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4718.317138671875,\r
+        "y": 5628.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9b98cd10.6cfb68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5dcdd7b9.89499",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
+        "comments": "",\r
+        "x": 4706.317138671875,\r
+        "y": 5675.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f97c958c.da83b8",\r
+        "type": "set",\r
+        "name": "set tmp.rootconn.",\r
+        "xml": "<set>\n<parameter name='tmp.rootconn.' value=\"`$tmp.aai.ROOT.connectivity.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 5138.3173828125,\r
+        "y": 5570.800048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "903178c6.839788",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.leafconn.access-provider-id + '-clientId-' +\n                                                   $tmp.leafconn.access-client-id + '-topologyId-' +\n                                                   $tmp.leafconn.access-topology-id + '-nodeId-' +\n                                                   $tmp.leafconn.access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 4540.734130859375,\r
+        "y": 5167.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "46570b89.8afbb4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4311.734130859375,\r
+        "y": 5256.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "903178c6.839788",\r
+                "42c91ccf.e64244"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42c91ccf.e64244",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4547.734130859375,\r
+        "y": 5249.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "30eabd9c.98c532",\r
+                "66fbb0fb.26a3f",\r
+                "fbd21163.a12cd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30eabd9c.98c532",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4743.2342529296875,\r
+        "y": 5201.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "26c5ac0c.2065fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66fbb0fb.26a3f",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4735.2342529296875,\r
+        "y": 5256.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a0a0372d.9d324"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26c5ac0c.2065fc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4887.6165771484375,\r
+        "y": 5200.739410400391,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "40d1dc2e.899afc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40d1dc2e.899afc",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5071.734130859375,\r
+        "y": 5199.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "137e1346.633fe5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "137e1346.633fe5",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5266.734130859375,\r
+        "y": 5199.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "19ce94ba.82e9d3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbd21163.a12cd8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4740.2342529296875,\r
+        "y": 5313.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4a6cd196.293db"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a6cd196.293db",\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": 4892.2342529296875,\r
+        "y": 5314.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a0a0372d.9d324",\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": 4903.2342529296875,\r
+        "y": 5257.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1398b0a6.59adbf",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5648.734130859375,\r
+        "y": 5203.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ac703b64.91e208",\r
+                "60a60a9a.326334",\r
+                "feb4d66b.8d20f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19ce94ba.82e9d3",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5469.734130859375,\r
+        "y": 5203.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1398b0a6.59adbf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60a60a9a.326334",\r
+        "type": "execute",\r
+        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5854.734130859375,\r
+        "y": 5216.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9885a0c6.ee00f8",\r
+                "a77a3d25.4123b",\r
+                "3b9ca266.b8d5f6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac703b64.91e208",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5884.734130859375,\r
+        "y": 5164.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9885a0c6.ee00f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6064.734130859375,\r
+        "y": 5207.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fd819e5.0208ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a77a3d25.4123b",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6056.734130859375,\r
+        "y": 5262.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9503eaf8.25455"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b9ca266.b8d5f6",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6061.734130859375,\r
+        "y": 5319.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2f6c8ed.964c6f2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f6c8ed.964c6f2",\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": 6213.734130859375,\r
+        "y": 5320.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9503eaf8.25455",\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": 6224.734130859375,\r
+        "y": 5265.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd819e5.0208ae",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6209.116455078125,\r
+        "y": 5204.739410400391,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fdf4316f.fecc18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fdf4316f.fecc18",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 6423.734130859375,\r
+        "y": 5201.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "feb4d66b.8d20f",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5804.734130859375,\r
+        "y": 5280.083740234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "819543bf.270a9",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete LEAF UNI of ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.leafconn.etht-svc-name + '/etht-svc-end-points=' + $tmp.LEAF.uni-p-interface-long`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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": 4453.234375,\r
+        "y": 5360.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fe68d2f2.044a28",\r
+                "9d6b0bdc.79122"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe68d2f2.044a28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4813.734130859375,\r
+        "y": 5368.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "dd8bd538.48e76"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd8bd538.48e76",\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 delete ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4971.734130859375,\r
+        "y": 5368.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "17aac5bf.8ce3ca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4975.234130859375,\r
+        "y": 5408.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d6b0bdc.79122",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4817.734130859375,\r
+        "y": 5408.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "17aac5bf.8ce3ca"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "67f63093.820248",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5126.451171875,\r
+        "y": 5622.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9523ac21.fb27e8",\r
+                "ee545a84.5a0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee545a84.5a0b8",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5368.450927734375,\r
+        "y": 5572.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3e67e67b.64c0f2",\r
+                "83fa1a94.1fdef",\r
+                "8d7d3b80.341b3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e67e67b.64c0f2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5563.951171875,\r
+        "y": 5506.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4b842a3.ce68254"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83fa1a94.1fdef",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5559.951171875,\r
+        "y": 5562.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fe24638.108ff2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b842a3.ce68254",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5708.3333740234375,\r
+        "y": 5524.339019775391,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "471b8aca.2d2d8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "471b8aca.2d2d8c",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5892.450927734375,\r
+        "y": 5522.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "835403d4.ab8a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d7d3b80.341b3",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5569.951171875,\r
+        "y": 5607.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "dbe8e8e2.82532"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbe8e8e2.82532",\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": 5748.951171875,\r
+        "y": 5623.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fe24638.108ff2",\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": 5730.951171875,\r
+        "y": 5575.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "23127469.8e053c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete UNI of ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.rootconn.etht-svc-name + '/etht-svc-end-points=' + $tmp.ROOT.uni-p-interface-long`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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": 5279.951171875,\r
+        "y": 5678.282958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2dc53207.e6e746",\r
+                "5dfbf094.3dd5e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2dc53207.e6e746",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5628.451171875,\r
+        "y": 5660.282958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d62622e9.977188"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d62622e9.977188",\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 delete ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 5884.451171875,\r
+        "y": 5663.282958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b15c93b0.c4d298",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5836.951171875,\r
+        "y": 5704.282958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5dfbf094.3dd5e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5638.451171875,\r
+        "y": 5709.282958984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b15c93b0.c4d298"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9523ac21.fb27e8",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.rootconn.access-provider-id + '-clientId-' +\n                                                   $tmp.rootconn.access-client-id + '-topologyId-' +\n                                                   $tmp.rootconn.access-topology-id + '-nodeId-' +\n                                                   $tmp.rootconn.access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5361.450927734375,\r
+        "y": 5490.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "835403d4.ab8a4",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6087.450927734375,\r
+        "y": 5522.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "44025b35.70e694"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "defb6a74.ad63a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 6469.450927734375,\r
+        "y": 5526.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f54f4ae0.ec5cf",\r
+                "af149106.171db",\r
+                "c5fc8f53.576908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44025b35.70e694",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6290.450927734375,\r
+        "y": 5526.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "defb6a74.ad63a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af149106.171db",\r
+        "type": "execute",\r
+        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6675.450927734375,\r
+        "y": 5539.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c7dae6ee.db5f08",\r
+                "40d56e1d.9aacd",\r
+                "1547569.25d2329"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f54f4ae0.ec5cf",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 6705.450927734375,\r
+        "y": 5487.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c7dae6ee.db5f08",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6885.450927734375,\r
+        "y": 5530.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f0410cd5.fae628"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40d56e1d.9aacd",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6877.450927734375,\r
+        "y": 5585.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "76b0a417.e1276c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1547569.25d2329",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6882.450927734375,\r
+        "y": 5642.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b3783d48.7ea6c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b3783d48.7ea6c8",\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": 7034.450927734375,\r
+        "y": 5643.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76b0a417.e1276c",\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": 7045.450927734375,\r
+        "y": 5588.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f0410cd5.fae628",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 7029.833251953125,\r
+        "y": 5528.339019775391,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4ccba011.1ac588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ccba011.1ac588",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 7244.450927734375,\r
+        "y": 5524.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5fc8f53.576908",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 6625.450927734375,\r
+        "y": 5603.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e61de8ad.7030f",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3854.88330078125,\r
+        "y": 3492.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f1f60f7b.897558",\r
+                "9394ecba.bbac2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1f60f7b.897558",\r
+        "type": "set",\r
+        "name": "set tmp.mmUNI-id-long",\r
+        "xml": "<set>\n<parameter name='tmp.mmUNI-id-long' value='`$middle-man-conn.relationship-list.relationship[$cridx].relationship-data[0].relationship-value`' />\n",\r
+        "comments": "",\r
+        "x": 4045.466552734375,\r
+        "y": 3435.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9394ecba.bbac2",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.mmUNI-id-long != ROOT UNI",\r
+        "xml": "\n<switch test=\"`$tmp.mmUNI-id-long != $tmp.ROOT.uni-p-interface-long`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4092.466552734375,\r
+        "y": 3506.683349609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "62b44b4b.e9462c",\r
+                "2e901346.daa35c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62b44b4b.e9462c",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4330.884033203125,\r
+        "y": 3465.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "646ee476.4b949c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e901346.daa35c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4337.884246826172,\r
+        "y": 3522.883270263672,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3444ada9.d2b992"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "646ee476.4b949c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4458.884521484375,\r
+        "y": 3461.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5aebe180.f62f68",\r
+        "type": "set",\r
+        "name": "set tmp.MMonlyHasROOT to TRUE",\r
+        "xml": "<set>\n<parameter name='tmp.MMonlyHasROOT' value='true' />\n",\r
+        "comments": "",\r
+        "x": 3314.083251953125,\r
+        "y": 3420.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a9c3a9a9.0f7c28",\r
+        "type": "set",\r
+        "name": "set tmp.MMonlyHasROOT to FALSE",\r
+        "xml": "<set>\n<parameter name='tmp.MMonlyHasROOT' value='false' />\n",\r
+        "comments": "",\r
+        "x": 4727.9169921875,\r
+        "y": 3426.283447265625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d94f5698.a9e22",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4407.6669921875,\r
+        "y": 3942.5,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "eb39fbed.f65188",\r
+                "716ce6ad.3df158"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb39fbed.f65188",\r
+        "type": "set",\r
+        "name": "set tmp.uni.id",\r
+        "xml": "<set>\n<parameter name='tmp.uni.id' value='`$tmp.the-connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value`' />\n",\r
+        "comments": "",\r
+        "x": 4580.5498046875,\r
+        "y": 3938.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "716ce6ad.3df158",\r
+        "type": "save",\r
+        "name": "get uni from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.uni.id\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.uni\" >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4583.5498046875,\r
+        "y": 3985.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7301217f.c40fd8",\r
+                "4b487020.1f862",\r
+                "98e316f7.2a6e38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7301217f.c40fd8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4755.5498046875,\r
+        "y": 3969.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8014e6ef.ba6a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b487020.1f862",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4756.040771484375,\r
+        "y": 4014.7337036132812,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "98e316f7.2a6e38",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4756.5498046875,\r
+        "y": 4055.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8014e6ef.ba6a4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4916.5498046875,\r
+        "y": 3965.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6c53b06a.be741",\r
+                "6040c967.bc9a38",\r
+                "6b2c883f.aecd1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6986f860.3fd24",\r
+        "type": "comment",\r
+        "name": "find the node part of the uni.id (uni-tp-id-node-part)",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5249.5498046875,\r
+        "y": 3896.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6040c967.bc9a38",\r
+        "type": "execute",\r
+        "name": "execute split id to get pnf-name",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.aai.uni.id`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-uni-pnfName\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5184.5498046875,\r
+        "y": 3953.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "93771b2e.0a5438",\r
+                "494eca03.1cc0f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "494eca03.1cc0f4",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5407.5498046875,\r
+        "y": 3939.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4a647e39.1988"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93771b2e.0a5438",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5409.5498046875,\r
+        "y": 3972.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3ee6f9fa.cfa80e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a647e39.1988",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5555.5498046875,\r
+        "y": 3932.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d5960946.db6608"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ee6f9fa.cfa80e",\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": 5552.5498046875,\r
+        "y": 3969.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d5960946.db6608",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.uni.pnf-name' value=\"`$param-prefix-uni-pnfName[0] + '-' +\n                                                   $param-prefix-uni-pnfName[1] + '-' +\n                                                   $param-prefix-uni-pnfName[2] + '-' +\n                                                   $param-prefix-uni-pnfName[3] + '-' +\n                                                   $param-prefix-uni-pnfName[4] + '-' +\n                                                   $param-prefix-uni-pnfName[5] + '-' +\n                                                   $param-prefix-uni-pnfName[6] + '-' +\n                                                   $param-prefix-uni-pnfName[7] + '-' +\n                                                   $param-prefix-uni-pnfName[8]`\" />\n",\r
+        "comments": "",\r
+        "x": 5732.5498046875,\r
+        "y": 3932.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6c53b06a.be741",\r
+        "type": "switchNode",\r
+        "name": "switch uni-tp-id-node-part is the same as the LEAF node",\r
+        "xml": "<switch test='`$tmp.uni.pnf-name == $tmp.LEAF.pnf-name-long`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5228.5498046875,\r
+        "y": 4087.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f825463f.981388",\r
+                "3533ce81.16ad12"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f825463f.981388",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5509.5498046875,\r
+        "y": 4064.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1f58973d.a6a451"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3533ce81.16ad12",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5502.5498046875,\r
+        "y": 4123.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2ae9f04c.19c548"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f58973d.a6a451",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5639.5498046875,\r
+        "y": 4068.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ae9f04c.19c548",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5644.5498046875,\r
+        "y": 4122.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9dd58da7.f05d6",\r
+                "c9296d7d.c80358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dd58da7.f05d6",\r
+        "type": "set",\r
+        "name": "set no-pce-call",\r
+        "xml": "<set>\n<parameter name='no-pce-call' value=\"true\" />\n",\r
+        "comments": "",\r
+        "x": 5836.5498046875,\r
+        "y": 4089.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "985a0c89.e3f6d",\r
+        "type": "set",\r
+        "name": "set middle-man-conn",\r
+        "xml": "<set>\n<parameter name='middle-man-conn.' value='`$tmp.aai.all-connectivities.connectivity[$connidx].`' />\n",\r
+        "comments": "",\r
+        "x": 5852.5498046875,\r
+        "y": 4141.15966796875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c9296d7d.c80358",\r
+        "type": "set",\r
+        "name": "set tmp.stillHasUni and tmp.keepVPNBs to TRUE",\r
+        "xml": "<set>\n<parameter name='tmp.stillHasUni' value='true' />\n<parameter name='tmp.keepVPNBs' value='true' />\n",\r
+        "comments": "",\r
+        "x": 5870.83349609375,\r
+        "y": 4210.75,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b2c883f.aecd1",\r
+        "type": "set",\r
+        "name": "set tmp.stillHasUni to TRUE",\r
+        "xml": "<set>\n<parameter name='tmp.stillHasUni' value='true' />\n",\r
+        "comments": "",\r
+        "x": 5147.533203125,\r
+        "y": 4036.64990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7018ac1a.7a3c7c",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.stillHasUni?",\r
+        "xml": "\n<switch test=\"`$tmp.stillHasUni`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 383.7339172363281,\r
+        "y": 5306.849609375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d6a83452.cab528",\r
+                "a3cdb153.e05c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23ec2dfc.6ca3ea",\r
+        "type": "save",\r
+        "name": "get root uni from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"uni\"\n\t    key=\"uni.id = $tmp.ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.rootuni\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4288.516357421875,\r
+        "y": 5470.7333984375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "89ccdd98.c0add8",\r
+                "ffd72856.632858",\r
+                "d24e2f90.29ea68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e3a3ebb5.52e4d",\r
+        "type": "comment",\r
+        "name": "Update ROOT UNI's bw -- ALREADY DONE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4286.516845703125,\r
+        "y": 5422.733642578125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c0e896d2.f14fd",\r
+        "type": "save",\r
+        "name": "update ROOT UNI in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='data-source' value='`$tmp.newbw`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4903.5166015625,\r
+        "y": 5540.733642578125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffd72856.632858",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4506.007568359375,\r
+        "y": 5441.3076171875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fe177ef1.d06678"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d24e2f90.29ea68",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4501.5166015625,\r
+        "y": 5485.733581542969,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "632ed866.3f04b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe177ef1.d06678",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 4668.5791015625,\r
+        "y": 5440.593322753906,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "632ed866.3f04b8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 4669.5166015625,\r
+        "y": 5485.733581542969,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "df87890d.bcb5c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4666.5166015625,\r
+        "y": 5535.733642578125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2ff88b2d.295934",\r
+                "c0e896d2.f14fd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89ccdd98.c0add8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4497.5166015625,\r
+        "y": 5535.733642578125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "df87890d.bcb5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ff88b2d.295934",\r
+        "type": "set",\r
+        "name": "set new bw",\r
+        "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.rootuni.data-source - $bwToBeDecreased`' />\n",\r
+        "comments": "",\r
+        "x": 4859.517578125,\r
+        "y": 5460.733642578125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5d7f9ad7.0f862c",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5288.216796875,\r
+        "y": 5398.500244140625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9b98cd10.6cfb68",\r
+        "type": "save",\r
+        "name": "update ROOT connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5314,\r
+        "y": 5440.700439453125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6a83452.cab528",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 567.8836059570312,\r
+        "y": 5357.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e5624f1d.dbf4b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a3cdb153.e05c2",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 550.883544921875,\r
+        "y": 5279.88330078125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "daa6681.3df0a98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7731a568.885cdc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 679.8833923339844,\r
+        "y": 4366.883026123047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a5f98ac5.68fe98",\r
+                "74d156ed.4e9f",\r
+                "6135bf6.f11f5c",\r
+                "8458698c.d1be5",\r
+                "6cf7c0fc.18d4e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5f98ac5.68fe98",\r
+        "type": "set",\r
+        "name": "set tmp.leafconn.",\r
+        "xml": "<set>\n<parameter name='tmp.leafconn.' value='`$tmp.the-connectivity.`' />\n",\r
+        "comments": "",\r
+        "x": 931.5667419433594,\r
+        "y": 4344.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "155b7716.d28d91",\r
+        "type": "comment",\r
+        "name": "Find LEAF and ROOT connectivities and remove UNI from PNC",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1033.1338806152344,\r
+        "y": 4293.016326904297,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "11c710da.f1a09f",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.leafconn.access-provider-id + '-clientId-' +\n                                                   $tmp.leafconn.access-client-id + '-topologyId-' +\n                                                   $tmp.leafconn.access-topology-id + '-nodeId-' +\n                                                   $tmp.leafconn.access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 1140.9837341308594,\r
+        "y": 4374.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "74d156ed.4e9f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 911.9837341308594,\r
+        "y": 4463.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "11c710da.f1a09f",\r
+                "dd611a8.40420e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dd611a8.40420e8",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1147.9837341308594,\r
+        "y": 4456.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2cc9d43.2a3e32c",\r
+                "16f9c9a2.f3e64e",\r
+                "bd113683.3f90e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2cc9d43.2a3e32c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1343.4838562011719,\r
+        "y": 4408.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "30afce54.3b0e7a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16f9c9a2.f3e64e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1335.4838562011719,\r
+        "y": 4463.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ca51c401.6ecfa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "30afce54.3b0e7a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1487.8661804199219,\r
+        "y": 4407.8721923828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4c495354.afa6a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c495354.afa6a4",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1671.9837341308594,\r
+        "y": 4406.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "72a0b2fc.d6eab4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72a0b2fc.d6eab4",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1866.9837341308594,\r
+        "y": 4406.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3067a2de.bf9096"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd113683.3f90e8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1340.4838562011719,\r
+        "y": 4520.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c72ac013.478f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c72ac013.478f",\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": 1492.4838562011719,\r
+        "y": 4521.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ca51c401.6ecfa8",\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": 1503.4838562011719,\r
+        "y": 4464.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fae6bda1.4d6a28",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2248.9837341308594,\r
+        "y": 4410.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5ada214d.6d6df",\r
+                "230404bc.0330d4",\r
+                "8f5a3f0d.286f38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3067a2de.bf9096",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2069.9837341308594,\r
+        "y": 4410.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fae6bda1.4d6a28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6135bf6.f11f5c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete LEAF UNI of ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.leafconn.etht-svc-name + '/etht-svc-end-points=' + $tmp.LEAF.uni-p-interface-long`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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": 1053.4839782714844,\r
+        "y": 4567.816131591797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "63ad904f.f883c",\r
+                "612437fd.ee8ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "612437fd.ee8ae",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1417.9837341308594,\r
+        "y": 4615.816131591797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7222d332.cab804"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "63ad904f.f883c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1413.9837341308594,\r
+        "y": 4575.816131591797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ffb15b5f.69bdb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffb15b5f.69bdb",\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 delete ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 1571.9837341308594,\r
+        "y": 4575.816131591797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7222d332.cab804",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1575.4837341308594,\r
+        "y": 4615.816131591797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "230404bc.0330d4",\r
+        "type": "execute",\r
+        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2454.9837341308594,\r
+        "y": 4423.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "999c0ecf.dd9428",\r
+                "cadc4a62.3f428",\r
+                "9a118cc2.6cef58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ada214d.6d6df",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 2484.9837341308594,\r
+        "y": 4371.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "999c0ecf.dd9428",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2664.9837341308594,\r
+        "y": 4414.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fb522408.bea2a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cadc4a62.3f428",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2656.9837341308594,\r
+        "y": 4469.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ad21cc41.8772b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a118cc2.6cef58",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2661.9837341308594,\r
+        "y": 4526.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e3096426.02dcf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e3096426.02dcf",\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": 2813.9837341308594,\r
+        "y": 4527.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ad21cc41.8772b",\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": 2824.9837341308594,\r
+        "y": 4472.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fb522408.bea2a8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2809.3660583496094,\r
+        "y": 4411.8721923828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6e503f35.5790c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e503f35.5790c",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 3023.9837341308594,\r
+        "y": 4408.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8f5a3f0d.286f38",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2404.9837341308594,\r
+        "y": 4487.216522216797,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8458698c.d1be5",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1082.5667419433594,\r
+        "y": 4787.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6cf7c0fc.18d4e8",\r
+        "type": "switchNode",\r
+        "name": "switch found-root-connectivity",\r
+        "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 897.5667419433594,\r
+        "y": 4854.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "31c266e8.6cad22",\r
+                "45786f9e.46f928"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31c266e8.6cad22",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1162.5667419433594,\r
+        "y": 4839.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "25e4293a.b5a0de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "45786f9e.46f928",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1158.5667419433594,\r
+        "y": 4887.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9325c5b6.3d913"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25e4293a.b5a0de",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1318.5667419433594,\r
+        "y": 4835.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "51a35a4f.5fbc64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9325c5b6.3d913",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
+        "comments": "",\r
+        "x": 1306.5667419433594,\r
+        "y": 4882.932830810547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c5019df.72c63e",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1587.4664001464844,\r
+        "y": 4786.633026123047,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "51a35a4f.5fbc64",\r
+        "type": "save",\r
+        "name": "update ROOT connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1613.2496032714844,\r
+        "y": 4828.833221435547,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbb82af5.87b298",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-delete-VPNBs",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-delete-VPNBs' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1026.8833923339844,\r
+        "y": 4102.199920654297,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "daa6681.3df0a98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 632.8834228515625,\r
+        "y": 4106.883056640625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "cbb82af5.87b298",\r
+                "7731a568.885cdc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5624f1d.dbf4b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 716.3333740234375,\r
+        "y": 5359.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "16338b46.5dad65",\r
+                "de535c52.af9d48",\r
+                "78064cf.4874bb4",\r
+                "b5448cca.f23df8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16338b46.5dad65",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-delete-VPNBs",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-delete-VPNBs' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1067.7166748046875,\r
+        "y": 5290.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "de535c52.af9d48",\r
+        "type": "save",\r
+        "name": "delete LEAF connectivity resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 978.7166748046875,\r
+        "y": 5359.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "78064cf.4874bb4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 869.88330078125,\r
+        "y": 5594.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "69415165.a30268",\r
+                "38b5cafd.d5079e",\r
+                "6a408110.2a2dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f703a5f3.1124f8",\r
+        "type": "execute",\r
+        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2585.882568359375,\r
+        "y": 5481.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2bcfefd4.8f246",\r
+                "6262f33a.13ed54",\r
+                "5f5183a2.3dd5bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17938acf.263b45",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2535.882568359375,\r
+        "y": 5545.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "434194f6.d45944",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 2615.882568359375,\r
+        "y": 5429.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2bcfefd4.8f246",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2795.882568359375,\r
+        "y": 5472.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f6e068a.7d61a18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6262f33a.13ed54",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2787.882568359375,\r
+        "y": 5527.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2a0eede1.27db52"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f5183a2.3dd5bc",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2792.882568359375,\r
+        "y": 5584.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "612a7284.deceac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "612a7284.deceac",\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": 2944.882568359375,\r
+        "y": 5585.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a0eede1.27db52",\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": 2955.882568359375,\r
+        "y": 5530.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6e068a.7d61a18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2940.264892578125,\r
+        "y": 5470.055572509766,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d3b91b08.9e326"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3b91b08.9e326",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 3154.882568359375,\r
+        "y": 5466.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "69415165.a30268",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.the-connectivity.access-provider-id + '-clientId-' +\n                                                   $tmp.the-connectivity.access-client-id + '-topologyId-' +\n                                                   $tmp.the-connectivity.access-topology-id + '-nodeId-' +\n                                                   $tmp.the-connectivity.access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 1151.88330078125,\r
+        "y": 5463.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5cd94a05.12a97c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1362.3834228515625,\r
+        "y": 5602.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6b54e983.54f23"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cfb8601.d6c8b8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1365.3834228515625,\r
+        "y": 5490.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "43d9e97c.41e918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c076204a.7c8658",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1357.3834228515625,\r
+        "y": 5545.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "697ce13c.463e78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "43d9e97c.41e918",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1499.765625,\r
+        "y": 5485.0556640625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9ea73f48.e6dc88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b54e983.54f23",\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": 1514.3834228515625,\r
+        "y": 5603.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "697ce13c.463e78",\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": 1525.3834228515625,\r
+        "y": 5546.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ea73f48.e6dc88",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1686.8828125,\r
+        "y": 5486.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8867a67f.02b388"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8867a67f.02b388",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1914.8828125,\r
+        "y": 5479.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "bfd4d2af.8ab0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38b5cafd.d5079e",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1169.88330078125,\r
+        "y": 5538.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "5cd94a05.12a97c",\r
+                "7cfb8601.d6c8b8",\r
+                "c076204a.7c8658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfd4d2af.8ab0b8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2120.8828125,\r
+        "y": 5476.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b0cdfdee.4e9418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0cdfdee.4e9418",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2335.8822021484375,\r
+        "y": 5479.39990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "434194f6.d45944",\r
+                "f703a5f3.1124f8",\r
+                "17938acf.263b45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6a408110.2a2dc",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete LEAF ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.the-connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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": 1293.6500244140625,\r
+        "y": 5687.7998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "d58ed713.3cd0d",\r
+                "e5f89511.dafe58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d58ed713.3cd0d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1640.1500244140625,\r
+        "y": 5680.7998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "8ee30019.6f667"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5f89511.dafe58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1644.1500244140625,\r
+        "y": 5720.7998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3308ecad.5ad59c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ee30019.6f667",\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 delete ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 1798.1500244140625,\r
+        "y": 5680.7998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3308ecad.5ad59c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1801.6500244140625,\r
+        "y": 5720.7998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5448cca.f23df8",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.MMstillHasUni?",\r
+        "xml": "\n<switch test=\"`$tmp.MMstillHasUni`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 913.183349609375,\r
+        "y": 5849.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "59551d1d.12689c",\r
+                "5a5ae31.cb9b99c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "59551d1d.12689c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1105.183349609375,\r
+        "y": 5826.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2e2794d8.3df39c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a5ae31.cb9b99c",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1093.3500366210938,\r
+        "y": 5999.2001953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6dce893f.c421c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2e2794d8.3df39c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1253.35009765625,\r
+        "y": 5826.2001953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b4e9d461.c3c1a",\r
+                "2f3efa95.41d3ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4e9d461.c3c1a",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1675.199951171875,\r
+        "y": 5797.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f3efa95.41d3ce",\r
+        "type": "switchNode",\r
+        "name": "switch found-root-connectivity",\r
+        "xml": "\n<switch test=\"`$found-root-connectivity`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1490.199951171875,\r
+        "y": 5864.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "aadc3189.147b98",\r
+                "9801a2d7.df3f98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aadc3189.147b98",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1755.199951171875,\r
+        "y": 5849.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "aaac06aa.f3d728"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9801a2d7.df3f98",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1751.199951171875,\r
+        "y": 5897.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "7656a3d7.b7266c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aaac06aa.f3d728",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1911.199951171875,\r
+        "y": 5845.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "2673ca00.ba724e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7656a3d7.b7266c",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='Root Connectivity was not found' />\n",\r
+        "comments": "",\r
+        "x": 1899.199951171875,\r
+        "y": 5892.60009765625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2673ca00.ba724e",\r
+        "type": "save",\r
+        "name": "update ROOT connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2219.8826904296875,\r
+        "y": 5839.50048828125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfaf6549.13fe88",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2194.0994873046875,\r
+        "y": 5797.30029296875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6dce893f.c421c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1230.916748046875,\r
+        "y": 5998.5,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "75d82528.4dd5bc",\r
+                "24c2da43.974556"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75d82528.4dd5bc",\r
+        "type": "for",\r
+        "name": "for each relationship of middle-man-conn",\r
+        "xml": "<for index='rel-index' start='0' end='`$middle-man-conn.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1544.23291015625,\r
+        "y": 5992.7001953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "29eb94d3.70f2dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "29eb94d3.70f2dc",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$middle-man-conn.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1844.566650390625,\r
+        "y": 5987.700134277344,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "522c88bc.33b518"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "522c88bc.33b518",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2024.2332763671875,\r
+        "y": 5987.700225830078,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9dde3a26.bf1a48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dde3a26.bf1a48",\r
+        "type": "save",\r
+        "name": "get connectivity from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $middle-man-conn.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2224.233154296875,\r
+        "y": 5987.7001953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "af210146.805c98",\r
+                "1304e1a7.407dde",\r
+                "83b6e70e.c6339"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af210146.805c98",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2431.23291015625,\r
+        "y": 6037.7001953125,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "bfbb5b5d.76ea48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24e402f2.8a6b26",\r
+        "type": "save",\r
+        "name": "get vpn-binding from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2408.466552734375,\r
+        "y": 6221.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3ff65d5b.44eb62",\r
+                "d09102d1.fb466",\r
+                "3d724c56.f2b6cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1cd695fe.f2c6f2",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1607.466552734375,\r
+        "y": 6136.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "74367c85.fa02dc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74367c85.fa02dc",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1804.466552734375,\r
+        "y": 6150.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "572f2125.6367b8",\r
+                "5931a81f.41a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "572f2125.6367b8",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1972.466552734375,\r
+        "y": 6143.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "22fa9a36.31302e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22fa9a36.31302e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2135.466552734375,\r
+        "y": 6143.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "24e402f2.8a6b26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5931a81f.41a6",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1988.466552734375,\r
+        "y": 6439.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "510edb34.612754"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "510edb34.612754",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2151.466552734375,\r
+        "y": 6439.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "4c0113a.98542ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c0113a.98542ec",\r
+        "type": "save",\r
+        "name": "delete uni resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2394.466552734375,\r
+        "y": 6439.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b555ba8.ce83e4",\r
+        "type": "save",\r
+        "name": "delete connectivity resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1648.466552734375,\r
+        "y": 6583.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfbb5b5d.76ea48",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1433.466552734375,\r
+        "y": 6134.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1cd695fe.f2c6f2",\r
+                "2b555ba8.ce83e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ff65d5b.44eb62",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2619.466552734375,\r
+        "y": 6223.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "851525d6.b90c38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d09102d1.fb466",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2619.95751953125,\r
+        "y": 6269.473937988281,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "74e6774b.c7b358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d724c56.f2b6cc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2617.466552734375,\r
+        "y": 6312.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "cbe3afce.930cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83b6e70e.c6339",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2455.282958984375,\r
+        "y": 5938.5,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1304e1a7.407dde",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2452.7919921875,\r
+        "y": 5981.925964355469,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "24c2da43.974556",\r
+        "type": "save",\r
+        "name": "delete middle-man-conn resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1531.400146484375,\r
+        "y": 6067.2998046875,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "851525d6.b90c38",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2785.466552734375,\r
+        "y": 6213.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "811dd566.85ec38",\r
+                "6a877b95.f2661c",\r
+                "66415a60.9e5d9c",\r
+                "a662df33.5b8808",\r
+                "502ecc67.91354c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cbe3afce.930cc",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "comments": "",\r
+        "x": 2784.466552734375,\r
+        "y": 6311.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "74e6774b.c7b358",\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.l3vpn.pe1_id`\" />\n\n",\r
+        "comments": "",\r
+        "x": 2782.5289306640625,\r
+        "y": 6269.759674072266,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "811dd566.85ec38",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-binding.src-access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 3007.466552734375,\r
+        "y": 5931.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6a877b95.f2661c",\r
+        "type": "get-resource",\r
+        "name": "get-resource src pnf",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3033.466552734375,\r
+        "y": 6048.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "3d9fd486.323a64",\r
+                "c6247afb.9c0a",\r
+                "83cc8360.81d358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66415a60.9e5d9c",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete OTN tunnel with token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\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": 3136.466552734375,\r
+        "y": 6315.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "9c554475.661fc8",\r
+                "12ed9938.83ebcf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a662df33.5b8808",\r
+        "type": "switchNode",\r
+        "name": "switch connectivity has ethernet service",\r
+        "xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3074.466552734375,\r
+        "y": 6450.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b26d88bf.bd178",\r
+                "f451c5d.6b3dd38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "502ecc67.91354c",\r
+        "type": "save",\r
+        "name": "delete vpn-binding resource in AAI",\r
+        "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3055.466552734375,\r
+        "y": 6566.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d9fd486.323a64",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3228.9666748046875,\r
+        "y": 6000.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c715af9f.c55108"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c6247afb.9c0a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3220.9666748046875,\r
+        "y": 6055.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "f990360c.2a7d88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c715af9f.c55108",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3363.348876953125,\r
+        "y": 5995.5556640625,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "cf5a3a9d.68d89"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83cc8360.81d358",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3225.9666748046875,\r
+        "y": 6112.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "ee6f1ffb.7dcfe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee6f1ffb.7dcfe",\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": 3377.9666748046875,\r
+        "y": 6113.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f990360c.2a7d88",\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": 3388.9666748046875,\r
+        "y": 6056.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f451c5d.6b3dd38",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3327.466552734375,\r
+        "y": 6428.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e38cfd76.3f8a2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b26d88bf.bd178",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3327.466552734375,\r
+        "y": 6484.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf5a3a9d.68d89",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3550.466064453125,\r
+        "y": 5996.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "fe7eff92.d565e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe7eff92.d565e",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3791.466064453125,\r
+        "y": 5987.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "a5619f8.2b7e86"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e38cfd76.3f8a2",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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": 3677.466064453125,\r
+        "y": 6418.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "1d52efad.f9e5d",\r
+                "d7169143.c010d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c554475.661fc8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3443.966064453125,\r
+        "y": 6340.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "238545c1.5c8b2a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12ed9938.83ebcf",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3444.966064453125,\r
+        "y": 6285.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "bb0795de.a47f18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "238545c1.5c8b2a",\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 delete OTN tunnel rest api\" />\n",\r
+        "comments": "",\r
+        "x": 3615.966064453125,\r
+        "y": 6338.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bb0795de.a47f18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3612.466064453125,\r
+        "y": 6287.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "36cf22b4.4935d6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4148.4658203125,\r
+        "y": 5936.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b5cbacbc.c392",\r
+                "ea40936a.af6178",\r
+                "6eb0462c.852488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5619f8.2b7e86",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3997.466064453125,\r
+        "y": 5984.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "36cf22b4.4935d6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d52efad.f9e5d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4009.966064453125,\r
+        "y": 6392.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "6bd1cb72.9cf9b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7169143.c010d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4013.966064453125,\r
+        "y": 6432.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "e4332941.104e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4332941.104e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4201.466064453125,\r
+        "y": 6436.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6bd1cb72.9cf9b4",\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 delete ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4197.966064453125,\r
+        "y": 6396.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ea40936a.af6178",\r
+        "type": "execute",\r
+        "name": "get 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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4354.4658203125,\r
+        "y": 5949.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "914dea7f.0edbe",\r
+                "82561c7b.09ef28",\r
+                "b047cbfd.3b9618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b5cbacbc.c392",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domain id",\r
+        "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 4384.4658203125,\r
+        "y": 5897.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "914dea7f.0edbe",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4564.4658203125,\r
+        "y": 5940.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c318baba.3a4cc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "82561c7b.09ef28",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4556.4658203125,\r
+        "y": 5995.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "b8e7878b.f1ad7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b047cbfd.3b9618",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4561.4658203125,\r
+        "y": 6052.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "c15a7782.9625b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6eb0462c.852488",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4304.4658203125,\r
+        "y": 6013.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c15a7782.9625b",\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": 4713.4658203125,\r
+        "y": 6053.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b8e7878b.f1ad7",\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": 4724.4658203125,\r
+        "y": 5998.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c318baba.3a4cc8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4708.84814453125,\r
+        "y": 5938.555572509766,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": [\r
+            [\r
+                "42376e75.44b2d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "42376e75.44b2d8",\r
+        "type": "set",\r
+        "name": "set controller domain data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
+        "x": 4923.4658203125,\r
+        "y": 5934.89990234375,\r
+        "z": "82de8dcf.518d88",\r
+        "wires": []\r
     }\r
 ]
\ No newline at end of file