A few bug fixes for CLL closed-loop operation.
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json
index 7eb6448..643abf3 100644 (file)
@@ -1,20 +1,20 @@
 [\r
     {\r
-        "id": "66573054.d6959",\r
+        "id": "b2b464d7.ce16c8",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 230,\r
-        "y": 62,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 255.56666564941406,\r
+        "y": 78.56666564941406,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "88fd1149.f833f"\r
+                "ba005c83.b939c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "88fd1149.f833f",\r
+        "id": "ba005c83.b939c",\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": 514.2856903076172,\r
-        "y": 123.23810863494873,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 539.8523559570312,\r
+        "y": 139.8047742843628,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "4c164ab.c48bfb4"\r
+                "7e8df070.fdf6b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4c164ab.c48bfb4",\r
+        "id": "7e8df070.fdf6b",\r
         "type": "method",\r
         "name": "method cll-vnf-topology-operation-cll-F1",\r
         "xml": "<method rpc='cll-vnf-topology-operation-cll-F1' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 430.4285888671875,\r
-        "y": 201.00003051757812,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 455.99525451660156,\r
+        "y": 217.5666961669922,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "e2c1e393.f72a2"\r
+                "85985867.416fd"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e2c1e393.f72a2",\r
+        "id": "85985867.416fd",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 164.238037109375,\r
-        "y": 704.6666870117188,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 189.80470275878906,\r
+        "y": 721.2333526611328,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "35872244.0dadfe",\r
-                "76353aba.1a1834",\r
-                "1a3db60a.42601a",\r
-                "cde65043.1c4f8",\r
-                "5f4f339e.018654",\r
-                "6f21b0a4.c1ba8",\r
-                "19956ea.f245091"\r
+                "d05dbda7.cd211",\r
+                "992a5395.f31118",\r
+                "e4271cab.c93a2",\r
+                "45bcd5eb.003ca4",\r
+                "475897b8.f705c",\r
+                "364ba6be.e5fa32",\r
+                "a560d2b.9b8b03",\r
+                "64dad903.5a2f98"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "35872244.0dadfe",\r
+        "id": "d05dbda7.cd211",\r
         "type": "set",\r
         "name": "set query_param",\r
         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
         "comments": "",\r
-        "x": 437,\r
-        "y": 659,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 462.56666564941406,\r
+        "y": 675.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "76353aba.1a1834",\r
+        "id": "992a5395.f31118",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 658,\r
-        "y": 727,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 683.5666656494141,\r
+        "y": 743.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "1a3db60a.42601a",\r
+        "id": "e4271cab.c93a2",\r
         "type": "execute",\r
         "name": "execute printContext",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 448,\r
-        "y": 773,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 473.56666564941406,\r
+        "y": 789.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "19956ea.f245091",\r
+        "id": "364ba6be.e5fa32",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 641,\r
-        "y": 837,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 666.5666656494141,\r
+        "y": 853.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "cde65043.1c4f8",\r
+        "id": "a560d2b.9b8b03",\r
         "type": "for",\r
         "name": "for vidx..tmp.otninfo_length[]",\r
         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 468,\r
-        "y": 993,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 758.5666656494141,\r
+        "y": 1232.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "53111f1b.5dbab"\r
+                "74538129.24a8e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "53111f1b.5dbab",\r
+        "id": "74538129.24a8e8",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic='true'>",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 737,\r
-        "y": 993,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 980.5666351318359,\r
+        "y": 1244.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "78857b79.cfe234",\r
-                "b3432980.49ee6",\r
-                "233e999f.144d9e",\r
-                "7a85fbed.abf844",\r
-                "715b7a53.d039d4",\r
-                "13d7f319.f10ffd",\r
-                "fe43d4e7.2e266",\r
-                "9673bbc9.e232d8",\r
-                "8c1ff0ec.d0238",\r
-                "84f3d24d.36c17"\r
+                "fd37f729.79d4e8",\r
+                "ea6cbf13.151c98",\r
+                "8ceda3a6.204b48",\r
+                "1013e0e2.7cc397",\r
+                "90a6c364.46118",\r
+                "22dcd83c.2b5368",\r
+                "e09d2c81.71b548",\r
+                "e150ae4f.8b2e58",\r
+                "1660b66e.1d0baa",\r
+                "af14d18e.54c668"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "78857b79.cfe234",\r
+        "id": "fd37f729.79d4e8",\r
         "type": "execute",\r
         "name": "execute UUID generator for vpn-binding $otnidx",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1630,\r
-        "y": 807,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1655.566665649414,\r
+        "y": 823.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b3432980.49ee6",\r
+        "id": "ea6cbf13.151c98",\r
         "type": "switchNode",\r
         "name": "switch dstPort == NULL",\r
         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1344,\r
-        "y": 897,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1369.566665649414,\r
+        "y": 913.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "fb6a4667.5dee4",\r
-                "8968ad13.112c48"\r
+                "56460655.4e95f",\r
+                "f048ad7d.2b28f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fb6a4667.5dee4",\r
+        "id": "56460655.4e95f",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1710,\r
-        "y": 858,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1735.566665649414,\r
+        "y": 874.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "38cd80d0.a81b08"\r
+                "4a892274.fb8984"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8968ad13.112c48",\r
+        "id": "f048ad7d.2b28f8",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1711,\r
-        "y": 904,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1736.566665649414,\r
+        "y": 920.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "12ac055c.676cf3"\r
+                "9be4afb9.f321d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "38cd80d0.a81b08",\r
+        "id": "4a892274.fb8984",\r
         "type": "set",\r
         "name": "set access-provider-id and client-id",\r
         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",\r
         "comments": "",\r
-        "x": 1924,\r
-        "y": 857,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1949.566665649414,\r
+        "y": 873.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "12ac055c.676cf3",\r
+        "id": "9be4afb9.f321d",\r
         "type": "set",\r
         "name": "set access-provider-id and client-id",\r
         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",\r
         "comments": "",\r
-        "x": 1922,\r
-        "y": 902,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1947.566665649414,\r
+        "y": 918.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "233e999f.144d9e",\r
+        "id": "8ceda3a6.204b48",\r
         "type": "set",\r
         "name": "set srcdstpnf-name",\r
         "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 1520,\r
-        "y": 971,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1545.566665649414,\r
+        "y": 987.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7a85fbed.abf844",\r
+        "id": "1013e0e2.7cc397",\r
         "type": "get-resource",\r
         "name": "get-resource tmp.srcdstpnf-name",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1564,\r
-        "y": 1019,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1589.566665649414,\r
+        "y": 1035.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "85cf2b2f.efe2d8",\r
-                "40c18c0.1c43574",\r
-                "e3b12e57.7afb78"\r
+                "cf3ee2c7.7cc8",\r
+                "6e4433e1.c3d544",\r
+                "fc23e91d.8a06b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "85cf2b2f.efe2d8",\r
+        "id": "cf3ee2c7.7cc8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1776.5,\r
-        "y": 966,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1802.066665649414,\r
+        "y": 982.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "7b23fddb.009994"\r
+                "15f4239b.d2dd94"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "40c18c0.1c43574",\r
+        "id": "6e4433e1.c3d544",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1788.5,\r
-        "y": 1016,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1814.066665649414,\r
+        "y": 1032.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "317c3552.8ea652"\r
+                "4f08eef5.3a084"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e3b12e57.7afb78",\r
+        "id": "fc23e91d.8a06b8",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1779.5,\r
-        "y": 1071,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1805.066665649414,\r
+        "y": 1087.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "c0e357e5.8168d8"\r
+                "9e248b49.4b123"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c0e357e5.8168d8",\r
+        "id": "9e248b49.4b123",\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": 1924.5,\r
-        "y": 1070,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1950.066665649414,\r
+        "y": 1086.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "317c3552.8ea652",\r
+        "id": "4f08eef5.3a084",\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": 1935.5,\r
-        "y": 1013,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1961.066665649414,\r
+        "y": 1029.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7b23fddb.009994",\r
+        "id": "15f4239b.d2dd94",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1901.8824462890625,\r
-        "y": 959.6556701660156,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1927.4491119384766,\r
+        "y": 976.2223358154297,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "f3d54fb4.5c0a1"\r
+                "75b021d3.c00118"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f3d54fb4.5c0a1",\r
+        "id": "75b021d3.c00118",\r
         "type": "for",\r
         "name": "for each relationship",\r
         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2063,\r
-        "y": 974,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2088.566665649414,\r
+        "y": 990.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "763118b6.61e2b8"\r
+                "b15e9c16.6b681"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "763118b6.61e2b8",\r
+        "id": "b15e9c16.6b681",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2258,\r
-        "y": 974,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2283.566665649414,\r
+        "y": 990.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "45a9ec7c.a92c4c"\r
+                "c6fb39ce.9e60a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6fd0244b.f38ce4",\r
+        "id": "30ac35dd.e14312",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 2638,\r
-        "y": 970,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2663.566665649414,\r
+        "y": 986.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "e527c2f.df2fcc",\r
-                "56d60802.89ee28"\r
+                "94cf3038.f341a8",\r
+                "94b6490f.68e4d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "56d60802.89ee28",\r
+        "id": "94b6490f.68e4d",\r
         "type": "execute",\r
         "name": "get esr-thirdparty-sdnc",\r
         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2846,\r
-        "y": 977,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2871.566665649414,\r
+        "y": 993.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b854345d.faf84",\r
-                "437ea2b.b00f35c",\r
-                "fed3318a.a11e3"\r
+                "7943f6f7.be2db8",\r
+                "c75de222.529ce8",\r
+                "d30226e9.2d3ab"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e527c2f.df2fcc",\r
+        "id": "94cf3038.f341a8",\r
         "type": "set",\r
         "name": "set esr-thirdparty-sdnc domainG id",\r
         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
         "comments": "",\r
-        "x": 2876,\r
-        "y": 925,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2901.566665649414,\r
+        "y": 941.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b854345d.faf84",\r
+        "id": "7943f6f7.be2db8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3056,\r
-        "y": 968,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3081.566665649414,\r
+        "y": 984.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "918d39ea.cf7f2"\r
+                "2503b7bf.0ec"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "437ea2b.b00f35c",\r
+        "id": "c75de222.529ce8",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3048,\r
-        "y": 1023,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3073.566665649414,\r
+        "y": 1039.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "1afabba1.4179cc"\r
+                "bca36ee5.113d58"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fed3318a.a11e3",\r
+        "id": "d30226e9.2d3ab",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3053,\r
-        "y": 1080,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3078.566665649414,\r
+        "y": 1096.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "e095e0e5.375ba"\r
+                "1e88570c.ee0719"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e095e0e5.375ba",\r
+        "id": "1e88570c.ee0719",\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": 3205,\r
-        "y": 1081,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3230.566665649414,\r
+        "y": 1097.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "1afabba1.4179cc",\r
+        "id": "bca36ee5.113d58",\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": 3216,\r
-        "y": 1026,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3241.566665649414,\r
+        "y": 1042.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "918d39ea.cf7f2",\r
+        "id": "2503b7bf.0ec",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3200.38232421875,\r
-        "y": 965.6556701660156,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3225.948989868164,\r
+        "y": 982.2223358154297,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "47a021ef.066c88"\r
+                "41aaab63.e1cd3c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "45a9ec7c.a92c4c",\r
+        "id": "c6fb39ce.9e60a",\r
         "type": "outcome",\r
         "name": "esr-thirdparty-sdnc",\r
         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2461,\r
-        "y": 978,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2486.566665649414,\r
+        "y": 994.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "6fd0244b.f38ce4"\r
+                "30ac35dd.e14312"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "47a021ef.066c88",\r
+        "id": "41aaab63.e1cd3c",\r
         "type": "set",\r
         "name": "set controller domainA data",\r
         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
         "comments": "",\r
-        "x": 3415,\r
-        "y": 962,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3440.566665649414,\r
+        "y": 978.5666656494141,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "d75cf545.437ae8",\r
-        "type": "save",\r
-        "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
+        "id": "90a6c364.46118",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == 0 (domainA)",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1574,\r
-        "y": 2868,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1559.566665649414,\r
+        "y": 1204.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "871b9e34.870768"\r
+                "802374f4.7d7ff8",\r
+                "a519ae80.fc5af8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fd805b4d.1b0548",\r
-        "type": "save",\r
-        "name": "save connectivity-A relationship to vpn-binding-A, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-domainA-uuid`\" />",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 2146.5,\r
-        "y": 2972,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "871b9e34.870768",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "802374f4.7d7ff8",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1880,\r
-        "y": 2867,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1760.566665649414,\r
+        "y": 1202.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "ee92c990.60c9f"\r
+                "48f58df5.6800bc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ee92c990.60c9f",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "40ebb061.3ec958",\r
+        "type": "set",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 2089.5,\r
-        "y": 2867.25390625,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 2041.566665649414,\r
+        "y": 1152.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "702e0066.542168",\r
+        "id": "483dd213.b85e1c",\r
         "type": "switchNode",\r
-        "name": "switch otnidx == 0",\r
-        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "name": "switch dmnsidx == last (domainB)",\r
+        "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1483,\r
-        "y": 2985,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1977.566665649414,\r
+        "y": 1253.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "bb13d1a8.37e5",\r
-                "a19ebb79.79b868"\r
+                "d8888a92.ad5628",\r
+                "f6c02aaa.58a08"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bb13d1a8.37e5",\r
+        "id": "d8888a92.ad5628",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1666,\r
-        "y": 2985,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2207.566665649414,\r
+        "y": 1249.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "62ae9cfb.3879bc"\r
+                "7e806dc9.39e0fc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a19ebb79.79b868",\r
+        "id": "a519ae80.fc5af8",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1491,\r
-        "y": 3132,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1760.566665649414,\r
+        "y": 1251.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "db504ec2.be40a8"\r
+                "483dd213.b85e1c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d2ac9909.c7d83",\r
-        "type": "switchNode",\r
-        "name": "switch otnidx == last",\r
-        "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
+        "id": "f6c02aaa.58a08",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1832,\r
-        "y": 3213,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2208.566665649414,\r
+        "y": 1295.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "f6ac8945.06d298",\r
-                "d0d3740b.46215"\r
+                "1f8e1450.d16a94"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f6ac8945.06d298",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "1f8e1450.d16a94",\r
+        "type": "set",\r
+        "name": "set attachment_param domain G",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 2008,\r
-        "y": 3214,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": [\r
-            [\r
-                "84c92d78.7984b8"\r
-            ]\r
-        ]\r
+        "x": 2422.566665649414,\r
+        "y": 1295.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "b93d4ed1.4609d8",\r
+        "id": "9123357e.60632",\r
         "type": "set",\r
         "name": "set attachment_param domain A",\r
-        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n\n",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
         "comments": "",\r
-        "x": 2071,\r
-        "y": 3029,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2096.566665649414,\r
+        "y": 1199.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "62ae9cfb.3879bc",\r
+        "id": "48f58df5.6800bc",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1807,\r
-        "y": 2975,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1884.566665649414,\r
+        "y": 1193.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "fd805b4d.1b0548",\r
-                "b93d4ed1.4609d8",\r
-                "ea374103.b6422"\r
+                "9123357e.60632"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "11cd0588.41272a",\r
+        "id": "7e806dc9.39e0fc",\r
         "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2713,\r
-        "y": 3164,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2340.566665649414,\r
+        "y": 1225.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "5ba25870.61d0e"\r
+                "d554f558.28b1b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "302e8991.9483b6",\r
+        "id": "2ea08541.5c60c2",\r
         "type": "set",\r
-        "name": "set",\r
-        "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
         "comments": "",\r
-        "x": 1780,\r
-        "y": 3164,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2496.566665649414,\r
+        "y": 1241.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "db504ec2.be40a8",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "d554f558.28b1b8",\r
+        "type": "set",\r
+        "name": "set attachment_param domain B",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
+        "comments": "",\r
+        "x": 2544.566665649414,\r
+        "y": 1193.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "475897b8.f705c",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
+        "comments": "",\r
+        "x": 431.5666046142578,\r
+        "y": 3846.566909790039,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "45bcd5eb.003ca4",\r
+        "type": "set",\r
+        "name": "set srcTtp OTN layer",\r
+        "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 470.56666564941406,\r
+        "y": 931.5666656494141,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "22dcd83c.2b5368",\r
+        "type": "set",\r
+        "name": "set srcTtp+dstTtp pair",\r
+        "xml": "<set>\n<parameter name='tmp.srcTtpdstTtpPair' value=\"`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id + ',' +\n                                               $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 1535.566665649414,\r
+        "y": 1284.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "e150ae4f.8b2e58",\r
+        "type": "call",\r
+        "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1615,\r
-        "y": 3139,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1727.566635131836,\r
+        "y": 1382.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            [\r
-                "302e8991.9483b6",\r
-                "d2ac9909.c7d83"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "715b7a53.d039d4",\r
+        "id": "e09d2c81.71b548",\r
+        "type": "set",\r
+        "name": "set current-provider-id and current-cvlan-id",\r
+        "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$tmp.access-provider-id`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n",\r
+        "comments": "",\r
+        "x": 1599.566665649414,\r
+        "y": 1335.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1660b66e.1d0baa",\r
         "type": "switchNode",\r
-        "name": "switch dmnsidx == 0 (domainA)",\r
-        "xml": "<switch test='`$otnidx == 0`'>\n",\r
+        "name": "switch found-connectivity?",\r
+        "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1534,\r
-        "y": 1188,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1408.566665649414,\r
+        "y": 1536.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "f53c2621.eb9438",\r
-                "1c719c21.ec9b04"\r
+                "f4cf9f1c.724fd",\r
+                "b4d1d385.3d74f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f53c2621.eb9438",\r
+        "id": "f4cf9f1c.724fd",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1735,\r
-        "y": 1186,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1694.566665649414,\r
+        "y": 2355.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "39a7b2e1.a50fbe"\r
+                "74fc514b.817128"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b0d2a923.51103",\r
-        "type": "set",\r
-        "name": "set pce-src-node",\r
-        "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
+        "id": "996fa9bd.709cb8",\r
+        "type": "comment",\r
+        "name": "call string.contains to check if the cache has srcTtpdstTtpPair",\r
+        "info": "if it had: then no new otn/vpn-binding is needed\n           ==> find the otn. ==>look into the relationships of this connectivity and find the one that has same srcTtp and dstTtp\n           ==> increase the bw\nif not, create a new vpn-binding, attach this vpn-binding into the founded connectivity, and attach it to the middle-man-conn as well.",\r
         "comments": "",\r
-        "x": 2016,\r
-        "y": 1136,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2120.566665649414,\r
+        "y": 2300.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "c9652673.c83de8",\r
-        "type": "switchNode",\r
-        "name": "switch dmnsidx == last (domainB)",\r
-        "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
+        "id": "db35c82.2ff7538",\r
+        "type": "comment",\r
+        "name": "create a new connectivity - (for dummy connectivity)",\r
+        "info": "(this should not be for LEAF side or ROOT side, otherwise error)\n\ncreate a new vpn-binding (done here)\ncreate a new connectivity (done below)\nadd srcTtpdstTtpPair into the cache in this connectivity\nattach the vpn-binding into the connectivity relationship\nattach this connectivity into the middle man\nattach this connectivity into the service-instance",\r
+        "comments": "",\r
+        "x": 1987.566635131836,\r
+        "y": 1498.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "54f8b37c.0f6ed4",\r
+        "type": "save",\r
+        "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1952,\r
-        "y": 1237,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2034.566665649414,\r
+        "y": 1548.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "ab876b76.0d0a8",\r
-                "2a964a93.a3cb96"\r
+                "7be3896.57701f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ab876b76.0d0a8",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "7be3896.57701f8",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2182,\r
-        "y": 1233,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2322.566665649414,\r
+        "y": 1549.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "62dd94dd.71b75c"\r
+                "f1bf4e31.6b1fe8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1c719c21.ec9b04",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "f1bf4e31.6b1fe8",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1735,\r
-        "y": 1235,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2506.066665649414,\r
+        "y": 1547.820571899414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            [\r
-                "c9652673.c83de8"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "2a964a93.a3cb96",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "3cd3c761.10556",\r
+        "type": "execute",\r
+        "name": "execute string.contains srcTtpdstTtpPair",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n<parameter name=\"source\" value='`$tmp.the-connectivity.coupling-flag`'/>\n<parameter name=\"target\" value=\"`$tmp.srcTtpdstTtpPair`\"/>\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2183,\r
-        "y": 1279,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2108.566665649414,\r
+        "y": 2352.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "1f38645a.fd2454"\r
+                "c33f3993.207e3",\r
+                "56575be2.b67874"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1f38645a.fd2454",\r
-        "type": "set",\r
-        "name": "set attachment_param domain G",\r
-        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
-        "comments": "",\r
-        "x": 2397,\r
-        "y": 1279,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "ada84f30.11bba8",\r
-        "type": "set",\r
-        "name": "set attachment_param domain A",\r
-        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
+        "id": "c33f3993.207e3",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
-        "x": 2071,\r
-        "y": 1183,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2281.566665649414,\r
+        "y": 2200.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            []\r
+        ]\r
     },\r
     {\r
-        "id": "39a7b2e1.a50fbe",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "56575be2.b67874",\r
+        "type": "outcomeFalse",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1859,\r
-        "y": 1177,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2313.566665649414,\r
+        "y": 2459.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "ada84f30.11bba8"\r
+                "3b0b33da.eb46f4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "62dd94dd.71b75c",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "1cae89b4.aa5636",\r
+        "type": "save",\r
+        "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2315,\r
-        "y": 1209,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2720.566665649414,\r
+        "y": 1990.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "c86a8489.80e7c"\r
+                "d58227c9.ab762"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dce0c80a.efad",\r
-        "type": "set",\r
-        "name": "set pce-src-node",\r
-        "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
-        "comments": "",\r
-        "x": 2471,\r
-        "y": 1225,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "c86a8489.80e7c",\r
-        "type": "set",\r
-        "name": "set attachment_param domain B",\r
-        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
+        "id": "d58227c9.ab762",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
-        "x": 2519,\r
-        "y": 1177,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 3024.566665649414,\r
+        "y": 1987.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "92fb98e0.3a3cb"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "d0d3740b.46215",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "92fb98e0.3a3cb",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2036,\r
-        "y": 3480,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3175.066665649414,\r
+        "y": 1994.820571899414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            [\r
-                "822b4a87.c6d91"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "df45bcf4.ab6068",\r
+        "id": "86dbc539.52181",\r
         "type": "execute",\r
         "name": "execute UUID generator for connectivity domain otnidx",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2511,\r
-        "y": 3465,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2014.566665649414,\r
+        "y": 1603.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "92ea7ec.b1b38",\r
+        "id": "6447d455.3d2644",\r
         "type": "save",\r
         "name": "save connectivity resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2449,\r
-        "y": 3515,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1952.566665649414,\r
+        "y": 1653.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ab274de2.98aaf8",\r
+        "id": "f8fc4136.e557d8",\r
         "type": "save",\r
-        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
+        "name": "save middle-man-conn relationship to connectivity-otnidx, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2586,\r
-        "y": 3614,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2053.566665649414,\r
+        "y": 1698.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ba000585.cff088",\r
-        "type": "comment",\r
-        "name": "connectivity has not been created for middle domains, so we have to create one",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 2589,\r
-        "y": 3406,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "fe394c67.6a4738",\r
+        "id": "489556f5.800788",\r
         "type": "save",\r
-        "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2554,\r
-        "y": 3673,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2089.566665649414,\r
+        "y": 1752.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "822b4a87.c6d91",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "id": "b222b6e5.a2269",\r
+        "type": "save",\r
+        "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2193,\r
-        "y": 3481,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2057.566665649414,\r
+        "y": 1811.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            [\r
-                "df45bcf4.ab6068",\r
-                "92ea7ec.b1b38",\r
-                "ab274de2.98aaf8",\r
-                "fe394c67.6a4738",\r
-                "b6a44371.9af948",\r
-                "c51d1d37.88a2f8"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "b6a44371.9af948",\r
-        "type": "set",\r
-        "name": "set attachment_param domain otnidx",\r
-        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
+        "id": "e72c7ac8.1ee27",\r
+        "type": "comment",\r
+        "name": "find middle-man's eth-srv-name",\r
+        "info": "",\r
         "comments": "",\r
-        "x": 2468,\r
-        "y": 3733,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1515.566665649414,\r
+        "y": 1427.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "6f21b0a4.c1ba8",\r
+        "id": "af14d18e.54c668",\r
         "type": "set",\r
-        "name": "unset parameters",\r
-        "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
+        "name": "set prop.ethernet-service-name",\r
+        "xml": "<set>\n<parameter name='prop.ethernet-service-name' value='`$middle-man-conn.etht-svc-name`' />\n\n",\r
         "comments": "",\r
-        "x": 404,\r
-        "y": 2903,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1537.566665649414,\r
+        "y": 1471.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5f4f339e.018654",\r
-        "type": "set",\r
-        "name": "set srcTtp OTN layer",\r
-        "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
+        "id": "e07c3627.a9ad28",\r
+        "type": "save",\r
+        "name": "save middle-man-conn relationship to tmp.the-connectivity, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
         "comments": "",\r
-        "x": 445,\r
-        "y": 915,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2744.566665649414,\r
+        "y": 2207.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            []\r
+        ]\r
     },\r
     {\r
-        "id": "5ba25870.61d0e",\r
+        "id": "68912ce0.303fb4",\r
         "type": "save",\r
-        "name": "save middle-man-conn relationship to connectivity-B, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
+        "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3037,\r
-        "y": 3164,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2775.566665649414,\r
+        "y": 2246.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ea374103.b6422",\r
+        "id": "18b33cfb.a5700b",\r
         "type": "save",\r
-        "name": "save middle-man-conn relationship to connectivity-A, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainA-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainA-uuid`\" />",\r
+        "name": "save tmp.the-connectivity relationship to vpn-binding-otnidx, in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2151,\r
-        "y": 2920,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2746.566665649414,\r
+        "y": 2319.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "c51d1d37.88a2f8",\r
+        "id": "3e5eef0e.e3f73",\r
+        "type": "comment",\r
+        "name": "update the founded connectivity to have a new coupling-flag",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2716.566665649414,\r
+        "y": 2035.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a5fb576e.12d628",\r
+        "type": "set",\r
+        "name": "set newFlag",\r
+        "xml": "<set>\n<parameter name='tmp.newFlag' value=\"`$tmp.the-connectivity.coupling-flag + '-' +\n                                               $tmp.srcTtpdstTtpPair`\" />\n\n\n",\r
+        "comments": "",\r
+        "x": 2602.566665649414,\r
+        "y": 2074.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d377ac03.65cde",\r
         "type": "save",\r
-        "name": "save middle-man-conn relationship to connectivity-otnidx, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
+        "name": "update connectivity resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='coupling-flag' value='`$tmp.newFlag`' />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2550,\r
-        "y": 3560,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2666.566665649414,\r
+        "y": 2119.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6512efb1.123b28",\r
-        "type": "switchNode",\r
-        "name": "switch found-middle-man?",\r
-        "xml": "<switch test='`$found-middle-man`'>\n",\r
+        "id": "f2d99771.385da",\r
+        "type": "comment",\r
+        "name": "the following two relationships should have already been there; if not => error",\r
+        "info": "",\r
+        "comments": "",\r
+        "x": 2758.566665649414,\r
+        "y": 2169.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "1df0ae3d.1e012a",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2369,\r
-        "y": 3164,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1744.566665649414,\r
+        "y": 1536.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "4373daa0.a1c174"\r
+                "54f8b37c.0f6ed4",\r
+                "86dbc539.52181",\r
+                "6447d455.3d2644",\r
+                "f8fc4136.e557d8",\r
+                "489556f5.800788",\r
+                "b222b6e5.a2269"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4373daa0.a1c174",\r
+        "id": "b4d1d385.3d74f",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2556,\r
-        "y": 3164,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1606.566665649414,\r
+        "y": 1532.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "11cd0588.41272a"\r
+                "1df0ae3d.1e012a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "84c92d78.7984b8",\r
+        "id": "74fc514b.817128",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic='true'>",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2151,\r
-        "y": 3214,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2404.566665649414,\r
+        "y": 1999.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "ef7c2251.5fe8a8",\r
-                "b19fce04.44ae8",\r
-                "6512efb1.123b28"\r
+                "1cae89b4.aa5636",\r
+                "a5fb576e.12d628",\r
+                "d377ac03.65cde",\r
+                "18b33cfb.a5700b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ef7c2251.5fe8a8",\r
-        "type": "save",\r
-        "name": "save connectivity-B relationship to vpn-binding-B, in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.connectivity-domainB-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.connectivity-domainB-uuid`\" />",\r
+        "id": "1d755c4.2631d24",\r
+        "type": "comment",\r
+        "name": "loop through the relationships of this founded connectivity, then",\r
+        "info": "then find the vpn-binding that has same src ttp and dst ttp as this one",\r
         "comments": "",\r
-        "outputs": 1,\r
-        "x": 2467,\r
-        "y": 3262,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": [\r
-            []\r
-        ]\r
+        "x": 2409.566665649414,\r
+        "y": 2424.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
     },\r
     {\r
-        "id": "b19fce04.44ae8",\r
-        "type": "set",\r
-        "name": "set attachment_param domain B",\r
-        "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n\n",\r
+        "id": "e76d16f4.131fa8",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='tcridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' >\n\n",\r
         "comments": "",\r
-        "x": 2394,\r
-        "y": 3322,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 2751.566665649414,\r
+        "y": 2460.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "c79290ba.c52288"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "d80a0f45.0378e",\r
-        "type": "save",\r
-        "name": "get all-vpn-bindings from aai",\r
-        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v21/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",\r
+        "id": "c79290ba.c52288",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.the-connectivity.relationship-list.relationship[$tcridx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 455,\r
-        "y": 3922,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2963.566665649414,\r
+        "y": 2458.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "24e9e35d.66377c",\r
-                "ba022563.b1ca78",\r
-                "e3577813.56f32"\r
+                "7b053331.5433cc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "24e9e35d.66377c",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "7b053331.5433cc",\r
+        "type": "outcome",\r
+        "name": "vpn-binding",\r
+        "xml": "<outcome value='vpn-binding'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 643,\r
-        "y": 3935,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3147.566665649414,\r
+        "y": 2456.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b86628e9.5b571"\r
+                "874cfbc4.610df"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ba022563.b1ca78",\r
-        "type": "not-found",\r
-        "name": "not-found",\r
-        "xml": "<outcome value='not-found'>\n",\r
-        "comments": "",\r
+        "id": "874cfbc4.610df",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
         "outputs": 1,\r
-        "x": 643.490966796875,\r
-        "y": 3980.5740356445312,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3326.566665649414,\r
+        "y": 2461.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "dd8f81c4.9e7f98"\r
+                "23e63567.6cde12",\r
+                "860dc7bb.33f898"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e3577813.56f32",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "860dc7bb.33f898",\r
+        "type": "set",\r
+        "name": "unset tmp.aai.vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
+        "comments": "",\r
+        "x": 3543.566665649414,\r
+        "y": 2392.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "23e63567.6cde12",\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.the-connectivity.relationship-list.relationship[$tcridx].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": 641,\r
-        "y": 4024,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3536.566665649414,\r
+        "y": 2478.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "7aca1801.7911a"\r
+                "9ae4e678.567218",\r
+                "7ffe67c7.f6ae9",\r
+                "495c2481.525c0c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b86628e9.5b571",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">",\r
-        "atomic": "true",\r
+        "id": "7ffe67c7.f6ae9",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
+        "comments": "",\r
         "outputs": 1,\r
-        "x": 816,\r
-        "y": 3933,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3750.057632446289,\r
+        "y": 2463.1407012939453,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "247b0f83.24d55"\r
+                "aa65fd53.ef5338"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dd8f81c4.9e7f98",\r
+        "id": "aa65fd53.ef5338",\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": 806.0623779296875,\r
-        "y": 3980.8597717285156,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3912.629165649414,\r
+        "y": 2462.4264068603516,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7aca1801.7911a",\r
+        "id": "46144b36.0d9e9c",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 808,\r
-        "y": 4023,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3913.566665649414,\r
+        "y": 2507.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "be1c598f.c95108",\r
-        "type": "for",\r
-        "name": "for vidx..tmp.otninfo_length[]",\r
-        "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
+        "id": "495c2481.525c0c",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 444,\r
-        "y": 4113,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3745.566665649414,\r
+        "y": 2507.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "5abd279e.a9bea8"\r
+                "46144b36.0d9e9c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "42fde1a9.9a4a98",\r
+        "id": "9ae4e678.567218",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 3747.566665649414,\r
+        "y": 2567.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "10d11190.f9b6ce"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "10d11190.f9b6ce",\r
         "type": "block",\r
         "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
+        "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 3916.566665649414,\r
+        "y": 2566.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "f3f9bec1.1031a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b0b33da.eb46f4",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1254,\r
-        "y": 4113,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2540.566665649414,\r
+        "y": 2458.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "bf9e1c4b.a2ce9"\r
+                "e76d16f4.131fa8",\r
+                "cf3e3cbd.e0de98",\r
+                "d9eb4973.6fd078"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3cd4b283.9423f6",\r
-        "type": "for",\r
-        "name": "for vidx..tmp.otninfo_length[]",\r
-        "xml": "<for index='stunidx' start='0' end='`$otn-tunnel-slice[$dmnsidx].list_length`' >\n",\r
+        "id": "f3f9bec1.1031a8",\r
+        "type": "switchNode",\r
+        "name": "switch srcTtp",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id == $tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1026,\r
-        "y": 4113,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4115.566665649414,\r
+        "y": 2567.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "42fde1a9.9a4a98"\r
+                "b44e2e1b.d89b7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "247b0f83.24d55",\r
-        "type": "for",\r
-        "name": "for vpnidx in all-vpn-bindings",\r
-        "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
+        "id": "b44e2e1b.d89b7",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1045,\r
-        "y": 3934,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4278.566665649414,\r
+        "y": 2565.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "a4896672.ff36c8"\r
+                "1fcb6776.c122c9"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a4896672.ff36c8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "id": "1fcb6776.c122c9",\r
+        "type": "switchNode",\r
+        "name": "switch dstTtp",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id == $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1260,\r
-        "y": 3935,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4459.566665649414,\r
+        "y": 2565.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "f571db46.1bfcb"\r
+                "9cd0e2ee.ae3208"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "bf9e1c4b.a2ce9",\r
+        "id": "9cd0e2ee.ae3208",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 4622.566665649414,\r
+        "y": 2563.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "2650c786.e545e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4a1b7e57.c40f08",\r
         "type": "set",\r
-        "name": "set attachment_param sliceG",\r
-        "xml": "<set>\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].request-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].request-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-source-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-source-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].otn-dest-node`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].otn-dest-node`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].bw-odu`' value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].bw-odu`\" />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].src-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].src-ttp-id`' />\n<parameter name='`otn-tunnel-sliceG-list[$stunidx].dst-ttp-id`' value='`$otn-tunnel-slice[$dmnsidx].list[$stunidx].dst-ttp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='otn-tunnel-sliceG-list_length' value='`$stunidx + 1`' />\n\n\n<parameter name=\"tmp.domainG.restapiUrl\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainurl`\" />\n<parameter name=\"tmp.domainG.restapiUser\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainuser`\" />\n<parameter name=\"tmp.domainG.restapiPassword\" value=\"`$otn-tunnel-slice[$dmnsidx].list[$stunidx].domainpassword`\" />",\r
+        "name": "set tmp.the-vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='`$tmp.aai.vpn-binding.`' />\n",\r
         "comments": "",\r
-        "x": 1507,\r
-        "y": 4111,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4979.566665649414,\r
+        "y": 2570.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5df62aff.b0027c",\r
-        "type": "execute",\r
-        "name": "execute RestApiCallNode sliceG creation domainG",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.transport-sliceG-list-creation.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$tmp.domainG.restapiUrl + '/restconf/operations/ietf-optical-slice:create-optical-slice'`\" />\n<parameter name=\"restapiUser\" value=\"`$tmp.domainG.restapiUser`\" />\n<parameter name=\"restapiPassword\" value=\"`tmp.domainG.restapiPassword`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\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`\" />\n",\r
+        "id": "2650c786.e545e",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1092,\r
-        "y": 4219,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4761.566665649414,\r
+        "y": 2562.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "e89a613f.801198",\r
-                "c394a514.3653"\r
+                "4a1b7e57.c40f08",\r
+                "a9183733.3981d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c394a514.3653",\r
-        "type": "failure",\r
-        "name": "failure",\r
-        "xml": "<outcome value='failure'>\n",\r
+        "id": "a9183733.3981d8",\r
+        "type": "break",\r
+        "name": "break",\r
+        "xml": "<break>\n",\r
+        "comments": "",\r
+        "x": 4925.566665649414,\r
+        "y": 2614.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "cf3e3cbd.e0de98",\r
+        "type": "set",\r
+        "name": "unset tmp.the-vpn-binding",\r
+        "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='' />\n",\r
+        "comments": "",\r
+        "x": 2761.566665649414,\r
+        "y": 2421.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b12c732.984971",\r
+        "type": "comment",\r
+        "name": "increase the bw of the-vpn-binding and change status to modified",\r
+        "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
+        "comments": "",\r
+        "x": 2850.566665649414,\r
+        "y": 2595.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d9eb4973.6fd078",\r
+        "type": "save",\r
+        "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.the-vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.the-vpn-binding.vpn-id`' />\n<!--<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`($tmp.the-vpn-binding.customer-vpn-id + $gfp)`' />\n\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1375,\r
-        "y": 4199,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2820.566665649414,\r
+        "y": 2655.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            [\r
-                "ba5b687c.dd6a6"\r
-            ]\r
+            []\r
         ]\r
     },\r
     {\r
-        "id": "e89a613f.801198",\r
-        "type": "success",\r
-        "name": "success",\r
-        "xml": "<outcome value='success'>\n",\r
+        "id": "64dad903.5a2f98",\r
+        "type": "switchNode",\r
+        "name": "switch otninfoProtect exists",\r
+        "xml": "<switch test=\"`$tmp.otninfoProtect_length > 0`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1376.0002136230469,\r
-        "y": 4249.99990940094,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 586.6833038330078,\r
+        "y": 2521.566665649414,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b0106af6.430b1"\r
+                "215a5551.e3e412"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ba5b687c.dd6a6",\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 slice creation api for domain A\" />\n",\r
+        "id": "215a5551.e3e412",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
-        "x": 1515.0002479553223,\r
-        "y": 4199.000000953674,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 807.6833038330078,\r
+        "y": 2522.566665649414,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "a45af556.e89b18"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "b0106af6.430b1",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "3c1038b8.5e7e68",\r
+        "type": "for",\r
+        "name": "for vidx..tmp.otninfoProtect_length[]",\r
+        "xml": "<for index='otnidx' start='0' end='`$tmp.otninfoProtect_length`' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1521.0272598266602,\r
-        "y": 4247.745394706726,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 623.2333526611328,\r
+        "y": 3303.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "ef268a68.25127"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "5abd279e.a9bea8",\r
+        "id": "ef268a68.25127",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic='true'>",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 676,\r
-        "y": 4111,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 883.2333221435547,\r
+        "y": 3296.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "3c86462f.4b1cfa",\r
+                "95fc92f6.a552f",\r
+                "bd01141d.416e08",\r
+                "a5def1e9.f9efb8",\r
+                "2ba7fbc5.caf74c",\r
+                "7c316fec.b1e588",\r
+                "85ee5aba.20cb98",\r
+                "9839af4.fe6bc5",\r
+                "f83dd9dc.4b2938",\r
+                "e931b49.dce4f48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "95fc92f6.a552f",\r
+        "type": "switchNode",\r
+        "name": "switch dstPort == NULL",\r
+        "xml": "<switch test=\"`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1272.2333526611328,\r
+        "y": 2965.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "3cd4b283.9423f6",\r
-                "5df62aff.b0027c"\r
+                "11f57316.f3cd45",\r
+                "95eb0f31.f65c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f571db46.1bfcb",\r
-        "type": "switchNode",\r
-        "name": "switch vpnuuid is for this slice",\r
-        "xml": "<!--<switch test=\"`$tmp.slicevpnuuids[$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id] != '' `\">-->\n\n<!-- Replace vpn-type with slice-id (a new attribbute in the latest AAI) -->\n<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].slice-id == $tmp.aai.service-instance.service-instance-id `\">\n\n",\r
+        "id": "95eb0f31.f65c",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1504,\r
-        "y": 3934,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1639.2333526611328,\r
+        "y": 2972.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "10584e74.11a9e2",\r
-                "3270eb36.2e6c2c"\r
+                "bae99d3f.d39558"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cbeb21d2.528fb",\r
+        "id": "bae99d3f.d39558",\r
+        "type": "set",\r
+        "name": "set access-provider-id and client-id",\r
+        "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-node-id`' />\n",\r
+        "comments": "",\r
+        "x": 1850.2333526611328,\r
+        "y": 2970.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "bd01141d.416e08",\r
         "type": "set",\r
-        "name": "set providerValue",\r
-        "xml": "<set>\n<parameter name='providerValue' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].access-provider-id`' />\n<parameter name='found' value='false' />\n\n\n",\r
+        "name": "set srcdstpnf-name",\r
+        "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
         "comments": "",\r
-        "x": 2146,\r
-        "y": 3880,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1448.2333526611328,\r
+        "y": 3039.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7855d996.5f07",\r
-        "type": "switchNode",\r
-        "name": "switch $tmp.arr_length != 0",\r
-        "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
+        "id": "a5def1e9.f9efb8",\r
+        "type": "get-resource",\r
+        "name": "get-resource tmp.srcdstpnf-name",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2179,\r
-        "y": 3935,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1492.2333526611328,\r
+        "y": 3087.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "be28c030.0047c",\r
-                "f9d12f18.1e0e1"\r
+                "1b704af4.001005",\r
+                "90a71ff0.af51a",\r
+                "de22a1d2.f2012"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "be28c030.0047c",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "1b704af4.001005",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2375,\r
-        "y": 3905,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1704.7333526611328,\r
+        "y": 3034.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "cca5c1e0.c9e418"\r
+                "13747b87.9c71cc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f9d12f18.1e0e1",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "90a71ff0.af51a",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2376,\r
-        "y": 3976,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1716.7333526611328,\r
+        "y": 3084.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "1c2a1c2d.eddd2c"\r
+                "8dc0e81e.e3f4e8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "10584e74.11a9e2",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "de22a1d2.f2012",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1721,\r
-        "y": 3913,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1707.7333526611328,\r
+        "y": 3139.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "66fe7551.116524"\r
+                "588af43e.c26e74"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3270eb36.2e6c2c",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "588af43e.c26e74",\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": 1852.7333526611328,\r
+        "y": 3138.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8dc0e81e.e3f4e8",\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": 1863.7333526611328,\r
+        "y": 3081.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "13747b87.9c71cc",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1721,\r
-        "y": 3962,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1830.1157989501953,\r
+        "y": 3028.1222381591797,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "974aaa11.eb6cb"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "66fe7551.116524",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "id": "974aaa11.eb6cb",\r
+        "type": "for",\r
+        "name": "for each relationship",\r
+        "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1889,\r
-        "y": 3913,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1991.2333526611328,\r
+        "y": 3042.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "cbeb21d2.528fb",\r
-                "7855d996.5f07"\r
+                "d0dc9aab.207738"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cca5c1e0.c9e418",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "id": "d0dc9aab.207738",\r
+        "type": "switchNode",\r
+        "name": "switch related-to",\r
+        "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2526,\r
-        "y": 3903,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2186.233352661133,\r
+        "y": 3042.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "6021fe00.cf5b38",\r
-                "3ee35cda.cacc94"\r
+                "c5ea8522.683198"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1c2a1c2d.eddd2c",\r
+        "id": "5023a378.bccf5c",\r
         "type": "block",\r
         "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
+        "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
-        "comments": "",\r
         "outputs": 1,\r
-        "x": 2528,\r
-        "y": 3976,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2566.233352661133,\r
+        "y": 3038.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b88403d3.b550c",\r
-                "df79ce65.0d4e"\r
+                "684650c8.a4a3a",\r
+                "cb667230.05f32"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6021fe00.cf5b38",\r
-        "type": "for",\r
-        "name": "for arridx in tmp.arr",\r
-        "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
+        "id": "cb667230.05f32",\r
+        "type": "execute",\r
+        "name": "get esr-thirdparty-sdnc",\r
+        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2713,\r
-        "y": 3855,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2774.233352661133,\r
+        "y": 3045.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "70402202.48ed14"\r
+                "b3d421a8.26ce58",\r
+                "207778d4.3409c8",\r
+                "d90d835c.bc33f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "70402202.48ed14",\r
-        "type": "switchNode",\r
-        "name": "switch tmp.arr[$arridx] == $providerValue",\r
-        "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
+        "id": "684650c8.a4a3a",\r
+        "type": "set",\r
+        "name": "set esr-thirdparty-sdnc domainG id",\r
+        "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+        "comments": "",\r
+        "x": 2804.233352661133,\r
+        "y": 2993.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b3d421a8.26ce58",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3004,\r
-        "y": 3855,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2984.233352661133,\r
+        "y": 3036.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "f629fdf.6a8538",\r
-                "a317d92b.3b0b18"\r
+                "344430e4.438e1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f629fdf.6a8538",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "207778d4.3409c8",\r
+        "type": "not-found",\r
+        "name": "not-found",\r
+        "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3279,\r
-        "y": 3824,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2976.233352661133,\r
+        "y": 3091.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "a51325a8.b7388"\r
+                "dc2a2f20.50fc1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a317d92b.3b0b18",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "d90d835c.bc33f",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3280,\r
-        "y": 3895,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2981.233352661133,\r
+        "y": 3148.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "9d65717e.a373d"\r
+                "1ecff912.83975f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "a51325a8.b7388",\r
+        "id": "1ecff912.83975f",\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": 3133.233352661133,\r
+        "y": 3149.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dc2a2f20.50fc1",\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": 3144.233352661133,\r
+        "y": 3094.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "344430e4.438e1",\r
         "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3430,\r
-        "y": 3822,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3128.615676879883,\r
+        "y": 3034.1222381591797,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "3791e48.3b8af9c",\r
-                "a673fd66.c40df",\r
-                "86199d64.75edc8",\r
-                "51a35674.c610f8",\r
-                "445052f3.f38194"\r
+                "8422f10e.6bf76"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b88403d3.b550c",\r
-        "type": "save",\r
-        "name": "store $arridx somewhere in vpn-binding",\r
-        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='0' />\n\n\n",\r
+        "id": "c5ea8522.683198",\r
+        "type": "outcome",\r
+        "name": "esr-thirdparty-sdnc",\r
+        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2783,\r
-        "y": 3969,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2389.233352661133,\r
+        "y": 3046.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "5023a378.bccf5c"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "df79ce65.0d4e",\r
+        "id": "8422f10e.6bf76",\r
         "type": "set",\r
-        "name": "set twoD array",\r
-        "xml": "<set>\n<parameter name='tmp.arr[0]' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='1' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[0].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[0].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[0].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[0].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='1' />\n<parameter name='otn-tunnel-slice[0].list_length' value='1' />\n\n",\r
+        "name": "set controller domainA data",\r
+        "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
         "comments": "",\r
-        "x": 2711,\r
-        "y": 4016,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3343.233352661133,\r
+        "y": 3030.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3ee35cda.cacc94",\r
+        "id": "2ba7fbc5.caf74c",\r
         "type": "switchNode",\r
-        "name": "switch found?",\r
-        "xml": "<switch test='`$found`'>\n",\r
+        "name": "switch dmnsidx == 0 (domainA)",\r
+        "xml": "<switch test='`$otnidx == 0`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2704,\r
-        "y": 3900,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1462.2333526611328,\r
+        "y": 3256.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b2a6fca5.77cd68",\r
-                "c6caa4c6.b68ae"\r
+                "d1a10e9.68db57",\r
+                "55ef105b.219ab8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b2a6fca5.77cd68",\r
+        "id": "d1a10e9.68db57",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2864,\r
-        "y": 3892,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1663.2333526611328,\r
+        "y": 3254.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "697e3e96.9c5648"\r
+                "854cd71a.2831b"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c6caa4c6.b68ae",\r
-        "type": "outcomeFalse",\r
-        "name": "false",\r
-        "xml": "<outcome value='false'>\n",\r
+        "id": "5d22aeae.4146d",\r
+        "type": "set",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
+        "comments": "",\r
+        "x": 1944.2333526611328,\r
+        "y": 3204.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "da07edc0.17da88",\r
+        "type": "switchNode",\r
+        "name": "switch dmnsidx == last (domainC)",\r
+        "xml": "<switch test='`$otnidx == $tmp.otninfoProtect_length - 1`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2862,\r
-        "y": 3929,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1880.2333526611328,\r
+        "y": 3305.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "c8a03883.695728"\r
+                "123d4b4b.3d3dad",\r
+                "ef13616b.b55bd"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "697e3e96.9c5648",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "123d4b4b.3d3dad",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2989,\r
-        "y": 3892,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2110.233352661133,\r
+        "y": 3301.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "158fea08.6700e6"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "7ed231c3.f2fd1",\r
-        "type": "save",\r
-        "name": "store $arridx+1 somewhere in vpn-binding",\r
-        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx + 1`' />\n\n\n",\r
+        "id": "55ef105b.219ab8",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3296,\r
-        "y": 3950,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1663.2333526611328,\r
+        "y": 3303.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "da07edc0.17da88"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "c8a03883.695728",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic='true'>",\r
-        "atomic": "true",\r
+        "id": "ef13616b.b55bd",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3022,\r
-        "y": 3937,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2111.233352661133,\r
+        "y": 3347.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "7ed231c3.f2fd1",\r
-                "2d908152.4ff6a6"\r
+                "8c36d27f.e0867"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "2d908152.4ff6a6",\r
+        "id": "8c36d27f.e0867",\r
+        "type": "set",\r
+        "name": "set attachment_param domain G",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-node-id`' />",\r
+        "comments": "",\r
+        "x": 2325.233352661133,\r
+        "y": 3347.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "d0c0493f.f08008",\r
         "type": "set",\r
-        "name": "set twoD array",\r
-        "xml": "<set>\n<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />\n<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list[0].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />\n<parameter name='`otn-tunnel-slice[$arridx + 1].list_length`' value='1' />\n\n",\r
+        "name": "set attachment_param domain A",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-access-node-id`' />",\r
         "comments": "",\r
-        "x": 3213,\r
-        "y": 3996,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1999.2333526611328,\r
+        "y": 3251.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9d65717e.a373d",\r
+        "id": "854cd71a.2831b",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3413,\r
-        "y": 3894,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1787.2333526611328,\r
+        "y": 3245.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "d0c0493f.f08008"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "3791e48.3b8af9c",\r
-        "type": "set",\r
-        "name": "set found to true",\r
-        "xml": "<set>\n<parameter name='found' value='true' />\n\n\n",\r
-        "comments": "",\r
-        "x": 3618,\r
-        "y": 3782,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "a673fd66.c40df",\r
-        "type": "save",\r
-        "name": "store $arridx somewhere in vpn-binding",\r
-        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id' >\n<parameter name='vpn-id' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='vpn-type' value='`$arridx`' />\n\n\n",\r
+        "id": "158fea08.6700e6",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3690,\r
-        "y": 3827,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2243.233352661133,\r
+        "y": 3277.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
-            []\r
+            [\r
+                "9e71b7af.8db628"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "445052f3.f38194",\r
+        "id": "bea33937.3887e8",\r
         "type": "set",\r
-        "name": "set twoD arr",\r
-        "xml": "<set>\n\n<!--<parameter name='`tmp.arr[$arridx + 1]`' value='`$providerValue`' />-->\n<!--<parameter name='tmp.arr_length' value='`$tmp.arr_length + 1`' />-->\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].request-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-source-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].otn-dest-node`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-node-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].bw-odu`' value=\"`'0,' + $gfp`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].src-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].src-access-ltp-id`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].dst-ttp-id`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].dst-access-ltp-id`' />\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainurl`' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-region`\" />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainuser`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-description`' />\n<parameter name='`otn-tunnel-slice[$arridx].list[$sizeOfSliceList].domainpassword`' value='`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].vpn-platform`' />\n\n<!--<parameter name='otn-tunnel-slice_length' value='`$arridx + 2`' />-->\n<parameter name='`otn-tunnel-slice[$arridx].list_length`' value='`$sizeOfSliceList + 1`' />\n\n",\r
+        "name": "set pce-src-node",\r
+        "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
         "comments": "",\r
-        "x": 3605,\r
-        "y": 3954,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2399.233352661133,\r
+        "y": 3293.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "51a35674.c610f8",\r
+        "id": "9e71b7af.8db628",\r
         "type": "set",\r
-        "name": "set sizeOfSliceList",\r
-        "xml": "<set>\n<parameter name='sizeOfSliceList' value='`$otn-tunnel-slice[$arridx].list_length`' />\n\n\n",\r
-        "comments": "",\r
-        "x": 3626,\r
-        "y": 3890,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "86199d64.75edc8",\r
-        "type": "break",\r
-        "name": "break",\r
-        "xml": "<break>\n",\r
-        "comments": "",\r
-        "x": 3584,\r
-        "y": 4021,\r
-        "z": "4fb14ce0.40eb24",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "6a22d3fb.3389bc",\r
-        "type": "comment",\r
-        "name": "Important Comment",\r
-        "info": "When we are in F1, it means that, either:\nno-middle-man found\nor\nmiddle-man was found but PCE is needed.\n\nNo matter which scenario brings us to F1, vpn-binding-B is a \nnew vpn-binding so it needs to be attached to the:\nmiddle-man && connectivityB",\r
+        "name": "set attachment_param domain C",\r
+        "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />",\r
         "comments": "",\r
-        "x": 2364,\r
-        "y": 3211,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2447.233352661133,\r
+        "y": 3245.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "13d7f319.f10ffd",\r
+        "id": "7c316fec.b1e588",\r
         "type": "set",\r
         "name": "set srcTtp+dstTtp pair",\r
-        "xml": "<set>\n<parameter name='tmp.srcTtpdstTtpPair' value=\"`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id + ',' +\n                                               $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`\" />\n\n\n",\r
+        "xml": "<set>\n<parameter name='tmp.srcTtpdstTtpPair' value=\"`$tmp.otninfoProtect[$otnidx].srcPort.src-tunnel-tp-id + ',' +\n                                               $tmp.otninfootninfoProtect.dstPort.dst-tunnel-tp-id`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 1510,\r
-        "y": 1268,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1438.2333526611328,\r
+        "y": 3336.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9673bbc9.e232d8",\r
+        "id": "9839af4.fe6bc5",\r
         "type": "call",\r
         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1703,\r
-        "y": 1365,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1630.2333221435547,\r
+        "y": 3434.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fe43d4e7.2e266",\r
+        "id": "85ee5aba.20cb98",\r
         "type": "set",\r
         "name": "set current-provider-id and current-cvlan-id",\r
         "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$tmp.access-provider-id`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n",\r
         "comments": "",\r
