- Changing POST operation to PATCH for OTN Tunnel creation.
[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..3d894d5 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "c95751e3.8ae788",\r
+        "id": "d5615e24.a00ab8",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 133,\r
-        "y": 58,\r
-        "z": "978d88fe.49f858",\r
+        "x": 156,\r
+        "y": 95,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "a120d0c2.d16848"\r
+                "90741178.637a68"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a120d0c2.d16848",\r
+        "id": "90741178.637a68",\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": 287.2856903076172,\r
+        "y": 144.23810863494873,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "e3f08946.3b4f3"\r
+                "e9aee376.235818"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e3f08946.3b4f3",\r
+        "id": "e9aee376.235818",\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": 290.4286193847656,\r
+        "y": 229.00003242492676,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "da15bb94.f35d78"\r
+                "9c8b5d20.5b6ef8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "da15bb94.f35d78",\r
+        "id": "9c8b5d20.5b6ef8",\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": 440.238037109375,\r
+        "y": 358.6666564941406,\r
+        "z": "8a9c455f.82beb8",\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
+                "f1c1dc9b.59851",\r
+                "40fee6aa.417918",\r
+                "a3f28ac6.d30ed8"\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
-        "comments": "",\r
-        "x": 760.3849563598633,\r
-        "y": 558.6705458434299,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "bec74808.bd7fc8",\r
+        "id": "f1c1dc9b.59851",\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": 687.5716552734375,\r
-        "y": 1430.59716796875,\r
-        "z": "978d88fe.49f858",\r
+        "x": 708.5716552734375,\r
+        "y": 745.59716796875,\r
+        "z": "8a9c455f.82beb8",\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": "e4fd4d94.2b8ec8",\r
+        "type": "comment",\r
+        "name": "new for TransportSlicing",\r
+        "info": "",\r
         "comments": "",\r
-        "x": 766.5716018676758,\r
-        "y": 506.5968001158908,\r
-        "z": "978d88fe.49f858",\r
+        "x": 740,\r
+        "y": 420,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a8ba9960.6cb65",\r
-        "type": "switchNode",\r
-        "name": "switch service-data.vnfs.vnf_length",\r
-        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
+        "id": "40fee6aa.417918",\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": 775,\r
-        "y": 261,\r
-        "z": "978d88fe.49f858",\r
+        "x": 760,\r
+        "y": 516,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "752da5f3.b4cc4c",\r
-                "b945aefb.e762f",\r
-                "8cef6bde.bc7818"\r
+                "15f2cda7.88709a",\r
+                "187b249d.3c85cb",\r
+                "c12e657e.e2c7f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8cef6bde.bc7818",\r
-        "type": "outcome",\r
-        "name": "0",\r
-        "xml": "<outcome value='0'>\n",\r
+        "id": "15f2cda7.88709a",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1167.968994140625,\r
-        "y": 226.96875,\r
-        "z": "978d88fe.49f858",\r
+        "x": 979,\r
+        "y": 454,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "5417fb2d.edce0c"\r
+                "56c6117d.ed7bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5417fb2d.edce0c",\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
-        "comments": "",\r
-        "x": 1322.7778816223145,\r
-        "y": 245.889018535614,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "752da5f3.b4cc4c",\r
-        "type": "other",\r
-        "name": "Null",\r
-        "xml": "<outcome value=''>\n",\r
+        "id": "187b249d.3c85cb",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1161.0001335144043,\r
-        "y": 266.00007152557373,\r
-        "z": "978d88fe.49f858",\r
+        "x": 988.490966796875,\r
+        "y": 496.57403564453125,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "5417fb2d.edce0c"\r
+                "dd3e3cac.482ca8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b945aefb.e762f",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "c12e657e.e2c7f8",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1154.0005416870117,\r
-        "y": 299.000075340271,\r
-        "z": "978d88fe.49f858",\r
+        "x": 977,\r
+        "y": 543,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "39deabe9.dfa46c"\r
+                "d7bbbdd4.b85c7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39deabe9.dfa46c",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
-        "outputs": 1,\r
-        "x": 1301.2700843811035,\r
-        "y": 299.5547204017639,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "ffe0cb12.24663"\r
-            ]\r
-        ]\r
+        "id": "dd3e3cac.482ca8",\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": 1142.0623779296875,\r
+        "y": 499.8597717285156,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\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": "d7bbbdd4.b85c7",\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
-        "outputs": 1,\r
-        "x": 1547.2862014770508,\r
-        "y": 306.42864084243774,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "d581e614.41ca28"\r
-            ]\r
-        ]\r
+        "x": 1146,\r
+        "y": 544,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "d581e614.41ca28",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "56c6117d.ed7bc",\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": 1766.6358337402344,\r
-        "y": 305.96872091293335,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1176,\r
+        "y": 450,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "6cb341ea.d215b"\r
+                "68f0da0a.13a494"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6cb341ea.d215b",\r
+        "id": "68f0da0a.13a494",\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.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1920.715431213379,\r
-        "y": 305.67880296707153,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1399.33349609375,\r
+        "y": 449.99993896484375,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "7e8f8e16.82297"\r
+                "a37a9810.801788"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7e8f8e16.82297",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "a37a9810.801788",\r
+        "type": "outcome",\r
+        "name": "connectivity",\r
+        "xml": "<outcome value='connectivity'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2131.6675758361816,\r
-        "y": 308.571494102478,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1600.0001335144043,\r
+        "y": 451.00002098083496,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "1efc1703.0b69f1"\r
+                "2d3714db.b7aad4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1efc1703.0b69f1",\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
-        "comments": "",\r
-        "x": 2341.199951171875,\r
-        "y": 310.32159423828125,\r
-        "z": "978d88fe.49f858",\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
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 785.9999618530273,\r
-        "y": 625.0103714736179,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "358d1f62.e4f2c8",\r
+        "id": "3d56fd4f.8da4ea",\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 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-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": 765.0000762939453,\r
-        "y": 456.01033284980804,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3861,\r
+        "y": 170,\r
+        "z": "8a9c455f.82beb8",\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": "119d7057.187e9",\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": 751.7499389648438,\r
-        "y": 361.00390270072967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3942,\r
+        "y": 485,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "c40ac9fb.21106",\r
-                "625ef5e9.0fa304"\r
+                "a078109.a1f9bf",\r
+                "c205f5c4.0bdb88"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c40ac9fb.21106",\r
-        "type": "outcome",\r
-        "name": "outcome Created",\r
-        "xml": "<outcome value='Created'>\n",\r
+        "id": "a078109.a1f9bf",\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": 4251.5,\r
+        "y": 454,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "50da061e.3d2a4"\r
+                "3b38ca16.a7fb4e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "625ef5e9.0fa304",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "c205f5c4.0bdb88",\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": 4256.5,\r
+        "y": 519,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "9d9a6d0b.f63a18"\r
+                "176e9242.258856"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9d9a6d0b.f63a18",\r
+        "id": "3b38ca16.a7fb4e",\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": 4427.5,\r
+        "y": 454,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "50da061e.3d2a4",\r
+        "id": "176e9242.258856",\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": 4423,\r
+        "y": 519,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "7a49c1a1.74cca",\r
-        "type": "comment",\r
-        "name": "new for TransportSlicing",\r
-        "info": "",\r
+        "id": "ab834e.f483fcb",\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='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",\r
         "comments": "",\r
