- Support for the Transport Slicing use-case to work with the updated YANG models
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / trans_slicing / GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-activate.json
index 669eca8..79f7746 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c95751e3.8ae788",\r
+        "id": "8976bcf1.70ac48",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 133,\r
-        "y": 58,\r
-        "z": "978d88fe.49f858",\r
+        "x": 233.75,\r
+        "y": 126.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "a120d0c2.d16848"\r
+                "b1b89c9d.983348"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a120d0c2.d16848",\r
+        "id": "b1b89c9d.983348",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
         "outputs": 1,\r
-        "x": 264.2856903076172,\r
-        "y": 107.23810863494873,\r
-        "z": "978d88fe.49f858",\r
+        "x": 365.0356903076172,\r
+        "y": 175.98810863494873,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "e3f08946.3b4f3"\r
+                "b0c84a88.7eefc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e3f08946.3b4f3",\r
+        "id": "b0c84a88.7eefc",\r
         "type": "method",\r
         "name": "method tsli-vnf-topology-operation-trans-slice-activate",\r
         "xml": "<method rpc='tsli-vnf-topology-operation-trans-slice-activate' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 267.4286193847656,\r
-        "y": 192.00003242492676,\r
-        "z": "978d88fe.49f858",\r
+        "x": 368.1786193847656,\r
+        "y": 260.75003242492676,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "da15bb94.f35d78"\r
+                "d31d270a.ac188"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "da15bb94.f35d78",\r
+        "id": "d31d270a.ac188",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 417.238037109375,\r
-        "y": 321.6666564941406,\r
-        "z": "978d88fe.49f858",\r
+        "x": 517.988037109375,\r
+        "y": 390.4166564941406,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "a0613c64.0d3d18",\r
-                "bec74808.bd7fc8",\r
-                "6e589ca9.47c63c",\r
-                "a8ba9960.6cb65",\r
-                "d40da373.f15598",\r
-                "358d1f62.e4f2c8",\r
-                "a739ea85.93c65",\r
-                "19a0d774.67fb01"\r
+                "67b5a6fb.99f89",\r
+                "31666720.2f23b8",\r
+                "1b5adc13.083b6c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a0613c64.0d3d18",\r
-        "type": "set",\r
-        "name": "set vnf-level-oper-status to Active",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",\r
+        "id": "67b5a6fb.99f89",\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": 760.3849563598633,\r
-        "y": 558.6705458434299,\r
-        "z": "978d88fe.49f858",\r
+        "x": 786.3216552734375,\r
+        "y": 777.34716796875,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "bec74808.bd7fc8",\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
+        "id": "1bac3f01.eca921",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
         "comments": "",\r
-        "x": 687.5716552734375,\r
-        "y": 1430.59716796875,\r
-        "z": "978d88fe.49f858",\r
+        "x": 817.75,\r
+        "y": 451.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "6e589ca9.47c63c",\r
-        "type": "set",\r
-        "name": "set vnf-index and vnf-object-path",\r
-        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",\r
+        "id": "31666720.2f23b8",\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": 837.75,\r
+        "y": 547.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "963616f2.8f1aa8",\r
+                "d3eed549.904728",\r
+                "b7b5ac0a.4b96c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "963616f2.8f1aa8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1056.75,\r
+        "y": 485.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "85a98f1d.b180e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3eed549.904728",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1066.240966796875,\r
+        "y": 528.3240356445312,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "bfe60f89.4e364"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "b7b5ac0a.4b96c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1054.75,\r
+        "y": 574.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "2df6c7e.346a038"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bfe60f89.4e364",\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": 1219.8123779296875,\r
+        "y": 531.6097717285156,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "2df6c7e.346a038",\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": 766.5716018676758,\r
-        "y": 506.5968001158908,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1223.75,\r
+        "y": 575.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a8ba9960.6cb65",\r
+        "id": "85a98f1d.b180e",\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": 1253.75,\r
+        "y": 481.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "58591981.123b78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "58591981.123b78",\r
         "type": "switchNode",\r
-        "name": "switch service-data.vnfs.vnf_length",\r
-        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\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": 775,\r
-        "y": 261,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1477.08349609375,\r
+        "y": 481.74993896484375,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "752da5f3.b4cc4c",\r
-                "b945aefb.e762f",\r
-                "8cef6bde.bc7818"\r
+                "56e0d242.b4b17c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8cef6bde.bc7818",\r
+        "id": "56e0d242.b4b17c",\r
         "type": "outcome",\r
-        "name": "0",\r
-        "xml": "<outcome value='0'>\n",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1677.7501335144043,\r
+        "y": 482.75002098083496,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "463ca820.11cf78"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "bda858bd.a9d128",\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": 4496.75,\r
+        "y": 198.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "be3c5cce.b55c98",\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": 4577.75,\r
+        "y": 513.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "a29e7e17.b5f91",\r
+                "3da90d10.f4de92"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a29e7e17.b5f91",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1167.968994140625,\r
-        "y": 226.96875,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4887.25,\r
+        "y": 482.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "5417fb2d.edce0c"\r
+                "878c441e.87326"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5417fb2d.edce0c",\r
+        "id": "3da90d10.f4de92",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4892.25,\r
+        "y": 547.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "d4311e2b.569f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "878c441e.87326",\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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create OTN tunnel rest api\" />\n",\r
         "comments": "",\r