-        "x": 1574,\r
-        "y": 1319,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1502.2333526611328,\r
+        "y": 3387.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8c1ff0ec.d0238",\r
+        "id": "f83dd9dc.4b2938",\r
         "type": "switchNode",\r
         "name": "switch found-connectivity?",\r
         "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1383,\r
-        "y": 1520,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1311.2333526611328,\r
+        "y": 3588.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "43f2090.27bb178",\r
-                "78a0670.cf2d998"\r
+                "18d6c2fa.641995",\r
+                "dcc8cc4e.be442"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "43f2090.27bb178",\r
+        "id": "18d6c2fa.641995",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1669,\r
-        "y": 2339,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1597.2333526611328,\r
+        "y": 4407.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "c80f5b2c.e8799"\r
+                "e6eb5ead.3574d"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "340621d.c4a9c5e",\r
+        "id": "343e95a2.91d102",\r
         "type": "comment",\r
         "name": "call string.contains to check if the cache has srcTtpdstTtpPair",\r
         "info": "if it had: then no new otn/vpn-binding is needed\n           ==> find the otn. ==>look into the relationships of this connectivity and find the one that has same srcTtp and dstTtp\n           ==> increase the bw\nif not, create a new vpn-binding, attach this vpn-binding into the founded connectivity, and attach it to the middle-man-conn as well.",\r
         "comments": "",\r
