Merge "Initial submission for supporting E-Line based cloud leased line service for...
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / p2p_eline / GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-activate.json
new file mode 100644 (file)
index 0000000..8047f55
--- /dev/null
@@ -0,0 +1,2379 @@
+[\r
+    {\r
+        "id": "94b540c9.238618",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 149.75,\r
+        "y": 94.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "dda31e25.b7e27"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dda31e25.b7e27",\r
+        "type": "service-logic",\r
+        "name": "GENERIC-RESOURCE-API ${project.version}",\r
+        "module": "GENERIC-RESOURCE-API",\r
+        "version": "${project.version}",\r
+        "comments": "",\r
+        "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 281.0356903076172,\r
+        "y": 143.98810863494873,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "a1958103.ff3f88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1958103.ff3f88",\r
+        "type": "method",\r
+        "name": "method p2p-vnf-topology-operation-p2p-activate",\r
+        "xml": "<method rpc='p2p-vnf-topology-operation-p2p-activate' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 284.1786193847656,\r
+        "y": 228.75003242492676,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "a73db057.8ff74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a73db057.8ff74",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 433.988037109375,\r
+        "y": 358.4166564941406,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "91bdee0e.c7f15",\r
+                "957a18ba.9d8e",\r
+                "11da7ad8.21f09d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "91bdee0e.c7f15",\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": 702.3216552734375,\r
+        "y": 745.34716796875,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1d1c9d38.a24823",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 733.75,\r
+        "y": 419.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "957a18ba.9d8e",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 753.75,\r
+        "y": 515.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "255854de.861404",\r
+                "fd908507.674308",\r
+                "4a62dd9f.61cdac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "255854de.861404",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 972.75,\r
+        "y": 453.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "622587e3.99be58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fd908507.674308",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 982.240966796875,\r
+        "y": 496.32403564453125,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d8fc9dc9.3e6cf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a62dd9f.61cdac",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 970.75,\r
+        "y": 542.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "5e548c85.32cd14"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8fc9dc9.3e6cf",\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": 1135.8123779296875,\r
+        "y": 499.6097717285156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5e548c85.32cd14",\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": 1139.75,\r
+        "y": 543.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "622587e3.99be58",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1169.75,\r
+        "y": 449.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "439a3ae3.2ab694"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "439a3ae3.2ab694",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1393.08349609375,\r
+        "y": 449.74993896484375,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "1016c8ba.b6da07"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1016c8ba.b6da07",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1593.7501335144043,\r
+        "y": 450.75002098083496,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "f655b129.6c8e3"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7d98821b.e6839c",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN A",\r
+        "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingA.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingA.customer-vpn-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-src-domain' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n",\r
+        "comments": "",\r
+        "x": 4412.75,\r
+        "y": 166.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c978ce8f.5eb918",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create 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.domainA.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 4493.75,\r
+        "y": 481.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "c08a95fe.6696f8",\r
+                "b0f4c0f5.92a118"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c08a95fe.6696f8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4803.25,\r
+        "y": 450.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "f00f23ff.750aa8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b0f4c0f5.92a118",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4808.25,\r
+        "y": 515.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "c22d4e2c.b8095"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f00f23ff.750aa8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4979.25,\r
+        "y": 450.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c22d4e2c.b8095",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4974.75,\r
+        "y": 515.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1f1dcb6.1fec3",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityA.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityA.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityA.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityA.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityA.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityA.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingA.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityA.cvlan`' />\n",\r
+        "comments": "",\r
+        "x": 4360.25,\r
+        "y": 669.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "251b183d.cbc77",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create ethernet Service without 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-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 4514.25,\r
+        "y": 717.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "be60985c.4fbc58",\r
+                "b84a3cc3.684a28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be60985c.4fbc58",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4859.75,\r
+        "y": 698.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "305db122.d214ee"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b84a3cc3.684a28",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4863.75,\r
+        "y": 738.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d6fb6749.eab338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "305db122.d214ee",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 5017.75,\r
+        "y": 698.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d6fb6749.eab338",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5021.25,\r
+        "y": 738.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "4fa6f4cb.4aa39c",\r
+                "f065baf1.f73c4",\r
+                "677bc6cc.c2278"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d7ddb4d7.9c1b5",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 4357.75,\r
+        "y": 625.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4fa6f4cb.4aa39c",\r
+        "type": "save",\r
+        "name": "update vpn-binding A resource (aka. OTN domainA) in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingA.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingA.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5351.75,\r
+        "y": 703.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e1a352b3.d1c22",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity id\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 5215.75,\r
+        "y": 662.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f065baf1.f73c4",\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.aai.connectivityA.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityA.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5278.75,\r
+        "y": 749.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8047beb.a120a",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.src.domainA.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingA.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingA.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingA.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingA.src-access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 4350.75,\r
+        "y": 214.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c0003a50.a00b1",\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": 4376.75,\r
+        "y": 331.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "767b670a.725628",\r
+                "8de69881.7810c",\r
+                "dbb97564.e7a91"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "767b670a.725628",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4572.2501220703125,\r
+        "y": 283.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "9fa9eef6.966618"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8de69881.7810c",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4564.2501220703125,\r
+        "y": 338.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "2b81f91f.bfddb6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9fa9eef6.966618",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4716.6324462890625,\r
+        "y": 283.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "33a206d2.a6527a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f3c702b.c83bb",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5298.75,\r
+        "y": 285.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "cb134ba5.74bf48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33a206d2.a6527a",\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": 4900.75,\r
+        "y": 281.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "893da1cb.bc091"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "893da1cb.bc091",\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": 5095.75,\r
+        "y": 281.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "4f3c702b.c83bb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dbb97564.e7a91",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4569.2501220703125,\r
+        "y": 395.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "b75e061e.d5ec88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b75e061e.d5ec88",\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": 4721.2501220703125,\r
+        "y": 396.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2b81f91f.bfddb6",\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": 4732.2501220703125,\r
+        "y": 339.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "848a4c57.f2a3d",\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": 5683.75,\r
+        "y": 298.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "2e1535a4.41297a",\r
+                "1778db70.6907f5",\r
+                "72b5f7c.70da408"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cb134ba5.74bf48",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5477.75,\r
+        "y": 285.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "19fba605.f323fa",\r
+                "848a4c57.f2a3d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19fba605.f323fa",\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": 5713.75,\r
+        "y": 246.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2e1535a4.41297a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5893.75,\r
+        "y": 289.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "780f3b99.e0b614"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1778db70.6907f5",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5885.75,\r
+        "y": 344.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "142c73b0.fb0d8c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "72b5f7c.70da408",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5890.75,\r
+        "y": 401.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "4764feda.35a838"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4764feda.35a838",\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": 6042.75,\r
+        "y": 402.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "142c73b0.fb0d8c",\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": 6053.75,\r
+        "y": 347.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "780f3b99.e0b614",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 6038.13232421875,\r
+        "y": 287.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "bba0e779.8df588"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bba0e779.8df588",\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": 6252.75,\r
+        "y": 283.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "11da7ad8.21f09d",\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": 719.75,\r
+        "y": 463.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "97981e3f.7665d",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN B",\r
+        "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingB.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<!--<parameter name='src-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingB.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingB.src-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-dst-domain' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n",\r
+        "comments": "",\r
+        "x": 3819.75,\r
+        "y": 1623.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1bef475b.0876b9",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create 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-dst-domain-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 3882.75,\r
+        "y": 1952.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "a5d1d793.c9259",\r
+                "24fe1da2.474a9a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a5d1d793.c9259",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4178.25,\r
+        "y": 1919.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "b911fc3e.201c1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "24fe1da2.474a9a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4183.25,\r
+        "y": 1984.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "467082f5.e654ac"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b911fc3e.201c1",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4346.25,\r
+        "y": 1919.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "467082f5.e654ac",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4356.75,\r
+        "y": 1984.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "ace90237.5528b8",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.dst.domainB.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingB.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingB.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingB.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingB.dst-access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 3758.75,\r
+        "y": 1680.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4aaac37.9b5738",\r
+        "type": "get-resource",\r
+        "name": "get-resource dst 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": 3778.75,\r
+        "y": 1777.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "57142ea4.bc3bb",\r
+                "cc1afb43.a5676",\r
+                "86a15efe.377578"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "57142ea4.bc3bb",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3981.2501220703125,\r
+        "y": 1730.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "19ef9dfe.b1b91a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cc1afb43.a5676",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3973.2501220703125,\r
+        "y": 1785.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "fc294828.8c7aa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "19ef9dfe.b1b91a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4125.6324462890625,\r
+        "y": 1728.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "a34e91d1.6b4f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a34e91d1.6b4f48",\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": 4309.75,\r
+        "y": 1742.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "bcf409d1.2bca88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "86a15efe.377578",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3978.2501220703125,\r
+        "y": 1842.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "9228ece.bfbed9"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9228ece.bfbed9",\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": 4130.2501220703125,\r
+        "y": 1843.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "fc294828.8c7aa",\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": 4141.2501220703125,\r
+        "y": 1788.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8fd77208.a2c738",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4707.75,\r
+        "y": 1746.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "2b23a5a1.db882a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bcf409d1.2bca88",\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": 4504.75,\r
+        "y": 1742.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "8fd77208.a2c738"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ee733a11.b10eb8",\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": 5092.75,\r
+        "y": 1745.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "8e9e736e.ee5478",\r
+                "98c4188c.f20b2",\r
+                "454707d0.8a14d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2b23a5a1.db882a",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4884.75,\r
+        "y": 1738.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "923bc8de.eb024",\r
+                "ee733a11.b10eb8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "923bc8de.eb024",\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": 5122.75,\r
+        "y": 1693.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "35e39fbb.1f604",\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": 5451.75,\r
+        "y": 1849.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13ebe3ed.f2247c",\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": 5462.75,\r
+        "y": 1794.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b78b9bfd.914f38",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5447.13232421875,\r
+        "y": 1734.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "4076fb5b.40dc5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4076fb5b.40dc5c",\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": 5661.75,\r
+        "y": 1730.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8e9e736e.ee5478",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5302.75,\r
+        "y": 1736.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "b78b9bfd.914f38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "98c4188c.f20b2",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5294.75,\r
+        "y": 1791.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "13ebe3ed.f2247c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "454707d0.8a14d8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5299.75,\r
+        "y": 1848.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "35e39fbb.1f604"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f655b129.6c8e3",\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
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1831.75,\r
+        "y": 452.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d8fbecfc.eada5",\r
+                "70aafcb6.3ffce4",\r
+                "18daf882.cb46e7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d8fbecfc.eada5",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2039.75,\r
+        "y": 416.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "92d3d22d.c618f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "70aafcb6.3ffce4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2040.240966796875,\r
+        "y": 462.32403564453125,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "de1e5ed.546bf2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "18daf882.cb46e7",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2037.75,\r
+        "y": 505.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "b369c83a.de60d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "de1e5ed.546bf2",\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": 2202.8123779296875,\r
+        "y": 462.6097717285156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b369c83a.de60d8",\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": 2206.75,\r
+        "y": 506.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "98b87635.4ab2",\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": 2512.75,\r
+        "y": 505.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "133fd3a1.d9493c",\r
+                "1efd7812.84eb68",\r
+                "be58cccd.20957"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c3829b9e.475158",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2892.75,\r
+        "y": 593.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "52401003.e54ba8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "133fd3a1.d9493c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2723.75,\r
+        "y": 594.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "c3829b9e.475158"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1efd7812.84eb68",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2726.240966796875,\r
+        "y": 490.32403564453125,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "3a938444.bd8bbc"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "be58cccd.20957",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2721.75,\r
+        "y": 534.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "9589b818.4000b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9589b818.4000b",\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": 2889.75,\r
+        "y": 534.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3a938444.bd8bbc",\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": 2888.8125,\r
+        "y": 489.6097412109375,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "92d3d22d.c618f8",\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": 2240.75,\r
+        "y": 411.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "7db3ded6.deaf"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7db3ded6.deaf",\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": 2445.75,\r
+        "y": 411.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "cfbe6a35.f2fd5"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cfbe6a35.f2fd5",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2611.75,\r
+        "y": 411.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "66d97a83.58a794"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "66d97a83.58a794",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2774.75,\r
+        "y": 411.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "98b87635.4ab2",\r
+                "eec13dad.1221b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ae8dd7ac.9cc1d",\r
+        "type": "switchNode",\r
+        "name": "switch vpn-binding has dst-access-ltp",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3333.75,\r
+        "y": 694.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "8935f293.cb1e78",\r
+                "f32e6b37.4758a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8935f293.cb1e78",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3547.75,\r
+        "y": 731.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "394930dc.1bf1c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f32e6b37.4758a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3549.75,\r
+        "y": 669.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d8995170.21ddb"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "394930dc.1bf1c",\r
+        "type": "switchNode",\r
+        "name": "switch vpn-binding has src-access-ltp",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3127.75,\r
+        "y": 1974.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "2a89d450.3404ec",\r
+                "667fc503.5791f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2a89d450.3404ec",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3380.75,\r
+        "y": 2008.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "566098c5.d0033"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "667fc503.5791f4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3380.75,\r
+        "y": 1952.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "4eef4aff.e3dcc4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "566098c5.d0033",\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": 3531.75,\r
+        "y": 2008.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "72ddf5d3.8c5f4c",\r
+        "type": "set",\r
+        "name": "set vpn-bindingA and connectivityA",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingA.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityA.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
+        "comments": "",\r
+        "x": 4407.75,\r
+        "y": 106.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "be167b48.23b5b",\r
+        "type": "set",\r
+        "name": "set vpn-bindingB and connectivityB",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingB.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityB.' value=\"`$tmp.aai.connectivity.`\" />\n\n",\r
+        "comments": "",\r
+        "x": 3815.75,\r
+        "y": 1565.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "65804ebf.2b9b08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4098.75,\r
+        "y": 363.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "72ddf5d3.8c5f4c",\r
+                "7d98821b.e6839c",\r
+                "d8047beb.a120a",\r
+                "c0003a50.a00b1",\r
+                "d1f1dcb6.1fec3",\r
+                "251b183d.cbc77",\r
+                "c978ce8f.5eb918"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4eef4aff.e3dcc4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3531.75,\r
+        "y": 1951.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "be167b48.23b5b",\r
+                "97981e3f.7665d",\r
+                "ace90237.5528b8",\r
+                "e4aaac37.9b5738",\r
+                "1bef475b.0876b9",\r
+                "8a69ea43.cdd878",\r
+                "bacb99d3.7d15e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8a69ea43.cdd878",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<!--<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />-->\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.etht-svc-name`' />\n<parameter name='slice-id' value='`$vnf-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='provider-id' value='`$tmp.aai.connectivityB.access-provider-id`' />\n<parameter name='client-id' value='`$tmp.aai.connectivityB.access-client-id`' />\n<parameter name='topology-id' value='`$tmp.aai.connectivityB.access-topology-id`' />\n<parameter name='otn-tunnel-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ethernet-end-point-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='index-number' value='0' />\n<parameter name='eth-node-id' value='`$tmp.aai.connectivityB.access-node-id`' />\n<parameter name='eth-node-tp-id' value='`$tmp.aai.connectivityB.access-ltp-id`' />\n<parameter name='CIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='EIR' value='`$tmp.aai.vpn-bindingB.route-distinguisher *1000000`' />\n<parameter name='cvlan' value='`$tmp.aai.connectivityB.cvlan`' />\n\n",\r
+        "comments": "",\r
+        "x": 3760.75,\r
+        "y": 2094.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bacb99d3.7d15e8",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create ethernet Service without 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-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 3914.75,\r
+        "y": 2142.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "17e90060.f79b78",\r
+                "52bf852c.fdb45c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "17e90060.f79b78",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4260.25,\r
+        "y": 2123.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "ea0fe23c.016da8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "52bf852c.fdb45c",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4264.25,\r
+        "y": 2163.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "e4c3d59d.96b0f8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "ea0fe23c.016da8",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create ethernet service rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4418.25,\r
+        "y": 2123.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e4c3d59d.96b0f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4421.75,\r
+        "y": 2163.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "22d7dd70.1841ea",\r
+                "3dfc3096.80b288",\r
+                "d67d1410.76b2b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d5f7c980.553e1",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 3758.25,\r
+        "y": 2050.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "22d7dd70.1841ea",\r
+        "type": "save",\r
+        "name": "update vpn-binding B resource (aka. OTN domainB) in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-bindingB.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.vpn-bindingB.vpn-id`' />\n<parameter name='vpn-name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4761.75,\r
+        "y": 2162.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e6c0853.c278578",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME",\r
+        "info": "use proper vpn-binding id and connectivity\n\nAlso, does CCSDK support \"update\" operation for vpn-binding and connectivity?",\r
+        "comments": "",\r
+        "x": 4619.75,\r
+        "y": 2120.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3dfc3096.80b288",\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.aai.connectivityB.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='operational-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4690.75,\r
+        "y": 2211.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6d9459c.52e34",\r
+        "type": "set",\r
+        "name": "set attachment_param (gfp-n) for OTN",\r
+        "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
+        "comments": "",\r
+        "x": 3324.75,\r
+        "y": 634.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "eec13dad.1221b",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
+        "comments": "",\r
+        "x": 2958.75,\r
+        "y": 282.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "6859175e.358ec8",\r
+        "type": "comment",\r
+        "name": "only dst ttp exists. No src",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3919.75,\r
+        "y": 320.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cf1e5b9b.e9493",\r
+        "type": "comment",\r
+        "name": "only src ttp exists. No dst",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3476.75,\r
+        "y": 1898.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d8995170.21ddb",\r
+        "type": "switchNode",\r
+        "name": "switch vpn-binding has src-access-ltp",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3655.75,\r
+        "y": 482.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "f7ea2bd8.a0e408",\r
+                "d911a9d9.6b12a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d911a9d9.6b12a8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3897.75,\r
+        "y": 1071.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "60ce8d2.37a5f74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7ea2bd8.a0e408",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3891.75,\r
+        "y": 362.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "65804ebf.2b9b08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60ce8d2.37a5f74",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4055.75,\r
+        "y": 1070.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "250c851.82c85fa",\r
+                "3a8c3466.1fa784",\r
+                "44e0a0bb.d00d2",\r
+                "17d8e4eb.b52ccb",\r
+                "dd94b2c2.353ff8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a8c3466.1fa784",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN G",\r
+        "xml": "<set>\n<parameter name='src-node-id' value='`$tmp.aai.vpn-bindingG.src-access-node-id`' />\n<parameter name='dst-node-id' value='`$tmp.aai.vpn-bindingG.dst-access-node-id`' />\n<!--<parameter name='dst-tpn-id' value='1' />-->\n<parameter name='src-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='dst-tpn-id' value='`$tmp.aai.vpn-bindingG.customer-vpn-id`' />\n<parameter name='src-ttp-id' value='`$tmp.aai.vpn-bindingG.src-access-ltp-id`' />\n<parameter name='dst-ttp-id' value='`$tmp.aai.vpn-bindingG.dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='otn-tunnel-name-domainG' value='`$tmp.aai.vpn-bindingG.vpn-name`' />\n<parameter name='client-id' value='`$tmp.aai.vpn-bindingG.access-client-id`' />\n<parameter name='provider-id' value='`$tmp.aai.vpn-bindingG.access-provider-id`' />\n<parameter name='topology-id' value='`$tmp.aai.vpn-bindingG.access-topology-id`' />\n",\r
+        "comments": "",\r
+        "x": 4319.75,\r
+        "y": 953.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dd94b2c2.353ff8",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create 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-domainG-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.url + '/restconf/data/ietf-te:te'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainG.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\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": 4400.75,\r
+        "y": 1268.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d78a59cb.d6e7a",\r
+                "667608aa.9739d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d78a59cb.d6e7a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4710.25,\r
+        "y": 1237.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "790b52bf.2108ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "667608aa.9739d",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4715.25,\r
+        "y": 1302.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "5fb9f65f.6d5da"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "790b52bf.2108ec",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
+        "comments": "",\r
+        "x": 4886.25,\r
+        "y": 1237.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5fb9f65f.6d5da",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4881.75,\r
+        "y": 1302.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "44e0a0bb.d00d2",\r
+        "type": "set",\r
+        "name": "set pnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.domainG.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-bindingG.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-bindingG.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-bindingG.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-bindingG.src-access-node-id`\" />\n",\r
+        "comments": "",\r
+        "x": 4257.75,\r
+        "y": 1001.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "17d8e4eb.b52ccb",\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.domainG.pnf-name\"\n        pfx='tmp.aai.domainG-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4283.75,\r
+        "y": 1118.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "a8ae3ef3.33406",\r
+                "fcb06d11.9b839",\r
+                "1567721b.17fbc6"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a8ae3ef3.33406",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4479.2501220703125,\r
+        "y": 1070.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "dc6575fd.da6538"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "fcb06d11.9b839",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4471.2501220703125,\r
+        "y": 1125.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "9508c711.df3318"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "dc6575fd.da6538",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4623.6324462890625,\r
+        "y": 1070.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "5887f01d.382f28"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5887f01d.382f28",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.domainG-pnf.relationship-list.relationship_length`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4807.75,\r
+        "y": 1068.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "7c993206.50f554"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7c993206.50f554",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5002.75,\r
+        "y": 1068.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "f4906a1c.c87a88"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1567721b.17fbc6",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4476.2501220703125,\r
+        "y": 1182.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "9c97fc0c.fac84"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c97fc0c.fac84",\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": 4628.2501220703125,\r
+        "y": 1183.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9508c711.df3318",\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": 4639.2501220703125,\r
+        "y": 1126.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "250c851.82c85fa",\r
+        "type": "set",\r
+        "name": "set vpn-bindingG and connectivityG",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-bindingG.' value=\"`$tmp.aai.vpn-binding.`\" />\n<parameter name='tmp.aai.connectivityG.' value=\"`$tmp.aai.connectivity.`\" />\n",\r
+        "comments": "",\r
+        "x": 4314.75,\r
+        "y": 893.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f4906a1c.c87a88",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5205.75,\r
+        "y": 1072.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "f2ceb67e.1c0c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d6942a62.437338",\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.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5590.75,\r
+        "y": 1085.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "2bfb5437.ab1884",\r
+                "14e65a71.083eb6",\r
+                "1ec347c1.300068"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f2ceb67e.1c0c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5384.75,\r
+        "y": 1072.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "e257c8b7.b2bd68",\r
+                "d6942a62.437338"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e257c8b7.b2bd68",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainG id",\r
+        "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.domainG-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 5620.75,\r
+        "y": 1033.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2bfb5437.ab1884",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5800.75,\r
+        "y": 1076.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "c27aaf5c.aef2b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "14e65a71.083eb6",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5792.75,\r
+        "y": 1131.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d07e83df.f79d38"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1ec347c1.300068",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5797.75,\r
+        "y": 1188.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d1674575.d6f7d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d1674575.d6f7d8",\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": 5949.75,\r
+        "y": 1189.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d07e83df.f79d38",\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": 5960.75,\r
+        "y": 1134.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c27aaf5c.aef2b8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5945.13232421875,\r
+        "y": 1074.4056701660156,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "1298a74.3cdd059"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1298a74.3cdd059",\r
+        "type": "set",\r
+        "name": "set controller domainG data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.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": 6159.75,\r
+        "y": 1070.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8ad3b61d.5ba128",\r
+        "type": "comment",\r
+        "name": "both src and dst exist",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3933.75,\r
+        "y": 1011.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "52401003.e54ba8",\r
+        "type": "switchNode",\r
+        "name": "switch vpn-binding is not already Activated (i.e. is either Created or Modified)",\r
+        "xml": "<switch test=\"`$tmp.aai.vpn-binding.operational-status != 'Activated' `\">\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2495.75,\r
+        "y": 738.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "84b154c7.dcfaf",\r
+                "d81b7512.e15008"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d81b7512.e15008",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2902.75,\r
+        "y": 756.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "cf7d3373.5ca978"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "84b154c7.dcfaf",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 2902.75,\r
+        "y": 701.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "37e2ea9b.dd967e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "37e2ea9b.dd967e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3058.75,\r
+        "y": 699.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            [\r
+                "d6d9459c.52e34",\r
+                "ae8dd7ac.9cc1d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cf7d3373.5ca978",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3035.75,\r
+        "y": 757.75,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "677bc6cc.c2278",\r
+        "type": "save",\r
+        "name": "update service-instance resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>\n<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5298.5,\r
+        "y": 810.25,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d67d1410.76b2b8",\r
+        "type": "save",\r
+        "name": "update service-instance resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'>\n<parameter name='service-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='orchestration-status' value='Activated' />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4710.25,\r
+        "y": 2278,\r
+        "z": "30d84baa.6f57bc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file