A few bug fixes for CLL closed-loop operation.
[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 5fb8945..5fb058b 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "931a69bb.dae57",\r
+        "id": "b3c61f0e.0e195",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 158,\r
-        "y": 111,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 183.56666564941406,\r
+        "y": 161.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "631f62d5.74088c"\r
+                "a48494fd.8b7d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "631f62d5.74088c",\r
+        "id": "a48494fd.8b7d",\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": 481.8523864746094,\r
+        "y": 217.8047742843628,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "b7a67e25.a3d65"\r
+                "6868eec5.8eff3"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b7a67e25.a3d65",\r
+        "id": "6868eec5.8eff3",\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": 487.99530029296875,\r
+        "y": 302.5666961669922,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "bcc86fda.38b13"\r
+                "42b0c518.6297dc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bcc86fda.38b13",\r
+        "id": "42b0c518.6297dc",\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": 837.5666961669922,\r
+        "y": 361.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "f53defcd.3a7dd",\r
-                "c20e131e.73b7b",\r
-                "d160ef14.daae98"\r
+                "fec7e153.ea24b",\r
+                "30575656.398222",\r
+                "189baf2e.d72529"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f53defcd.3a7dd",\r
+        "id": "fec7e153.ea24b",\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": 1138.9001922607422,\r
+        "y": 632.4969635009766,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c20e131e.73b7b",\r
+        "id": "30575656.398222",\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": 1160.3286590576172,\r
+        "y": 334.8999786376953,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "73ebc7bf.bf03e8",\r
-                "4161fc92.ab54b4",\r
-                "f0a5f72e.4756d"\r
+                "27345488.79731c",\r
+                "7e08d842.a4058",\r
+                "14b3e2f5.681565"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "73ebc7bf.bf03e8",\r
+        "id": "27345488.79731c",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 987,\r
-        "y": 350,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 1385.3286590576172,\r
+        "y": 192.8999786376953,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "5b569a16.745f1c"\r
+                "a8487fba.2cb09"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4161fc92.ab54b4",\r
+        "id": "7e08d842.a4058",\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": 1380.8196258544922,\r
+        "y": 262.47401428222656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "8782adc7.ab141"\r
+                "26698778.b41f38"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f0a5f72e.4756d",\r
+        "id": "14b3e2f5.681565",\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": 1369.3286590576172,\r
+        "y": 308.8999786376953,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "ecf8d005.e02b48"\r
+                "e03cea3a.82881"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8782adc7.ab141",\r
+        "id": "b94ba14f.99f16",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1139.3286590576172,\r
+        "y": 222.8999786376953,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "189baf2e.d72529",\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": 1127.3286590576172,\r
+        "y": 274.8999786376953,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8487fba.2cb09",\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": 1625.5666961669922,\r
+        "y": 189.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7bdf94e9.87c2bc",\r
+                "770405a0.0ddc6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26698778.b41f38",\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": 1535.6290740966797,\r
+        "y": 265.4264373779297,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ecf8d005.e02b48",\r
+        "id": "e03cea3a.82881",\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": 1539.5666961669922,\r
+        "y": 309.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\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": "7bdf94e9.87c2bc",\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": 1830.5666961669922,\r
+        "y": 226.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "25ca27fd.dbc988"\r
+                "79eb131c.176e44"\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": "770405a0.0ddc6c",\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": 1840.5666961669922,\r
+        "y": 153.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\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": "79eb131c.176e44",\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": 1823.5666961669922,\r
+        "y": 301.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "b1afa8c.9d08258"\r
+                "9d4673ee.891e5",\r
+                "1a86601d.154a48",\r
+                "d6a895b8.ea711",\r
+                "3f0be5e9.f7ecd2",\r
+                "eca8d05b.38fb78"\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": "fd1dcea.f15be3",\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": 2309.566696166992,\r
+        "y": 352.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "c3a2010c.f5d48",\r
-                "fb144142.e9ac68",\r
-                "ba20a9b3.14be2"\r
+                "2555bbc5.26f19c",\r
+                "93423d46.b14978",\r
+                "4c790d06.05e3ec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c3a2010c.f5d48",\r
+        "id": "2555bbc5.26f19c",\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": 2525.566696166992,\r
+        "y": 419.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "9386fbbc.1d2048"\r
+                "cc8af145.1212b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb144142.e9ac68",\r
+        "id": "93423d46.b14978",\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": 2526.057662963867,\r
+        "y": 319.14064025878906,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "9e1c850d.74d728"\r
+                "fbfefea4.a2d338"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ba20a9b3.14be2",\r
+        "id": "4c790d06.05e3ec",\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": 2521.566696166992,\r
+        "y": 368.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "c9b57000.53acb8"\r
+                "d962a49c.c504b8"\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": "9d4673ee.891e5",\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": 2026.5666961669922,\r
+        "y": 333.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d3206ca7.c31d1",\r
+                "fd1dcea.f15be3",\r
+                "426ddfc0.c628b",\r
+                "d0874bda.7e1ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3206ca7.c31d1",\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": 2306.566696166992,\r
+        "y": 271.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\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": "3f0be5e9.f7ecd2",\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": 2000.5666961669922,\r
+        "y": 283.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\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": "1a86601d.154a48",\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": 2043.5666961669922,\r
+        "y": 142.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            [\r
-                "640b0e20.b1d3e",\r
-                "ce9c63b.0255a2",\r
-                "7ad6314d.3b89c8"\r
-            ]\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6a895b8.ea711",\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": 2055.566696166992,\r
+        "y": 183.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "e28a48f8.db57f8",\r
+        "id": "c8d3ec04.e3f8a8",\r
+        "type": "comment",\r
+        "name": "The following two nodes are for PCE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2080.566696166992,\r
+        "y": 95.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d7434469.de441",\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": 2000.5666961669922,\r
+        "y": 229.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fbfefea4.a2d338",\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": 2704.566696166992,\r
+        "y": 321.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d962a49c.c504b8",\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": 2704.504196166992,\r
+        "y": 370.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc8af145.1212b8",\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": 2706.504196166992,\r
+        "y": 421.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "1c93c389.0c8c2c",\r
-                "c798ad9c.1234b",\r
-                "fd7fa756.f7d6e8",\r
-                "270a4545.e66b22",\r
-                "d4768fc2.d5865"\r
+                "30ad22b3.c0b5e6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "640b0e20.b1d3e",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "30ad22b3.c0b5e6",\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": 2999.504196166992,\r
+        "y": 368.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "e28a48f8.db57f8"\r
+                "5234d98d.9f94d",\r
+                "83314642.8bc358",\r
+                "55523c43.af8514"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ce9c63b.0255a2",\r
+        "id": "83314642.8bc358",\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": 3302.995132446289,\r
+        "y": 25.280899047851562,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "714cc291.22ce0c"\r
+                "f9033318.3a82e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7ad6314d.3b89c8",\r
+        "id": "f9033318.3a82e",\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": 3480.566665649414,\r
+        "y": 25.566665649414062,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "55523c43.af8514",\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": 3298.504165649414,\r
+        "y": 74.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "525b4279.2df8f4"\r
+                "ed442c0e.cae2b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "525b4279.2df8f4",\r
+        "id": "ed442c0e.cae2b8",\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": 3480.504165649414,\r
+        "y": 74.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\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": "5234d98d.9f94d",\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": 3302.504165649414,\r
+        "y": 125.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "9dbcf55e.4925c8"\r
+                "7ab56666.401778"\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": "7ab56666.401778",\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": 3482.504165649414,\r
+        "y": 125.70692443847656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "b564f315.834a2",\r
-                "e7d69f06.780b38"\r
+                "6c101067.0de5e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b564f315.834a2",\r
-        "type": "outcome",\r
-        "name": "vpn-binding",\r
-        "xml": "<outcome value='vpn-binding'>\n",\r
+        "id": "6c101067.0de5e8",\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": 3018.566696166992,\r
+        "y": 496.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "491489ec.617558"\r
+                "646ab584.76e45c",\r
+                "ffe35827.b1255"\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": "ffe35827.b1255",\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": 3358.566665649414,\r
+        "y": 267.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\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": "646ab584.76e45c",\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": 3357.566665649414,\r
+        "y": 321.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "76dc6e0a.1ab268",\r
-                "826ceead.c2f69",\r
-                "d5b03fc8.b6e088"\r
+                "7579f2ad.787884"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "76dc6e0a.1ab268",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "76ff4ece.4716a",\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": 4102.566665649414,\r
+        "y": 275.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "feb1370b.46393"\r
+                "522d04a5.cf337c"\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": "522d04a5.cf337c",\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": 4279.566543579102,\r
+        "y": 268.56654357910156,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "f38f34bb.7a9748"\r
+                "ff700b35.f88fd",\r
+                "a95b674a.f71a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "feb1370b.46393",\r
+        "id": "7579f2ad.787884",\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": 3521.566665649414,\r
+        "y": 247.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "21f3a77a.346fa8"\r
+                "687e4dd8.df6004",\r
+                "7a6c4648.75b9a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "21f3a77a.346fa8",\r
+        "id": "687e4dd8.df6004",\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": 3802.566665649414,\r
+        "y": 203.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "a51bf440.0c5b6"\r
+                "498ba81e.b961f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a51bf440.0c5b6",\r
+        "id": "498ba81e.b961f8",\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": 4064.566665649414,\r
+        "y": 203.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "34e2f8df.de6cf8"\r
+                "76ff4ece.4716a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d5b03fc8.b6e088",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "ff700b35.f88fd",\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": 4522.566543579102,\r
+        "y": 225.56654357910156,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a95b674a.f71a",\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": 4511.566543579102,\r
+        "y": 280.56654357910156,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4864ccac.4c9fb4",\r
+                "b78f5441.c1bfd",\r
+                "4088ff64.ba745"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4088ff64.ba745",\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": 4764.566665649414,\r
+        "y": 166.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "8eb64fc1.c84cd"\r
+                "745cd258.155a8c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8eb64fc1.c84cd",\r
+        "id": "745cd258.155a8c",\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": 4913.138198852539,\r
+        "y": 166.85243225097656,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f38f34bb.7a9748",\r
+        "id": "d814f814.02812",\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": 4912.075698852539,\r
+        "y": 210.99269104003906,\r
+        "z": "1b4ba1fc.83240e",\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": "b78f5441.c1bfd",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4753.075698852539,\r
+        "y": 210.99269104003906,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d814f814.02812"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4864ccac.4c9fb4",\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": 4760.075698852539,\r
+        "y": 289.99269104003906,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "b0076b13.2e399",\r
-                "f818e30c.1ed2d",\r
-                "cd5ca056.adec1"\r
+                "efd9fdb1.0f83a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb2612bc.a6aea8",\r
+        "id": "efd9fdb1.0f83a",\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": 4899.075698852539,\r
+        "y": 289.99269104003906,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "a86d0a2.d48def8",\r
-                "41c68962.37006",\r
-                "3b61ff6d.8dced"\r
+                "f2ffc2c8.9c3d6",\r
+                "ca4f06f7.bf7198"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a86d0a2.d48def8",\r
+        "id": "f2ffc2c8.9c3d6",\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": 5104.566665649414,\r
+        "y": 287.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b0076b13.2e399",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "ca4f06f7.bf7198",\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": 5103.566665649414,\r
+        "y": 333.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7a6c4648.75b9a",\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": 3619.566665649414,\r
+        "y": 319.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "9a62192a.51df38"\r
+                "2b038d01.8bcf5a"\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": "2b038d01.8bcf5a",\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": 3899.566665649414,\r
+        "y": 319.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "cb7716d3.6ef01"\r
+                "924692b1.dbe118"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cd5ca056.adec1",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "924692b1.dbe118",\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": 2282.5668182373047,\r
+        "y": 808.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "6a7cfa93.2ccb4c"\r
+                "e627a5b7.666348"\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
-        "comments": "",\r
-        "x": 5353,\r
-        "y": 284,\r
-        "z": "de2a2b68.0a5d7",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "cb7716d3.6ef01",\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
+        "id": "e627a5b7.666348",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2459.566696166992,\r
+        "y": 801.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "abe018e3.2ab958",\r
+                "b299dbd0.7106d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "abe018e3.2ab958",\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": 2702.566696166992,\r
+        "y": 758.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b299dbd0.7106d8",\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": 2691.566696166992,\r
+        "y": 813.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "73425fcf.6d608",\r
+                "9a2fb745.49c558",\r
+                "c8c584c4.60469"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "73425fcf.6d608",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2983.057662963867,\r
+        "y": 792.1406402587891,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "11a6918b.0ed79e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a2fb745.49c558",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2971.566696166992,\r
+        "y": 836.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "147fb75c.cecad1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "11a6918b.0ed79e",\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": 3131.629196166992,\r
+        "y": 792.4264068603516,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "147fb75c.cecad1",\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": 5364,\r
-        "y": 229,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3130.566696166992,\r
+        "y": 836.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9a62192a.51df38",\r
+        "id": "c8c584c4.60469",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2978.566696166992,\r
+        "y": 915.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "18430aa7.b0cd65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18430aa7.b0cd65",\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": 3117.566696166992,\r
+        "y": 915.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "1e654428.bcfdbc"\r
+                "a56438ce.7b3648",\r
+                "cd9c4fe8.e67498",\r
+                "b8cad49c.dd7ca",\r
+                "768c9bf8.5beb74",\r
+                "6f1a328d.ae400c",\r
+                "b16688a0.4defc",\r
+                "2c1d8b21.e96e8c",\r
+                "63cddf09.26d868",\r
+                "9d9de9db.5c38b8",\r
+                "e5f9b3dc.c2f9f",\r
+                "169ca3b9.4d31a4",\r
+                "1c28fc30.faaf74",\r
+                "19822907.e2052f",\r
+                "e8ad32eb.9df94",\r
+                "cf9533e5.c2371",\r
+                "22a945f9.085212",\r
+                "94938481.855978",\r
+                "7edb995a.421908",\r
+                "f054f8f8.d1b3a",\r
+                "dab7847.8f75af8",\r
+                "71a7eba7.ddb6fc",\r
+                "a71111e6.40602"\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": "ece3c8dc.fca8e",\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": 3461.566635131836,\r
+        "y": 389.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            [\r
-                "fb2612bc.a6aea8"\r
-            ]\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a56438ce.7b3648",\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": 3442.566635131836,\r
+        "y": 489.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "1e654428.bcfdbc",\r
+        "id": "1c28fc30.faaf74",\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": 3396.566635131836,\r
+        "y": 540.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3b61ff6d.8dced",\r
-        "type": "break",\r
-        "name": "break",\r
-        "xml": "<break>\n",\r
+        "id": "cd9c4fe8.e67498",\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": 3370.566635131836,\r
+        "y": 589.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\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": "b8cad49c.dd7ca",\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": 3369.566635131836,\r
+        "y": 638.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "768c9bf8.5beb74",\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": 3378.566635131836,\r
+        "y": 776.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fe7f9a9e.cf1db8",\r
+                "156916f6.f1ec61",\r
+                "66ef43c6.2e3d64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f1a328d.ae400c",\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": 3371.566635131836,\r
+        "y": 837.5665435791016,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6dadc494.d9aa04",\r
+                "672f337a.746964",\r
+                "bcaed2fe.1f9ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe7f9a9e.cf1db8",\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": 3627.566390991211,\r
+        "y": 671.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "7f6c606d.64ab48",\r
-                "c3eb517a.b7781"\r
+                "cc05b9e7.0fc9a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7f6c606d.64ab48",\r
+        "id": "156916f6.f1ec61",\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": 3621.075424194336,\r
+        "y": 712.9926910400391,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "8c5003e.5a8698"\r
+                "4587637b.94db5c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c3eb517a.b7781",\r
+        "id": "66ef43c6.2e3d64",\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": 3616.075424194336,\r
+        "y": 762.9926910400391,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "19571e12.890ec2"\r
+                "1eb5ad40.d06413"\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": "cc05b9e7.0fc9a",\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": 3776.137924194336,\r
+        "y": 670.8524322509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "8c5003e.5a8698",\r
+        "id": "4587637b.94db5c",\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": 3766.075424194336,\r
+        "y": 720.9926910400391,\r
+        "z": "1b4ba1fc.83240e",\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": "6dadc494.d9aa04",\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": 3592.566635131836,\r
+        "y": 823.5665435791016,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "7d0f2c32.be1c14",\r
-                "d337892f.188d2"\r
+                "1b1304b9.a5e66b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7d0f2c32.be1c14",\r
+        "id": "672f337a.746964",\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": 3588.075668334961,\r
+        "y": 872.9925689697266,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "bcce4236.8aab4"\r
+                "e774fced.6104a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d337892f.188d2",\r
+        "id": "bcaed2fe.1f9ae",\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": 3589.075668334961,\r
+        "y": 925.9925689697266,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "fe33b47b.c7292"\r
+                "c076d47b.eaded"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bcce4236.8aab4",\r
+        "id": "1b1304b9.a5e66b",\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": 3745.1380157470703,\r
+        "y": 828.8523101806641,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e774fced.6104a8",\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": 3731.075668334961,\r
+        "y": 872.9925689697266,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fe33b47b.c7292",\r
+        "id": "1eb5ad40.d06413",\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": 3788.566390991211,\r
+        "y": 773.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            []\r
+            [\r
+                "7f2b8c9b.099c14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c076d47b.eaded",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3742.566635131836,\r
+        "y": 925.5665435791016,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8445401a.e44628"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "270a4545.e66b22",\r
+        "id": "7f2b8c9b.099c14",\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": 3949.566635131836,\r
+        "y": 660.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "9b17a7a2.876",\r
-                "67f91d39.722cb4"\r
+                "b0a8e75a.0829b8",\r
+                "40b074e3.b8cf9c",\r
+                "9b9082d.d33238"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "67f91d39.722cb4",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "8445401a.e44628",\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": 3941.566635131836,\r
+        "y": 845.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "10401b5c.b05865"\r
+                "65174d4b.beb5c4",\r
+                "b443365d.1a3bf",\r
+                "a01fe37.2547ea"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9b17a7a2.876",\r
+        "id": "b0a8e75a.0829b8",\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": 4173.567123413086,\r
+        "y": 364.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            []\r
+            [\r
+                "9aca5d50.3d0028"\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": "40b074e3.b8cf9c",\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": 4175.567123413086,\r
+        "y": 418.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            []\r
+            [\r
+                "d411ea2f.0fea6"\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": "65174d4b.beb5c4",\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": 4139.567123413086,\r
+        "y": 624.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            []\r
+            [\r
+                "b1818ac5.01eff"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "e7d69f06.780b38",\r
+        "id": "b443365d.1a3bf",\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": 4141.567123413086,\r
+        "y": 678.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "f282643f.862928"\r
+                "7efc1cf.1fed664"\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": "f6cae941.406738",\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": 4483.567123413086,\r
+        "y": 316.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "71276df1.c00474",\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": 4476.567123413086,\r
+        "y": 414.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "18b30ce8.3b3b9b",\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": 4455.567123413086,\r
+        "y": 597.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bdb5a388.dc57d",\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": 4459.567123413086,\r
+        "y": 690.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "365f833d.25b8d4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3635.566665649414,\r
+        "y": 1350.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9fbce841.2e2e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "374e0e92.acb9ca",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3645.057632446289,\r
+        "y": 1393.1407012939453,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "544f9b1.6ea9ce4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1cbd1ad.ad2c18",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 2805,\r
-        "y": 710,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3633.566665649414,\r
+        "y": 1439.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "7484e145.9ae3a8"\r
+                "875bb611.eebb3"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7484e145.9ae3a8",\r
+        "id": "def43ac8.216f6",\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": 3335.566665649414,\r
+        "y": 1312.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c1d8b21.e96e8c",\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
+        "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": 3048,\r
-        "y": 710,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3378.566665649414,\r
+        "y": 1377.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
-            []\r
+            [\r
+                "365f833d.25b8d4",\r
+                "374e0e92.acb9ca",\r
+                "a1cbd1ad.ad2c18"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "9386fbbc.1d2048",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "b16688a0.4defc",\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": 2087,\r
-        "y": 299,\r
-        "z": "de2a2b68.0a5d7",\r
+        "x": 3379.566635131836,\r
+        "y": 1129.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
         "wires": [\r
             [\r
-                "c57d1cb2.40bd38",\r
-                "9c7846e0.04a7f"\r
+                "34aa1b4f.ba281c",\r
+                "141fecfc.2b9053"\r
             ]\r
         ]\r
+    },\r
+    {\r
+        "id": "141fecfc.2b9053",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3602.566635131836,\r
+        "y": 1115.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6c70ba9f.edd1f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34aa1b4f.ba281c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3604.566635131836,\r
+        "y": 1148.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "809a76b0.69bfb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9fbce841.2e2e5",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3808.233169555664,\r
+        "y": 1349.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d947a96b.ec0e98",\r
+                "78e35528.26de5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "544f9b1.6ea9ce4",\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": 3798.6290435791016,\r
+        "y": 1396.4264373779297,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "875bb611.eebb3",\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": 3802.566665649414,\r
+        "y": 1440.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d947a96b.ec0e98",\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": 4072.566665649414,\r
+        "y": 1333.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "15bba4b9.d2a05b",\r
+                "3ad9867a.e42d4a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ad9867a.e42d4a",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4295.566665649414,\r
+        "y": 1288.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6b929f53.c8f4f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "15bba4b9.d2a05b",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4297.566665649414,\r
+        "y": 1352.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1ee9816c.cbffbf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ee9816c.cbffbf",\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": 4459.566665649414,\r
+        "y": 1348.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6b929f53.c8f4f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4460.566665649414,\r
+        "y": 1285.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2ecc2d46.f12c7a",\r
+                "9183827d.0d9718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "809a76b0.69bfb",\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": 3747.566635131836,\r
+        "y": 1145.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6c70ba9f.edd1f4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3750.566635131836,\r
+        "y": 1108.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "920604a0.fd0cf",\r
+                "ad826b52.8e9fa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "920604a0.fd0cf",\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": 3942.566635131836,\r
+        "y": 1110.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "78e35528.26de5c",\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": 4032.566665649414,\r
+        "y": 1465.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "75c2427c.8c10cc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75c2427c.8c10cc",\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": 4238.566665649414,\r
+        "y": 1465.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5fbadc48.b9fad4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5fbadc48.b9fad4",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4453.852310180664,\r
+        "y": 1465.388442993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4d8b1a53.4482f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad826b52.8e9fa",\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": 3939.566635131836,\r
+        "y": 1175.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "70c21f01.ccf8c",\r
+                "fd021df7.11e338",\r
+                "df54403.64867c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70c21f01.ccf8c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4135.066757202148,\r
+        "y": 1127.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "37006658.3814c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd021df7.11e338",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4127.066757202148,\r
+        "y": 1182.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "24c12ef7.012c52"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "df54403.64867c",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4132.066757202148,\r
+        "y": 1239.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2b777797.09f0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b777797.09f0b8",\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": 4284.066757202148,\r
+        "y": 1240.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "24c12ef7.012c52",\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": 4295.066757202148,\r
+        "y": 1185.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "37006658.3814c2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4279.449081420898,\r
+        "y": 1125.2223358154297,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9c96e054.d5da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c96e054.d5da8",\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": 4473.566635131836,\r
+        "y": 1169.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "efaf74dd.57cd28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9183827d.0d9718",\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": 4630.566665649414,\r
+        "y": 1243.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2ecc2d46.f12c7a",\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": 4631.566665649414,\r
+        "y": 1351.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e06b7ada.eb82e8",\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": 4632.566665649414,\r
+        "y": 1300.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d8b1a53.4482f4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4660.683853149414,\r
+        "y": 1465.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dced3e1c.40e48",\r
+                "5a4be8c3.e9f088",\r
+                "301c508b.710a5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dced3e1c.40e48",\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": 4875.683853149414,\r
+        "y": 1427.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5a4be8c3.e9f088",\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": 4872.683853149414,\r
+        "y": 1466.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "34a88173.395bbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "301c508b.710a5",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4828.183853149414,\r
+        "y": 1508.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "34a88173.395bbe",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5053.183853149414,\r
+        "y": 1465.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "91aa780.576ce08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46f94459.4a6e34",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4861.566665649414,\r
+        "y": 1061.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "eb72bb20.19559"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb72bb20.19559",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5038.566665649414,\r
+        "y": 1053.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "32b5afac.4ae738",\r
+                "92ed0f08.6c0c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efaf74dd.57cd28",\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": 4664.566635131836,\r
+        "y": 1159.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "46f94459.4a6e34",\r
+                "95ea5c2d.7d46e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95ea5c2d.7d46e8",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4864.566665649414,\r
+        "y": 1135.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "93430c1b.104ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93430c1b.104ce",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5041.566665649414,\r
+        "y": 1127.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "78b310b8.dd74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91aa780.576ce08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5211.183853149414,\r
+        "y": 1465.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5b4e25f5.7b14e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5b4e25f5.7b14e4",\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": 5418.183853149414,\r
+        "y": 1465.906997680664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "92ed0f08.6c0c2",\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": 5246.566665649414,\r
+        "y": 1060.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "322d8e2.13d36f2",\r
+                "a2041883.aae29",\r
+                "fe986e1.586ed1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "32b5afac.4ae738",\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": 5276.566665649414,\r
+        "y": 1008.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "322d8e2.13d36f2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5456.566665649414,\r
+        "y": 1051.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9ca79008.c70bf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2041883.aae29",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5448.566665649414,\r
+        "y": 1106.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ec84ed8c.59c368"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe986e1.586ed1",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5453.566665649414,\r
+        "y": 1163.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ae200af1.d5e5c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae200af1.d5e5c8",\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": 5605.566665649414,\r
+        "y": 1164.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ec84ed8c.59c368",\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": 5616.566665649414,\r
+        "y": 1109.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9ca79008.c70bf8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5600.948989868164,\r
+        "y": 1049.2223358154297,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e75f84ea.1b627"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78b310b8.dd74",\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": 5276.566665649414,\r
+        "y": 1251.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e75f84ea.1b627",\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": 5815.566665649414,\r
+        "y": 1045.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d425ccce.04f6a",\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": 4471.567123413086,\r
+        "y": 352.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72647ac9.fcc034",\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": 4472.567092895508,\r
+        "y": 456.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9aca5d50.3d0028",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4296.567123413086,\r
+        "y": 358.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f6cae941.406738",\r
+                "d425ccce.04f6a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d411ea2f.0fea6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4302.567123413086,\r
+        "y": 422.5666046142578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "71276df1.c00474",\r
+                "72647ac9.fcc034"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b1818ac5.01eff",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4267.567123413086,\r
+        "y": 624.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "18b30ce8.3b3b9b",\r
+                "e0b34ba1.74f538"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7efc1cf.1fed664",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4270.567123413086,\r
+        "y": 677.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bdb5a388.dc57d",\r
+                "f08a6dfd.10adf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0b34ba1.74f538",\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": 4441.567123413086,\r
+        "y": 637.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f08a6dfd.10adf",\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": 4444.567123413086,\r
+        "y": 728.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e27939d4.dc1f9",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3767.566665649414,\r
+        "y": 1807.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e945ebed.eb7548",\r
+                "77e0d458.7dce6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f47a2634.b211d8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3594.900161743164,\r
+        "y": 1808.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e27939d4.dc1f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a8297d6.2a928",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3604.391128540039,\r
+        "y": 1851.1408233642578,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5c13cfc7.d7d798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aeb5511b.98c418",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3592.900161743164,\r
+        "y": 1897.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6967c0f4.670908"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c13cfc7.d7d798",\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": 3757.9625396728516,\r
+        "y": 1854.4265594482422,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6967c0f4.670908",\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": 3761.900161743164,\r
+        "y": 1898.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e945ebed.eb7548",\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": 4053.900161743164,\r
+        "y": 1811.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e55a817f.49527",\r
+                "d5120a58.c5add"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5120a58.c5add",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4276.900161743164,\r
+        "y": 1766.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "754abe34.cc3b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e55a817f.49527",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4278.900161743164,\r
+        "y": 1830.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1b1e2d9b.600bda"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b1e2d9b.600bda",\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": 4437.900161743164,\r
+        "y": 1849.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "754abe34.cc3b8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4441.900161743164,\r
+        "y": 1763.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e1fca79d.bcc158",\r
+                "d062e564.f9cc3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d9de9db.5c38b8",\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": 3366.900161743164,\r
+        "y": 1843.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f47a2634.b211d8",\r
+                "4a8297d6.2a928",\r
+                "aeb5511b.98c418"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcd55e2.3f6482",\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": 3327.900161743164,\r
+        "y": 1787.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "63cddf09.26d868",\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": 3378.900161743164,\r
+        "y": 1582.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "43aff4f9.b6b3e4",\r
+                "25e76471.03af04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25e76471.03af04",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3601.900161743164,\r
+        "y": 1568.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a96745eb.fd51a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "43aff4f9.b6b3e4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3603.900161743164,\r
+        "y": 1601.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "65d2388d.31966"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "65d2388d.31966",\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": 3746.900161743164,\r
+        "y": 1598.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a96745eb.fd51a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3749.900161743164,\r
+        "y": 1561.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e299d57.a910ca8",\r
+                "f2c7502b.08699"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e299d57.a910ca8",\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": 3943.900161743164,\r
+        "y": 1564.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "77e0d458.7dce6c",\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": 3994.900131225586,\r
+        "y": 1944.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e086896d.a84a3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e086896d.a84a3",\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": 4200.900131225586,\r
+        "y": 1944.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7b35902c.38cf98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b35902c.38cf98",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4418.185775756836,\r
+        "y": 1943.388442993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3adb3c4.e1dbc44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2c7502b.08699",\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": 3965.900161743164,\r
+        "y": 1632.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "816c398a.a95008",\r
+                "793de235.310dbc",\r
+                "438956b5.03e5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "816c398a.a95008",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4161.400283813477,\r
+        "y": 1584.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c1f38920.d25ea"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "793de235.310dbc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4153.400283813477,\r
+        "y": 1639.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "cab6de35.b52228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "438956b5.03e5",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4158.400283813477,\r
+        "y": 1696.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a8484dc0.47884"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8484dc0.47884",\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": 4310.400283813477,\r
+        "y": 1697.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cab6de35.b52228",\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": 4321.400283813477,\r
+        "y": 1642.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c1f38920.d25ea",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4305.782608032227,\r
+        "y": 1582.2224578857422,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "afe15cf0.f36818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1fca79d.bcc158",\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": 4611.900161743164,\r
+        "y": 1724.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d062e564.f9cc3",\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": 4612.900161743164,\r
+        "y": 1829.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "808f1d51.43ea1",\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": 4607.900161743164,\r
+        "y": 1778.566909790039,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3adb3c4.e1dbc44",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4625.017318725586,\r
+        "y": 1932.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d9f1d004.ab36e8",\r
+                "c34231fa.58e828",\r
+                "e0d690d7.a8c998"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d9f1d004.ab36e8",\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": 4840.017318725586,\r
+        "y": 1894.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c34231fa.58e828",\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": 4837.017318725586,\r
+        "y": 1933.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1c725cd0.b941cb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0d690d7.a8c998",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4792.517318725586,\r
+        "y": 1975.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1c725cd0.b941cb",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5017.517318725586,\r
+        "y": 1932.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d4ead200.f358d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d4ead200.f358d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5175.517318725586,\r
+        "y": 1932.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "21d1a6b2.01b042"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "21d1a6b2.01b042",\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": 5382.517318725586,\r
+        "y": 1932.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c098907.41a99",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4887.900161743164,\r
+        "y": 1600.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "801eca00.935f68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "801eca00.935f68",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5064.900161743164,\r
+        "y": 1592.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "387f801c.205ae8",\r
+                "9175f1b.049129"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afe15cf0.f36818",\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": 4489.900161743164,\r
+        "y": 1596.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "311e9242.e1d87e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "311e9242.e1d87e",\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": 4684.900161743164,\r
+        "y": 1596.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4c098907.41a99",\r
+                "349df30f.7cba04"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9175f1b.049129",\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": 5272.900161743164,\r
+        "y": 1599.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "42985b25.52fcec",\r
+                "e5b701e3.8392b",\r
+                "3efd20ec.3f4778"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b70a777b.22a5f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5066.900161743164,\r
+        "y": 1665.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8a34b29e.6de5e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "349df30f.7cba04",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4889.900161743164,\r
+        "y": 1673.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b70a777b.22a5f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "387f801c.205ae8",\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": 5302.900161743164,\r
+        "y": 1547.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8a34b29e.6de5e8",\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": 5279.900161743164,\r
+        "y": 1731.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42985b25.52fcec",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5482.900161743164,\r
+        "y": 1590.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "16d18a71.6daf16"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5b701e3.8392b",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5474.900161743164,\r
+        "y": 1645.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6ba1c131.2a9348"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3efd20ec.3f4778",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5479.900161743164,\r
+        "y": 1702.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e5aceb1d.a2ff7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e5aceb1d.a2ff7",\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": 5631.900161743164,\r
+        "y": 1703.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ba1c131.2a9348",\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": 5642.900161743164,\r
+        "y": 1648.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16d18a71.6daf16",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5627.282485961914,\r
+        "y": 1588.2224578857422,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c4efa7e8.819f98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c4efa7e8.819f98",\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": 5841.900161743164,\r
+        "y": 1584.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e5f9b3dc.c2f9f",\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 + '-' + $tmp.aai.network-route-A.logical-interface-id`\" />\n<parameter name='tmp.LEAF.uni-tp-id' value=\"`$tmp.src.ltpId`\" />\n",\r
+        "comments": "",\r
+        "x": 3340.566665649414,\r
+        "y": 1454.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "169ca3b9.4d31a4",\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 + '-' + $tmp.aai.network-route-B.logical-interface-id`\" />\n<parameter name='tmp.ROOT.uni-tp-id' value=\"`$tmp.dst.ltpId`\" />\n",\r
+        "comments": "",\r
+        "x": 3327.566665649414,\r
+        "y": 1974.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "426ddfc0.c628b",\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": 2452.566696166992,\r
+        "y": 167.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0874bda.7e1ac",\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": 2386.566696166992,\r
+        "y": 203.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2daf88d4.4069b",\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": 2571.566696166992,\r
+        "y": 130.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d0caa12.a83adc",\r
+        "type": "comment",\r
+        "name": "NOT NEEDED ANYMORE?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4098.566665649414,\r
+        "y": 1432.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "325da1a4.661aa6",\r
+        "type": "comment",\r
+        "name": "NOT NEEDED ANYMORE?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4054.566635131836,\r
+        "y": 1896.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eca8d05b.38fb78",\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": 2763.5670318603516,\r
+        "y": 7264.566543579102,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a99585.3b52728",\r
+        "type": "comment",\r
+        "name": "START OF DELETE OPERATION",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3322.566665649414,\r
+        "y": 2456.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e1bb190b.e249c8",\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": 3906.250015258789,\r
+        "y": 2557.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "19822907.e2052f",\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": 3277.250015258789,\r
+        "y": 2537.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3e98cd57.b05732",\r
+                "c601135d.8ebcb8",\r
+                "224a5da0.cc93c2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c601135d.8ebcb8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3504.740982055664,\r
+        "y": 2510.540725708008,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ad084de2.e988e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "224a5da0.cc93c2",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3500.250015258789,\r
+        "y": 2554.9666900634766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dcac28ad.d4a36"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad084de2.e988e8",\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": 3667.312515258789,\r
+        "y": 2509.826431274414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dcac28ad.d4a36",\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": 3668.250015258789,\r
+        "y": 2554.9666900634766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3e98cd57.b05732",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3512.250015258789,\r
+        "y": 2604.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "eb73cd4.3d8393"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb73cd4.3d8393",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3664.566665649414,\r
+        "y": 2608.566604614258,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "24f11631.71c6d2",\r
+                "e1bb190b.e249c8",\r
+                "5066cd38.1c6414",\r
+                "5dc3af5e.92a278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24f11631.71c6d2",\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": 3909.250015258789,\r
+        "y": 2500.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80dbb6de.b49838",\r
+        "type": "comment",\r
+        "name": "Update ROOT UNI's bw",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3871.250015258789,\r
+        "y": 2611.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "45c0e5f4.f4ad34",\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": 4549.250015258789,\r
+        "y": 2654.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5066cd38.1c6414",\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": 3863.249771118164,\r
+        "y": 2657.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a6e50ef0.8e2c5",\r
+                "13029608.69349a",\r
+                "208dd481.7b2554"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "13029608.69349a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4166.740737915039,\r
+        "y": 2568.340591430664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a4cd8e0.5d99ef"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "208dd481.7b2554",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4162.249771118164,\r
+        "y": 2612.766555786133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a8fd408a.63278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4cd8e0.5d99ef",\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": 4329.312271118164,\r
+        "y": 2567.6262969970703,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a8fd408a.63278",\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": 4330.249771118164,\r
+        "y": 2612.766555786133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "108d95bc.e243b2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4327.249771118164,\r
+        "y": 2662.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6fb618e0.320358",\r
+                "45c0e5f4.f4ad34"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a6e50ef0.8e2c5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4158.249771118164,\r
+        "y": 2662.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "108d95bc.e243b2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6fb618e0.320358",\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": 4509.250503540039,\r
+        "y": 2604.766616821289,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "501ef6fe.de27d8",\r
+        "type": "comment",\r
+        "name": "Delete LEAF UNI",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3857.566665649414,\r
+        "y": 2442.566604614258,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13751b77.2d6a35",\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": 3337.433334350586,\r
+        "y": 3775.166702270508,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "42ae91e0.cfd958",\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": 3470.433334350586,\r
+        "y": 3823.166702270508,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "f0c980e9.4c97f",\r
+        "type": "switchNode",\r
+        "name": "switch found-connectivity?",\r
+        "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3292.433334350586,\r
+        "y": 3874.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ddd00137.0625f8",\r
+                "49bc5de5.143edc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ddd00137.0625f8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3485.433334350586,\r
+        "y": 3875.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "baae6201.7fdf3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "baae6201.7fdf3",\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": 3629.433334350586,\r
+        "y": 3872.166702270508,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49bc5de5.143edc",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3489.433334350586,\r
+        "y": 3919.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8955d942.ba6bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8955d942.ba6bc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3628.433334350586,\r
+        "y": 3914.966751098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2c8b9b3a.156d1c",\r
+                "942c3741.17e638",\r
+                "ea29b2fb.fa9b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2c8b9b3a.156d1c",\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": 3878.832992553711,\r
+        "y": 3923.483352661133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "829ce491.bb75d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "829ce491.bb75d8",\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": 4100.832992553711,\r
+        "y": 3901.483352661133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b35a1aab.3a595"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b35a1aab.3a595",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4260.832504272461,\r
+        "y": 3881.483352661133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "335ed745.f60fb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f8921006.06e1a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4413.833023071289,\r
+        "y": 3862.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8d9ae5c3.a9c288",\r
+                "b59230eb.4dd598"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8d9ae5c3.a9c288",\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": 4610.333236694336,\r
+        "y": 3830.566604614258,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "942c3741.17e638",\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": 3985.333267211914,\r
+        "y": 3842.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ea29b2fb.fa9b",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.keepVPNBs?",\r
+        "xml": "\n<switch test=\"`$tmp.keepVPNBs`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3793.333267211914,\r
+        "y": 4263.566879272461,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1074f3a1.e40104",\r
+                "49cd5621.2fb45"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b59230eb.4dd598",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4578.566665649414,\r
+        "y": 3898.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "49cd5621.2fb45",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 180.3340301513672,\r
+        "y": 5327.567123413086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "94db503d.b50288"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1074f3a1.e40104",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4014.333999633789,\r
+        "y": 4365.566879272461,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "98bce2a7.eae0e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98bce2a7.eae0e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4157.333999633789,\r
+        "y": 4361.566879272461,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "700868f.6d62d18",\r
+                "9e6ef63b.470c28",\r
+                "98c15798.fc2c28",\r
+                "a474eb09.bdcea",\r
+                "4e75594e.323fe8",\r
+                "8985192.1ed6868",\r
+                "bbed6bed.031a08",\r
+                "9b06d9ac.c2c2b",\r
+                "35800841.c29e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a0c4e0f.7452f",\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--- mark LEAF connectivity as Modified because the underlay OTN tunnel list of this connectivity is now different\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": 206.68336486816406,\r
+        "y": 5283.567123413086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ce224df.f32d34",\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": 4033.567398071289,\r
+        "y": 4328.566879272461,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eb1e9e05.cb15c8",\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": 4846.351089477539,\r
+        "y": 4519.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1fff7e41.5e97da",\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": 5191.351089477539,\r
+        "y": 4381.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "384897a.b5a9568"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3095386e.cc8938",\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": 4898.351089477539,\r
+        "y": 4375.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1fff7e41.5e97da"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31c473ae.f4e764",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5153.351089477539,\r
+        "y": 4332.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ca81f202.b30418",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
+        "comments": "",\r
+        "x": 4842.351089477539,\r
+        "y": 4427.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b2478692.ea1d6",\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": 4850.351089477539,\r
+        "y": 4472.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eb2b76ee.d20fa8",\r
+        "type": "set",\r
+        "name": "unset otnTopoIdSrc",\r
+        "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
+        "comments": "",\r
+        "x": 4847.351089477539,\r
+        "y": 4325.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "384897a.b5a9568",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5100.351089477539,\r
+        "y": 4449.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a1cf1e6d.96424"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1cf1e6d.96424",\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": 5285.351089477539,\r
+        "y": 4448.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e54e7c9a.d7146"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e54e7c9a.d7146",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5477.351089477539,\r
+        "y": 4451.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "88338270.bbe028"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88338270.bbe028",\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": 5649.351089477539,\r
+        "y": 4447.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5518c3fe.6c8f7c",\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": 5025.351089477539,\r
+        "y": 4562.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "700868f.6d62d18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4542.351089477539,\r
+        "y": 4347.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7996b8d7.d892b8",\r
+                "fc1f2ae1.cce1f",\r
+                "ca81f202.b30418",\r
+                "b2478692.ea1d6",\r
+                "eb1e9e05.cb15c8",\r
+                "3095386e.cc8938",\r
+                "5518c3fe.6c8f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aec75daf.8805f",\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": 4527.351089477539,\r
+        "y": 4281.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fc1f2ae1.cce1f",\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": 4906.351089477539,\r
+        "y": 4268.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "74fcf491.6cb18c",\r
+                "27200085.4f11f",\r
+                "31c473ae.f4e764"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74fcf491.6cb18c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5142.351089477539,\r
+        "y": 4251.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "27200085.4f11f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5139.351089477539,\r
+        "y": 4292.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7996b8d7.d892b8",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
+        "comments": "",\r
+        "x": 4855.351089477539,\r
+        "y": 4225.350326538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9e6ef63b.470c28",\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": 4362.351089477539,\r
+        "y": 4679.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d0de5ca9.0d9ed8",\r
+        "type": "comment",\r
+        "name": "find all OTNs that have srcTtpOtnLayer and decrease their bandwidth",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4485.651382446289,\r
+        "y": 4718.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "98c15798.fc2c28",\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": 4383.651382446289,\r
+        "y": 4753.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "435ca159.b40ef",\r
+                "d725cba9.49bb",\r
+                "47bda61e.d52e08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "435ca159.b40ef",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4588.651382446289,\r
+        "y": 4750.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "293c4671.01eaaa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d725cba9.49bb",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4572.142349243164,\r
+        "y": 4812.324264526367,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "107ae3d6.bea87c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "47bda61e.d52e08",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4569.651382446289,\r
+        "y": 4855.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b006b7ef.442db8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "293c4671.01eaaa",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4756.651626586914,\r
+        "y": 4745.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "94070507.2dec4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "107ae3d6.bea87c",\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": 4734.713760375977,\r
+        "y": 4812.610000610352,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b006b7ef.442db8",\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": 4736.651382446289,\r
+        "y": 4854.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "94070507.2dec4",\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": 4994.651626586914,\r
+        "y": 4750.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "db3073d6.6320c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "db3073d6.6320c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5228.651382446289,\r
+        "y": 4757.750228881836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "37f340bd.0a3438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcec711e.ca4568",\r
+        "type": "comment",\r
+        "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5145.467300415039,\r
+        "y": 4828.916549682617,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "37f340bd.0a3438",\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": 5089.467300415039,\r
+        "y": 4877.916549682617,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ab022fe7.308e68",\r
+                "3eb6abc9.a7b9b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3eb6abc9.a7b9b4",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5332.467788696289,\r
+        "y": 4918.916061401367,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ab022fe7.308e68",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5343.467544555664,\r
+        "y": 4875.916275024414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "82036bd3.d2b678"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f49a5ce.76f168",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5570.450942993164,\r
+        "y": 4883.332778930664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c997366c.5a655",\r
+                "3dbdc2ab.0fbd3e",\r
+                "bd51e31d.644ad8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd343233.3d4178",\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": 5735.500747680664,\r
+        "y": 4768.333236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "355f9f95.f927e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "355f9f95.f927e8",\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": 5927.500747680664,\r
+        "y": 4757.333480834961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d2bb482a.6b0258"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c997366c.5a655",\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": 5684.017593383789,\r
+        "y": 4658.550277709961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3dbdc2ab.0fbd3e",\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": 5676.017593383789,\r
+        "y": 4707.550277709961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd51e31d.644ad8",\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": 5907.434585571289,\r
+        "y": 4888.716293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "284b8a46.878cde",\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": 5859.084487915039,\r
+        "y": 4936.033187866211,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8829575.9f3a28",\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": 5931.434585571289,\r
+        "y": 4849.716293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d2bb482a.6b0258",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6109.500747680664,\r
+        "y": 4736.333480834961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c2a155f5.9faa88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2a155f5.9faa88",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 6271.500747680664,\r
+        "y": 4725.333480834961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "560d06d2.09f708",\r
+                "97054905.242338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "560d06d2.09f708",\r
+        "type": "set",\r
+        "name": "unset tmp.the-connectivity",\r
+        "xml": "<set>\n<parameter name='tmp.the-connectivity.' value='' />\n",\r
+        "comments": "",\r
+        "x": 6468.500747680664,\r
+        "y": 4654.333480834961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "97054905.242338",\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": 6465.967544555664,\r
+        "y": 4753.550277709961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e8ad32eb.9df94",\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": 3123.483413696289,\r
+        "y": 3212.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf9533e5.c2371",\r
+        "type": "switchNode",\r
+        "name": "switch found-middle-man?",\r
+        "xml": "<switch test='`$found-middle-man`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3000.483413696289,\r
+        "y": 3322.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6d545915.394bc",\r
+                "8fea5bf9.a101b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d545915.394bc",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3184.483413696289,\r
+        "y": 3301.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a2317561.56953"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2317561.56953",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3327.483413696289,\r
+        "y": 3301.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a264af99.117e28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a264af99.117e28",\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": 3503.483413696289,\r
+        "y": 3299.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8fea5bf9.a101b8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3182.483413696289,\r
+        "y": 3356.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3fcc1946.2227c6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fcc1946.2227c6",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3029.483413696289,\r
+        "y": 3489.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "13751b77.2d6a35",\r
+                "42ae91e0.cfd958",\r
+                "f0c980e9.4c97f",\r
+                "15cfd0d2.c7223f",\r
+                "566cdb6f.69a6a4",\r
+                "130e3d11.8bda33"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b391ba6b.5d625",\r
+        "type": "comment",\r
+        "name": "Find LEAF connectivity",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3251.566665649414,\r
+        "y": 3729.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "15cfd0d2.c7223f",\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": 3334.016616821289,\r
+        "y": 3502.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "566cdb6f.69a6a4",\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": 3332.516372680664,\r
+        "y": 3548.283432006836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "69987cbf.ba882c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "69987cbf.ba882c",\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": 3595.516372680664,\r
+        "y": 3543.283432006836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6b4b309c.a784f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b4b309c.a784f8",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3755.515884399414,\r
+        "y": 3523.283432006836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "537f8032.a139c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "608ff90c.2e5fc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5092.517593383789,\r
+        "y": 3554.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b2d28e5c.e8fb18",\r
+                "d55c5cbc.26dad8",\r
+                "99b14097.a9c1b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b2d28e5c.e8fb18",\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": 5332.018081665039,\r
+        "y": 3503.366714477539,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d55c5cbc.26dad8",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5265.251510620117,\r
+        "y": 3576.366744995117,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3b35e0ea.5843e8",\r
+        "type": "comment",\r
+        "name": "Find LEAF and ROOT connectivities and remove UNI from PNC",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4458.567642211914,\r
+        "y": 5110.566879272461,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a474eb09.bdcea",\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": 4357.000503540039,\r
+        "y": 5162.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bbed6bed.031a08",\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": 4508.000503540039,\r
+        "y": 5605.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b06d9ac.c2c2b",\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": 4323.000503540039,\r
+        "y": 5672.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "da6e8509.7a87a8",\r
+                "16a08f38.4e9a49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "da6e8509.7a87a8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4588.000503540039,\r
+        "y": 5657.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c2e76143.b6b218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16a08f38.4e9a49",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4584.000503540039,\r
+        "y": 5705.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8fe2e656.247af"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c2e76143.b6b218",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4744.000503540039,\r
+        "y": 5653.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9d183ed0.0c624"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8fe2e656.247af",\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": 4732.000503540039,\r
+        "y": 5700.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2c1c4698.bb1b8a",\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": 5164.000747680664,\r
+        "y": 5595.483383178711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "39f2eed6.a40982",\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": 4566.417495727539,\r
+        "y": 5191.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4e75594e.323fe8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4337.417495727539,\r
+        "y": 5280.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "39f2eed6.a40982",\r
+                "ec0a5547.230718"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ec0a5547.230718",\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": 4573.417495727539,\r
+        "y": 5273.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f4f0abfb.959d98",\r
+                "6d247b2e.c14f4c",\r
+                "ac6604fb.6b0698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f4f0abfb.959d98",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4768.917617797852,\r
+        "y": 5225.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7a4a15ea.cb5f7c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d247b2e.c14f4c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4760.917617797852,\r
+        "y": 5280.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9d792ff5.12f1d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a4a15ea.cb5f7c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4913.299942016602,\r
+        "y": 5225.422744750977,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "22a044c0.3de0ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22a044c0.3de0ec",\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": 5097.417495727539,\r
+        "y": 5223.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "afda241e.dc7d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "afda241e.dc7d4",\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": 5292.417495727539,\r
+        "y": 5223.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7162d2d.84a60ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ac6604fb.6b0698",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4765.917617797852,\r
+        "y": 5337.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "cc0a2fe1.d0b358"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc0a2fe1.d0b358",\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": 4917.917617797852,\r
+        "y": 5338.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9d792ff5.12f1d8",\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": 4928.917617797852,\r
+        "y": 5281.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9e3505a2.ad7f68",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5674.417495727539,\r
+        "y": 5227.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ea7ae99e.7714a",\r
+                "97767b77.532b48",\r
+                "bd9bb3b2.0d8698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7162d2d.84a60ac",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5495.417495727539,\r
+        "y": 5227.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9e3505a2.ad7f68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "97767b77.532b48",\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": 5880.417495727539,\r
+        "y": 5240.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8ede340c.5a66c8",\r
+                "74477750.32976",\r
+                "ea5203af.a882c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea7ae99e.7714a",\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": 5910.417495727539,\r
+        "y": 5188.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ede340c.5a66c8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6090.417495727539,\r
+        "y": 5231.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5e0e6cb.070b594"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "74477750.32976",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6082.417495727539,\r
+        "y": 5286.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8bfb7c50.692e68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea5203af.a882c8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6087.417495727539,\r
+        "y": 5343.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1d7cc732.18ead1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1d7cc732.18ead1",\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": 6239.417495727539,\r
+        "y": 5344.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8bfb7c50.692e68",\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": 6250.417495727539,\r
+        "y": 5289.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e0e6cb.070b594",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6234.799819946289,\r
+        "y": 5229.422744750977,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "20b06727.e2f538"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20b06727.e2f538",\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": 6449.417495727539,\r
+        "y": 5225.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd9bb3b2.0d8698",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 5830.417495727539,\r
+        "y": 5304.767074584961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8985192.1ed6868",\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": 4478.917739868164,\r
+        "y": 5385.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "62c705b1.502d1c",\r
+                "1b875464.e01f44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "62c705b1.502d1c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4839.417495727539,\r
+        "y": 5393.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d191549e.030218"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d191549e.030218",\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": 4997.417495727539,\r
+        "y": 5393.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "18bca107.e50237",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5000.917495727539,\r
+        "y": 5433.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b875464.e01f44",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4843.417495727539,\r
+        "y": 5433.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "18bca107.e50237"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8380c690.faafc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5152.134536743164,\r
+        "y": 5647.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1f713bf9.1daaec",\r
+                "39b06195.a8d3be"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "39b06195.a8d3be",\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": 5394.134292602539,\r
+        "y": 5597.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fbd8ede5.0e2c68",\r
+                "fe4285c6.cb2308",\r
+                "3fecf8f4.4ce3f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fbd8ede5.0e2c68",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5589.634536743164,\r
+        "y": 5531.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "10a1ac3d.04aa44"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fe4285c6.cb2308",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5585.634536743164,\r
+        "y": 5587.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f166d116.9a8368"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10a1ac3d.04aa44",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5734.016738891602,\r
+        "y": 5549.022354125977,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2f38d9ab.5bfbbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f38d9ab.5bfbbe",\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": 5918.134292602539,\r
+        "y": 5547.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e1d73c4d.409db8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3fecf8f4.4ce3f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5595.634536743164,\r
+        "y": 5632.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ba50366d.81301"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ba50366d.81301",\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": 5774.634536743164,\r
+        "y": 5648.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f166d116.9a8368",\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": 5756.634536743164,\r
+        "y": 5600.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d5ce61.ba31c9a",\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": 5305.634536743164,\r
+        "y": 5702.966293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8374d45d.c41588",\r
+                "6d72c625.482d5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8374d45d.c41588",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5654.134536743164,\r
+        "y": 5684.966293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "53e0b67e.6fc768"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "53e0b67e.6fc768",\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": 5910.134536743164,\r
+        "y": 5687.966293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1ee806c.abb34f9",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5862.634536743164,\r
+        "y": 5728.966293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6d72c625.482d5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5664.134536743164,\r
+        "y": 5733.966293334961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1ee806c.abb34f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1f713bf9.1daaec",\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": 5387.134292602539,\r
+        "y": 5515.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e1d73c4d.409db8",\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": 6113.134292602539,\r
+        "y": 5547.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b323e9c9.c4083"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be7ed337.773238",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 6495.134292602539,\r
+        "y": 5551.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1a0db354.43c10d",\r
+                "711b7fd1.39246",\r
+                "1b22d01c.0f5988"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b323e9c9.c4083",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6316.134292602539,\r
+        "y": 5551.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "be7ed337.773238"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "711b7fd1.39246",\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": 6701.134292602539,\r
+        "y": 5564.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d1222469.959ab8",\r
+                "2ce3fcd5.8dd1cc",\r
+                "95dec9e7.124ae"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1a0db354.43c10d",\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": 6731.134292602539,\r
+        "y": 5512.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d1222469.959ab8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6911.134292602539,\r
+        "y": 5555.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "15af61ce.93dc56"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ce3fcd5.8dd1cc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6903.134292602539,\r
+        "y": 5610.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "85d2a0c5.7b74c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95dec9e7.124ae",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6908.134292602539,\r
+        "y": 5667.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6c15ae6.0ebeb5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6c15ae6.0ebeb5",\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": 7060.134292602539,\r
+        "y": 5668.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "85d2a0c5.7b74c",\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": 7071.134292602539,\r
+        "y": 5613.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "15af61ce.93dc56",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 7055.516616821289,\r
+        "y": 5553.022354125977,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "370a475d.301248"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "370a475d.301248",\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": 7270.134292602539,\r
+        "y": 5549.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b22d01c.0f5988",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 6651.134292602539,\r
+        "y": 5628.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "537f8032.a139c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3880.566665649414,\r
+        "y": 3517.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4c0087b1.a54ff",\r
+                "543f9693.a47c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c0087b1.a54ff",\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": 4071.149917602539,\r
+        "y": 3460.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "543f9693.a47c",\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": 4118.149917602539,\r
+        "y": 3531.366683959961,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e4164ac6.db6c38",\r
+                "5e838a6b.5e0f0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e4164ac6.db6c38",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4356.567398071289,\r
+        "y": 3490.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4d697267.53d1ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e838a6b.5e0f0c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4363.567611694336,\r
+        "y": 3547.566604614258,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fa76b584.bdbd9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4d697267.53d1ec",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4484.567886352539,\r
+        "y": 3486.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "130e3d11.8bda33",\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": 3339.766616821289,\r
+        "y": 3444.966781616211,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "99b14097.a9c1b8",\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": 5321.600845336914,\r
+        "y": 3446.966812133789,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "335ed745.f60fb8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4433.350357055664,\r
+        "y": 3967.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "64f170e7.ccc2d",\r
+                "d03c542e.06f138"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64f170e7.ccc2d",\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": 4606.233169555664,\r
+        "y": 3962.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d03c542e.06f138",\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": 4609.233169555664,\r
+        "y": 4009.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d5d4471e.75f138",\r
+                "fea86c4e.6eb66",\r
+                "9876b951.6d5f9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5d4471e.75f138",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4781.233169555664,\r
+        "y": 3993.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c08f73d3.bbadb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fea86c4e.6eb66",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4781.724136352539,\r
+        "y": 4039.417037963867,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9876b951.6d5f9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4782.233169555664,\r
+        "y": 4079.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c08f73d3.bbadb",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4942.233169555664,\r
+        "y": 3989.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "71418de6.0d2394",\r
+                "d8794541.6fe0d",\r
+                "69521be3.cd51ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7f40068a.c630c8",\r
+        "type": "comment",\r
+        "name": "find the node part of the uni.id (uni-tp-id-node-part)",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5275.233169555664,\r
+        "y": 3920.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d8794541.6fe0d",\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": 5210.233169555664,\r
+        "y": 3977.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "eb66d929.7d0b9",\r
+                "25fd01e0.613c0e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25fd01e0.613c0e",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5433.233169555664,\r
+        "y": 3963.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b7f38bd8.a0bf3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb66d929.7d0b9",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5435.233169555664,\r
+        "y": 3996.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "23361310.a1a764"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b7f38bd8.a0bf3",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5581.233169555664,\r
+        "y": 3956.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "16198ed9.69ab49"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23361310.a1a764",\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": 5578.233169555664,\r
+        "y": 3993.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "16198ed9.69ab49",\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": 5758.233169555664,\r
+        "y": 3956.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "71418de6.0d2394",\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": 5254.233169555664,\r
+        "y": 4111.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "adaeb862.473368",\r
+                "2ff17e89.b4833a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "adaeb862.473368",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5535.233169555664,\r
+        "y": 4088.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b52ce206.918da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ff17e89.b4833a",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5528.233169555664,\r
+        "y": 4147.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b7c68567.02237"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b52ce206.918da8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5665.233169555664,\r
+        "y": 4092.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b7c68567.02237",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5670.233169555664,\r
+        "y": 4146.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e0f7b55.335ff48",\r
+                "cb97a1e2.dfe9f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e0f7b55.335ff48",\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": 5862.233169555664,\r
+        "y": 4113.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8511bfc9.24e818",\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": 5878.233169555664,\r
+        "y": 4165.843002319336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cb97a1e2.dfe9f8",\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": 5896.516860961914,\r
+        "y": 4235.433334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "69521be3.cd51ac",\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": 5173.216567993164,\r
+        "y": 4061.333236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "94db503d.b50288",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.stillHasUni?",\r
+        "xml": "\n<switch test=\"`$tmp.stillHasUni`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 409.4172821044922,\r
+        "y": 5331.532943725586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "98c37402.345048",\r
+                "44b19987.103118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e023344.61a9f4",\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": 4314.199722290039,\r
+        "y": 5495.416732788086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "76f7324c.5ab6f4",\r
+                "92aa08d0.816178",\r
+                "84add947.e60b78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "26cdc27d.9e4c6e",\r
+        "type": "comment",\r
+        "name": "Update ROOT UNI's bw -- ALREADY DONE",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4312.200210571289,\r
+        "y": 5447.416976928711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eb8b95c0.79475",\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": 4929.199966430664,\r
+        "y": 5565.416976928711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "92aa08d0.816178",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4531.690933227539,\r
+        "y": 5465.990951538086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8b26daec.dead98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84add947.e60b78",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4527.199966430664,\r
+        "y": 5510.416915893555,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6ddd64cd.a4b574"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8b26daec.dead98",\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": 4694.262466430664,\r
+        "y": 5465.276657104492,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ddd64cd.a4b574",\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": 4695.199966430664,\r
+        "y": 5510.416915893555,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5ac227ed.4c0b7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4692.199966430664,\r
+        "y": 5560.416976928711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "176f7b0f.04a15d",\r
+                "eb8b95c0.79475"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "76f7324c.5ab6f4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4523.199966430664,\r
+        "y": 5560.416976928711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5ac227ed.4c0b7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "176f7b0f.04a15d",\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": 4885.200942993164,\r
+        "y": 5485.416976928711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2932b285.c1e58e",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5313.900161743164,\r
+        "y": 5423.183578491211,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9d183ed0.0c624",\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": 5339.683364868164,\r
+        "y": 5465.383773803711,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "98c37402.345048",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 593.5669708251953,\r
+        "y": 5382.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e53158e8.a8e898"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "44b19987.103118",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 576.5669097900391,\r
+        "y": 5304.566635131836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d82acda1.7d932"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "add9e89e.85dcc8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 705.5667572021484,\r
+        "y": 4391.566360473633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1b682749.fdf219",\r
+                "555aecf4.9d0abc",\r
+                "fa8f69fe.c57418",\r
+                "924743a9.bdd1d",\r
+                "eeb2edff.f77838",\r
+                "b3758874.8f232",\r
+                "9c7760f0.090d48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1b682749.fdf219",\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": 957.2501068115234,\r
+        "y": 4369.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "20195ed4.4f043a",\r
+        "type": "comment",\r
+        "name": "Find LEAF and ROOT connectivities and remove UNI from PNC",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1058.8172454833984,\r
+        "y": 4317.699661254883,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fa4061c.f2e2c8",\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": 1166.6670989990234,\r
+        "y": 4398.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "555aecf4.9d0abc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 937.6670989990234,\r
+        "y": 4487.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9fa4061c.f2e2c8",\r
+                "a9e7fb46.8bda4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a9e7fb46.8bda4",\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": 1173.6670989990234,\r
+        "y": 4480.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "caf23ffe.0efab",\r
+                "c3c6018c.a6e8b8",\r
+                "a18cc13f.db156"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "caf23ffe.0efab",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1369.167221069336,\r
+        "y": 4432.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f910fabf.7d6ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3c6018c.a6e8b8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1361.167221069336,\r
+        "y": 4487.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7989bd98.acfa84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f910fabf.7d6ff8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1513.549545288086,\r
+        "y": 4432.555526733398,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ffb71773.7c6d48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ffb71773.7c6d48",\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": 1697.6670989990234,\r
+        "y": 4430.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a91274f1.8c8af"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a91274f1.8c8af",\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": 1892.6670989990234,\r
+        "y": 4430.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4cf12171.7f9938"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a18cc13f.db156",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1366.167221069336,\r
+        "y": 4544.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3d61f539.cfb7aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3d61f539.cfb7aa",\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": 1518.167221069336,\r
+        "y": 4545.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7989bd98.acfa84",\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": 1529.167221069336,\r
+        "y": 4488.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a5cb8297.ace3c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2274.6670989990234,\r
+        "y": 4434.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2680c237.68eca6",\r
+                "fc040fd7.89c84",\r
+                "2a46caf5.5b4116"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4cf12171.7f9938",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2095.6670989990234,\r
+        "y": 4434.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a5cb8297.ace3c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fa8f69fe.c57418",\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": 1079.1673431396484,\r
+        "y": 4592.499465942383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f60ef44c.acdc6",\r
+                "f2d3c91e.712808"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2d3c91e.712808",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1443.6670989990234,\r
+        "y": 4640.499465942383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "95261a80.102e28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f60ef44c.acdc6",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1439.6670989990234,\r
+        "y": 4600.499465942383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "93ef3053.4d666"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93ef3053.4d666",\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": 1597.6670989990234,\r
+        "y": 4600.499465942383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "95261a80.102e28",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1601.1670989990234,\r
+        "y": 4640.499465942383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc040fd7.89c84",\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": 2480.6670989990234,\r
+        "y": 4447.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3d8ec7b4.a91e7",\r
+                "f9528a5a.50e1f8",\r
+                "f194c3a5.898d88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2680c237.68eca6",\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": 2510.6670989990234,\r
+        "y": 4395.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d8ec7b4.a91e7",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2690.6670989990234,\r
+        "y": 4438.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "e578c39c.344a5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f9528a5a.50e1f8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2682.6670989990234,\r
+        "y": 4493.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b1a83287.5e83a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f194c3a5.898d88",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2687.6670989990234,\r
+        "y": 4550.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d1a6ffed.890f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1a6ffed.890f4",\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": 2839.6670989990234,\r
+        "y": 4551.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b1a83287.5e83a",\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": 2850.6670989990234,\r
+        "y": 4496.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e578c39c.344a5",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2835.0494232177734,\r
+        "y": 4436.555526733398,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dfc70a8a.f85818"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfc70a8a.f85818",\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": 3049.6670989990234,\r
+        "y": 4432.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2a46caf5.5b4116",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2430.6670989990234,\r
+        "y": 4511.899856567383,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "924743a9.bdd1d",\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": 1108.2501068115234,\r
+        "y": 4812.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "eeb2edff.f77838",\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": 923.2501068115234,\r
+        "y": 4879.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "33b186f1.cd717a",\r
+                "46c96756.fc5c58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33b186f1.cd717a",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1188.2501068115234,\r
+        "y": 4864.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "cdcc95c0.40a4e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "46c96756.fc5c58",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1184.2501068115234,\r
+        "y": 4912.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5f6a4b73.d387f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cdcc95c0.40a4e8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1344.2501068115234,\r
+        "y": 4860.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5134ba22.f81734"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f6a4b73.d387f4",\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": 1332.2501068115234,\r
+        "y": 4907.616165161133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "73beafc9.2c20a8",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 1613.1497650146484,\r
+        "y": 4811.316360473633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5134ba22.f81734",\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": 1638.9329681396484,\r
+        "y": 4853.516555786133,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "39215cce.b57e94",\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": 1052.5667572021484,\r
+        "y": 4126.883255004883,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d82acda1.7d932",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 658.5667877197266,\r
+        "y": 4131.566390991211,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "39215cce.b57e94",\r
+                "add9e89e.85dcc8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e53158e8.a8e898",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 742.0167388916016,\r
+        "y": 5384.083236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5f6a4675.ad6e08",\r
+                "454309b7.55d6d8",\r
+                "1e655667.3c83ca",\r
+                "36ecf6b9.5afb0a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f6a4675.ad6e08",\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": 1103.4000396728516,\r
+        "y": 5147.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "454309b7.55d6d8",\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": 1014.4000396728516,\r
+        "y": 5216.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "1e655667.3c83ca",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 905.5666656494141,\r
+        "y": 5451.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "96f2f082.9a3518",\r
+                "4b895364.485e14",\r
+                "2fffa63d.405042"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd546556.218588",\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": 2614.565933227539,\r
+        "y": 5376.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d9b04f13.72ba2",\r
+                "6f67d0fd.f943c",\r
+                "d85e2a4.827e658"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb3b9787.8ee65",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2564.565933227539,\r
+        "y": 5440.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "89310244.45d948",\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": 2644.565933227539,\r
+        "y": 5324.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d9b04f13.72ba2",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2932.5660552978516,\r
+        "y": 5307.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ca13eb43.a9266"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f67d0fd.f943c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2924.5660552978516,\r
+        "y": 5362.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7e30219a.74a1a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d85e2a4.827e658",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2929.5660552978516,\r
+        "y": 5419.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1fa2a159.15189f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1fa2a159.15189f",\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": 3081.5660552978516,\r
+        "y": 5420.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7e30219a.74a1a8",\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": 3092.5660552978516,\r
+        "y": 5365.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ca13eb43.a9266",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3076.9483795166016,\r
+        "y": 5304.73893737793,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3ed958.dd670ea8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3ed958.dd670ea8",\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": 3291.5660552978516,\r
+        "y": 5301.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "96f2f082.9a3518",\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": 1187.566665649414,\r
+        "y": 5320.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd5e9405.7c27a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1398.0667877197266,\r
+        "y": 5459.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "de47c705.79a8b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b3e7adb.d2bb84",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1401.0667877197266,\r
+        "y": 5347.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a396ce34.a18e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a85067c1.2cd6d",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1393.0667877197266,\r
+        "y": 5402.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d6007294.f11f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a396ce34.a18e2",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1535.448989868164,\r
+        "y": 5341.739028930664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7dd1d4e7.a0f1bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de47c705.79a8b8",\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": 1550.0667877197266,\r
+        "y": 5460.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d6007294.f11f4",\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": 1561.0667877197266,\r
+        "y": 5403.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7dd1d4e7.a0f1bc",\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": 1722.566177368164,\r
+        "y": 5343.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "559db4ec.64792c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "559db4ec.64792c",\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": 1950.566177368164,\r
+        "y": 5336.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "799fadac.e2e6ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b895364.485e14",\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": 1205.566665649414,\r
+        "y": 5395.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bd5e9405.7c27a8",\r
+                "6b3e7adb.d2bb84",\r
+                "a85067c1.2cd6d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "799fadac.e2e6ec",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2156.566177368164,\r
+        "y": 5333.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7cbbce76.57d9f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7cbbce76.57d9f",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2371.5655670166016,\r
+        "y": 5336.083267211914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "89310244.45d948",\r
+                "bd546556.218588",\r
+                "eb3b9787.8ee65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fffa63d.405042",\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": 1329.3333892822266,\r
+        "y": 5544.483169555664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fb4bb7df.e56c5",\r
+                "af1e6659.9dd9c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fb4bb7df.e56c5",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1675.8333892822266,\r
+        "y": 5537.483169555664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "84518bf4.248028"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "af1e6659.9dd9c8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1679.8333892822266,\r
+        "y": 5577.483169555664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b347040e.1f286"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84518bf4.248028",\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": 1833.8333892822266,\r
+        "y": 5537.483169555664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b347040e.1f286",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1837.3333892822266,\r
+        "y": 5577.483169555664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3d1d7271.d95cbe"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "36ecf6b9.5afb0a",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.MMstillHasUni?",\r
+        "xml": "\n<switch test=\"`$tmp.MMstillHasUni`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 938.8667144775391,\r
+        "y": 5874.283432006836,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4a5bd207.ca776c",\r
+                "b171c0.d456c64"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a5bd207.ca776c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1132.866714477539,\r
+        "y": 5701.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b00c5aa2.01bbe8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b171c0.d456c64",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1119.0334014892578,\r
+        "y": 6023.883529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "782b8611.563688"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b00c5aa2.01bbe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1281.033462524414,\r
+        "y": 5700.883560180664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8daf379c.cd379",\r
+                "ae051555.1a065",\r
+                "5d9c1c4d.83462c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8daf379c.cd379",\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": 1702.883316040039,\r
+        "y": 5672.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae051555.1a065",\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": 1517.883316040039,\r
+        "y": 5739.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f1328e61.aaecf8",\r
+                "75cc2f9e.02c51"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f1328e61.aaecf8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1782.883316040039,\r
+        "y": 5724.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "320d795a.de0396"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "75cc2f9e.02c51",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1781.883316040039,\r
+        "y": 5772.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9b6d9f14.bbdc1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "320d795a.de0396",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1938.883316040039,\r
+        "y": 5720.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d445fc4a.df5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b6d9f14.bbdc1",\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": 1929.883316040039,\r
+        "y": 5767.283462524414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d445fc4a.df5c",\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": 2247.5660552978516,\r
+        "y": 5714.183853149414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d355d862.978bc",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2221.7828521728516,\r
+        "y": 5671.983657836914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "782b8611.563688",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1256.600112915039,\r
+        "y": 6023.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dfb91948.e397a8",\r
+                "a8afb078.60b068",\r
+                "9067b91d.deea4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dfb91948.e397a8",\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": 1561.9162139892578,\r
+        "y": 5956.383438110352,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9cf25842.080a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9cf25842.080a8",\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": 1870.250015258789,\r
+        "y": 6012.38346862793,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6539b459.18686c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6539b459.18686c",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2049.9166412353516,\r
+        "y": 6012.383560180664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "eb5ca2dd.0acd08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eb5ca2dd.0acd08",\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": 2249.916519165039,\r
+        "y": 6012.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d2d794d6.23b038",\r
+                "fd78cb11.7b7858",\r
+                "dc3bf10c.53584"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d2d794d6.23b038",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2456.916275024414,\r
+        "y": 6062.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2ee18ab4.452c46"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6518db29.e12ccc",\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": 2434.149917602539,\r
+        "y": 6246.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1586acc8.b40733",\r
+                "3f4ac64b.7a4a4a",\r
+                "c51a0fc1.cf0b78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ead9053.75b73",\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": 1603.1498565673828,\r
+        "y": 6289.583145141602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "606f2389.64cdcc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "606f2389.64cdcc",\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": 1800.1498565673828,\r
+        "y": 6303.583145141602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c7f0bc3b.019c9",\r
+                "c9900403.e4a84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c7f0bc3b.019c9",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2004.149917602539,\r
+        "y": 6206.583145141602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b4e58d4e.4eaf1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b4e58d4e.4eaf1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2185.149917602539,\r
+        "y": 6222.583145141602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6518db29.e12ccc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c9900403.e4a84",\r
+        "type": "outcome",\r
+        "name": "uni",\r
+        "xml": "<outcome value='uni'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2014.149917602539,\r
+        "y": 6464.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5c8dbf44.909798"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5c8dbf44.909798",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2177.149917602539,\r
+        "y": 6464.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "972de022.0ff4c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "972de022.0ff4c8",\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": 2420.149917602539,\r
+        "y": 6464.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7d50183.fdbf5",\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": 1388.149917602539,\r
+        "y": 7230.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ee18ab4.452c46",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1429.1498565673828,\r
+        "y": 6287.583145141602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2ead9053.75b73",\r
+                "d7d50183.fdbf5",\r
+                "e2860ec7.2879b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1586acc8.b40733",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2645.149917602539,\r
+        "y": 6248.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "31acc7de.eb35a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3f4ac64b.7a4a4a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2645.640884399414,\r
+        "y": 6294.157272338867,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a537397f.244a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c51a0fc1.cf0b78",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2643.149917602539,\r
+        "y": 6337.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c765f98e.c8b24"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc3bf10c.53584",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2480.966323852539,\r
+        "y": 5963.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd78cb11.7b7858",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2478.475357055664,\r
+        "y": 6006.609298706055,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8afb078.60b068",\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": 1559.0834503173828,\r
+        "y": 6017.983047485352,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "31acc7de.eb35a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2811.149917602539,\r
+        "y": 6238.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d6296a84.0c07b",\r
+                "f2b7ba42.95aca8",\r
+                "d7abab02.efd25",\r
+                "933064b1.3f6b68",\r
+                "31b8d600.38568a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c765f98e.c8b24",\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": 2810.149917602539,\r
+        "y": 6336.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a537397f.244a6",\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": 2808.2122955322266,\r
+        "y": 6294.443008422852,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d6296a84.0c07b",\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": 3033.149917602539,\r
+        "y": 5956.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f2b7ba42.95aca8",\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": 3059.149917602539,\r
+        "y": 6073.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c16bbe6e.2f18e8",\r
+                "8e5054c2.6d8be8",\r
+                "8a22e0f4.ac84d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7abab02.efd25",\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": 3162.149917602539,\r
+        "y": 6340.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fc236214.f51f38",\r
+                "6b8cfbc.a2c4d84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "933064b1.3f6b68",\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": 3100.149917602539,\r
+        "y": 6475.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2126f3a4.668d54",\r
+                "a948f36a.4c2d08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31b8d600.38568a",\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": 3081.149917602539,\r
+        "y": 6591.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c16bbe6e.2f18e8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3254.6500396728516,\r
+        "y": 6025.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "78bd184e.3e97c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8e5054c2.6d8be8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3246.6500396728516,\r
+        "y": 6080.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "12475557.66bd73"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78bd184e.3e97c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3389.032241821289,\r
+        "y": 6020.238998413086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6ef9af4.3be5bd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a22e0f4.ac84d",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3251.6500396728516,\r
+        "y": 6137.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "28978481.66e84c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "28978481.66e84c",\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": 3403.6500396728516,\r
+        "y": 6138.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "12475557.66bd73",\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": 3414.6500396728516,\r
+        "y": 6081.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a948f36a.4c2d08",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3353.149917602539,\r
+        "y": 6453.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a8dc909e.5f43f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2126f3a4.668d54",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3353.149917602539,\r
+        "y": 6509.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6ef9af4.3be5bd",\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": 3576.149429321289,\r
+        "y": 6021.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3b761727.cf2a9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b761727.cf2a9",\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": 3817.149429321289,\r
+        "y": 6012.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "68d5173c.b0347"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8dc909e.5f43f8",\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": 3703.149429321289,\r
+        "y": 6443.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dcfeac9e.5fc9a8",\r
+                "8f5d17cf.8dabd"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fc236214.f51f38",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3469.649429321289,\r
+        "y": 6365.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f765e05b.501478"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b8cfbc.a2c4d84",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3470.649429321289,\r
+        "y": 6310.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4d6a8560.f17a1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f765e05b.501478",\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": 3641.649429321289,\r
+        "y": 6363.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4d6a8560.f17a1c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3638.149429321289,\r
+        "y": 6312.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "432d0671.cb443",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4174.149185180664,\r
+        "y": 5961.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "78d865b4.b939ac",\r
+                "5830c911.f22ee",\r
+                "aa227269.131cb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "68d5173c.b0347",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4023.149429321289,\r
+        "y": 6009.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "432d0671.cb443"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcfeac9e.5fc9a8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4035.649429321289,\r
+        "y": 6417.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7c5aa740.2ac998"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f5d17cf.8dabd",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4039.649429321289,\r
+        "y": 6457.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "61ae232.1605c5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "61ae232.1605c5c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4227.149429321289,\r
+        "y": 6461.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c5aa740.2ac998",\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": 4223.649429321289,\r
+        "y": 6421.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5830c911.f22ee",\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": 4380.149185180664,\r
+        "y": 5974.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9672ea53.f6fc4",\r
+                "10a5745e.fad27c",\r
+                "4c3d97fc.40ae6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "78d865b4.b939ac",\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": 4410.149185180664,\r
+        "y": 5922.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9672ea53.f6fc4",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4590.149185180664,\r
+        "y": 5965.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a62535f9.bce6d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10a5745e.fad27c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4582.149185180664,\r
+        "y": 6020.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f6286309.b286"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c3d97fc.40ae6",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4587.149185180664,\r
+        "y": 6077.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5b2489d7.40c81"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "aa227269.131cb",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4330.149185180664,\r
+        "y": 6038.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5b2489d7.40c81",\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": 4739.149185180664,\r
+        "y": 6078.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f6286309.b286",\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": 4750.149185180664,\r
+        "y": 6023.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a62535f9.bce6d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4734.531509399414,\r
+        "y": 5963.238906860352,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "34794224.ac9ad6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "34794224.ac9ad6",\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": 4949.149185180664,\r
+        "y": 5959.583236694336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8d1e7ba3.e7c148",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.connectivity.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.connectivity.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.connectivity.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.connectivity.access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 1684.9166412353516,\r
+        "y": 6757.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6711b1e6.015f5",\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": 1710.9166412353516,\r
+        "y": 6874.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "89c94611.e7551",\r
+                "372b07e6.2f493",\r
+                "93b4846e.f3d23"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89c94611.e7551",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1906.416763305664,\r
+        "y": 6826.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bdc72764.d7a65"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "372b07e6.2f493",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1898.416763305664,\r
+        "y": 6881.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4210f39b.7722f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bdc72764.d7a65",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2040.7989654541016,\r
+        "y": 6820.839096069336,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8221a60d.0a6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93b4846e.f3d23",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1903.416763305664,\r
+        "y": 6938.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "534b689.ea55a98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "534b689.ea55a98",\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": 2055.416763305664,\r
+        "y": 6939.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4210f39b.7722f4",\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": 2066.416763305664,\r
+        "y": 6882.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8221a60d.0a6",\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": 2227.9161529541016,\r
+        "y": 6822.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "70fb3446.1294d4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70fb3446.1294d4",\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": 2468.9161529541016,\r
+        "y": 6813.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7728eab2.206384"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e0f68b.e6e5b18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2825.9159088134766,\r
+        "y": 6762.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1f9f6b0b.3a7bad",\r
+                "3a372a08.82b95e",\r
+                "20000492.69e4a4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7728eab2.206384",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2674.9161529541016,\r
+        "y": 6810.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5e0f68b.e6e5b18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a372a08.82b95e",\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": 3031.9159088134766,\r
+        "y": 6775.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "78de1b03.bad77c",\r
+                "d65c6861.1c4098",\r
+                "dc64de9d.8956c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "20000492.69e4a4",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 2981.9159088134766,\r
+        "y": 6839.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1f9f6b0b.3a7bad",\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": 3061.9159088134766,\r
+        "y": 6723.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "78de1b03.bad77c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3241.9159088134766,\r
+        "y": 6766.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "13eb6200.778f26"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d65c6861.1c4098",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3233.9159088134766,\r
+        "y": 6821.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bff87948.e35e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc64de9d.8956c8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3238.9159088134766,\r
+        "y": 6878.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "573969ab.842a48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "573969ab.842a48",\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": 3390.9159088134766,\r
+        "y": 6879.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bff87948.e35e",\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": 3401.9159088134766,\r
+        "y": 6824.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13eb6200.778f26",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3386.2982330322266,\r
+        "y": 6763.839004516602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f7bc1d31.5e03a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7bc1d31.5e03a",\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": 3600.9159088134766,\r
+        "y": 6760.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e2860ec7.2879b",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1476.9166412353516,\r
+        "y": 6885.183334350586,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8d1e7ba3.e7c148",\r
+                "6711b1e6.015f5",\r
+                "91e5ef44.c1379"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91e5ef44.c1379",\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": 1759.116714477539,\r
+        "y": 7026.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9d430c54.8affb",\r
+                "4e9e0184.b64f38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e9e0184.b64f38",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2012.116714477539,\r
+        "y": 7004.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8c955553.2a5b4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d430c54.8affb",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2012.116714477539,\r
+        "y": 7060.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8c955553.2a5b4",\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": 2362.116226196289,\r
+        "y": 6994.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7b6e5c2.eee3ea4",\r
+                "23885c26.87d57c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7b6e5c2.eee3ea4",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2694.616226196289,\r
+        "y": 6968.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6e7264f6.b603bc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23885c26.87d57c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2698.616226196289,\r
+        "y": 7008.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7c20df87.4ce228"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c20df87.4ce228",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2886.116226196289,\r
+        "y": 7012.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e7264f6.b603bc",\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": 2882.616226196289,\r
+        "y": 6972.383529663086,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3758874.8f232",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Delete Underlay OTN tunnel from the LEAF ethernet Service",\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 + '/underlay/otn-tunnels=' + $tmp.underlayOTN`\" />\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": 1114.933364868164,\r
+        "y": 4711.966567993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d41942d3.562958",\r
+                "ebe016f8.97161"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d41942d3.562958",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1543.433120727539,\r
+        "y": 4699.966567993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5ea52c46.125904"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ebe016f8.97161",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1547.433120727539,\r
+        "y": 4739.966567993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f81bc98a.2445d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ea52c46.125904",\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": 1701.433120727539,\r
+        "y": 4699.966567993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f81bc98a.2445d",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1704.933120727539,\r
+        "y": 4739.966567993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "82036bd3.d2b678",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5138.683364868164,\r
+        "y": 5032.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "54859efe.15c158",\r
+                "fd20f3ef.b5a108",\r
+                "bf190cd2.45b99"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bf190cd2.45b99",\r
+        "type": "set",\r
+        "name": "set vpnNameToSearch",\r
+        "xml": "<set>\n<parameter name='vpnNameToSearch' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-name`\" />\n",\r
+        "comments": "",\r
+        "x": 5365.683364868164,\r
+        "y": 4977.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54859efe.15c158",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-searchVpnName",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-searchVpnName' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5519.683364868164,\r
+        "y": 5029.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd20f3ef.b5a108",\r
+        "type": "switchNode",\r
+        "name": "switch $foundVpnName",\r
+        "xml": "<switch test=\"`$foundVpnName`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5364.683364868164,\r
+        "y": 5084.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "290514d0.09f59c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "290514d0.09f59c",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5543.683364868164,\r
+        "y": 5083.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8f49a5ce.76f168"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "22a945f9.085212",\r
+        "type": "set",\r
+        "name": "unset secondary related variables",\r
+        "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n<parameter name='network-route-three' value=\"\" />\n<parameter name='tmp.aai.network-route-three.' value=\"\" />\n<parameter name='tmp.aai.network-route-C.' value=\"\" />\n",\r
+        "comments": "",\r
+        "x": 3405.933334350586,\r
+        "y": 438.56666564941406,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "94938481.855978",\r
+        "type": "set",\r
+        "name": "set network-route-three",\r
+        "xml": "<set>\n<parameter name='network-route-three' value=\"`$tmp.aai.logical-link.segment-id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3369.933334350586,\r
+        "y": 688.5666656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7edb995a.421908",\r
+        "type": "switchNode",\r
+        "name": "switch secondary empty?",\r
+        "xml": "<switch test='`length($network-route-three) == 0`'>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3373.349838256836,\r
+        "y": 730.8166351318359,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2aad068d.f37552",\r
+                "160f6f1.9c78f91"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2aad068d.f37552",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3612.3497161865234,\r
+        "y": 566.8166656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "1be1e31f.1947f5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "160f6f1.9c78f91",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3621.3497161865234,\r
+        "y": 613.8166656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "939cd6fd.61434"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "939cd6fd.61434",\r
+        "type": "set",\r
+        "name": "set hasSecondary true",\r
+        "xml": "<set>\n<parameter name='hasSecondary' value=\"true\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3835.3497161865234,\r
+        "y": 607.8166656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1be1e31f.1947f5",\r
+        "type": "set",\r
+        "name": "set hasSecondary false",\r
+        "xml": "<set>\n<parameter name='hasSecondary' value=\"false\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 3839.3497161865234,\r
+        "y": 563.8166656494141,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9b9082d.d33238",\r
+        "type": "outcome",\r
+        "name": "SECONDARY-ROOT",\r
+        "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4201.383773803711,\r
+        "y": 517.2666168212891,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5bb9e60d.7c50c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5bb9e60d.7c50c8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4375.383773803711,\r
+        "y": 512.2666168212891,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7a7e54e9.bf28b4",\r
+                "1946febe.bd9461"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7a7e54e9.bf28b4",\r
+        "type": "set",\r
+        "name": "set network-route-SECONDARY-ROOT",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4619.384017944336,\r
+        "y": 504.26661682128906,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1946febe.bd9461",\r
+        "type": "set",\r
+        "name": "set network-route-C",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-one.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4565.384017944336,\r
+        "y": 544.2666168212891,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a01fe37.2547ea",\r
+        "type": "outcome",\r
+        "name": "SECONDARY-ROOT",\r
+        "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4170.383773803711,\r
+        "y": 746.6666412353516,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "918e4345.efda7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "918e4345.efda7",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4328.383529663086,\r
+        "y": 789.6664581298828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6e675e43.dde0d8",\r
+                "80002079.3161b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6e675e43.dde0d8",\r
+        "type": "set",\r
+        "name": "set network-route-SECONDARY-ROOT",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4550.383529663086,\r
+        "y": 775.6665802001953,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "80002079.3161b8",\r
+        "type": "set",\r
+        "name": "set network-route-C",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-two.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4496.383529663086,\r
+        "y": 815.6665802001953,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f054f8f8.d1b3a",\r
+        "type": "save",\r
+        "name": "get network-route-three 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-three'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.network-route-three\">",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3381.816635131836,\r
+        "y": 982.8999176025391,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "36902805.8d90e",\r
+                "becbd8eb.e312f8",\r
+                "8659a4ac.581568"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "36902805.8d90e",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3621.816635131836,\r
+        "y": 965.8999176025391,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "becbd8eb.e312f8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3617.325698852539,\r
+        "y": 1008.3259735107422,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "8659a4ac.581568",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3621.325668334961,\r
+        "y": 1056.325942993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3e8b9bd4.673dec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e8b9bd4.673dec",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3776.816635131836,\r
+        "y": 1025.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "dcd7f0d5.69944"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dcd7f0d5.69944",\r
+        "type": "switchNode",\r
+        "name": "switch nr type",\r
+        "xml": "<switch test='`$tmp.aai.network-route-three.type`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3898.816635131836,\r
+        "y": 972.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b21b1a8d.ec399",\r
+                "40a89314.47b21c",\r
+                "f3bd5a06.f854e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b21b1a8d.ec399",\r
+        "type": "outcome",\r
+        "name": "ROOT",\r
+        "xml": "<outcome value='ROOT'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4134.816635131836,\r
+        "y": 822.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c5a6386c.ce6e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40a89314.47b21c",\r
+        "type": "outcome",\r
+        "name": "LEAF",\r
+        "xml": "<outcome value='LEAF'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4130.816635131836,\r
+        "y": 878.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "12081a23.d55f7e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5a6386c.ce6e1",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4260.816635131836,\r
+        "y": 830.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bedffac2.d82048",\r
+                "6105d759.fbeec8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "12081a23.d55f7e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4263.816635131836,\r
+        "y": 883.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7ef90f2d.cab8",\r
+                "728a110f.c5d4a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3bd5a06.f854e",\r
+        "type": "outcome",\r
+        "name": "SECONDARY-ROOT",\r
+        "xml": "<outcome value='SECONDARY-ROOT'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4123.816635131836,\r
+        "y": 956.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a50b1577.32615"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a50b1577.32615",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4279.816635131836,\r
+        "y": 977.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8c375d88.8bcbe",\r
+                "79733ca8.98d714"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bedffac2.d82048",\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": 4507.816635131836,\r
+        "y": 860.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6105d759.fbeec8",\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": 4499.816635131836,\r
+        "y": 902.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7ef90f2d.cab8",\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": 4500.816635131836,\r
+        "y": 954.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "728a110f.c5d4a8",\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": 4487.816635131836,\r
+        "y": 994.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "79733ca8.98d714",\r
+        "type": "set",\r
+        "name": "set network-route-C",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-C.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4461.816635131836,\r
+        "y": 1088.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8c375d88.8bcbe",\r
+        "type": "set",\r
+        "name": "set network-route-SECONDARY-ROOT",\r
+        "xml": "<set>\n<parameter name='tmp.aai.network-route-SECONDARY-ROOT.' value=\"`$tmp.aai.network-route-three.`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 4523.816635131836,\r
+        "y": 1044.8998565673828,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "663710d5.9b6118",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3725.816665649414,\r
+        "y": 2228.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4284e0ad.37004",\r
+                "54bef6f2.4fc7a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "16d496be.188cb9",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3553.150161743164,\r
+        "y": 2229.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "663710d5.9b6118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "545ddc0c.5d5ecc",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3562.641128540039,\r
+        "y": 2272.1407012939453,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5e1fc0e8.d800d8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3551.150161743164,\r
+        "y": 2318.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4284e0ad.37004",\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-C.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-domainC\"/>\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4016.150161743164,\r
+        "y": 2244.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7adfe0fe.0b09c",\r
+                "70e2db35.da559c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70e2db35.da559c",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4239.150161743164,\r
+        "y": 2199.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "624b6d74.0c220c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7adfe0fe.0b09c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4241.150161743164,\r
+        "y": 2263.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "44c8e026.3089e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71a7eba7.ddb6fc",\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.domainC.pnf-name\n\t        AND p-interface.interface-name = $tmp.aai.network-route-C.next-hop\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.network-route-C.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": 3347.150161743164,\r
+        "y": 2250.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "16d496be.188cb9",\r
+                "545ddc0c.5d5ecc",\r
+                "5e1fc0e8.d800d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "720f0fd3.e06eb",\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": 3286.150161743164,\r
+        "y": 2208.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dab7847.8f75af8",\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-C.next-hop`'/>\n<!--<parameter name=\"regex\" value=\"[^-]+$\"/>-->\n<parameter name=\"regex\" value=\"[-]+\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix-domainC-pnfName\"/>\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3367.150161743164,\r
+        "y": 2098.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bb6830ab.78043",\r
+                "943e3a24.27d0d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "943e3a24.27d0d",\r
+        "type": "failure",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3590.150161743164,\r
+        "y": 2084.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "14789ba.27922e4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bb6830ab.78043",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3592.150161743164,\r
+        "y": 2117.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "14789ba.27922e4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3738.150161743164,\r
+        "y": 2077.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f084bd9b.374fe",\r
+                "635334a7.ad5104"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f084bd9b.374fe",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.domainC.pnf-name' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n                                                   $param-prefix-domainC-pnfName[1] + '-' +\n                                                   $param-prefix-domainC-pnfName[2] + '-' +\n                                                   $param-prefix-domainC-pnfName[3] + '-' +\n                                                   $param-prefix-domainC-pnfName[4] + '-' +\n                                                   $param-prefix-domainC-pnfName[5] + '-' +\n                                                   $param-prefix-domainC-pnfName[6] + '-' +\n                                                   $param-prefix-domainC-pnfName[7] + '-' +\n                                                   $param-prefix-domainC-pnfName[8]`\" />\n",\r
+        "comments": "",\r
+        "x": 3930.1500396728516,\r
+        "y": 2014.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54bef6f2.4fc7a",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3997.150161743164,\r
+        "y": 2375.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2fc07773.c6e698"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2fc07773.c6e698",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4203.150161743164,\r
+        "y": 2375.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "eda47f6d.73a9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "635334a7.ad5104",\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.domainC.pnf-name\"\n        pfx='tmp.aai.destination-secondary-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3952.1500396728516,\r
+        "y": 2082.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fd3d2e45.ba5c18",\r
+                "6f65faaa.29e51c",\r
+                "979b3e61.62e1e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd3d2e45.ba5c18",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4147.650161743164,\r
+        "y": 2034.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "76cbe983.f31c3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6f65faaa.29e51c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4139.650161743164,\r
+        "y": 2089.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ad429934.3c84f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "979b3e61.62e1e8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4144.650161743164,\r
+        "y": 2146.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bbff5204.a70cf8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bbff5204.a70cf8",\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": 4296.650161743164,\r
+        "y": 2147.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "76cbe983.f31c3",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4292.032485961914,\r
+        "y": 2032.2223358154297,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "181d9117.3dc1c7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a71111e6.40602",\r
+        "type": "set",\r
+        "name": "set SECONDARY-ROOT stuff",\r
+        "xml": "<set>\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-long' value=\"`$param-prefix-domainC-pnfName[0] + '-' +\n                                                   $param-prefix-domainC-pnfName[1] + '-' +\n                                                   $param-prefix-domainC-pnfName[2] + '-' +\n                                                   $param-prefix-domainC-pnfName[3] + '-' +\n                                                   $param-prefix-domainC-pnfName[4] + '-' +\n                                                   $param-prefix-domainC-pnfName[5] + '-' +\n                                                   $param-prefix-domainC-pnfName[6] + '-' +\n                                                   $param-prefix-domainC-pnfName[7] + '-' +\n                                                   $param-prefix-domainC-pnfName[8]`\" />\n\n<!--<parameter name='tmp.ROOT.pnf-name-short' value=\"`$param-prefix-domainB-pnfName[8]`\" />-->\n<parameter name='tmp.SECONDARY-ROOT.pnf-name-short' value=\"`$tmp.dst-secondary.pnf-name`\" />\n\n<parameter name='tmp.SECONDARY-ROOT.uni-p-interface-long' value=\"`$tmp.aai.network-route-C.next-hop + '-' + $tmp.aai.network-route-C.logical-interface-id`\" />\n<parameter name='tmp.SECONDARY-ROOT.uni-tp-id' value=\"`$tmp.dst-secondary.ltpId`\" />\n",\r
+        "comments": "",\r
+        "x": 3347.816665649414,\r
+        "y": 2343.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f86bd22d.6a796",\r
+        "type": "comment",\r
+        "name": "NOT NEEDED ANYMORE?",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4026.816635131836,\r
+        "y": 2319.5665130615234,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "44c8e026.3089e",\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": 4400.150161743164,\r
+        "y": 2282.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "624b6d74.0c220c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4404.150161743164,\r
+        "y": 2196.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6725a861.5cac68",\r
+                "116c17e7.39a43"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "eda47f6d.73a9a",\r
+        "type": "outcome",\r
+        "name": "tunnel-termination-point",\r
+        "xml": "<outcome value='tunnel-termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4420.435806274414,\r
+        "y": 2374.388442993164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c2e9db6e.5e8918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad429934.3c84f",\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": 4307.650161743164,\r
+        "y": 2092.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6725a861.5cac68",\r
+        "type": "set",\r
+        "name": "set ltpId",\r
+        "xml": "<set>\n<parameter name='tmp.dst-secondary.ltpId' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n",\r
+        "comments": "",\r
+        "x": 4574.150161743164,\r
+        "y": 2157.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "116c17e7.39a43",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst-secondary.pnf-name' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n",\r
+        "comments": "",\r
+        "x": 4575.150161743164,\r
+        "y": 2262.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d91f7d75.bbcbd8",\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": 4570.150161743164,\r
+        "y": 2211.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c2e9db6e.5e8918",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4627.267349243164,\r
+        "y": 2363.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a655b2d0.b12cf8",\r
+                "1b13a85a.c9fe7",\r
+                "4c91f5f3.8ae07c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a655b2d0.b12cf8",\r
+        "type": "set",\r
+        "name": "set destination ttp-id",\r
+        "xml": "<set>\n<parameter name='tmp.destination-secondary.ttp-id' value=\"`$tmp.aai.network-route-C.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 4842.267349243164,\r
+        "y": 2325.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1b13a85a.c9fe7",\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-secondary.ttp-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.destination-secondary-ttp' local-only='false' >\n\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4839.267349243164,\r
+        "y": 2364.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "14ad9c89.4bb913"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4c91f5f3.8ae07c",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4794.767349243164,\r
+        "y": 2406.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e825807.3f1cc",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4876.150161743164,\r
+        "y": 2116.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "fd8902be.b515c8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "181d9117.3dc1c7",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4476.150039672852,\r
+        "y": 2046.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b70e554c.645b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b70e554c.645b38",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4673.150161743164,\r
+        "y": 2112.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5e825807.3f1cc",\r
+                "25292003.2c4df"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "25292003.2c4df",\r
+        "type": "outcome",\r
+        "name": "network-resource",\r
+        "xml": "<outcome value='network-resource'>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4878.150161743164,\r
+        "y": 2189.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c08bfda1.3541a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14ad9c89.4bb913",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5019.767349243164,\r
+        "y": 2363.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f56384d9.606e1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f56384d9.606e1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5177.767349243164,\r
+        "y": 2363.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a47e1ae7.393b38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a47e1ae7.393b38",\r
+        "type": "set",\r
+        "name": "set destination tunnel tp ip",\r
+        "xml": "<set>\n<parameter name='destination-secondary.tunnel-tp-id' value=\"`$tmp.aai.destination-secondary-ttp.tunnel-tp-id`\" />\n",\r
+        "comments": "",\r
+        "x": 5384.767349243164,\r
+        "y": 2363.9071197509766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fd8902be.b515c8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5053.150161743164,\r
+        "y": 2108.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3983145.c01d1ec",\r
+                "ded6bcc1.37b508"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ded6bcc1.37b508",\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.domainC.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainC.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5261.150161743164,\r
+        "y": 2115.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "15291f10.bfa1d1",\r
+                "4ad88ea0.313028",\r
+                "9de78895.27ba68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c08bfda1.3541a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5055.150161743164,\r
+        "y": 2181.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "757e0ab3.492124"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3983145.c01d1ec",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainC id",\r
+        "xml": "<set>\n<parameter name='tmp.domainC.esr-thirdparty-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5291.150161743164,\r
+        "y": 2063.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "757e0ab3.492124",\r
+        "type": "set",\r
+        "name": "set domainC ethernet layer network-id",\r
+        "xml": "<set>\n<parameter name='tmp.domainC.eth-network-id' value=\"`$tmp.aai.destination-secondary-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5290.150161743164,\r
+        "y": 2305.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "15291f10.bfa1d1",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5471.150161743164,\r
+        "y": 2106.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f933124d.0d0d48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4ad88ea0.313028",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5463.150161743164,\r
+        "y": 2161.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "708c5d46.721ab4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9de78895.27ba68",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5468.150161743164,\r
+        "y": 2218.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c3cc12ab.3cd488"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3cc12ab.3cd488",\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": 5620.150161743164,\r
+        "y": 2219.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "708c5d46.721ab4",\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": 5631.150161743164,\r
+        "y": 2164.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f933124d.0d0d48",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5615.532485961914,\r
+        "y": 2104.222457885742,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2ba1c8df.2a738"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2ba1c8df.2a738",\r
+        "type": "set",\r
+        "name": "set controller domainC data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainC.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": 5830.150161743164,\r
+        "y": 2100.5667877197266,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5dc3af5e.92a278",\r
+        "type": "switchNode",\r
+        "name": "switch $hasSecondary",\r
+        "xml": "<switch test='`$hasSecondary`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3861.816665649414,\r
+        "y": 2712.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "a2e190cc.8d4f1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2e190cc.8d4f1",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4052.816665649414,\r
+        "y": 2716.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d5cbc45b.cf7e18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5cbc45b.cf7e18",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4179.816665649414,\r
+        "y": 2715.566665649414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9dcfaa3c.2df838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9dcfaa3c.2df838",\r
+        "type": "save",\r
+        "name": "get secondary 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.SECONDARY-ROOT.uni-p-interface-long\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.secondaryrootuni\" >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4406.150405883789,\r
+        "y": 2708.9002838134766,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9b50524c.8f5e2",\r
+                "d7d45f06.b90c18",\r
+                "a735aab1.9f93a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9b50524c.8f5e2",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4773.150161743164,\r
+        "y": 2602.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c267b95.509ac48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7d45f06.b90c18",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4768.659194946289,\r
+        "y": 2647.326126098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bfc554f5.bfe79"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a735aab1.9f93a8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4764.659194946289,\r
+        "y": 2697.326187133789,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6ab7706d.b84f78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5ae763e6.35d8f4",\r
+        "type": "save",\r
+        "name": "update SECONDARY-ROOT UNI in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n      key='uni.id = $tmp.SECONDARY-ROOT.uni-p-interface-long'>\n<parameter name='id' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='data-source' value='`$tmp.newbw`' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5212.659683227539,\r
+        "y": 2692.3263092041016,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "c267b95.509ac48",\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": 4935.721694946289,\r
+        "y": 2602.1858673095703,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bfc554f5.bfe79",\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": 4936.659194946289,\r
+        "y": 2647.326126098633,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6ab7706d.b84f78",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4933.659194946289,\r
+        "y": 2697.326187133789,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "3400e5b4.3cd32a",\r
+                "5ae763e6.35d8f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3400e5b4.3cd32a",\r
+        "type": "set",\r
+        "name": "set new bw",\r
+        "xml": "<set>\n<parameter name='tmp.newbw' value='`$tmp.aai.secondaryrootuni.data-source - $bwToBeDecreased`' />\n",\r
+        "comments": "",\r
+        "x": 5115.659927368164,\r
+        "y": 2639.326187133789,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fa76b584.bdbd9",\r
+        "type": "switchNode",\r
+        "name": "switch tmp.mmUNI-id-long != SECONDARY-ROOT UNI",\r
+        "xml": "\n<switch test=\"`$tmp.mmUNI-id-long != $tmp.SECONDARY-ROOT.uni-p-interface-long`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4650.150405883789,\r
+        "y": 3552.899917602539,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "ef9b97c4.4f1c68"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ef9b97c4.4f1c68",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4940.150405883789,\r
+        "y": 3554.899917602539,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "608ff90c.2e5fc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35800841.c29e7",\r
+        "type": "switchNode",\r
+        "name": "switch $hasSecondary",\r
+        "xml": "<switch test='`$hasSecondary`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4302.683364868164,\r
+        "y": 5782.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "23246adb.7861de"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "23246adb.7861de",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4493.683364868164,\r
+        "y": 5786.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "f3b9dd7.5ea102"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f3b9dd7.5ea102",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4620.683364868164,\r
+        "y": 5785.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "60b7ba2f.bc3c0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60b7ba2f.bc3c0c",\r
+        "type": "switchNode",\r
+        "name": "switch 2-ROOTS in same domain?",\r
+        "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4846.016372680664,\r
+        "y": 5787.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "2443ceec.623df2",\r
+                "ad2ba37e.796088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2443ceec.623df2",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5056.016372680664,\r
+        "y": 5764.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "bd893034.6b25e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ad2ba37e.796088",\r
+        "type": "outcomeTrue",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5061.016372680664,\r
+        "y": 5813.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d0993207.1b217"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bd893034.6b25e8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5182.016372680664,\r
+        "y": 5764.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d0993207.1b217",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5179.016372680664,\r
+        "y": 5820.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "7824302d.31915",\r
+                "638f8d60.f2970c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7824302d.31915",\r
+        "type": "save",\r
+        "name": "update SECONDARY-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.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5493.016372680664,\r
+        "y": 5879.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "b539af9b.8e6488",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 5425.233413696289,\r
+        "y": 5831.699966430664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "638f8d60.f2970c",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5623.683364868164,\r
+        "y": 5789.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c7760f0.090d48",\r
+        "type": "switchNode",\r
+        "name": "switch $hasSecondary",\r
+        "xml": "<switch test='`$hasSecondary`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 893.6833648681641,\r
+        "y": 4979.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "89d9c849.63865"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89d9c849.63865",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1084.683364868164,\r
+        "y": 4983.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "71eabcdb.edbe1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "71eabcdb.edbe1c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1211.683364868164,\r
+        "y": 4982.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "b655e9e.17d4118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b655e9e.17d4118",\r
+        "type": "switchNode",\r
+        "name": "switch 2-ROOTS in same domain?",\r
+        "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1437.016372680664,\r
+        "y": 4984.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "451cba7b.55b034",\r
+                "89345bed.8540d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "451cba7b.55b034",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1647.016372680664,\r
+        "y": 4961.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "6b3712d.199ce6c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "89345bed.8540d8",\r
+        "type": "outcomeTrue",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1652.016372680664,\r
+        "y": 5010.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "84894ba9.2f6d9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6b3712d.199ce6c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1773.016372680664,\r
+        "y": 4961.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "84894ba9.2f6d9",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1770.016372680664,\r
+        "y": 5017.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "d5552e7d.44cc8",\r
+                "e67d570d.d5f9f"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e67d570d.d5f9f",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2214.683364868164,\r
+        "y": 4986.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "41723099.7f44e8",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2016.233413696289,\r
+        "y": 5028.699478149414,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d5552e7d.44cc8",\r
+        "type": "save",\r
+        "name": "update SECONDARY-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.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2084.016372680664,\r
+        "y": 5076.899673461914,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "5d9c1c4d.83462c",\r
+        "type": "switchNode",\r
+        "name": "switch $hasSecondary",\r
+        "xml": "<switch test='`$hasSecondary`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1496.0167388916016,\r
+        "y": 5820.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "4a1beb8f.c1dbac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a1beb8f.c1dbac",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1687.0167388916016,\r
+        "y": 5824.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "c43fef47.9c947"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c43fef47.9c947",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1814.0167388916016,\r
+        "y": 5823.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "40808ad0.742134"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "40808ad0.742134",\r
+        "type": "switchNode",\r
+        "name": "switch 2-ROOTS in same domain?",\r
+        "xml": "<!-- This is to check the provider-id of ROOt and SECONDARY-ROOT-->\n<switch test='`$param-prefix-domainB[$param-prefix-domainB_length -9] == $param-prefix-domainC[$param-prefix-domainC_length -9]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2039.3497467041016,\r
+        "y": 5825.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "5a051931.8c6a5",\r
+                "818560aa.91932"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5a051931.8c6a5",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2249.3497467041016,\r
+        "y": 5802.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "8edca568.ede98"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "818560aa.91932",\r
+        "type": "outcomeTrue",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2254.3497467041016,\r
+        "y": 5851.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "9a80cebb.ff473"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8edca568.ede98",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2375.3497467041016,\r
+        "y": 5802.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9a80cebb.ff473",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2372.3497467041016,\r
+        "y": 5858.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            [\r
+                "cc186b3e.b594b",\r
+                "5f3c966d.1d57c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5f3c966d.1d57c",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-SECONDARY-ROOT-conn' mode='sync' >\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2817.0167388916016,\r
+        "y": 5827.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "224407cc.d62a7",\r
+        "type": "comment",\r
+        "name": "Update connectivity status to modified",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2618.5667877197266,\r
+        "y": 5869.699966430664,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cc186b3e.b594b",\r
+        "type": "save",\r
+        "name": "update SECONDARY-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.SECONDARY-ROOT.connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.SECONDARY-ROOT.connectivity.connectivity-id`' />\n<parameter name='operational-status' value='Modified' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2686.3497467041016,\r
+        "y": 5917.900161743164,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "9067b91d.deea4",\r
+        "type": "execute",\r
+        "name": "execute Terminate SSE Connection",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='deleteSubscriptionAndSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-terminate-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-subscribed-notifications:delete-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"`$project.version`\" />\n<parameter name=\"mode\" value=\"sync\" />\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1546.4500274658203,\r
+        "y": 6126.280899047852,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "61909f2b.d81a28",\r
+        "type": "set",\r
+        "name": "set parameters",\r
+        "xml": "<set>\n<parameter name='subscriptionId' value='`$rcvd-bandwidth-value`' />\n",\r
+        "comments": "",\r
+        "x": 1478.483413696289,\r
+        "y": 6067.680801391602,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3d1d7271.d95cbe",\r
+        "type": "execute",\r
+        "name": "execute Terminate SSE Connection",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='deleteSubscriptionAndSseConnection' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-terminate-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-subscribed-notifications:delete-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainConn.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"cll-vnf-topology-operation-cll-callbackdg-notification\" />\n<parameter name=\"version\" value=\"`$project.version`\" />\n<parameter name=\"mode\" value=\"sync\" />\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2095.116714477539,\r
+        "y": 5574.514297485352,\r
+        "z": "1b4ba1fc.83240e",\r
+        "wires": [\r
+            []\r
+        ]\r
     }\r
 ]
\ No newline at end of file