+ "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"`$tmp.original-network-id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 688,\r
+ "y": 121.00650024414062,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "159870db.58eb07",\r
+ "type": "get-resource",\r
+ "name": "get-resource esr-thirdparty-sdnc",\r
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 749,\r
+ "y": 260,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "f22633be.4476e8",\r
+ "4f55d446.34a7f4",\r
+ "beabc6d6.2806f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f22633be.4476e8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 995,\r
+ "y": 220,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "543559cc.c24e08"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f55d446.34a7f4",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 999,\r
+ "y": 260,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "50076a10.d4e1b4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "beabc6d6.2806f",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 991,\r
+ "y": 300,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "a9b8ac2f.1b4d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "50076a10.d4e1b4",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 1149,\r
+ "y": 260,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a9b8ac2f.1b4d8",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
+ "comments": "",\r
+ "x": 1149,\r
+ "y": 300,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "543559cc.c24e08",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1139,\r
+ "y": 218,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "627ad99d.a81fa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "627ad99d.a81fa",\r
+ "type": "save",\r
+ "name": "save network-resource relationship to esr-thirdparty-sdnc",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource:relationship-list' \n key='network-resource.network-id = $tmp.network-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"esr-thirdparty-sdnc\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"esr-thirdparty-sdnc.thirdparty-sdnc-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n<!--/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/SOTNControllerDomain2-->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1442,\r
+ "y": 219,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ead9d9cc.bab4f8",\r
+ "type": "switchNode",\r
+ "name": "switch llcl length",\r
+ "xml": "<switch test='`$node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity_length`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1572,\r
+ "y": 1359,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "adf88b82.7a0f88",\r
+ "67300142.b2942",\r
+ "fa1d40a0.27dcc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "adf88b82.7a0f88",\r
+ "type": "other",\r
+ "name": "Null",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1760,\r
+ "y": 1245,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "f1f92de8.0da378"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "67300142.b2942",\r
+ "type": "outcome",\r
+ "name": "length 0",\r
+ "xml": "<outcome value='0'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1765,\r
+ "y": 1320,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "f1f92de8.0da378"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fa1d40a0.27dcc",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1767,\r
+ "y": 1394,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ [\r
+ "945bda0b.acb23"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f1f92de8.0da378",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1920,\r
+ "y": 1311,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "489cfee9.f3ca9",\r
+ "type": "save",\r
+ "name": "save ttp relationship to tp in AAI",\r
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point:relationship-list' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId + '/p-interfaces/p-interface/' + $unique-ltpId-second`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId-second`\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2148,\r
+ "y": 1397,\r
+ "z": "a1dc56fc.25a538",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5109bb9b.43b29c",\r
+ "type": "set",\r
+ "name": "set unique-ltpId second",\r
+ "xml": "<set>\n<parameter name='unique-ltpId-second' value=\"`$unique-nodeId + '-ltpId-' + $node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity[0].link-tp-ref`\" />\n",\r