-        "x": 726,\r
-        "y": 699,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3808.5,\r
+        "y": 673,\r
+        "z": "8a9c455f.82beb8",\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": "c9d60073.e2df48",\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": 737,\r
-        "y": 749,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3962.5,\r
+        "y": 721,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "ef923a7d.6928a8",\r
-                "981c314b.31ecb8",\r
-                "65818037.104038"\r
+                "1e624148.f51b17",\r
+                "9b38443d.36a338"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ef923a7d.6928a8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "1e624148.f51b17",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 953,\r
-        "y": 714,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4308,\r
+        "y": 702,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "c4da4ce2.e86fd"\r
+                "20712318.8d32fc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "981c314b.31ecb8",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "9b38443d.36a338",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 962.490966796875,\r
-        "y": 756.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4312,\r
+        "y": 742,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "2c51a746.8529b8"\r
+                "a4fdbce9.b1c4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "65818037.104038",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "20712318.8d32fc",\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": 4466,\r
+        "y": 702,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a4fdbce9.b1c4",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 951,\r
-        "y": 803,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4469.5,\r
+        "y": 742,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "11f3085c.6c3b58"\r
+                "f9579fb7.928158",\r
+                "b5483433.ff3288"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2c51a746.8529b8",\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": "320ccbea.c02274",\r
+        "type": "comment",\r
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
         "comments": "",\r
