+ },\r
+ {\r
+ "id": "4f7d3c56.d58604",\r
+ "type": "switchNode",\r
+ "name": "switch type",\r
+ "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 262.566650390625,\r
+ "y": 861.5666809082031,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "7c479945.15b6c",\r
+ "41dab8d.79e9dc8",\r
+ "fb32359d.de7e3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7c479945.15b6c",\r
+ "type": "outcome",\r
+ "name": "MSA",\r
+ "xml": "<outcome value='MSA'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 441.857177734375,\r
+ "y": 778.9285888671875,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "d9d0d78b.47d9f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "41dab8d.79e9dc8",\r
+ "type": "other",\r
+ "name": "TAPI",\r
+ "xml": "<outcome value='TAPI'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 450.6070556640625,\r
+ "y": 1029.6428527832031,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "1a2de346.3f0ebd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d9d0d78b.47d9f",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 595.607177734375,\r
+ "y": 775.7143249511719,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "e787c325.7a3d48",\r
+ "e74f02d1.684a5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1a2de346.3f0ebd",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 600,\r
+ "y": 1029.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "39caa350.271204",\r
+ "14436f1d.f47b89"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fb32359d.de7e3",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 553,\r
+ "y": 1193.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "33b66d76.b73a6a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "33b66d76.b73a6a",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unsupported type = ' + $prop.sdncRestApi.type`\" />\n\n",\r
+ "comments": "",\r
+ "x": 715,\r
+ "y": 1232.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e787c325.7a3d48",\r
+ "type": "get-resource",\r
+ "name": "get resources from DB -controller_id",\r
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE controller_id = $controllerid'\npfx='dbcontrollerid'>\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 827.5,\r
+ "y": 823.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "48ef075d.23d478",\r
+ "6aefa7bc.0e864",\r
+ "b6643c83.4fa068"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e74f02d1.684a5",\r
+ "type": "set",\r
+ "name": "set controller_id",\r
+ "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
+ "comments": "",\r
+ "x": 787.5,\r
+ "y": 757.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "48ef075d.23d478",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1066.5,\r
+ "y": 843.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "3a0200d5.7fabc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a0200d5.7fabc",\r
+ "type": "delete",\r
+ "name": "delete from db",\r
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE WHERE controller_id = $controllerid\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1235.5,\r
+ "y": 850.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "39caa350.271204",\r
+ "type": "set",\r
+ "name": "set controller_id",\r
+ "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",\r
+ "comments": "",\r
+ "x": 764.5,\r
+ "y": 985.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "14436f1d.f47b89",\r
+ "type": "get-resource",\r
+ "name": "get resources from DB -controller_id",\r
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE controller_id = $controllerid'\npfx='dbcontrollerid'>\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 777.5,\r
+ "y": 1074.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "82076a69.af01a",\r
+ "7b1e0312.764db4",\r
+ "5cc08e4.aa9e2f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "82076a69.af01a",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1002.5,\r
+ "y": 1089.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "dc7dee5b.44e56"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "dc7dee5b.44e56",\r
+ "type": "delete",\r
+ "name": "delete from db",\r
+ "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE WHERE controller_id = $controllerid\">",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1173.5,\r
+ "y": 1090.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6aefa7bc.0e864",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1052.5,\r
+ "y": 922.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "2c713fb3.4d6888"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7b1e0312.764db4",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 983.5,\r
+ "y": 1162.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "2bfd8d24.d64f22"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2c713fb3.4d6888",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Failure in getting controller-id from DB\" />\n\n",\r
+ "comments": "",\r
+ "x": 1213.5,\r
+ "y": 927.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b6643c83.4fa068",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1043.5,\r
+ "y": 982.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "a2919cf8.1bf828"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2919cf8.1bf828",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"controller-id could not be found in DB\" />\n\n",\r
+ "comments": "",\r
+ "x": 1192.5,\r
+ "y": 984.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2bfd8d24.d64f22",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Failure in getting controller-id from DB\" />\n\n",\r
+ "comments": "",\r
+ "x": 1131.5,\r
+ "y": 1163.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5cc08e4.aa9e2f",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 983.5,\r
+ "y": 1206.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "2f855e70.bc0c7a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2f855e70.bc0c7a",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n <parameter name='ack-final' value='Y'/>\n <parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"controller-id could not be found in DB\" />\n\n",\r
+ "comments": "",\r
+ "x": 1148.5,\r
+ "y": 1203.5,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ad97aa98.c768d",\r
+ "type": "switchNode",\r
+ "name": "switch network_length",\r
+ "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2659,\r
+ "y": 355,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "47f11a60.715fe4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "47f11a60.715fe4",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2841,\r
+ "y": 356,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "610c5ba8.ab12f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3f621874.83f7b",\r
+ "type": "for",\r
+ "name": "for each Network",\r
+ "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3214,\r
+ "y": 349,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "47e16032.729b78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "47e16032.729b78",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3432,\r
+ "y": 346,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "cc7e5bc4.9fb7e8",\r
+ "8fc85a95.09a108",\r
+ "c99c88.f08ccb78"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "40eac1bc.82a228",\r
+ "type": "call",\r
+ "name": "call update-tp-ttp-relationship",\r
+ "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3247,\r
+ "y": 409,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "610c5ba8.ab12f4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3011,\r
+ "y": 352,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "3f621874.83f7b",\r
+ "40eac1bc.82a228"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c99c88.f08ccb78",\r
+ "type": "set",\r
+ "name": "unset network",\r
+ "xml": "<set>\n<parameter name='network.' value='' />\n",\r
+ "comments": "",\r
+ "x": 3591,\r
+ "y": 286,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "cc7e5bc4.9fb7e8",\r
+ "type": "set",\r
+ "name": "set network",\r
+ "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 3585,\r
+ "y": 334,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8fc85a95.09a108",\r
+ "type": "switchNode",\r
+ "name": "switch network-types with topologyId",\r
+ "xml": "<switch test='`$network.te-topology-id`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3662,\r
+ "y": 381,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "a101ef60.461f68",\r
+ "46ddd7fc.c3c038"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a101ef60.461f68",\r
+ "type": "outcome",\r
+ "name": "1",\r
+ "xml": "<outcome value='1'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3888,\r
+ "y": 350,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "9f9b045e.002478"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46ddd7fc.c3c038",\r
+ "type": "outcome",\r
+ "name": "2",\r
+ "xml": "<outcome value='2'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3888,\r
+ "y": 411,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "c00ddb6e.187aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "55fe80ee.35e4c",\r
+ "type": "set",\r
+ "name": "set network-otn",\r
+ "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 4183,\r
+ "y": 350,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b736da6.72f0128",\r
+ "type": "set",\r
+ "name": "set network eth",\r
+ "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 4183,\r
+ "y": 411,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9f9b045e.002478",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4022,\r
+ "y": 350,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "55fe80ee.35e4c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c00ddb6e.187aa",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4023,\r
+ "y": 411,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": [\r
+ [\r
+ "b736da6.72f0128"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "51f49074.c67e58",\r
+ "type": "set",\r
+ "name": "unset network",\r
+ "xml": "<set>\n<parameter name='network.' value='' />\n",\r
+ "comments": "",\r
+ "x": 2929,\r
+ "y": 154,\r
+ "z": "8a5117b5.c01db8",\r
+ "wires": []\r