+ "8b3cf345.6948d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "42c7b2ab.76125c",\r
+ "type": "other",\r
+ "name": "TAPI",\r
+ "xml": "<outcome value='TAPI'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 444.6070556640625,\r
+ "y": 1003.6428527832031,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "ec6a41aa.381fd"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b3cf345.6948d",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 589.607177734375,\r
+ "y": 749.7143249511719,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "49d8550e.67af3c",\r
+ "db848d25.52ee9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ec6a41aa.381fd",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 594,\r
+ "y": 1003.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "1335976f.2d9b19",\r
+ "16c45478.af99e4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1501fed.f113881",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 547,\r
+ "y": 1167.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "41c63854.9379a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "41c63854.9379a8",\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": 709,\r
+ "y": 1206.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "49d8550e.67af3c",\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": 821.5,\r
+ "y": 797.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "1a8d1895.ab6a47",\r
+ "47ef9d8f.3964f4",\r
+ "d98324ce.97ca8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "db848d25.52ee9",\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": 781.5,\r
+ "y": 731.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "1a8d1895.ab6a47",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1060.5,\r
+ "y": 817.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "d1f9e1a7.c7f19"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d1f9e1a7.c7f19",\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": 1229.5,\r
+ "y": 824.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1335976f.2d9b19",\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": 758.5,\r
+ "y": 959.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "16c45478.af99e4",\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": 771.5,\r
+ "y": 1048.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "a8a3e82f.8a5a8",\r
+ "ae0994a7.403ab8",\r
+ "e57ecfd9.55df58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a8a3e82f.8a5a8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 996.5,\r
+ "y": 1063.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "d7aae079.2ca2a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7aae079.2ca2a",\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": 1167.5,\r
+ "y": 1064.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "47ef9d8f.3964f4",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1046.5,\r
+ "y": 896.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "1e298c8c.f0408b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ae0994a7.403ab8",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 977.5,\r
+ "y": 1136.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "c236971a.ee197"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1e298c8c.f0408b",\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": 1207.5,\r
+ "y": 901.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d98324ce.97ca8",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1037.5,\r
+ "y": 956.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "3416464c.a143ea"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3416464c.a143ea",\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": 1186.5,\r
+ "y": 958.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c236971a.ee197",\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": 1125.5,\r
+ "y": 1137.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e57ecfd9.55df58",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 977.5,\r
+ "y": 1180.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "d5ad8139.acdf48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5ad8139.acdf48",\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": 1142.5,\r
+ "y": 1177.5,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ad96f3f.ca0439",\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": 2653,\r
+ "y": 329,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "d135440e.332828"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d135440e.332828",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2835,\r
+ "y": 330,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "9dfbe1b1.0501b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "27de91fe.6ca4f6",\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": 3208,\r
+ "y": 323,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "7ec0ad88.0666cc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7ec0ad88.0666cc",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3426,\r
+ "y": 320,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "8fdc47cc.432ab",\r
+ "b5eed741.5fbb08",\r
+ "1656178e.3ba998"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "5634a256.4e2744",\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": 3241,\r
+ "y": 383,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "9dfbe1b1.0501b8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3005,\r
+ "y": 326,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "27de91fe.6ca4f6",\r
+ "5634a256.4e2744"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1656178e.3ba998",\r
+ "type": "set",\r
+ "name": "unset network",\r
+ "xml": "<set>\n<parameter name='network.' value='' />\n",\r
+ "comments": "",\r
+ "x": 3585,\r
+ "y": 260,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "8fdc47cc.432ab",\r
+ "type": "set",\r
+ "name": "set network",\r
+ "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",\r
+ "comments": "",\r
+ "x": 3579,\r
+ "y": 308,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b5eed741.5fbb08",\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": 3656,\r
+ "y": 355,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "c1423a29.1c46e8",\r
+ "ab490ddf.8e1c1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c1423a29.1c46e8",\r
+ "type": "outcome",\r
+ "name": "1",\r
+ "xml": "<outcome value='1'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3882,\r
+ "y": 324,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "3c6e5d11.fbd2b2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ab490ddf.8e1c1",\r
+ "type": "outcome",\r
+ "name": "2",\r
+ "xml": "<outcome value='2'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3882,\r
+ "y": 385,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "654a57a4.0fd38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "adf965cc.3e515",\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": 4177,\r
+ "y": 324,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f1dbbcab.0dda4",\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": 4177,\r
+ "y": 385,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3c6e5d11.fbd2b2",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4016,\r
+ "y": 324,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "adf965cc.3e515"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "654a57a4.0fd38",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 4017,\r
+ "y": 385,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "f1dbbcab.0dda4"\r
+ ]\r