+ "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
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5d9de12a.c40778",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1075.5,\r
+ "y": 902.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "44b36cb9.4f203c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "392a4087.7340c",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1006.5,\r
+ "y": 1142.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "568e56df.183be8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "44b36cb9.4f203c",\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": 1236.5,\r
+ "y": 907.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4f52ba75.31f414",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1066.5,\r
+ "y": 962.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "67091014.c5cb48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "67091014.c5cb48",\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": 1215.5,\r
+ "y": 964.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "568e56df.183be8",\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": 1154.5,\r
+ "y": 1143.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3b51b50f.fabfaa",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1006.5,\r
+ "y": 1186.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "74792395.d77524"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "74792395.d77524",\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": 1171.5,\r
+ "y": 1183.5,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f7bc5da7.da31b",\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": 2682,\r
+ "y": 335,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "aa4a8663.38bb68"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "aa4a8663.38bb68",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 2864,\r
+ "y": 336,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "efdac693.289728"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6a7f62ea.d32524",\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": 3237,\r
+ "y": 329,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "de962ed4.8e2558"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "de962ed4.8e2558",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 3455,\r
+ "y": 326,\r
+ "z": "fcc91756.c8d038",\r
+ "wires": [\r
+ [\r
+ "d31ddaea.690348",\r
+ "bbbca45f.8e2228",\r
+ "acccc325.a38838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "73e20b64.41827c",\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": 3270,\r
+ "y": 389,\r
+ "z": "fcc91756.c8d038",\r