+ "x": 342.75,\r
+ "y": 1118.5000610351562,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "11ea46b7.9ad609",\r
+ "type": "other",\r
+ "name": "TAPI",\r
+ "xml": "<outcome value='TAPI'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1154,\r
+ "y": 450,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "a1313060.f8d7d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a1313060.f8d7d",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1317,\r
+ "y": 449,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "f271610b.da5a3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f271610b.da5a3",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/tapi/v2/topologies?topology-id-or-name=otn'`\"/> \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=\"topologies\"/>\n <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1478,\r
+ "y": 448,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "878204ba.609a58",\r
+ "1c89864.e323d7a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1c89864.e323d7a",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1620,\r
+ "y": 524,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "5d965dcc.6101a4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "878204ba.609a58",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1654,\r
+ "y": 445,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "4052d329.1b779c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4052d329.1b779c",\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=\"Error executing get topology TAPI rest api\" />\n\n",\r
+ "comments": "",\r
+ "x": 1824,\r
+ "y": 444,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d965dcc.6101a4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1781,\r
+ "y": 523,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "d1531df6.3732f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d1531df6.3732f",\r
+ "type": "for",\r
+ "name": "for each topology",\r
+ "xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1960,\r
+ "y": 523,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "8b55167c.96333"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8b55167c.96333",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2127,\r
+ "y": 524,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "e7e4969d.73ce58",\r
+ "9e2e1ddf.baa2b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e7e4969d.73ce58",\r
+ "type": "set",\r
+ "name": "set topology",\r
+ "xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
+ "comments": "",\r
+ "x": 2286,\r
+ "y": 525,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9e2e1ddf.baa2b",\r
+ "type": "call",\r
+ "name": "call tapi-update-network-to-aai",\r
+ "xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2277,\r
+ "y": 591,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a5c3b391.3c4aa",\r
+ "type": "outcome",\r
+ "name": "MSA",\r
+ "xml": "<outcome value='MSA'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1124.677324295044,\r
+ "y": 606.8993349075317,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "1925d7f4.b889a8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1925d7f4.b889a8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1286.6773872375488,\r
+ "y": 604.899335861206,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "7ba5724d.ffaffc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7ba5724d.ffaffc",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/cxf/openroadm/v2/networks/otn-topology'`\"/> \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=\"networks\"/>\n <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.msa.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
+ "outputs": 1,\r
+ "x": 1463.6771354675293,\r
+ "y": 596.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "6946de0a.deebc",\r
+ "5d4a6514.4c3a9c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6946de0a.deebc",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1616.6771354675293,\r
+ "y": 593.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "e290e7ee.1a21f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e290e7ee.1a21f",\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=\"Error executing get topology MSA rest api\" />\n\n",\r
+ "comments": "",\r
+ "x": 1791.6771354675293,\r
+ "y": 592.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "5d4a6514.4c3a9c",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1622.6771354675293,\r
+ "y": 666.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "815556fb.bd9668"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "815556fb.bd9668",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1806.6771354675293,\r
+ "y": 668.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "9834a552.e8e02"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9834a552.e8e02",\r
+ "type": "call",\r
+ "name": "call msa-update-network-to-aai",\r
+ "xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2085.677001953125,\r
+ "y": 666.8992919921875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "983792ba.976408",\r
+ "type": "switchNode",\r
+ "name": "switch type",\r
+ "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 256.566650390625,\r
+ "y": 835.5666809082031,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "674a6a9f.8c143c",\r
+ "42c7b2ab.76125c",\r
+ "1501fed.f113881"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "674a6a9f.8c143c",\r
+ "type": "outcome",\r
+ "name": "MSA",\r
+ "xml": "<outcome value='MSA'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 435.857177734375,\r
+ "y": 752.9285888671875,\r
+ "z": "8cb67e95.d771b8",\r
+ "wires": [\r
+ [\r
+ "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