-        "x": 1322.7778816223145,\r
-        "y": 245.889018535614,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5063.25,\r
+        "y": 482.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "752da5f3.b4cc4c",\r
-        "type": "other",\r
-        "name": "Null",\r
-        "xml": "<outcome value=''>\n",\r
+        "id": "d4311e2b.569f08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5058.75,\r
+        "y": 547.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3e803655.1b101a",\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": 4444.25,\r
+        "y": 701.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4c6ccd14.a8a574",\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": 1161.0001335144043,\r
-        "y": 266.00007152557373,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4598.25,\r
+        "y": 749.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "5417fb2d.edce0c"\r
+                "276414cf.b4df2c",\r
+                "64503714.72c7f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b945aefb.e762f",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "276414cf.b4df2c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4943.75,\r
+        "y": 730.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "102e191c.056cc7"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "64503714.72c7f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1154.0005416870117,\r
-        "y": 299.000075340271,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4947.75,\r
+        "y": 770.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "39deabe9.dfa46c"\r
+                "24862939.f8dc8e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39deabe9.dfa46c",\r
+        "id": "102e191c.056cc7",\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": 5101.75,\r
+        "y": 730.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "24862939.f8dc8e",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 1301.2700843811035,\r
-        "y": 299.5547204017639,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5105.25,\r
+        "y": 770.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "ffe0cb12.24663"\r
+                "21b9b574.b5d392",\r
+                "9fb31567.2a4df8",\r
+                "88154427.646e5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ffe0cb12.24663",\r
-        "type": "for",\r
-        "name": "for vidx..service-data.vnfs.vnf_length[]",\r
-        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
+        "id": "a1a69def.dde488",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 4441.75,\r
+        "y": 657.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "21b9b574.b5d392",\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": 5435.75,\r
+        "y": 735.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "88c6cc39.d0a418",\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": 5299.75,\r
+        "y": 694.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9fb31567.2a4df8",\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": 5362.75,\r
+        "y": 781.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c21bf12.e3cf58",\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": 4434.75,\r
+        "y": 246.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "70ce80db.d98e2",\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": 4460.75,\r
+        "y": 363.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "cd855b12.4c7648",\r
+                "e908220c.f2eba8",\r
+                "9142c53.c51d0b8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "cd855b12.4c7648",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1547.2862014770508,\r
-        "y": 306.42864084243774,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4656.2501220703125,\r
+        "y": 315.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "d581e614.41ca28"\r
+                "a4edf485.1b87b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d581e614.41ca28",\r
+        "id": "e908220c.f2eba8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4648.2501220703125,\r
+        "y": 370.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "9b453a42.4c355"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4edf485.1b87b",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1766.6358337402344,\r
-        "y": 305.96872091293335,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4800.6324462890625,\r
+        "y": 315.4056701660156,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "5c080425.067b9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c0826996.0b6fb8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5382.75,\r
+        "y": 317.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "6cb341ea.d215b"\r
+                "2f8dc255.fe7e1e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6cb341ea.d215b",\r
+        "id": "5c080425.067b9c",\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": 4984.75,\r
+        "y": 313.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "495e68aa.ac002"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "495e68aa.ac002",\r
         "type": "switchNode",\r
-        "name": "switch vnfid found",\r
-        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\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": 1920.715431213379,\r
-        "y": 305.67880296707153,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5179.75,\r
+        "y": 313.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "7e8f8e16.82297"\r
+                "c0826996.0b6fb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7e8f8e16.82297",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "9142c53.c51d0b8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4653.2501220703125,\r
+        "y": 427.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "9ce4b617.939088"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9ce4b617.939088",\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": 4805.2501220703125,\r
+        "y": 428.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "9b453a42.4c355",\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": 4816.2501220703125,\r
+        "y": 371.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e93c75e1.80ec18",\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": 5767.75,\r
+        "y": 330.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "31d08ad5.ae1df6",\r
+                "38f9754c.f69992",\r
+                "31e3f0ee.1be648"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "2f8dc255.fe7e1e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 5561.75,\r
+        "y": 317.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "35fe1089.09d838",\r
+                "e93c75e1.80ec18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "35fe1089.09d838",\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": 5797.75,\r
+        "y": 278.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "31d08ad5.ae1df6",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5977.75,\r
+        "y": 321.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "dcbf70b.fe9e51"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "38f9754c.f69992",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5969.75,\r
+        "y": 376.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "b70d6ea.910679"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "31e3f0ee.1be648",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 5974.75,\r
+        "y": 433.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "96cd1d2a.b041a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "96cd1d2a.b041a",\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": 6126.75,\r
+        "y": 434.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b70d6ea.910679",\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": 6137.75,\r
+        "y": 379.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dcbf70b.fe9e51",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2131.6675758361816,\r
-        "y": 308.571494102478,\r
-        "z": "978d88fe.49f858",\r
+        "x": 6122.13232421875,\r
+        "y": 319.4056701660156,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "1efc1703.0b69f1"\r
+                "b0be4e8c.83ee08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1efc1703.0b69f1",\r
+        "id": "b0be4e8c.83ee08",\r
         "type": "set",\r