-        "x": 2095,\r
-        "y": 2284,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2023.2333526611328,\r
+        "y": 4352.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b5382f7e.2bd898",\r
+        "id": "96e5df51.7a42e8",\r
         "type": "comment",\r
-        "name": "create a new connectivity",\r
+        "name": "create a new connectivity - (for dummy connectivity)",\r
         "info": "(this should not be for LEAF side or ROOT side, otherwise error)\n\ncreate a new vpn-binding (done here)\ncreate a new connectivity (done below)\nadd srcTtpdstTtpPair into the cache in this connectivity\nattach the vpn-binding into the connectivity relationship\nattach this connectivity into the middle man\nattach this connectivity into the service-instance",\r
         "comments": "",\r
-        "x": 1906,\r
-        "y": 1496,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1890.2333221435547,\r
+        "y": 3550.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "be6ceee2.825c9",\r
+        "id": "b3b8f0b4.38811",\r
         "type": "save",\r
         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value=\"`$prop.otn-tunnel-name + '-protection'`\" />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2009,\r
-        "y": 1532,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1937.2333526611328,\r
+        "y": 3600.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "cf21392c.4841d8"\r
+                "45c4366f.fdbdd8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cf21392c.4841d8",\r
+        "id": "45c4366f.fdbdd8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2297,\r
-        "y": 1533,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2225.233352661133,\r
+        "y": 3601.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "7f292268.acccbc"\r
+                "2d3f69ef.0fb5de"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7f292268.acccbc",\r
+        "id": "2d3f69ef.0fb5de",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2480.5,\r
-        "y": 1531.25390625,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2408.733352661133,\r
+        "y": 3599.720474243164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "16c5a50f.2f8633",\r
+        "id": "2e9ec397.995dbc",\r
         "type": "execute",\r
         "name": "execute string.contains srcTtpdstTtpPair",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n<parameter name=\"source\" value='`$tmp.the-connectivity.coupling-flag`'/>\n<parameter name=\"target\" value=\"`$tmp.srcTtpdstTtpPair`\"/>\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2083,\r