-        "x": 1116.0623779296875,\r
-        "y": 759.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3806,\r
+        "y": 629,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "11f3085c.6c3b58",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "f9579fb7.928158",\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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
         "comments": "",\r
-        "x": 1120,\r
-        "y": 804,\r
-        "z": "978d88fe.49f858",\r
+        "outputs": 1,\r
+        "x": 4800,\r
+        "y": 707,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3281524.0d8478",\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": 4664,\r
+        "y": 666,\r
+        "z": "8a9c455f.82beb8",\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": "b5483433.ff3288",\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": 1150,\r
-        "y": 710,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4727,\r
+        "y": 753,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
-            [\r
-                "eb26c03f.cde3a"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "eb26c03f.cde3a",\r
-        "type": "switchNode",\r
-        "name": "switch related-to",\r
-        "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
+        "id": "5074df67.2ba988",\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
-        "outputs": 1,\r
-        "x": 1373.33349609375,\r
-        "y": 709.9999389648438,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "b65d7d38.16fc68"\r
-            ]\r
-        ]\r
+        "x": 3799,\r
+        "y": 218,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "b65d7d38.16fc68",\r
-        "type": "outcome",\r
-        "name": "connectivity",\r
-        "xml": "<outcome value='connectivity'>\n",\r
+        "id": "9fd13730.014208",\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": 1574.0001335144043,\r
-        "y": 711.000020980835,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3825,\r
+        "y": 335,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "fda5561b.cca698"\r
+                "e11a5ea7.685f28",\r
+                "6cb0b7a8.80c24",\r
+                "a90c44f8.bdb148"\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": "e11a5ea7.685f28",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2179,\r
-        "y": 599,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4020.5001220703125,\r
+        "y": 287,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "81d6e319.abfd8",\r
-                "313c36d7.969d3a",\r
-                "3d5cf6f2.953e9a"\r
+                "dfb8903c.c1b1d8"\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": "6cb0b7a8.80c24",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1762,\r
-        "y": 709,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4012.5001220703125,\r
+        "y": 342,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "44bd1b.3cc782e4",\r
-                "f85fb605.a76398"\r
+                "509847ff.264c58"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "44bd1b.3cc782e4",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "dfb8903c.c1b1d8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1985,\r
-        "y": 599,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4164.8824462890625,\r
+        "y": 286.6556701660156,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "edc6ee23.1891a"\r
+                "22c6d630.71326a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f85fb605.a76398",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "5e775dc4.42bfbc",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1971,\r
-        "y": 1156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4747,\r
+        "y": 289,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "7b60b790.bc4c4"\r
+                "f76a815f.36c178"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7b60b790.bc4c4",\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
+        "id": "22c6d630.71326a",\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": 2167,\r
-        "y": 1156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4349,\r
+        "y": 285,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "8b96b70e.2f635",\r
-                "20f5c9d8.832b4e",\r
-                "f513c25.b78554"\r
+                "a3e1c0eb.9f5f88"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "81d6e319.abfd8",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "a3e1c0eb.9f5f88",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2385,\r
-        "y": 559,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4544,\r
+        "y": 285,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "98b1c0b9.f7f4b"\r
+                "5e775dc4.42bfbc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "313c36d7.969d3a",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "a90c44f8.bdb148",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2385.490966796875,\r
-        "y": 604.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4017.5001220703125,\r
+        "y": 399,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "d4d990d4.f7b0a8"\r
+                "7a5f3123.aad6e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3d5cf6f2.953e9a",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "7a5f3123.aad6e8",\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": 4169.5001220703125,\r
+        "y": 400,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "509847ff.264c58",\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": 4180.5001220703125,\r
+        "y": 343,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "4ab5c9a1.06e3f",\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": 2383,\r
-        "y": 648,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5132,\r
+        "y": 302,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "97be5e5a.798428"\r
+                "73f9ea02.2fb1e4",\r
+                "f8008145.65a48",\r
+                "81ec8b7a.5856d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "98b1c0b9.f7f4b",\r
+        "id": "f76a815f.36c178",\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": 4926,\r
+        "y": 289,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "2d415746.a7be9",\r
-                "96d25665.97a75",\r
-                "2f11d14a.7d5856",\r
-                "d0c66bee.225358"\r
+                "ba856b81.43ed78",\r
+                "4ab5c9a1.06e3f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d4d990d4.f7b0a8",\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
-        "wires": []\r
-    },\r
-    {\r
-        "id": "97be5e5a.798428",\r
-        "type": "returnFailure",\r
-        "name": "return failure",\r
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
+        "id": "ba856b81.43ed78",\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": 2552,\r
-        "y": 649,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5162,\r
+        "y": 250,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8b96b70e.2f635",\r
+        "id": "73f9ea02.2fb1e4",\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": 5342,\r
+        "y": 293,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "aff8819.10cbe8"\r
+                "5955dc9c.10f754"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "20f5c9d8.832b4e",\r
+        "id": "f8008145.65a48",\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": 5334,\r
+        "y": 348,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "cb55df0.f8980a"\r
+                "e3286b6.68c7618"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f513c25.b78554",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "81ec8b7a.5856d8",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\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": 5339,\r
+        "y": 405,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "490cf25b.6f8bbc",\r
-                "7192c89b.9fa8a",\r
-                "83e10369.9e2a48",\r
-                "8632824a.a7d1a"\r
+                "ecd34f94.c447e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb55df0.f8980a",\r
+        "id": "ecd34f94.c447e",\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": 2550.0623779296875,\r
-        "y": 1174.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5491,\r
+        "y": 406,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fd8e37a.cf27348",\r
+        "id": "e3286b6.68c7618",\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": 2554,\r
-        "y": 1219,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5502,\r
+        "y": 351,\r
+        "z": "8a9c455f.82beb8",\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": "5955dc9c.10f754",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2782,\r
-        "y": 556,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5486.38232421875,\r
+        "y": 290.6556701660156,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "2054e000.51325",\r
-                "24cb3e35.5919ba",\r
-                "49ca8d9.cac6774"\r
+                "adf5d068.f7cc"\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": "adf5d068.f7cc",\r
+        "type": "set",\r
+        "name": "set controller domainA data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 2786,\r
-        "y": 1126,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "9697ed36.e16ad8",\r
-                "1b825f20.68c389",\r
-                "214845f.325e5ba"\r
-            ]\r
-        ]\r
+        "x": 5701,\r
+        "y": 287,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "8505e692.6e58e8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "a3f28ac6.d30ed8",\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": 3166,\r
-        "y": 556,\r
-        "z": "978d88fe.49f858",\r
+        "x": 726,\r
+        "y": 464,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
-            [\r
-                "1e245d3c.a778db",\r
-                "f09e2868.9a86c8"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "1e245d3c.a778db",\r
+        "id": "b8f0eb5.a171218",\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
+        "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-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": 3402,\r
-        "y": 555,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3841,\r
+        "y": 974,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "2054e000.51325",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "d94b849.7fdac78",\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": 2993,\r
-        "y": 558,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3904,\r
+        "y": 1303,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "8505e692.6e58e8"\r
+                "bfb79ead.715e28",\r
+                "d50b4560.d85de8"\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": "bfb79ead.715e28",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993.490966796875,\r
-        "y": 603.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4199.5,\r
+        "y": 1270,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "7b7e2f47.0a22b"\r
+                "3d3c3af3.12a3b6"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "49ca8d9.cac6774",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "d50b4560.d85de8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2991,\r
-        "y": 647,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4204.5,\r
+        "y": 1335,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "f869989c.799108"\r
+                "347f5539.8f6cd2"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f869989c.799108",\r
+        "id": "3d3c3af3.12a3b6",\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=\"Error executing Create OTN tunnel rest api\" />\n",\r
         "comments": "",\r
-        "x": 3158,\r
-        "y": 646,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4367.5,\r
+        "y": 1270,\r
+        "z": "8a9c455f.82beb8",\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
+        "id": "347f5539.8f6cd2",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4378,\r
+        "y": 1335,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7af2004a.23f66",\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": 3156.0623779296875,\r
-        "y": 603.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3780,\r
+        "y": 1031,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9697ed36.e16ad8",\r
+        "id": "9e8fb92f.dc9c38",\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": 3800,\r
+        "y": 1128,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "3defc723.7feba8",\r
+                "92e9e56.6323798",\r
+                "92430372.354f08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3defc723.7feba8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993,\r
-        "y": 1129,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4002.5001220703125,\r
+        "y": 1081,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "d0988988.8d0a18"\r
+                "38216362.304eb4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1b825f20.68c389",\r
+        "id": "92e9e56.6323798",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2993.490966796875,\r
-        "y": 1174.5740356445312,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3994.5001220703125,\r
+        "y": 1136,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "875a2548.0cfdc8"\r
+                "48eafe9b.93564"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "214845f.325e5ba",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "38216362.304eb4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2991,\r
-        "y": 1218,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4146.8824462890625,\r
+        "y": 1078.6556701660156,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "5743b059.d8fee"\r
+                "5738b986.eff058"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5743b059.d8fee",\r
+        "id": "5738b986.eff058",\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": 4331,\r
+        "y": 1093,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "424cd2de.fa894c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "92430372.354f08",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3999.5001220703125,\r
+        "y": 1193,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "93dd1d01.b545d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "93dd1d01.b545d",\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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 3160,\r
-        "y": 1219,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4151.5001220703125,\r
+        "y": 1194,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "875a2548.0cfdc8",\r
+        "id": "48eafe9b.93564",\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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 3156.0623779296875,\r
-        "y": 1174.8597717285156,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4162.5001220703125,\r
+        "y": 1139,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d0988988.8d0a18",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "38af15c1.7d84ba",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 3162,\r
-        "y": 1129,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4729,\r
+        "y": 1097,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "7dda745d.4071a4",\r
-                "6468b39.c45bd4c"\r
+                "d8eb3cd4.227208"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7dda745d.4071a4",\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
-        "comments": "",\r
-        "x": 3398,\r
-        "y": 1128,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "f09e2868.9a86c8",\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
+        "id": "424cd2de.fa894c",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3480,\r
-        "y": 601,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4526,\r
+        "y": 1093,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "a8d618e8.7c53c8",\r
-                "84fddcaa.8b02a"\r
+                "38af15c1.7d84ba"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a8d618e8.7c53c8",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "a9c07a83.518f98",\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": 3790.5,\r
-        "y": 568,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5114,\r
+        "y": 1096,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "6eacb8a7.7aa3d"\r
+                "ef0c3c57.987338",\r
+                "56343453.6f0ce4",\r
+                "3b68871e.15bfe"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "84fddcaa.8b02a",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
-        "comments": "",\r
+        "id": "d8eb3cd4.227208",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3805.5,\r
-        "y": 633,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4906,\r
+        "y": 1089,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "b82bd962.cbba2"\r
+                "f04e0884.6fcbb8",\r
+                "a9c07a83.518f98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6eacb8a7.7aa3d",\r
+        "id": "f04e0884.6fcbb8",\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": 5144,\r
+        "y": 1044,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b02d57da.181518",\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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 3974.5,\r
-        "y": 564,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5473,\r
+        "y": 1200,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b82bd962.cbba2",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "fed20348.5bb418",\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
-        "outputs": 1,\r
-        "x": 4000,\r
-        "y": 626,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 5484,\r
+        "y": 1145,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "74c1bd3a.398664",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "63aaed6a.7bdac4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3775,\r
-        "y": 1150,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5468.38232421875,\r
+        "y": 1084.6556701660156,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "fc791248.fc4648"\r
+                "75824df.2d8fab4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fdc0c54.10c51b8",\r
+        "id": "75824df.2d8fab4",\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": 5683,\r
+        "y": 1081,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ef0c3c57.987338",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3790,\r
-        "y": 1215,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5324,\r
+        "y": 1087,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "16f26dc2.3147e2"\r
+                "63aaed6a.7bdac4"\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": "56343453.6f0ce4",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
-        "x": 3959,\r
-        "y": 1146,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 5316,\r
+        "y": 1142,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "fed20348.5bb418"\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": "3b68871e.15bfe",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3984.5,\r
-        "y": 1208,\r
-        "z": "978d88fe.49f858",\r
+        "x": 5321,\r
+        "y": 1199,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
-            []\r
+            [\r
+                "b02d57da.181518"\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
+        "id": "2d3714db.b7aad4",\r
+        "type": "save",\r
+        "name": "get connectivity from aai",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3464.5,\r
-        "y": 1183,\r
-        "z": "978d88fe.49f858",\r
+        "x": 1838,\r
+        "y": 453,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "74c1bd3a.398664",\r
-                "fdc0c54.10c51b8"\r
+                "ff6cd3bd.d426f",\r
+                "64ede831.c277d",\r
+                "c3e64c55.d790f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2f11d14a.7d5856",\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": "ff6cd3bd.d426f",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
-        "x": 2766.5,\r
-        "y": 898,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2046,\r
+        "y": 417,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "ab398477.a58648"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "d0c66bee.225358",\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": "64ede831.c277d",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2920.5,\r
-        "y": 946,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2046.490966796875,\r
+        "y": 462.57403564453125,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "3db41fa8.f38878",\r
-                "fbb2729e.49853"\r
+                "575d4e0a.5d761"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3db41fa8.f38878",\r
+        "id": "c3e64c55.d790f8",\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": 2044,\r
+        "y": 506,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "f346270d.843368"\r
+                "b99b7bb3.94d958"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fbb2729e.49853",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "575d4e0a.5d761",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 3270,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            [\r
-                "c716fb9b.f3ffc"\r
-            ]\r
-        ]\r
+        "x": 2209.0623779296875,\r
+        "y": 462.8597717285156,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "f346270d.843368",\r
+        "id": "b99b7bb3.94d958",\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<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 3424,\r
-        "y": 927,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2213,\r
+        "y": 507,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c716fb9b.f3ffc",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "684f9a1f.f6246c",\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": 3427.5,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2519,\r
+        "y": 506,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "3124f6f9.b8bd1a",\r
-                "856ae03f.786118"\r
+                "7a997c1a.ca4d0c",\r
+                "5d76d89f.d221e",\r
+                "d47edd7.a73b9a"\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
-        "comments": "",\r
-        "x": 2764,\r
-        "y": 854,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "96d25665.97a75",\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
+        "id": "11f43428.ee3774",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2816,\r
-        "y": 780,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2903,\r
+        "y": 506,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "4a3c4a39.62e724",\r
-                "e52cd6a7.6aeb28",\r
-                "bb40af56.1cbe7"\r
+                "9d8c4947.e731c",\r
+                "a3bb6162.8aa1a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4a3c4a39.62e724",\r
+        "id": "7a997c1a.ca4d0c",\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": 2730,\r
+        "y": 508,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "9e28f8d9.f64138"\r
+                "11f43428.ee3774"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e52cd6a7.6aeb28",\r
+        "id": "5d76d89f.d221e",\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": 2730.490966796875,\r
+        "y": 553.5740356445312,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "916c7538.648ed"\r
+                "38cca479.139cac"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bb40af56.1cbe7",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
+        "id": "d47edd7.a73b9a",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3058,\r
-        "y": 820,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2728,\r
+        "y": 597,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "a678576a.20b77"\r
+                "3c7730a0.80743"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a678576a.20b77",\r
+        "id": "3c7730a0.80743",\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<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 3216,\r
-        "y": 820,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2895,\r
+        "y": 596,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "916c7538.648ed",\r
+        "id": "38cca479.139cac",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
-        "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
-        "comments": "",\r
-        "x": 3216,\r
-        "y": 780,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\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
-        "comments": "",\r
-        "x": 3232,\r
-        "y": 740,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "b0af8ca6.269818",\r
-        "type": "comment",\r
-        "name": "Get controller info and send request",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 2824,\r
-        "y": 740,\r
-        "z": "978d88fe.49f858",\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
+        "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": 2752,\r
-        "y": 1454,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2893.0623779296875,\r
+        "y": 553.8597717285156,\r
+        "z": "8a9c455f.82beb8",\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": "ab398477.a58648",\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": 2906,\r
-        "y": 1502,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2247,\r
+        "y": 412,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "51ac9234.46b414",\r
-                "a5f17af5.5d803"\r
+                "32748804.ce58a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "51ac9234.46b414",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "32748804.ce58a",\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": 3251.5,\r
-        "y": 1483,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2452,\r
+        "y": 412,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "6f72d542.94964c"\r
+                "41c73b96.f41a84"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a5f17af5.5d803",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "41c73b96.f41a84",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3255.5,\r
-        "y": 1523,\r
-        "z": "978d88fe.49f858",\r
+        "x": 2618,\r
+        "y": 412,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "2dab9f7d.db59d8"\r
+                "cfeba90.49ffe58"\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": "cfeba90.49ffe58",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 2781,\r
+        "y": 412,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "684f9a1f.f6246c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9d8c4947.e731c",\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": 3413,\r
-        "y": 1523,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3157,\r
+        "y": 505,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "a1391891.c310f",\r
-                "ccc1b1df.33721"\r
+                "c705e3fd.e27bf",\r
+                "74e33b9a.6a3ba4"\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": "c705e3fd.e27bf",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
-        "x": 2749.5,\r
-        "y": 1410,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3410,\r
+        "y": 539,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "ab5b6203.69a998"\r
+            ]\r
+        ]\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
+        "id": "74e33b9a.6a3ba4",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2801.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3410,\r
+        "y": 483,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "e2e5c437.a11d5",\r
-                "9dfaf98b.e80c9",\r
-                "dcca7d62.830ee8"\r
+                "7b04fd35.ba570c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e2e5c437.a11d5",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "ab5b6203.69a998",\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": 3047.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3149,\r
+        "y": 1325,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "427eefc5.61bc"\r
+                "15797e4.5eae102",\r
+                "55009f8b.9fdc5"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9dfaf98b.e80c9",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
+        "id": "15797e4.5eae102",\r
+        "type": "outcome",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3051.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3402,\r
+        "y": 1359,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "8ac5fa96.75d4b"\r
+                "4151c132.8e3c28"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dcca7d62.830ee8",\r
+        "id": "55009f8b.9fdc5",\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": 3402,\r
+        "y": 1303,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             [\r
-                "39cf0825.d43ae"\r
+                "db74d7f2.74d0f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "39cf0825.d43ae",\r
+        "id": "4151c132.8e3c28",\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<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 3201.5,\r
-        "y": 1376,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3553,\r
+        "y": 1359,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8ac5fa96.75d4b",\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": "ad6a538e.8b5998",\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": 3201.5,\r
-        "y": 1336,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3856,\r
+        "y": 110,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "427eefc5.61bc",\r
+        "id": "51807068.f4c68",\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
+        "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": 3217.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3837,\r
+        "y": 916,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "74572637.f29d7",\r
-        "type": "comment",\r
-        "name": "Get controller info and send request",\r
-        "info": "",\r
+        "id": "7b04fd35.ba570c",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "comments": "",\r
-        "x": 2809.5,\r
-        "y": 1296,\r
-        "z": "978d88fe.49f858",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3578,\r
+        "y": 485,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "ad6a538e.8b5998",\r
+                "3d56fd4f.8da4ea",\r
+                "5074df67.2ba988",\r
+                "9fd13730.014208",\r
+                "ab834e.f483fcb",\r
+                "c9d60073.e2df48",\r
+                "119d7057.187e9"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "135b0ed7.2faa91",\r
-        "type": "comment",\r
-        "name": "TODO: FIXME:",\r
-        "info": "How to know which domain's (A or B) controller is bein retrieved?",\r
+        "id": "db74d7f2.74d0f8",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3553,\r
+        "y": 1302,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "51807068.f4c68",\r
+                "b8f0eb5.a171218",\r
+                "7af2004a.23f66",\r
+                "9e8fb92f.dc9c38",\r
+                "d94b849.7fdac78",\r
+                "f91c20c6.244a28",\r
+                "158d95b4.dbf02a"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f91c20c6.244a28",\r
+        "type": "set",\r
+        "name": "set sotn_value",\r
+        "xml": "<set>\n<parameter name='eth-service-name' value='`$tmp.aai.connectivityB.connectivity-id`' />\n<parameter name='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",\r
         "comments": "",\r
-        "x": 2744,\r
-        "y": 1256,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3782,\r
+        "y": 1445,\r
+        "z": "8a9c455f.82beb8",\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": "158d95b4.dbf02a",\r
+        "type": "execute",\r
+        "name": "execute RestApiCallNode Create ethernet Service without token",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-ethernet-service.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n",\r
         "comments": "",\r
-        "x": 2756,\r
-        "y": 700,\r
-        "z": "978d88fe.49f858",\r
+        "outputs": 1,\r
+        "x": 3936,\r
+        "y": 1493,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "7e8ddb70.effbcc",\r
+                "8eaa1ef7.3644e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "7e8ddb70.effbcc",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4281.5,\r
+        "y": 1474,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "596967d4.0f4de8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8eaa1ef7.3644e",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4285.5,\r
+        "y": 1514,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": [\r
+            [\r
+                "4f294e9d.697c08"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "596967d4.0f4de8",\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": 4439.5,\r
+        "y": 1474,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\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": "4f294e9d.697c08",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3756,\r
-        "y": 967,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4443,\r
+        "y": 1514,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
-            []\r
+            [\r
+                "637a80dd.df05",\r
+                "d2c33ee2.7a3708"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "554a4766.c457a",\r
+        "id": "78a845.7bb187bc",\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
+        "name": "TODO: FIXME:",\r
+        "info": "put proper values based on connectivity resource retrieved from AAI",\r
         "comments": "",\r
-        "x": 3620,\r
-        "y": 926,\r
-        "z": "978d88fe.49f858",\r
+        "x": 3779.5,\r
+        "y": 1401,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "a1391891.c310f",\r
+        "id": "637a80dd.df05",\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
+        "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-id`' />\n\n<parameter name='operational-status' value='Activated' />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3753,\r
-        "y": 1522,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4783,\r
+        "y": 1513,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "90d3682d.e54348",\r
+        "id": "88ec2f6d.8d5da",\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": 3611,\r
-        "y": 1480,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4641,\r
+        "y": 1471,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": []\r
     },\r
     {\r
-        "id": "856ae03f.786118",\r
+        "id": "d2c33ee2.7a3708",\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
+        "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": 3683,\r
-        "y": 1013,\r
-        "z": "978d88fe.49f858",\r
+        "x": 4712,\r
+        "y": 1562,\r
+        "z": "8a9c455f.82beb8",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ccc1b1df.33721",\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
+        "id": "a3bb6162.8aa1a8",\r
+        "type": "set",\r
+        "name": "set attachment_param for OTN",\r
+        "xml": "<set>\n<parameter name='gfp-n' value='`$tmp.aai.vpn-binding.route-distinguisher`' />\n",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 3682,\r
-        "y": 1571,\r
-        "z": "978d88fe.49f858",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 3144,\r
+        "y": 411,\r
+        "z": "8a9c455f.82beb8",\r
+        "wires": []\r
     }\r
 ]
\ No newline at end of file