-        "name": "set tmp.vidx and ctx.vnf-data",\r
-        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\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": 2341.199951171875,\r
-        "y": 310.32159423828125,\r
-        "z": "978d88fe.49f858",\r
+        "x": 6336.75,\r
+        "y": 315.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d40da373.f15598",\r
-        "type": "save",\r
-        "name": "update AnAI - vnf-instance.orchestration-status",\r
-        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
+        "id": "1b5adc13.083b6c",\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": 785.9999618530273,\r
-        "y": 625.0103714736179,\r
-        "z": "978d88fe.49f858",\r
+        "x": 803.75,\r
+        "y": 495.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "358d1f62.e4f2c8",\r
+        "id": "321a405b.7459b8",\r
         "type": "set",\r
-        "name": "copy input data to service data",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",\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": 765.0000762939453,\r
-        "y": 456.01033284980804,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3903.75,\r
+        "y": 1655.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a739ea85.93c65",\r
-        "type": "switchNode",\r
-        "name": "switch vnf-level-oper-status",\r
-        "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
+        "id": "13cb6aa6.78d01d",\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": 751.7499389648438,\r
-        "y": 361.00390270072967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3966.75,\r
+        "y": 1984.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "c40ac9fb.21106",\r
-                "625ef5e9.0fa304"\r
+                "10d81799.8466e",\r
+                "67bbae69.f0649"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c40ac9fb.21106",\r
-        "type": "outcome",\r
-        "name": "outcome Created",\r
-        "xml": "<outcome value='Created'>\n",\r
+        "id": "10d81799.8466e",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1131.5833320617676,\r
-        "y": 366.1149909766391,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4262.25,\r
+        "y": 1951.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "50da061e.3d2a4"\r
+                "892eb025.ee91a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "625ef5e9.0fa304",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "67bbae69.f0649",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1109.583351135254,\r
-        "y": 416.1150024207309,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4267.25,\r
+        "y": 2016.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "9d9a6d0b.f63a18"\r
+                "f603d29b.ff0438"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9d9a6d0b.f63a18",\r
+        "id": "892eb025.ee91a8",\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=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\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": 1269.0831184387207,\r
-        "y": 419.1150014670566,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4430.25,\r
+        "y": 1951.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "50da061e.3d2a4",\r
+        "id": "f603d29b.ff0438",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 1341.889705657959,\r
-        "y": 377.44016626197845,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4440.75,\r
+        "y": 2016.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "7a49c1a1.74cca",\r
-        "type": "comment",\r
-        "name": "new for TransportSlicing",\r
-        "info": "",\r
+        "id": "88f53e94.6d0a1",\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": 726,\r
-        "y": 699,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3842.75,\r
+        "y": 1712.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "19a0d774.67fb01",\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.service-information.service-instance-id\n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">",\r
+        "id": "3fa49f7e.accef8",\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": 737,\r
-        "y": 749,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3862.75,\r
+        "y": 1809.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "ef923a7d.6928a8",\r
-                "981c314b.31ecb8",\r
-                "65818037.104038"\r
+                "ebf12595.10e938",\r
+                "efabfdfe.5ba96",\r
+                "205446da.fa0a6a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ef923a7d.6928a8",\r
+        "id": "ebf12595.10e938",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 953,\r
-        "y": 714,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4065.2501220703125,\r
+        "y": 1762.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "c4da4ce2.e86fd"\r
+                "3bb96014.a51678"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "981c314b.31ecb8",\r
+        "id": "efabfdfe.5ba96",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 962.490966796875,\r
-        "y": 756.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4057.2501220703125,\r
+        "y": 1817.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "2c51a746.8529b8"\r
+                "6194e30c.a75eac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "65818037.104038",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "3bb96014.a51678",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4209.6324462890625,\r
+        "y": 1760.4056701660156,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "60e39d5f.e73f74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "60e39d5f.e73f74",\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": 4393.75,\r
+        "y": 1774.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "f8535a31.25ce18"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "205446da.fa0a6a",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 951,\r
-        "y": 803,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4062.2501220703125,\r
+        "y": 1874.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "11f3085c.6c3b58"\r
+                "126fd357.b0d735"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2c51a746.8529b8",\r
+        "id": "126fd357.b0d735",\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
+        "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": 1116.0623779296875,\r
-        "y": 759.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4214.2501220703125,\r
+        "y": 1875.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "11f3085c.6c3b58",\r
+        "id": "6194e30c.a75eac",\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
+        "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": 1120,\r
-        "y": 804,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4225.2501220703125,\r
+        "y": 1820.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c4da4ce2.e86fd",\r
-        "type": "for",\r
-        "name": "for each relationship",\r
-        "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
+        "id": "a4686eb2.3a15b8",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1150,\r
-        "y": 710,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4791.75,\r
+        "y": 1778.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "eb26c03f.cde3a"\r
+                "dd82991b.5dd978"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "eb26c03f.cde3a",\r
+        "id": "f8535a31.25ce18",\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
+        "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1373.33349609375,\r
-        "y": 709.9999389648438,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4588.75,\r
+        "y": 1774.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "b65d7d38.16fc68"\r
+                "a4686eb2.3a15b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b65d7d38.16fc68",\r
-        "type": "outcome",\r
-        "name": "connectivity",\r
-        "xml": "<outcome value='connectivity'>\n",\r
+        "id": "ad6998e4.c7769",\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": 1574.0001335144043,\r
-        "y": 711.000020980835,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5176.75,\r
+        "y": 1777.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "fda5561b.cca698"\r
+                "f50cc222.33dcd",\r
+                "8488316b.70cb5",\r
+                "804e8e55.127ce"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "edc6ee23.1891a",\r
-        "type": "save",\r
-        "name": "get connectivityA 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[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityA\" >\n",\r
+        "id": "dd82991b.5dd978",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 4968.75,\r
+        "y": 1770.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "c219345a.333ee8",\r
+                "ad6998e4.c7769"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c219345a.333ee8",\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": 5206.75,\r
+        "y": 1725.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5afc9335.91bec4",\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": 5535.75,\r
+        "y": 1881.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bba1d37e.3ac768",\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": 5546.75,\r
+        "y": 1826.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4872e24d.b18cd4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2179,\r
-        "y": 599,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5531.13232421875,\r
+        "y": 1766.4056701660156,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "81d6e319.abfd8",\r
-                "313c36d7.969d3a",\r
-                "3d5cf6f2.953e9a"\r
+                "4b7568ba.14d37"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fda5561b.cca698",\r
-        "type": "switchNode",\r
-        "name": "switch $rel-index == 0",\r
-        "xml": "<switch test=\"`$rel-index == 0`\">\n\n",\r
+        "id": "4b7568ba.14d37",\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": 5745.75,\r
+        "y": 1762.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f50cc222.33dcd",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1762,\r
-        "y": 709,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5386.75,\r
+        "y": 1768.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "44bd1b.3cc782e4",\r
-                "f85fb605.a76398"\r
+                "4872e24d.b18cd4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "44bd1b.3cc782e4",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "8488316b.70cb5",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1985,\r
-        "y": 599,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5378.75,\r
+        "y": 1823.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "edc6ee23.1891a"\r
+                "bba1d37e.3ac768"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f85fb605.a76398",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "804e8e55.127ce",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1971,\r
-        "y": 1156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5383.75,\r
+        "y": 1880.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "7b60b790.bc4c4"\r
+                "5afc9335.91bec4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7b60b790.bc4c4",\r
+        "id": "463ca820.11cf78",\r
         "type": "save",\r