-        "y": 2336,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2011.2333526611328,\r
+        "y": 4404.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "452b77d1.b4f2a8",\r
-                "b1806606.25c148"\r
+                "ed90dd28.b83e58",\r
+                "f82ff6ac.db51f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "452b77d1.b4f2a8",\r
+        "id": "ed90dd28.b83e58",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2256,\r
-        "y": 2184,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2184.233352661133,\r
+        "y": 4252.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "b1806606.25c148",\r
+        "id": "f82ff6ac.db51f",\r
         "type": "outcomeFalse",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2288,\r
-        "y": 2443,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2216.233352661133,\r
+        "y": 4511.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "28b98f8a.d66ba8"\r
+                "99f4b014.f67058"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "65dfad8a.1bcc14",\r
+        "id": "8628699c.1adc48",\r
         "type": "save",\r
         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value=\"`$prop.otn-tunnel-name + '-protection'`\" />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfoProtect[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2695,\r
-        "y": 1974,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2623.233352661133,\r
+        "y": 4042.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "685af2d8.b662dc"\r
+                "350cf74a.3ae6a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "685af2d8.b662dc",\r
+        "id": "350cf74a.3ae6a8",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2999,\r
-        "y": 1971,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2927.233352661133,\r
+        "y": 4039.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "edef5d31.f27bb8"\r
+                "80cb8f26.8d8088"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "edef5d31.f27bb8",\r
+        "id": "80cb8f26.8d8088",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3149.5,\r
-        "y": 1978.25390625,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3077.733352661133,\r
+        "y": 4046.720474243164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "fca1e078.90281",\r
+        "id": "a2ac802b.508078",\r
         "type": "execute",\r
         "name": "execute UUID generator for connectivity domain otnidx",\r
         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1989,\r
