+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5071.183853149414,\r
+ "y": 1274.906997680664,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "202acc61.848adc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "202acc61.848adc",\r
+ "type": "set",\r
+ "name": "set source tunnel tp ip",\r
+ "xml": "<set>\n<parameter name='source.tunnel-tp-id' value=\"`$tmp.aai.source-ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 5278.183853149414,\r
+ "y": 1274.906997680664,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5952bd35.50a834",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dividx' start='0' end='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3889.566665649414,\r
+ "y": 2143.5667877197266,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6a89a776.9e1148"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a89a776.9e1148",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4095.566665649414,\r
+ "y": 2143.5667877197266,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "c422bc84.9ff58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c422bc84.9ff58",\r
+ "type": "outcome",\r
+ "name": "tunnel-termination-point",\r
+ "xml": "<outcome value='tunnel-termination-point'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4310.852310180664,\r
+ "y": 2143.3885650634766,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "35ec76d0.e92ad2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "35ec76d0.e92ad2",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4517.683853149414,\r
+ "y": 2143.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "2da8c0eb.ef8a5",\r
+ "ed9d3d70.991958",\r
+ "4afbd03e.c78838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2da8c0eb.ef8a5",\r
+ "type": "set",\r
+ "name": "set destination ttp-id",\r
+ "xml": "<set>\n<parameter name='tmp.destination.ttp-id' value=\"`$tmp.aai.network-route-B.p-interface-dst.relationship-list.relationship[$dividx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 4732.683853149414,\r
+ "y": 2105.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ed9d3d70.991958",\r
+ "type": "get-resource",\r
+ "name": "get-resource src TTP",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"tunnel-termination-point\" \n\t\tkey=\"tunnel-termination-point.ttp-id = $tmp.destination.ttp-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.destination-ttp' local-only='false' >\n\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4729.683853149414,\r
+ "y": 2144.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "12a67fc9.3eabd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4afbd03e.c78838",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 4685.183853149414,\r
+ "y": 2186.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "12a67fc9.3eabd",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4910.183853149414,\r
+ "y": 2143.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "e5260f19.3624e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e5260f19.3624e",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 5068.183853149414,\r
+ "y": 2143.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "fea1a0aa.e8456"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fea1a0aa.e8456",\r
+ "type": "set",\r
+ "name": "set destination tunnel tp ip",\r
+ "xml": "<set>\n<parameter name='destination.tunnel-tp-id' value=\"`$tmp.aai.destination-ttp.tunnel-tp-id`\" />\n",\r
+ "comments": "",\r
+ "x": 5275.183853149414,\r
+ "y": 2143.9071197509766,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8b886e18.72a2f",\r
+ "type": "get-resource",\r
+ "name": "get-resource src pnf",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.src.domainA.pnf-name\"\n pfx='tmp.aai.source-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3805.566665649414,\r
+ "y": 750.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "230a01ea.26a66e",\r
+ "548c580d.50378",\r
+ "266b6d86.22640a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "230a01ea.26a66e",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4001.0667877197266,\r
+ "y": 702.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "8a1e2c2.231ae5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "548c580d.50378",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3993.0667877197266,\r
+ "y": 757.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f0a74837.6bf648"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "266b6d86.22640a",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3998.0667877197266,\r
+ "y": 814.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "c89ea643.5fb658"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c89ea643.5fb658",\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": 4150.066787719727,\r
+ "y": 815.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f0a74837.6bf648",\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": 4161.066787719727,\r
+ "y": 760.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8a1e2c2.231ae5",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4145.449111938477,\r
+ "y": 700.2223358154297,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "5c25cba9.41b2b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f1310713.19e1c",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4727.566665649414,\r
+ "y": 718.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "cbcc3226.5de568"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cbcc3226.5de568",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4904.566665649414,\r
+ "y": 710.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "9672ea99.0655d",\r
+ "117cb756.a2a2d9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5c25cba9.41b2b4",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4329.566665649414,\r
+ "y": 714.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "c4bf834f.523618"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c4bf834f.523618",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4524.566665649414,\r
+ "y": 714.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f1310713.19e1c",\r
+ "88191017.73b938"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9672ea99.0655d",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainA id",\r
+ "xml": "<set>\n<parameter name='tmp.domainA.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5142.566665649414,\r
+ "y": 665.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3866efd7.2177",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5322.566665649414,\r
+ "y": 708.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "fe38d110.6015b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "72d35790.07a0a8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5314.566665649414,\r
+ "y": 763.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "7783383e.51854"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "261ed4c9.21b32c",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5319.566665649414,\r
+ "y": 820.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "fa12b901.242fd8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa12b901.242fd8",\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": 5471.566665649414,\r
+ "y": 821.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7783383e.51854",\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": 5482.566665649414,\r
+ "y": 766.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fe38d110.6015b8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5466.948989868164,\r
+ "y": 706.2223358154297,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "60bc3d89.a08324"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "60bc3d89.a08324",\r
+ "type": "set",\r
+ "name": "set controller domainA data",\r
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.url' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.user' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainA.password' value=\"`$tmp.aai.domainA.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
+ "comments": "",\r
+ "x": 5681.566665649414,\r
+ "y": 702.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dc956cf0.69a068",\r
+ "type": "get-resource",\r
+ "name": "get-resource src pnf",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.dst.domainB.pnf-name\"\n pfx='tmp.aai.destination-pnf' local-only='false' >\n\n <!--AND depth = '0'\"-->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3846.566665649414,\r
+ "y": 1591.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "bf4fb85e.9c3948",\r
+ "6a7367e2.bb2c9",\r
+ "ddd9af1d.15854"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bf4fb85e.9c3948",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4042.0667877197266,\r
+ "y": 1543.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "350a8536.22a84a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a7367e2.bb2c9",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4034.0667877197266,\r
+ "y": 1598.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "145991d9.a47ef6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ddd9af1d.15854",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4039.0667877197266,\r
+ "y": 1655.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "820f34bd.964968"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "820f34bd.964968",\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": 4191.066787719727,\r
+ "y": 1656.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "145991d9.a47ef6",\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": 4202.066787719727,\r
+ "y": 1601.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "350a8536.22a84a",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4186.449111938477,\r
+ "y": 1541.2223358154297,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6f232f80.17fde"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "df02e92.6642a98",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4768.566665649414,\r
+ "y": 1559.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "360786c5.7cab22"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "360786c5.7cab22",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4945.566665649414,\r
+ "y": 1551.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "41cd01ea.c63f78",\r
+ "aaeef3c0.eb5678"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f232f80.17fde",\r
+ "type": "for",\r
+ "name": "for each relationship",\r
+ "xml": "<for silentFailure='true' index='dpvidx' start='0' end='`$tmp.aai.destination-pnf.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4370.566665649414,\r
+ "y": 1555.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "d99ab523.6da018"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d99ab523.6da018",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4565.566665649414,\r
+ "y": 1555.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "df02e92.6642a98",\r
+ "c50f0505.bf6c28"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aaeef3c0.eb5678",\r
+ "type": "execute",\r
+ "name": "get esr-thirdparty-sdnc",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.domainB.esr-thirdparty-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.domainB.esr-thirdparty-sdnc' local-only='false' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5153.566665649414,\r
+ "y": 1558.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "3618e547.e0a40a",\r
+ "eed6fd7.fbf15",\r
+ "3313cec2.2b8cca"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "41cd01ea.c63f78",\r
+ "type": "set",\r
+ "name": "set esr-thirdparty-sdnc domainB id",\r
+ "xml": "<set>\n<parameter name='tmp.domainB.esr-thirdparty-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5183.566665649414,\r
+ "y": 1506.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3618e547.e0a40a",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5363.566665649414,\r
+ "y": 1549.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "b22ebd12.40a81"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eed6fd7.fbf15",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5355.566665649414,\r
+ "y": 1604.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "7d8acc36.091ccc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3313cec2.2b8cca",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5360.566665649414,\r
+ "y": 1661.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "112ac18e.80256e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "112ac18e.80256e",\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": 5512.566665649414,\r
+ "y": 1662.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "7d8acc36.091ccc",\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": 5523.566665649414,\r
+ "y": 1607.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b22ebd12.40a81",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5507.948989868164,\r
+ "y": 1547.2223358154297,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "1c9d9642.f84cba"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1c9d9642.f84cba",\r
+ "type": "set",\r
+ "name": "set controller domainB data",\r
+ "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.url' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.user' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainB.password' value=\"`$tmp.aai.domainB.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
+ "comments": "",\r
+ "x": 5722.566665649414,\r
+ "y": 1543.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f30f322a.ce56f8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 2806.566665649414,\r
+ "y": 483.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "c6653aca.b9464",\r
+ "b73a30ff.3793c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b73a30ff.3793c",\r
+ "type": "for",\r
+ "name": "for each allotted-resource relationship",\r
+ "xml": "<for index='idx' start='0' end='`$tmp.aai.allotted-resource.relationship-list.relationship_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3087.566665649414,\r
+ "y": 439.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "be2994c5.6111e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "be2994c5.6111e8",\r
+ "type": "switchNode",\r
+ "name": "switch related-to",\r
+ "xml": "<switch test='`$tmp.aai.allotted-resource.relationship-list.relationship[$idx].related-to`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3349.566665649414,\r
+ "y": 439.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "dba40877.5798e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "88191017.73b938",\r
+ "type": "outcome",\r
+ "name": "network-resource",\r
+ "xml": "<outcome value='network-resource'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4730.566665649414,\r
+ "y": 792.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "65c2e1c9.1b56d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "65c2e1c9.1b56d8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4907.566665649414,\r
+ "y": 784.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "e785d4f0.4913e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e785d4f0.4913e8",\r
+ "type": "set",\r
+ "name": "set domainA ethernet layer network-id",\r
+ "xml": "<set>\n<parameter name='tmp.domainA.eth-network-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5142.566665649414,\r
+ "y": 908.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5f8b1fbc.6dcf18",\r
+ "type": "set",\r
+ "name": "set domainB ethernet layer network-id",\r
+ "xml": "<set>\n<parameter name='tmp.domainB.eth-network-id' value=\"`$tmp.aai.destination-pnf.relationship-list.relationship[$dpvidx].relationship-data[0].relationship-value`\" />\n",\r
+ "comments": "",\r
+ "x": 5182.566665649414,\r
+ "y": 1748.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1932705.17f659",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 4947.566665649414,\r
+ "y": 1624.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "5f8b1fbc.6dcf18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c50f0505.bf6c28",\r
+ "type": "outcome",\r
+ "name": "network-resource",\r
+ "xml": "<outcome value='network-resource'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4770.566665649414,\r
+ "y": 1632.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "1932705.17f659"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "43bfbebe.764f5",\r
+ "type": "set",\r
+ "name": "set the max bandwidth",\r
+ "xml": "<set>\n<parameter name='gfp' value='`$maximum-bandwidth /1000 *4 /5 +1`' />\n\n\n\n",\r
+ "comments": "",\r
+ "x": 4388.566665649414,\r
+ "y": 569.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3a026a1.c8b1f96",\r
+ "type": "execute",\r
+ "name": "execute UUID generator for ethernet-service-name",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.ethernet-service-name\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2744.566665649414,\r
+ "y": 703.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5ea4cfd5.51261",\r
+ "type": "execute",\r
+ "name": "execute UUID generator for otn-tunnel-name",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.otn-tunnel-name\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2725.566665649414,\r
+ "y": 753.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "48ff46b8.d3629",\r
+ "type": "for",\r
+ "name": "for each allotted-resource",\r
+ "xml": "<for index='aridx' start='0' end='`$tmp.aai.service-instance.allotted-resources.allotted-resource_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1986.566665649414,\r
+ "y": 287.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "84ff5346.d202e8",\r
+ "91e3d9ca.33dbb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "84ff5346.d202e8",\r
+ "type": "set",\r
+ "name": "set the current allotted-resource-id",\r
+ "xml": "<set>\n<parameter name='allotted-resource-id' value=\"`$tmp.aai.service-instance.allotted-resources.allotted-resource[$aridx].id`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 2266.566665649414,\r
+ "y": 225.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f8f7fd3.b9ae18",\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": 2639.566665649414,\r
+ "y": 2281.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "eb24a93a.96e538",\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": 2625.566665649414,\r
+ "y": 3961.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e11f1e73.f567a8",\r
+ "type": "set",\r
+ "name": "set new ethernet-service-name",\r
+ "xml": "<set>\n<!--<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-name`\" />-->\n<parameter name='prop.ethernet-service-name' value=\"`$tmp.aai.logical-link.link-id`\" />\n\n\n",\r
+ "comments": "",\r
+ "x": 2682.566665649414,\r
+ "y": 798.5666656494141,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9c7b5506.97a75",\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": 2670.566665649414,\r
+ "y": 2528.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "9ffd0093.8105f8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "85036bc9.25f0a",\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\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3799.566665649414,\r
+ "y": 2950.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "bd2b4caa.40f07"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4d0fe394.a0f5c4",\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": 4372.066665649414,\r
+ "y": 3054.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "bd2b4caa.40f07",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4105.566665649414,\r
+ "y": 2949.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "28d033b7.b1a7b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "28d033b7.b1a7b4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4315.066665649414,\r
+ "y": 2949.820571899414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "da384da9.50fad",\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": 3832.566665649414,\r
+ "y": 2429.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "458c9236.fc09c4",\r
+ "type": "switchNode",\r
+ "name": "switch otnidx == 0",\r
+ "xml": "<switch test='`$otnidx == 0`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3708.566665649414,\r
+ "y": 3067.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "20b3c9fb.2f7a1e",\r
+ "2b2bcdf.9a75432"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "20b3c9fb.2f7a1e",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3891.566665649414,\r
+ "y": 3067.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "85853f45.184448"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2b2bcdf.9a75432",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3716.566665649414,\r
+ "y": 3214.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "69e93af2.71c7f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dec16147.315f48",\r
+ "type": "switchNode",\r
+ "name": "switch otnidx == last",\r
+ "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4057.566665649414,\r
+ "y": 3295.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6e1ea31a.8dc254",\r
+ "3327fa99.59aede"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6e1ea31a.8dc254",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4242.566665649414,\r
+ "y": 3296.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "35e519f9.462626"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3327fa99.59aede",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4261.566665649414,\r
+ "y": 3562.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "234eca18.b570de"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a9f4476.809074",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4672.566665649414,\r
+ "y": 3297.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4efd8bac.69de6c",\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": 4746.566665649414,\r
+ "y": 3595.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "401e45e3.6933bc",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4682.566665649414,\r
+ "y": 3646.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a88afee.ea2358",\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": 4811.566665649414,\r
+ "y": 3696.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "303e66ea.a0468a",\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": 4821.566665649414,\r
+ "y": 3539.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bd97ab87.4b8898",\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": 4779.566665649414,\r
+ "y": 3755.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "234eca18.b570de",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4418.566665649414,\r
+ "y": 3563.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "4efd8bac.69de6c",\r
+ "401e45e3.6933bc",\r
+ "9a88afee.ea2358",\r
+ "bd97ab87.4b8898",\r
+ "2cb520a2.c67d5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9ffd0093.8105f8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2939.566665649414,\r
+ "y": 2528.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "da384da9.50fad",\r
+ "85036bc9.25f0a",\r
+ "458c9236.fc09c4",\r
+ "afb7d963.d1d2e",\r
+ "b5c03e87.4a3d2",\r
+ "5fbd4527.08216c",\r
+ "580438cc.a39858"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7371bc78.68f23c",\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
+ "comments": "",\r
+ "x": 4296.566665649414,\r
+ "y": 3111.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9da935b4.011d78",\r
+ "type": "execute",\r
+ "name": "execute RestApiCallNode domainA UNI Coloring",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainA.eth-network-id + '/node=' + $tmp.src.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.src.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainA.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4349.566665649414,\r
+ "y": 3155.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "a38d117f.617d1",\r
+ "64ad5e9f.cde688"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "64ad5e9f.cde688",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4620.566665649414,\r
+ "y": 3140.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "ae1e714f.21e89"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a38d117f.617d1",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4618.566879272461,\r
+ "y": 3198.566575050354,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "cc46ab1d.b8d358"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ae1e714f.21e89",\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 UNI Coloring for domain A\" />\n",\r
+ "comments": "",\r
+ "x": 4760.566913604736,\r
+ "y": 3140.5666666030884,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cc46ab1d.b8d358",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4766.593925476074,\r
+ "y": 3189.31206035614,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "85853f45.184448",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4032.566665649414,\r
+ "y": 3057.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "4d0fe394.a0f5c4",\r
+ "9da935b4.011d78",\r
+ "7371bc78.68f23c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "35e519f9.462626",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4376.566665649414,\r
+ "y": 3297.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "3a9f4476.809074",\r
+ "6085ae42.a24518",\r
+ "92ddf8d8.c0a7e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "92ddf8d8.c0a7e",\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
+ "comments": "",\r
+ "x": 4596.566665649414,\r
+ "y": 3341.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "6085ae42.a24518",\r
+ "type": "execute",\r
+ "name": "execute RestApiCallNode domainB UNI Coloring",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-coloring-uni-port.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.url + '/restconf/data/ietf-network:networks/network=' + $tmp.domainB.eth-network-id + '/node=' + $tmp.dst.pnf-name + '/ietf-network-topology:termination-point=' + $tmp.dst.ltpId + '/ietf-te-topology:te' `\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domainB.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"otn-oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4647.566665649414,\r
+ "y": 3385.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "e3b13fd7.7163e8",\r
+ "22b24822.5449d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "22b24822.5449d",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4910.566665649414,\r
+ "y": 3365.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f1d0e9c2.a4fe58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e3b13fd7.7163e8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4911.566879272461,\r
+ "y": 3416.566575050354,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "117ef1f.6c1660e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f1d0e9c2.a4fe58",\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 UNI coloring for domain B\" />\n",\r
+ "comments": "",\r
+ "x": 5050.566913604736,\r
+ "y": 3365.5666666030884,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "117ef1f.6c1660e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5056.593925476074,\r
+ "y": 3414.31206035614,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "2cb520a2.c67d5",\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
+ "comments": "",\r
+ "x": 4693.566665649414,\r
+ "y": 3815.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "bb7c148d.8dd4d8",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2012.566665649414,\r
+ "y": 4162.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "bfb40bbb.94779",\r
+ "3cbbde56.b4a31a",\r
+ "1a8f636f.24e13d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bfb40bbb.94779",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2200.566665649414,\r
+ "y": 4175.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "eaca1bd7.371c7"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3cbbde56.b4a31a",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2201.057632446289,\r
+ "y": 4221.140701293945,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "38f81285.85b9a6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1a8f636f.24e13d",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2198.566665649414,\r
+ "y": 4264.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f0bf5dd6.fd17a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eaca1bd7.371c7",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 2373.566665649414,\r
+ "y": 4173.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "8ebcdd79.0a28b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "38f81285.85b9a6",\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": 2363.6290435791016,\r
+ "y": 4221.42643737793,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f0bf5dd6.fd17a",\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": 2365.566665649414,\r
+ "y": 4263.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "782b021e.0fd0fc",\r
+ "type": "for",\r
+ "name": "for vidx..tmp.otninfo_length[]",\r
+ "xml": "<for index='dmnsidx' start='0' end='`$otn-tunnel-slice_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2001.566665649414,\r
+ "y": 4353.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "80466868.45553"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f32f968.2f76b8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2811.566665649414,\r
+ "y": 4353.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "5534fc3.85d0104"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "be092ed.4a93b5",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2583.566665649414,\r
+ "y": 4353.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6f32f968.2f76b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "114fcf9e.f212a8",\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
+ "comments": "",\r
+ "x": 3703.566665649414,\r
+ "y": 4120.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "aaeb5226.81f7d",\r
+ "type": "set",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='testingvalue' value='$tmp.otninfo_length -1' />\n",\r
+ "comments": "",\r
+ "x": 4005.566665649414,\r
+ "y": 3246.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "69e93af2.71c7f4",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3840.566665649414,\r
+ "y": 3221.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "aaeb5226.81f7d",\r
+ "dec16147.315f48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d12bfd13.8bf75",\r
+ "type": "set",\r
+ "name": "set tmp.arr",\r
+ "xml": "<set>\n<parameter name='tmp.arr' value='' />\n<parameter name='tmp.arridx' value='0' />\n<parameter name='tmp.arr_length' value='0' />\n\n<parameter name='otn-tunnel-slice' value='' />\n<parameter name='otn-tunnel-slice_length' value='0' />\n\n<!--<parameter name='tmp.slicevpns' value='' />-->\n<!--<parameter name='tmp.slicevpns_length' value='0' />-->\n\n<!--<parameter name='tmp.slicevpnuuids' value='' />-->\n<!--<parameter name='tmp.slicevpnuuids.' value='' />-->\n\n\n",\r
+ "comments": "",\r
+ "x": 1960.566665649414,\r
+ "y": 237.56666564941406,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8ebcdd79.0a28b",\r
+ "type": "for",\r
+ "name": "for vpnidx in all-vpn-bindings",\r
+ "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2602.566665649414,\r
+ "y": 4174.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "3567bff3.8ebcd8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3567bff3.8ebcd8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2817.566665649414,\r
+ "y": 4175.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "473c1519.d01eb4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "809d3147.ec0f3",\r
+ "type": "for",\r
+ "name": "for arridx in tmp.arr",\r
+ "xml": "<for index='arridx' start='0' end='`$tmp.arr_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4270.566665649414,\r
+ "y": 4095.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "aa9ab401.5fa778"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5596317e.9b3628",\r
+ "type": "switchNode",\r
+ "name": "switch $tmp.arr_length != 0",\r
+ "xml": "<switch test='`$tmp.arr_length != 0`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3736.566665649414,\r
+ "y": 4175.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "a957484e.5a6ff",\r
+ "94a2b6d3.766e58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a957484e.5a6ff",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3932.566665649414,\r
+ "y": 4145.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "b3c10703.b98f2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "94a2b6d3.766e58",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3933.566665649414,\r
+ "y": 4216.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "60df48e3.d4564"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b3c10703.b98f2",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4083.566665649414,\r
+ "y": 4143.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "809d3147.ec0f3",\r
+ "5065f5c6.173234"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aa9ab401.5fa778",\r
+ "type": "switchNode",\r
+ "name": "switch tmp.arr[$arridx] == $providerValue",\r
+ "xml": "<switch test='`$tmp.arr[$arridx] == $providerValue`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4561.566665649414,\r
+ "y": 4095.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6d737171.e1452",\r
+ "b5a839dc.7835"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6d737171.e1452",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4836.566665649414,\r
+ "y": 4064.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "397594e.7aa86ec"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b5a839dc.7835",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4837.566665649414,\r
+ "y": 4135.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "49c3abd.61fa054"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "397594e.7aa86ec",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4987.566665649414,\r
+ "y": 4062.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "412bffc9.1c0e28",\r
+ "1704d5ec.8e1b6a",\r
+ "12f4e6d8.82a019",\r
+ "d12115f5.e77c3",\r
+ "eb231f11.de562"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "412bffc9.1c0e28",\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": 5175.566665649414,\r
+ "y": 4022.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1704d5ec.8e1b6a",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 5247.566665649414,\r
+ "y": 4067.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "eb231f11.de562",\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
+ "comments": "",\r
+ "x": 5162.566665649414,\r
+ "y": 4194.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d12115f5.e77c3",\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": 5183.566665649414,\r
+ "y": 4130.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "60df48e3.d4564",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4085.566665649414,\r
+ "y": 4216.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "974dbcc3.cf34c8",\r
+ "ca9f0d65.bbf04"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "974dbcc3.cf34c8",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4340.566665649414,\r
+ "y": 4209.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ca9f0d65.bbf04",\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
+ "comments": "",\r
+ "x": 4268.566665649414,\r
+ "y": 4256.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5065f5c6.173234",\r
+ "type": "switchNode",\r
+ "name": "switch found?",\r
+ "xml": "<switch test='`$found`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4261.566665649414,\r
+ "y": 4140.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f595c5ce.d138f8",\r
+ "a27215c.554f2e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f595c5ce.d138f8",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4421.566665649414,\r
+ "y": 4132.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "3c70617c.e2885e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a27215c.554f2e8",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4419.566665649414,\r
+ "y": 4169.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "27b0e714.f2ecf8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c70617c.e2885e",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4546.566665649414,\r
+ "y": 4132.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a0581441.562ff8",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4853.566665649414,\r
+ "y": 4190.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "27b0e714.f2ecf8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4579.566665649414,\r
+ "y": 4177.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "a0581441.562ff8",\r
+ "a72a86e5.09979"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a72a86e5.09979",\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
+ "comments": "",\r
+ "x": 4770.566665649414,\r
+ "y": 4236.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "49c3abd.61fa054",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4970.566665649414,\r
+ "y": 4134.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "12f4e6d8.82a019",\r
+ "type": "break",\r
+ "name": "break",\r
+ "xml": "<break>\n",\r
+ "comments": "",\r
+ "x": 5141.566665649414,\r
+ "y": 4261.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "afb7d963.d1d2e",\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": 3546.566665649414,\r
+ "y": 2519.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "2a68f8d8.e1dda",\r
+ "4b46d94e.68d61"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2a68f8d8.e1dda",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3912.566665649414,\r
+ "y": 2480.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "9cc98ff4.caf3c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4b46d94e.68d61",\r
+ "type": "outcomeFalse",\r
+ "name": "false",\r
+ "xml": "<outcome value='false'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3913.566665649414,\r
+ "y": 2526.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "a85d4c51.ca6c38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9cc98ff4.caf3c",\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": 4126.566665649414,\r
+ "y": 2479.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a85d4c51.ca6c38",\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": 4124.566665649414,\r
+ "y": 2524.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5534fc3.85d0104",\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
+ "comments": "",\r
+ "x": 3064.566665649414,\r
+ "y": 4351.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "42aa6078.f937c",\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
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2649.566665649414,\r
+ "y": 4459.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "51d7fa89.689264",\r
+ "5ac90edf.1e939"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5ac90edf.1e939",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2932.566665649414,\r
+ "y": 4439.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "86bbe7aa.1bf2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "51d7fa89.689264",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2933.566879272461,\r
+ "y": 4490.566575050354,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "f017812e.0e0548"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "86bbe7aa.1bf2",\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
+ "comments": "",\r
+ "x": 3072.5669136047363,\r
+ "y": 4439.566666603088,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f017812e.0e0548",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3078.593925476074,\r
+ "y": 4488.31206035614,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "b5c03e87.4a3d2",\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": 3722.566665649414,\r
+ "y": 2593.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5fbd4527.08216c",\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": 3766.566665649414,\r
+ "y": 2641.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "1efdee28.f91a52",\r
+ "64406c95.e8d00c",\r
+ "d9f7dd8f.9ba66"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1efdee28.f91a52",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3979.066665649414,\r
+ "y": 2588.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "2ed8b0a7.4efac8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "64406c95.e8d00c",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3991.066665649414,\r
+ "y": 2638.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "51fd5363.368514"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d9f7dd8f.9ba66",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3982.066665649414,\r
+ "y": 2693.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "e38f0d80.1c1bb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e38f0d80.1c1bb",\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": 4127.066665649414,\r
+ "y": 2692.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "51fd5363.368514",\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": 4138.066665649414,\r
+ "y": 2635.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2ed8b0a7.4efac8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4104.449111938477,\r
+ "y": 2582.2223358154297,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "6b9e1826.ee6da8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "138f1f2d.7207a9",\r
+ "type": "outcome",\r
+ "name": "esr-thirdparty-sdnc",\r
+ "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4663.566665649414,\r
+ "y": 2600.566665649414,\r
+ "z": "9256178d.211a68",\r
+ "wires": [\r
+ [\r
+ "d1f83019.79c9b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d1f83019.79c9b",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r