-        "name": "get connectivityB 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[1].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivityB\" >\n",\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": 2167,\r
-        "y": 1156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1915.75,\r
+        "y": 484.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "8b96b70e.2f635",\r
-                "20f5c9d8.832b4e",\r
-                "f513c25.b78554"\r
+                "2eb4dc08.7f1c34",\r
+                "fa210005.600e9",\r
+                "cf2c914d.6b904"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "81d6e319.abfd8",\r
+        "id": "2eb4dc08.7f1c34",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2385,\r
-        "y": 559,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2123.75,\r
+        "y": 448.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "98b1c0b9.f7f4b"\r
+                "fdf5ae6d.1a01"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "313c36d7.969d3a",\r
+        "id": "fa210005.600e9",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2385.490966796875,\r
-        "y": 604.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2124.240966796875,\r
+        "y": 494.32403564453125,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "d4d990d4.f7b0a8"\r
+                "f1f7e3b1.bd8ea8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3d5cf6f2.953e9a",\r
+        "id": "cf2c914d.6b904",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2383,\r
-        "y": 648,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "97be5e5a.798428"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "98b1c0b9.f7f4b",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 2557.66650390625,\r
-        "y": 558,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2121.75,\r
+        "y": 537.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "2d415746.a7be9",\r
-                "96d25665.97a75",\r
-                "2f11d14a.7d5856",\r
-                "d0c66bee.225358"\r
+                "da54cf61.ae1b78"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d4d990d4.f7b0a8",\r
+        "id": "f1f7e3b1.bd8ea8",\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": 2548.0623779296875,\r
-        "y": 604.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2286.8123779296875,\r
+        "y": 494.6097717285156,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "97be5e5a.798428",\r
+        "id": "da54cf61.ae1b78",\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": 2552,\r
-        "y": 649,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2290.75,\r
+        "y": 538.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8b96b70e.2f635",\r
+        "id": "7cc4f06d.7fdaa",\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": 2596.75,\r
+        "y": 537.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "48c45912.635ab8",\r
+                "a55b1245.6d5a98",\r
+                "5114317.7fef9d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f222a91f.adc5a8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2976.75,\r
+        "y": 625.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "941633f0.a03e2"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "48c45912.635ab8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2387,\r
-        "y": 1127,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2807.75,\r
+        "y": 626.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "aff8819.10cbe8"\r
+                "f222a91f.adc5a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "20f5c9d8.832b4e",\r
+        "id": "a55b1245.6d5a98",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2388.490966796875,\r
-        "y": 1172.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2810.240966796875,\r
+        "y": 522.3240356445312,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "cb55df0.f8980a"\r
+                "c2aa70b6.4baf8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f513c25.b78554",\r
+        "id": "5114317.7fef9d",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2385,\r
-        "y": 1218,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "fd8e37a.cf27348"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "aff8819.10cbe8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 2559.66650390625,\r
-        "y": 1128,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2805.75,\r
+        "y": 566.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "490cf25b.6f8bbc",\r
-                "7192c89b.9fa8a",\r
-                "83e10369.9e2a48",\r
-                "8632824a.a7d1a"\r
+                "3cb9370e.446c48"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb55df0.f8980a",\r
+        "id": "3cb9370e.446c48",\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
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 2550.0623779296875,\r
-        "y": 1174.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2973.75,\r
+        "y": 566.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fd8e37a.cf27348",\r
+        "id": "c2aa70b6.4baf8",\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
+        "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": 2554,\r
-        "y": 1219,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2972.8125,\r
+        "y": 521.6097412109375,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "2d415746.a7be9",\r
-        "type": "save",\r
-        "name": "get vpn-binding-A 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.connectivityA.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingA\" >\n",\r
+        "id": "fdf5ae6d.1a01",\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": 2782,\r
-        "y": 556,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2324.75,\r
+        "y": 443.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "2054e000.51325",\r
-                "24cb3e35.5919ba",\r
-                "49ca8d9.cac6774"\r
+                "de0f0110.005fa8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "490cf25b.6f8bbc",\r
-        "type": "save",\r
-        "name": "get vpn-binding-B 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.connectivityB.relationship-list.relationship[0].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-bindingB\" >\n",\r
+        "id": "de0f0110.005fa8",\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": 2529.75,\r
+        "y": 443.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "a755493f.53e5c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a755493f.53e5c",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2786,\r
-        "y": 1126,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2695.75,\r
+        "y": 443.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "9697ed36.e16ad8",\r
-                "1b825f20.68c389",\r
-                "214845f.325e5ba"\r
+                "30deb2e6.ddbdde"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8505e692.6e58e8",\r
+        "id": "30deb2e6.ddbdde",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3166,\r
-        "y": 556,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2858.75,\r
+        "y": 443.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "1e245d3c.a778db",\r
-                "f09e2868.9a86c8"\r
+                "7cc4f06d.7fdaa",\r
+                "5a3b76e5.927ca8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1e245d3c.a778db",\r
-        "type": "set",\r
-        "name": "set attachment_param for OTN A",\r
-        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingA.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingA.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingA.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingA.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingA.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingA.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingA.access-topology-id`' />\n\n",\r
-        "comments": "",\r
-        "x": 3402,\r
-        "y": 555,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "2054e000.51325",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "e892b304.06846",\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": 2993,\r
-        "y": 558,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3417.75,\r
+        "y": 726.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "8505e692.6e58e8"\r
+                "21602510.29ed62",\r
+                "bcc4ade6.f232"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "24cb3e35.5919ba",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "21602510.29ed62",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993.490966796875,\r
-        "y": 603.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3631.75,\r
+        "y": 763.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "7b7e2f47.0a22b"\r
+                "134315e7.fd7042"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "49ca8d9.cac6774",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "bcc4ade6.f232",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2991,\r
-        "y": 647,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3633.75,\r
+        "y": 701.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "f869989c.799108"\r
+                "3ace6707.d27cb8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f869989c.799108",\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": 3158,\r
-        "y": 646,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "7b7e2f47.0a22b",\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": 3156.0623779296875,\r
-        "y": 603.8597717285156,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "9697ed36.e16ad8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "134315e7.fd7042",\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": 2993,\r
-        "y": 1129,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3211.75,\r
+        "y": 2006.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "d0988988.8d0a18"\r
+                "36f11901.c669fe",\r
+                "3d3a4221.98f866"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1b825f20.68c389",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "36f11901.c669fe",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993.490966796875,\r
-        "y": 1174.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3464.75,\r
+        "y": 2040.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "875a2548.0cfdc8"\r
+                "861f9ff3.a542f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "214845f.325e5ba",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "3d3a4221.98f866",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2991,\r
-        "y": 1218,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3464.75,\r
+        "y": 1984.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "5743b059.d8fee"\r
+                "cd34c51c.32ff6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5743b059.d8fee",\r
+        "id": "861f9ff3.a542f8",\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": 3160,\r
-        "y": 1219,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3615.75,\r
+        "y": 2040.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "875a2548.0cfdc8",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
+        "id": "37ab634e.8eb82c",\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": 4491.75,\r
+        "y": 138.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e9288827.8d4e48",\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": 3899.75,\r
+        "y": 1597.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5833352c.36b4cc",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "comments": "",\r
-        "x": 3156.0623779296875,\r
-        "y": 1174.8597717285156,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4182.75,\r
+        "y": 395.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "37ab634e.8eb82c",\r
+                "bda858bd.a9d128",\r
+                "3c21bf12.e3cf58",\r
+                "70ce80db.d98e2",\r
+                "3e803655.1b101a",\r
+                "4c6ccd14.a8a574",\r
+                "be3c5cce.b55c98"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "d0988988.8d0a18",\r
+        "id": "cd34c51c.32ff6",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3162,\r
-        "y": 1129,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3615.75,\r
+        "y": 1983.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "7dda745d.4071a4",\r
-                "6468b39.c45bd4c"\r
+                "e9288827.8d4e48",\r
+                "321a405b.7459b8",\r
+                "88f53e94.6d0a1",\r
+                "3fa49f7e.accef8",\r
+                "13cb6aa6.78d01d",\r
+                "6887177c.ca96",\r
+                "4e3c7c24.641514"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7dda745d.4071a4",\r
+        "id": "6887177c.ca96",\r
         "type": "set",\r
-        "name": "set attachment_param for OTN B",\r
-        "xml": "<set>\n<parameter name='ietf-te_te.tunnels.tunnel[0].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].dst-ttp-id' value='`$tmp.aai.vpn-bindingB.dst-access-ltp-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].ietf-otn-tunnel_dst-tpn' value='' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[0].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].source' value='`$tmp.aai.vpn-bindingB.access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].destination' value='`$tmp.aai.vpn-bindingB.dst-access-node-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].name' value='tptunnel-22' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].dependency-tunnels.dependency-tunnel[0].name' value='`$tmp.aai.vpn-bindingB.vpn-name`' />\n\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.client-id' value='`$tmp.aai.vpn-bindingB.access-client-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.provider-id' value='`$tmp.aai.vpn-bindingB.access-provider-id`' />\n<parameter name='ietf-te_te.tunnels.tunnel[1].te-topology-identifier.topology-id' value='`$tmp.aai.vpn-bindingB.access-topology-id`' />\n\n",\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": 3398,\r
-        "y": 1128,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3844.75,\r
+        "y": 2126.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "f09e2868.9a86c8",\r
+        "id": "4e3c7c24.641514",\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 + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\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": 3480,\r
-        "y": 601,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3998.75,\r
+        "y": 2174.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "a8d618e8.7c53c8",\r
-                "84fddcaa.8b02a"\r
+                "a995cca0.79095",\r
+                "691eaa5b.460a8c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a8d618e8.7c53c8",\r
+        "id": "a995cca0.79095",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3790.5,\r
-        "y": 568,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4344.25,\r
+        "y": 2155.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "6eacb8a7.7aa3d"\r
+                "8dda8416.3500c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "84fddcaa.8b02a",\r
+        "id": "691eaa5b.460a8c",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3805.5,\r
-        "y": 633,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4348.25,\r
+        "y": 2195.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "b82bd962.cbba2"\r
+                "12034c01.7a6e24"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6eacb8a7.7aa3d",\r
+        "id": "8dda8416.3500c",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
+        "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": 3974.5,\r
-        "y": 564,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4502.25,\r
+        "y": 2155.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b82bd962.cbba2",\r
+        "id": "12034c01.7a6e24",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4000,\r
-        "y": 626,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4505.75,\r
+        "y": 2195.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "7af02db5.1d648c",\r
+                "7e35a72c.c5049",\r
+                "ed48bc59.3a7d1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8f84b99e.0eac8",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "comments": "",\r
+        "x": 3842.25,\r
+        "y": 2082.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7af02db5.1d648c",\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": 4845.75,\r
+        "y": 2194.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "74c1bd3a.398664",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "1abb03b6.c2733c",\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": 4703.75,\r
+        "y": 2152.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "7e35a72c.c5049",\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": 3775,\r
-        "y": 1150,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4774.75,\r
+        "y": 2243.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
-            [\r
-                "fc791248.fc4648"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "fdc0c54.10c51b8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7f9728ff.5a56d",\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": 3408.75,\r
+        "y": 666.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5a3b76e5.927ca8",\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": 3042.75,\r
+        "y": 314.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "5dc7fe07.3de0e",\r
+        "type": "comment",\r
+        "name": "only dst ttp exists. No src",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 4003.75,\r
+        "y": 352.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "95f7053c.6e7e8",\r
+        "type": "comment",\r
+        "name": "only src ttp exists. No dst",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 3560.75,\r
+        "y": 1930.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "3ace6707.d27cb8",\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": 3790,\r
-        "y": 1215,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3739.75,\r
+        "y": 514.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "16f26dc2.3147e2"\r
+                "784800ed.f5bf68",\r
+                "38254c71.c979d4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fc791248.fc4648",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
+        "id": "38254c71.c979d4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
-        "x": 3959,\r
-        "y": 1146,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3981.75,\r
+        "y": 1103.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "8cda2b7.f98f558"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "16f26dc2.3147e2",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "784800ed.f5bf68",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3984.5,\r
-        "y": 1208,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3975.75,\r
+        "y": 394.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
-            []\r
+            [\r
+                "5833352c.36b4cc"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "6468b39.c45bd4c",\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 + '/sotn-otn-tunnel-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-te:te'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<!--<parameter name='dirPath' value=\"/opt/sdnc/restapi/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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
-        "comments": "",\r
+        "id": "8cda2b7.f98f558",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3464.5,\r
-        "y": 1183,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4139.75,\r
+        "y": 1102.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "74c1bd3a.398664",\r
-                "fdc0c54.10c51b8"\r
+                "b7c2373e.9cd388",\r
+                "147ed25c.bf0c96",\r
+                "9a1eac1c.da1de8",\r
+                "2922d6af.6c9642",\r
+                "6061bd4e.a66dac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2f11d14a.7d5856",\r
+        "id": "147ed25c.bf0c96",\r
         "type": "set",\r
-        "name": "set sotn_value",\r
-        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\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": 2766.5,\r
-        "y": 898,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4403.75,\r
+        "y": 985.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d0c66bee.225358",\r
+        "id": "6061bd4e.a66dac",\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=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"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\"/>",\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": 2920.5,\r
-        "y": 946,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4484.75,\r
+        "y": 1300.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "3db41fa8.f38878",\r
-                "fbb2729e.49853"\r
+                "de634d2d.e7705",\r
+                "961ea997.f45bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3db41fa8.f38878",\r
+        "id": "de634d2d.e7705",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3266,\r
-        "y": 927,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4794.25,\r
+        "y": 1269.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "f346270d.843368"\r
+                "4e3f5895.525ca8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fbb2729e.49853",\r
+        "id": "961ea997.f45bc",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3270,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4799.25,\r
+        "y": 1334.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "c716fb9b.f3ffc"\r
+                "8c3ef243.d5f688"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f346270d.843368",\r
+        "id": "4e3f5895.525ca8",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
+        "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": 3424,\r
-        "y": 927,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4970.25,\r
+        "y": 1269.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c716fb9b.f3ffc",\r
+        "id": "8c3ef243.d5f688",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3427.5,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4965.75,\r
+        "y": 1334.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
-            [\r
-                "3124f6f9.b8bd1a",\r
-                "856ae03f.786118"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "4c34ee00.d0d39",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "id": "9a1eac1c.da1de8",\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": 2764,\r
-        "y": 854,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4341.75,\r
+        "y": 1033.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "96d25665.97a75",\r
+        "id": "2922d6af.6c9642",\r
         "type": "get-resource",\r
-        "name": "get-resource esr-thirdparty-sdnc",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\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": 2816,\r
-        "y": 780,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4367.75,\r
+        "y": 1150.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "4a3c4a39.62e724",\r
-                "e52cd6a7.6aeb28",\r
-                "bb40af56.1cbe7"\r
+                "7da6d8ec.042ad",\r
+                "feb3e7e4.820368",\r
+                "c44e5f71.e84558"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4a3c4a39.62e724",\r
+        "id": "7da6d8ec.042ad",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3062,\r
-        "y": 740,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4563.2501220703125,\r
+        "y": 1102.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "9e28f8d9.f64138"\r
+                "e38aeca.3dbc21"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e52cd6a7.6aeb28",\r
+        "id": "feb3e7e4.820368",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3066,\r
-        "y": 780,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4555.2501220703125,\r
+        "y": 1157.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "916c7538.648ed"\r
+                "7637358b.a7e4fc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bb40af56.1cbe7",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "e38aeca.3dbc21",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3058,\r
-        "y": 820,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4707.6324462890625,\r
+        "y": 1102.4056701660156,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "a678576a.20b77"\r
+                "fc132576.25bf4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a678576a.20b77",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "id": "fc132576.25bf4",\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
-        "x": 3216,\r
-        "y": 820,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4891.75,\r
+        "y": 1100.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "823913cb.fbad5"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "916c7538.648ed",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "id": "823913cb.fbad5",\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
-        "x": 3216,\r
-        "y": 780,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 5086.75,\r
+        "y": 1100.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "ac47c77.0d50538"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "9e28f8d9.f64138",\r
-        "type": "set",\r
-        "name": "set controller data",\r
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\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
+        "id": "c44e5f71.e84558",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
-        "x": 3232,\r
-        "y": 740,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 4560.2501220703125,\r
+        "y": 1214.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "e748e54c.7c4d78"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "b0af8ca6.269818",\r
-        "type": "comment",\r
-        "name": "Get controller info and send request",\r
-        "info": "",\r
+        "id": "e748e54c.7c4d78",\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": 2824,\r
-        "y": 740,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4712.2501220703125,\r
+        "y": 1215.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "83e10369.9e2a48",\r
-        "type": "set",\r
-        "name": "set sotn_value",\r
-        "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
+        "id": "7637358b.a7e4fc",\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": 2752,\r
-        "y": 1454,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4723.2501220703125,\r
+        "y": 1158.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8632824a.a7d1a",\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=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\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=\"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\"/>",\r
+        "id": "b7c2373e.9cd388",\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
-        "outputs": 1,\r
-        "x": 2906,\r
-        "y": 1502,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "51ac9234.46b414",\r
-                "a5f17af5.5d803"\r
-            ]\r
-        ]\r
+        "x": 4398.75,\r
+        "y": 925.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "51ac9234.46b414",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "ac47c77.0d50538",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3251.5,\r
-        "y": 1483,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5289.75,\r
+        "y": 1104.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "6f72d542.94964c"\r
+                "ee4f92a0.59618"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a5f17af5.5d803",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "afac86b6.9de7f8",\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": 3255.5,\r
-        "y": 1523,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5674.75,\r
+        "y": 1117.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "2dab9f7d.db59d8"\r
+                "25aa1b1d.6db59c",\r
+                "a1092777.856c6",\r
+                "2b2036c0.eb7f62"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6f72d542.94964c",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
-        "comments": "",\r
-        "x": 3409.5,\r
-        "y": 1483,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "2dab9f7d.db59d8",\r
+        "id": "ee4f92a0.59618",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
-        "comments": "",\r
         "outputs": 1,\r
-        "x": 3413,\r
-        "y": 1523,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5468.75,\r
+        "y": 1104.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "a1391891.c310f",\r
-                "ccc1b1df.33721"\r
+                "e370a3c1.84639",\r
+                "afac86b6.9de7f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5d06869f.f8bcb8",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "put proper values based on connectivity resource retrieved from AAI",\r
+        "id": "e370a3c1.84639",\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": 2749.5,\r
-        "y": 1410,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5704.75,\r
+        "y": 1065.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7192c89b.9fa8a",\r
-        "type": "get-resource",\r
-        "name": "get-resource esr-thirdparty-sdnc",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2801.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "e2e5c437.a11d5",\r
-                "9dfaf98b.e80c9",\r
-                "dcca7d62.830ee8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "e2e5c437.a11d5",\r
+        "id": "25aa1b1d.6db59c",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3047.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5884.75,\r
+        "y": 1108.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "427eefc5.61bc"\r
+                "345ab0d6.763128"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9dfaf98b.e80c9",\r
+        "id": "a1092777.856c6",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3051.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5876.75,\r
+        "y": 1163.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "8ac5fa96.75d4b"\r
+                "42378f39.6fe7f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dcca7d62.830ee8",\r
+        "id": "2b2036c0.eb7f62",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3043.5,\r
-        "y": 1376,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5881.75,\r
+        "y": 1220.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             [\r
-                "39cf0825.d43ae"\r
+                "cd65837d.e470e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39cf0825.d43ae",\r
+        "id": "cd65837d.e470e",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "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": 3201.5,\r
-        "y": 1376,\r
-        "z": "978d88fe.49f858",\r
+        "x": 6033.75,\r
+        "y": 1221.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8ac5fa96.75d4b",\r
+        "id": "42378f39.6fe7f",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+        "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": 3201.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
+        "x": 6044.75,\r
+        "y": 1166.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "427eefc5.61bc",\r
-        "type": "set",\r
-        "name": "set controller data",\r
-        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\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
+        "id": "345ab0d6.763128",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
-        "x": 3217.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 6029.13232421875,\r
+        "y": 1106.4056701660156,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "50b0a43e.7ed78c"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "74572637.f29d7",\r
-        "type": "comment",\r
-        "name": "Get controller info and send request",\r
-        "info": "",\r
+        "id": "50b0a43e.7ed78c",\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": 2809.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
+        "x": 6243.75,\r
+        "y": 1102.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "135b0ed7.2faa91",\r
+        "id": "73d673d.bf12a0c",\r
         "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "name": "both src and dst exist",\r
+        "info": "",\r
         "comments": "",\r
-        "x": 2744,\r
-        "y": 1256,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4017.75,\r
+        "y": 1043.75,\r
+        "z": "21b8a150.843866",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a58ac83b.b037d",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "id": "941633f0.a03e2",\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
-        "x": 2756,\r
-        "y": 700,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2579.75,\r
+        "y": 770.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "cee45ed9.f16768",\r
+                "eb58c452.cd625"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "3124f6f9.b8bd1a",\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.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
+        "id": "eb58c452.cd625",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3756,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2986.75,\r
+        "y": 788.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
-            []\r
+            [\r
+                "736cb25.e089b4c"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "554a4766.c457a",\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
+        "id": "cee45ed9.f16768",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
-        "x": 3620,\r
-        "y": 926,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2986.75,\r
+        "y": 733.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            [\r
+                "ba60006d.870c1"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "a1391891.c310f",\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.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
-        "comments": "",\r
+        "id": "ba60006d.870c1",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3753,\r
-        "y": 1522,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3142.75,\r
+        "y": 731.75,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
-            []\r
+            [\r
+                "7f9728ff.5a56d",\r
+                "e892b304.06846"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "90d3682d.e54348",\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
+        "id": "736cb25.e089b4c",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>",\r
+        "atomic": "false",\r
         "comments": "",\r
-        "x": 3611,\r
-        "y": 1480,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3119.75,\r
+        "y": 789.75,\r
+        "z": "21b8a150.843866",\r
+        "wires": [\r
+            []\r
+        ]\r
     },\r
     {\r
-        "id": "856ae03f.786118",\r
+        "id": "88154427.646e5",\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 = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='Activated' />\n",\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": 3683,\r
-        "y": 1013,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5382.5,\r
+        "y": 842.25,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ccc1b1df.33721",\r
+        "id": "ed48bc59.3a7d1",\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 = $prop.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainA-uuid`' />\n<parameter name='operational-status' value='Activated' />\n",\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": 3682,\r
-        "y": 1571,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4794.25,\r
+        "y": 2310,\r
+        "z": "21b8a150.843866",\r
         "wires": [\r
             []\r
         ]\r