-        "y": 1587,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1917.2333526611328,\r
+        "y": 3655.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "84e90fcb.be7ce",\r
+        "id": "9669f040.b74ba",\r
         "type": "save",\r
         "name": "save connectivity resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1927,\r
-        "y": 1637,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1855.2333526611328,\r
+        "y": 3705.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "548a399a.3a9a1",\r
+        "id": "7c73fd.eee64c04",\r
         "type": "save",\r
         "name": "save middle-man-conn relationship to connectivity-otnidx, in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2028,\r
-        "y": 1682,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1956.2333526611328,\r
+        "y": 3750.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ea27a84e.a57e98",\r
+        "id": "470effce.6ff878",\r
         "type": "save",\r
         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2064,\r
-        "y": 1736,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1992.2333526611328,\r
+        "y": 3804.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "688a1580.c26934",\r
+        "id": "46fef161.e2f5b8",\r
         "type": "save",\r
         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2032,\r
-        "y": 1795,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1960.2333526611328,\r
+        "y": 3863.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ab8e2668.029e08",\r
+        "id": "a6bdd1f3.4b8e18",\r
         "type": "comment",\r
         "name": "find middle-man's eth-srv-name",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1490,\r
-        "y": 1411,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1418.2333526611328,\r
+        "y": 3479.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "84f3d24d.36c17",\r
+        "id": "e931b49.dce4f48",\r
         "type": "set",\r
         "name": "set prop.ethernet-service-name",\r
         "xml": "<set>\n<parameter name='prop.ethernet-service-name' value='`$middle-man-conn.etht-svc-name`' />\n\n",\r
         "comments": "",\r
