+ "x": 371.75,\r
+ "y": 1124.5000610351562,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "57f0cdff.7f0d04",\r
+ "type": "other",\r
+ "name": "TAPI",\r
+ "xml": "<outcome value='TAPI'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1183,\r
+ "y": 456,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "9159c5db.f9ecb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9159c5db.f9ecb",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1346,\r
+ "y": 455,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "359e52a9.fb7c36"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "359e52a9.fb7c36",\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": 1507,\r
+ "y": 454,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "bdd5dc28.9d2908",\r
+ "a872bbb4.c3aec8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a872bbb4.c3aec8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1649,\r
+ "y": 530,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "e24829ea.497098"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bdd5dc28.9d2908",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1683,\r
+ "y": 451,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "ba70e873.59e928"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ba70e873.59e928",\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": 1853,\r
+ "y": 450,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "e24829ea.497098",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1810,\r
+ "y": 529,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "e5d11bee.6d3f3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e5d11bee.6d3f3",\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": 1989,\r
+ "y": 529,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "f9dbd640.006d18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f9dbd640.006d18",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2156,\r
+ "y": 530,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "c60ea7f.3bd2058",\r
+ "b4f9b29d.c49458"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c60ea7f.3bd2058",\r
+ "type": "set",\r
+ "name": "set topology",\r
+ "xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",\r
+ "comments": "",\r
+ "x": 2315,\r
+ "y": 531,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b4f9b29d.c49458",\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": 2306,\r
+ "y": 597,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e6efb547.0bd5a8",\r
+ "type": "outcome",\r
+ "name": "MSA",\r
+ "xml": "<outcome value='MSA'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1153.677324295044,\r
+ "y": 612.8993349075317,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "e1657417.9cefe8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e1657417.9cefe8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1315.6773872375488,\r
+ "y": 610.899335861206,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "1f0bde0a.fa2cb2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1f0bde0a.fa2cb2",\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": 1492.6771354675293,\r
+ "y": 602.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "7133cad2.99b11c",\r
+ "c3d837c.d0ca2c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7133cad2.99b11c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1645.6771354675293,\r
+ "y": 599.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "eab907ff.882ae8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eab907ff.882ae8",\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": 1820.6771354675293,\r
+ "y": 598.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c3d837c.d0ca2c8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1651.6771354675293,\r
+ "y": 672.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "224d6e37.21354a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "224d6e37.21354a",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 1835.6771354675293,\r
+ "y": 674.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "622b9c10.ebdeac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "622b9c10.ebdeac",\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": 2114.677001953125,\r
+ "y": 672.8992919921875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "67540de7.5dd14c",\r
+ "type": "switchNode",\r
+ "name": "switch type",\r
+ "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 285.566650390625,\r
+ "y": 841.5666809082031,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "ed11f93e.13815",\r
+ "b9986099.553ab8",\r
+ "eeccf78a.d71e3"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ed11f93e.13815",\r
+ "type": "outcome",\r
+ "name": "MSA",\r
+ "xml": "<outcome value='MSA'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 464.857177734375,\r
+ "y": 758.9285888671875,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "40980c29.103654"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b9986099.553ab8",\r
+ "type": "other",\r
+ "name": "TAPI",\r
+ "xml": "<outcome value='TAPI'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 473.6070556640625,\r
+ "y": 1009.6428527832031,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "b9906adb.aedb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "40980c29.103654",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 618.607177734375,\r
+ "y": 755.7143249511719,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "f4759d50.5acb",\r
+ "6300b23d.858844"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "b9906adb.aedb",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 623,\r
+ "y": 1009.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "ee72aef0.96b35",\r
+ "80047dba.a18518"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "eeccf78a.d71e3",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 576,\r
+ "y": 1173.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "a7ccb229.5cc45"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a7ccb229.5cc45",\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": 738,\r
+ "y": 1212.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f4759d50.5acb",\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": 850.5,\r
+ "y": 803.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "418351d.550fdb",\r
+ "5d9de12a.c40778",\r
+ "4f52ba75.31f414"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6300b23d.858844",\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": 810.5,\r
+ "y": 737.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "418351d.550fdb",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1089.5,\r
+ "y": 823.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "7d4b021f.b58864"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7d4b021f.b58864",\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": 1258.5,\r
+ "y": 830.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ee72aef0.96b35",\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": 965.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "80047dba.a18518",\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": 800.5,\r
+ "y": 1054.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "193e8ffa.2d1e68",\r
+ "392a4087.7340c",\r
+ "3b51b50f.fabfaa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "193e8ffa.2d1e68",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1025.5,\r
+ "y": 1069.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "7c3655cf.c7356c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7c3655cf.c7356c",\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": 1196.5,\r
+ "y": 1070.5,\r
+ "z": "fcc91756.c8d038",\r