-        "x": 1512,\r
-        "y": 1455,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1440.2333526611328,\r
+        "y": 3523.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ae53151f.a2887",\r
+        "id": "90c5dad8.6290a8",\r
         "type": "save",\r
         "name": "save middle-man-conn relationship to tmp.the-connectivity, in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2719,\r
-        "y": 2191,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2647.233352661133,\r
+        "y": 4259.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "4e7cd680.120818",\r
+        "id": "db332d3c.49a9a",\r
         "type": "save",\r
         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2750,\r
-        "y": 2230,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2678.233352661133,\r
+        "y": 4298.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "ecdbcb6.a92d738",\r
+        "id": "d699f611.493dc8",\r
         "type": "save",\r
         "name": "save tmp.the-connectivity relationship to vpn-binding-otnidx, in AAI",\r
         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2721,\r
-        "y": 2303,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2649.233352661133,\r
+        "y": 4371.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "82dff351.eb0b18",\r
+        "id": "1cd5d29a.f74d95",\r
         "type": "comment",\r
         "name": "update the founded connectivity to have a new coupling-flag",\r
         "info": "",\r
         "comments": "",\r
-        "x": 2691,\r
-        "y": 2019,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2619.233352661133,\r
+        "y": 4087.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "4af074ca.bd591c",\r
+        "id": "41ec6c24.ddf264",\r
         "type": "set",\r
         "name": "set newFlag",\r
         "xml": "<set>\n<parameter name='tmp.newFlag' value=\"`$tmp.the-connectivity.coupling-flag + '-' +\n                                               $tmp.srcTtpdstTtpPair`\" />\n\n\n",\r
         "comments": "",\r
-        "x": 2577,\r
-        "y": 2058,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2505.233352661133,\r
+        "y": 4126.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "5e632476.eb799c",\r
+        "id": "5401259a.255f4c",\r
         "type": "save",\r
         "name": "update connectivity resource in AAI",\r
         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='coupling-flag' value='`$tmp.newFlag`' />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2641,\r
-        "y": 2103,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2569.233352661133,\r
+        "y": 4171.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "6b3b57c6.7c8f5",\r
+        "id": "f4ae7aab.9265",\r
         "type": "comment",\r
         "name": "the following two relationships should have already been there; if not => error",\r
         "info": "",\r
         "comments": "",\r
-        "x": 2733,\r
-        "y": 2153,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2661.233352661133,\r
+        "y": 4221.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "453ea410.800c04",\r
+        "id": "f7b21c05.40cbf",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1719,\r
-        "y": 1520,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1647.2333526611328,\r
+        "y": 3588.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "be6ceee2.825c9",\r
-                "fca1e078.90281",\r
-                "84e90fcb.be7ce",\r
-                "548a399a.3a9a1",\r
-                "ea27a84e.a57e98",\r
-                "688a1580.c26934"\r
+                "b3b8f0b4.38811",\r
+                "a2ac802b.508078",\r
+                "9669f040.b74ba",\r
+                "7c73fd.eee64c04",\r
+                "470effce.6ff878",\r
+                "46fef161.e2f5b8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "78a0670.cf2d998",\r
+        "id": "dcc8cc4e.be442",\r
         "type": "outcomeFalse",\r
         "name": "false",\r
         "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1581,\r
-        "y": 1516,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 1509.2333526611328,\r
+        "y": 3584.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "453ea410.800c04"\r
+                "f7b21c05.40cbf"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "c80f5b2c.e8799",\r
+        "id": "e6eb5ead.3574d",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic='true'>",\r
         "atomic": "true",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2379,\r
-        "y": 1983,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2307.233352661133,\r
+        "y": 4051.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "65dfad8a.1bcc14",\r
-                "4af074ca.bd591c",\r
-                "5e632476.eb799c",\r
-                "ecdbcb6.a92d738"\r
+                "8628699c.1adc48",\r
+                "41ec6c24.ddf264",\r
+                "5401259a.255f4c",\r
+                "d699f611.493dc8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f5aa86ab.3de758",\r
+        "id": "3343c09a.65c218",\r
         "type": "comment",\r
         "name": "loop through the relationships of this founded connectivity, then",\r
         "info": "then find the vpn-binding that has same src ttp and dst ttp as this one",\r
         "comments": "",\r
-        "x": 2384,\r
-        "y": 2408,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2312.233352661133,\r
+        "y": 4476.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8608bc09.df0608",\r
+        "id": "9dc35d09.68f5e",\r
         "type": "for",\r
         "name": "for each relationship",\r
         "xml": "<for silentFailure='true' index='tcridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' >\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2726,\r
-        "y": 2444,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2654.233352661133,\r
+        "y": 4512.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "5d08ac03.36d834"\r
+                "9e275798.602f8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "5d08ac03.36d834",\r
+        "id": "9e275798.602f8",\r
         "type": "switchNode",\r
         "name": "switch related-to",\r
         "xml": "<switch test='`$tmp.the-connectivity.relationship-list.relationship[$tcridx].related-to`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2938,\r
-        "y": 2442,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2866.233352661133,\r
+        "y": 4510.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "d7fbd393.802b28"\r
+                "7a3ca348.6eb8cc"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d7fbd393.802b28",\r
+        "id": "7a3ca348.6eb8cc",\r
         "type": "outcome",\r
         "name": "vpn-binding",\r
         "xml": "<outcome value='vpn-binding'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3122,\r
-        "y": 2440,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3050.233352661133,\r
+        "y": 4508.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "7b17a25c.8a3ecc"\r
+                "18297da6.def11a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7b17a25c.8a3ecc",\r
+        "id": "18297da6.def11a",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3301,\r
-        "y": 2445,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3229.233352661133,\r
+        "y": 4513.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "404536aa.fd072",\r
-                "ebe21a38.772d1"\r
+                "cae15caf.d873b",\r
+                "b9a58cc8.83da"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ebe21a38.772d1",\r
+        "id": "b9a58cc8.83da",\r
         "type": "set",\r
         "name": "unset tmp.aai.vpn-binding",\r
         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
         "comments": "",\r
-        "x": 3518,\r
-        "y": 2376,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3446.233352661133,\r
+        "y": 4444.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "404536aa.fd072",\r
+        "id": "cae15caf.d873b",\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.the-connectivity.relationship-list.relationship[$tcridx].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": 3511,\r
-        "y": 2462,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3439.233352661133,\r
+        "y": 4530.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "82eb023b.8b6878",\r
-                "3917c696.d9cc82",\r
-                "ad895865.ea3bc8"\r
+                "5138a4d2.ef8fac",\r
+                "ac846614.4aec2",\r
+                "f282e20e.a80ae8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3917c696.d9cc82",\r
+        "id": "ac846614.4aec2",\r
         "type": "not-found",\r
         "name": "not-found",\r
         "xml": "<outcome value='not-found'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3724.490966796875,\r
-        "y": 2446.5740356445312,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3652.724319458008,\r
+        "y": 4515.040603637695,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "33dd47ac.b200d"\r
+                "a9c1a4d0.be4bf"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "33dd47ac.b200d",\r
+        "id": "a9c1a4d0.be4bf",\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": 3887.0625,\r
-        "y": 2445.8597412109375,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3815.295852661133,\r
+        "y": 4514.326309204102,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "49f1ea3b.eabc34",\r
+        "id": "3f01f4a.cba308c",\r
         "type": "returnFailure",\r
         "name": "return failure",\r
         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
         "comments": "",\r
-        "x": 3888,\r
-        "y": 2491,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3816.233352661133,\r
+        "y": 4559.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "ad895865.ea3bc8",\r
+        "id": "f282e20e.a80ae8",\r
         "type": "failure",\r
         "name": "failure",\r
         "xml": "<outcome value='failure'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3720,\r
-        "y": 2491,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3648.233352661133,\r
+        "y": 4559.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "49f1ea3b.eabc34"\r
+                "3f01f4a.cba308c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "82eb023b.8b6878",\r
+        "id": "5138a4d2.ef8fac",\r
         "type": "success",\r
         "name": "success",\r
         "xml": "<outcome value='success'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 3722,\r
-        "y": 2551,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3650.233352661133,\r
+        "y": 4619.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "cb43f8c5.5d2f9"\r
+                "77a45849.e6938"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "cb43f8c5.5d2f9",\r
+        "id": "77a45849.e6938",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">",\r
         "atomic": "true",\r
         "outputs": 1,\r
-        "x": 3891,\r
-        "y": 2550,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 3819.233352661133,\r
+        "y": 4618.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "b8d3290b.70429"\r
+                "4ba14139.176d1"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "28b98f8a.d66ba8",\r
+        "id": "99f4b014.f67058",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2515,\r
-        "y": 2442,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2443.233352661133,\r
+        "y": 4510.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "8608bc09.df0608",\r
-                "57ababe0.ec3414",\r
-                "52276af3.2f9a4c"\r
+                "9dc35d09.68f5e",\r
+                "389a95d9.814532",\r
+                "dc2c44c.de08338"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "b8d3290b.70429",\r
+        "id": "4ba14139.176d1",\r
         "type": "switchNode",\r
         "name": "switch srcTtp",\r
-        "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id == $tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`'>\n",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id == $tmp.otninfoProtect[$otnidx].srcPort.src-tunnel-tp-id`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4090,\r
-        "y": 2551,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4018.233352661133,\r
+        "y": 4619.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "4ce3e8eb.f24da8"\r
+                "bca4df60.ab3168"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "4ce3e8eb.f24da8",\r
+        "id": "bca4df60.ab3168",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4253,\r
-        "y": 2549,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4181.233352661133,\r
+        "y": 4617.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "18f785cc.cf347a"\r
+                "8c9fdcfa.7d409"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "18f785cc.cf347a",\r
+        "id": "8c9fdcfa.7d409",\r
         "type": "switchNode",\r
         "name": "switch dstTtp",\r
-        "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id == $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`'>\n",\r
+        "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id == $tmp.otninfoProtect[$otnidx].dstPort.dst-tunnel-tp-id`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4434,\r
-        "y": 2549,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4362.233352661133,\r
+        "y": 4617.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "988f1cd5.aa027"\r
+                "1fd4ba30.e4e24e"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "988f1cd5.aa027",\r
+        "id": "1fd4ba30.e4e24e",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4597,\r
-        "y": 2547,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4525.233352661133,\r
+        "y": 4615.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "9caa890d.344aa8"\r
+                "eeebf323.f178a8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "dd1b26b2.35eef",\r
+        "id": "19bf4184.74519e",\r
         "type": "set",\r
         "name": "set tmp.the-vpn-binding",\r
         "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='`$tmp.aai.vpn-binding.`' />\n",\r
         "comments": "",\r
-        "x": 4954,\r
-        "y": 2554,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4882.233352661133,\r
+        "y": 4622.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "9caa890d.344aa8",\r
+        "id": "eeebf323.f178a8",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 4736,\r
-        "y": 2546,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4664.233352661133,\r
+        "y": 4614.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             [\r
-                "dd1b26b2.35eef",\r
-                "69c80295.f3b48c"\r
+                "19bf4184.74519e",\r
+                "12253a72.5240ae"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "69c80295.f3b48c",\r
+        "id": "12253a72.5240ae",\r
         "type": "break",\r
         "name": "break",\r
         "xml": "<break>\n",\r
         "comments": "",\r
-        "x": 4900,\r
-        "y": 2598,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 4828.233352661133,\r
+        "y": 4666.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "57ababe0.ec3414",\r
+        "id": "389a95d9.814532",\r
         "type": "set",\r
         "name": "unset tmp.the-vpn-binding",\r
         "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='' />\n",\r
         "comments": "",\r
-        "x": 2736,\r
-        "y": 2405,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2664.233352661133,\r
+        "y": 4473.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "b81a7ea3.f58288",\r
+        "id": "5b2a70f3.05e488",\r
         "type": "comment",\r
         "name": "increase the bw of the-vpn-binding and change status to modified",\r
         "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
         "comments": "",\r
-        "x": 2825,\r
-        "y": 2579,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2753.233352661133,\r
+        "y": 4647.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": []\r
     },\r
     {\r
-        "id": "52276af3.2f9a4c",\r
+        "id": "dc2c44c.de08338",\r
         "type": "save",\r
         "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.the-vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.the-vpn-binding.vpn-id`' />\n<!--<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`($tmp.the-vpn-binding.customer-vpn-id + $gfp)`' />\n\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 2795,\r
-        "y": 2639,\r
-        "z": "4fb14ce0.40eb24",\r
+        "x": 2723.233352661133,\r
+        "y": 4707.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3c86462f.4b1cfa",\r
+        "type": "execute",\r
+        "name": "execute UUID generator for vpn-binding $otnidx",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1558.2333526611328,\r
+        "y": 2875.466567993164,\r
+        "z": "2050832.98c01fc",\r
         "wires": [\r
             []\r
         ]\r
+    },\r
+    {\r
+        "id": "11f57316.f3cd45",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1638.2333526611328,\r
+        "y": 2926.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "9c6641d3.3410d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "9c6641d3.3410d",\r
+        "type": "set",\r
+        "name": "set access-provider-id and client-id",\r
+        "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfoProtect[$otnidx].srcPort.src-access-node-id`' />\n",\r
+        "comments": "",\r
+        "x": 1852.2333526611328,\r
+        "y": 2925.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "397ccb1f.018174",\r
+        "type": "set",\r
+        "name": "unset parameters",\r
+        "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value='' />\n<parameter name='prop.vpn-binding-otnidx-uuid' value='' />\n<parameter name='tmp.access-provider-id' value='' />\n<parameter name='tmp.access-client-id' value='' />\n<parameter name='tmp.access-topology-id' value='' />\n<parameter name='tmp.srcdstpnf-id' value='' />\n<parameter name='tmp.aai.srcdst-pnf.' value='' />\n<parameter name='tmp.domainG.esr-thirdparty-id' value='' />\n<parameter name='tmp.aai.domainG.esr-thirdparty-sdnc.' value='' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value='' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value='' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value='' />\n<parameter name='tmp.srcTtpdstTtpPair' value='' />\n\n\n",\r
+        "comments": "",\r
+        "x": 1218.1332550048828,\r
+        "y": 2510.466567993164,\r
+        "z": "2050832.98c01fc",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a45af556.e89b18",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic='true'>",\r
+        "atomic": "true",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 992.7666778564453,\r
+        "y": 2526.699966430664,\r
+        "z": "2050832.98c01fc",\r
+        "wires": [\r
+            [\r
+                "397ccb1f.018174",\r
+                "3c1038b8.5e7e68"\r
+            ]\r
+        ]\r
     }\r
 ]
\ No newline at end of file