aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json')
-rw-r--r--platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json1440
1 files changed, 473 insertions, 967 deletions
diff --git a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
index c3b31275..ca5ed7ae 100644
--- a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
+++ b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-discovery.json
@@ -1,252 +1,242 @@
[
{
- "id": "cd2352df.fe133",
+ "id": "346770b6.e0b2e",
"type": "other",
"name": "update",
"xml": "<outcome value='Update'>\n",
"comments": "",
"outputs": 1,
- "x": 717,
- "y": 280,
- "z": "1620e9e3.f93e5e",
+ "x": 666,
+ "y": 282,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "d7605eba.de53c8"
+ "ac79093c.29ec78"
]
]
},
{
- "id": "a5fb8600.92c56",
+ "id": "2f504934.7894c6",
"type": "other",
"name": "delete",
- "xml": "<outcome value='delete'>\n",
+ "xml": "<outcome value='Delete'>\n",
"comments": "",
"outputs": 1,
- "x": 717,
- "y": 360,
- "z": "1620e9e3.f93e5e",
+ "x": 666,
+ "y": 362,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "a9fa59c4.23eb88"
+ "5f23df82.9ac6e"
]
]
},
{
- "id": "a9fa59c4.23eb88",
+ "id": "5f23df82.9ac6e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 858.5,
- "y": 360,
- "z": "1620e9e3.f93e5e",
+ "x": 807.5,
+ "y": 362,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
- []
+ [
+ "dc10cae0.74e44"
+ ]
]
},
{
- "id": "4266435.e82743c",
- "type": "comment",
- "name": "TODO: Delete topology from AAI",
- "info": "",
- "comments": "",
- "x": 791.3335189819336,
- "y": 327.96899485588074,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "78227710.8145c",
+ "id": "5a242175.0e7ef",
"type": "switchNode",
"name": "switch aai-event-trigger",
"xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
"comments": "",
"outputs": 1,
- "x": 547.5,
- "y": 320,
- "z": "1620e9e3.f93e5e",
+ "x": 496.5,
+ "y": 322,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "cd2352df.fe133",
- "a5fb8600.92c56"
+ "346770b6.e0b2e",
+ "2f504934.7894c6"
]
]
},
{
- "id": "6a609919.dbddb",
+ "id": "39f2e6f9.408272",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1244.5,
- "y": 191,
- "z": "1620e9e3.f93e5e",
+ "x": 1193.5,
+ "y": 193,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "a8db8257.07cda8",
- "6c3c4f73.322ab8",
- "49ad06a0.4e0b98",
- "5d1f20b8.954bc8",
- "8b00173e.a90248"
+ "97074a04.9156f",
+ "a612156e.6c82f",
+ "af67ee77.5ddb88",
+ "8f8e9805.87c3c8",
+ "9d5ac624.def28"
]
]
},
{
- "id": "6c3c4f73.322ab8",
+ "id": "a612156e.6c82f",
"type": "execute",
"name": "execute RestApiCallNode Get token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.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\"/>",
"comments": "",
"outputs": 1,
- "x": 1517.5001983642578,
- "y": 112.00000953674316,
- "z": "1620e9e3.f93e5e",
+ "x": 1466.5001983642578,
+ "y": 114.00000953674316,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "4ca383bd.7f19f4",
- "a7b25c4e.37855"
+ "e7c29f07.2a4d28",
+ "fe96d7c9.6dc11"
]
]
},
{
- "id": "4ca383bd.7f19f4",
+ "id": "e7c29f07.2a4d28",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1807.000244140625,
- "y": 104,
- "z": "1620e9e3.f93e5e",
+ "x": 1756.000244140625,
+ "y": 106,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "bb6558fe.165e6"
+ "9a41c115.acccd8"
]
]
},
{
- "id": "a7b25c4e.37855",
+ "id": "fe96d7c9.6dc11",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1803.000244140625,
- "y": 144,
- "z": "1620e9e3.f93e5e",
+ "x": 1752.000244140625,
+ "y": 146,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "929ec7a5.9a46b8"
+ "142d0bb2.73cbec"
]
]
},
{
- "id": "bb6558fe.165e6",
+ "id": "9a41c115.acccd8",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1957.500244140625,
- "y": 104,
- "z": "1620e9e3.f93e5e",
+ "x": 1906.500244140625,
+ "y": 106,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "3afa5b8a.d8b45c",
+ "id": "74c607f5.33c7f",
"type": "execute",
"name": "execute RestApiCallNode Get Topology",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\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=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 2024.500244140625,
- "y": 224,
- "z": "1620e9e3.f93e5e",
+ "x": 1973.500244140625,
+ "y": 226,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "fe4ed86b.9ca41",
- "6e1598d4.05ae"
+ "46585599.99541c",
+ "e4dc69e3.746e88"
]
]
},
{
- "id": "fe4ed86b.9ca41",
+ "id": "46585599.99541c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2267.000244140625,
- "y": 244,
- "z": "1620e9e3.f93e5e",
+ "x": 2216.000244140625,
+ "y": 246,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "f8f7918f.b05da"
+ "c7c89355.9ce378"
]
]
},
{
- "id": "f8f7918f.b05da",
+ "id": "c7c89355.9ce378",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2424.500244140625,
- "y": 244,
- "z": "1620e9e3.f93e5e",
+ "x": 2373.500244140625,
+ "y": 246,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "6837c77a.4d245",
- "945331d0.def158"
+ "b3a801bb.6b3e08"
]
]
},
{
- "id": "c26cc871.32d778",
+ "id": "4462058b.03bf7c",
"type": "returnFailure",
"name": "return failure",
"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=\"Error executing Create vpn rest api\" />\n",
"comments": "",
- "x": 2401.000244140625,
- "y": 144,
- "z": "1620e9e3.f93e5e",
+ "x": 2350.000244140625,
+ "y": 146,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "6e1598d4.05ae",
+ "id": "e4dc69e3.746e88",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2263.000244140625,
- "y": 144,
- "z": "1620e9e3.f93e5e",
+ "x": 2212.000244140625,
+ "y": 146,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "c26cc871.32d778"
+ "4462058b.03bf7c"
]
]
},
{
- "id": "74011233.c1b04c",
+ "id": "e48e789f.6305e8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 170,
- "y": 55,
- "z": "1620e9e3.f93e5e",
+ "x": 119,
+ "y": 57,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "7dcd2a77.b03e04"
+ "f17ff4c0.c3b85"
]
]
},
{
- "id": "7dcd2a77.b03e04",
+ "id": "f17ff4c0.c3b85",
"type": "service-logic",
"name": "DataChange ${project.version}",
"module": "DataChange",
@@ -254,1501 +244,1017 @@
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='DataChange' version='${project.version}'>",
"outputs": 1,
- "x": 183,
- "y": 115,
- "z": "1620e9e3.f93e5e",
+ "x": 132,
+ "y": 117,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "e046753f.a8811"
+ "dcee4efc.fbc398"
]
]
},
{
- "id": "e046753f.a8811",
+ "id": "dcee4efc.fbc398",
"type": "method",
"name": "method esr-thirdparty-sdnc-discovery",
"xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 203,
- "y": 195,
- "z": "1620e9e3.f93e5e",
+ "x": 152,
+ "y": 197,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "a7955eaa.8ebd"
+ "ee1d05c.842daf8"
]
]
},
{
- "id": "a7955eaa.8ebd",
+ "id": "ee1d05c.842daf8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 450.5,
- "y": 195,
- "z": "1620e9e3.f93e5e",
+ "x": 399.5,
+ "y": 197,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "cee74437.1c5038"
+ "289966fd.257632"
]
]
},
{
- "id": "6837c77a.4d245",
+ "id": "b3a801bb.6b3e08",
"type": "for",
"name": "for each Network",
"xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 2663.500244140625,
- "y": 204,
- "z": "1620e9e3.f93e5e",
+ "x": 1799.500259399414,
+ "y": 345.00001525878906,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "d73b1be.693fde8"
+ "f46be5c.444e598"
]
]
},
{
- "id": "d73b1be.693fde8",
+ "id": "f46be5c.444e598",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2840.000244140625,
- "y": 199,
- "z": "1620e9e3.f93e5e",
+ "x": 1948.000259399414,
+ "y": 345.00001525878906,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "1071ecfb.db6683",
- "22040d8e.81ad3a"
+ "9f7c6e21.8e3448",
+ "a45b31cf.5b428"
]
]
},
{
- "id": "1071ecfb.db6683",
+ "id": "9f7c6e21.8e3448",
"type": "call",
"name": "call update-network-to-aai",
"xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 3019.000244140625,
- "y": 219,
- "z": "1620e9e3.f93e5e",
+ "x": 2127.000259399414,
+ "y": 365.00001525878906,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "22040d8e.81ad3a",
+ "id": "a45b31cf.5b428",
"type": "set",
"name": "set network",
"xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
"comments": "",
- "x": 2974.000244140625,
- "y": 179,
- "z": "1620e9e3.f93e5e",
+ "x": 2082.000259399414,
+ "y": 325.00001525878906,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "929ec7a5.9a46b8",
+ "id": "142d0bb2.73cbec",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1923.000244140625,
- "y": 144,
- "z": "1620e9e3.f93e5e",
+ "x": 1872.000244140625,
+ "y": 146,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "a95e321b.626b1",
+ "id": "77d98c9a.bbdddc",
"type": "comment",
"name": "Do Nothing",
"info": "",
"comments": "",
- "x": 2093.000244140625,
- "y": 184,
- "z": "1620e9e3.f93e5e",
+ "x": 2042.000244140625,
+ "y": 186,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "30eb5834.80e7d",
+ "id": "7a5efd17.5c18a4",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 970,
- "y": 280,
- "z": "1620e9e3.f93e5e",
+ "x": 919,
+ "y": 282,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "bad9968b.bbaf5",
- "826758bc.846648",
- "f43baf3c.399558",
- "6e19e1c4.aa4d28"
+ "c610bb27.6f7938",
+ "f6f15d6a.b855f8",
+ "2ed61a13.0813c6",
+ "ca97ad3.a311cd"
]
]
},
{
- "id": "d7605eba.de53c8",
+ "id": "ac79093c.29ec78",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 837,
- "y": 280,
- "z": "1620e9e3.f93e5e",
+ "x": 786,
+ "y": 282,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "30eb5834.80e7d"
+ "7a5efd17.5c18a4"
]
]
},
{
- "id": "bad9968b.bbaf5",
+ "id": "c610bb27.6f7938",
"type": "other",
"name": "SOTN",
"xml": "<outcome value='SOTN'>\n",
"comments": "",
"outputs": 1,
- "x": 1083,
- "y": 191,
- "z": "1620e9e3.f93e5e",
+ "x": 1032,
+ "y": 193,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "6a609919.dbddb"
+ "39f2e6f9.408272"
]
]
},
{
- "id": "826758bc.846648",
+ "id": "f6f15d6a.b855f8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1085.000087738037,
- "y": 740.0001106262207,
- "z": "1620e9e3.f93e5e",
+ "x": 1061.5,
+ "y": 654.5001220703125,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "8d466c1d.2dbd88"
+ "bacba57d.e755a8"
]
]
},
{
- "id": "8d466c1d.2dbd88",
+ "id": "bacba57d.e755a8",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1235.0000610351562,
- "y": 736.0000972747803,
- "z": "1620e9e3.f93e5e",
+ "x": 1247.75,
+ "y": 680.5001220703125,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "a8db8257.07cda8",
+ "id": "97074a04.9156f",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 1464.0001983642578,
- "y": 72.00000953674316,
- "z": "1620e9e3.f93e5e",
+ "x": 1413.0001983642578,
+ "y": 74.00000953674316,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "49ad06a0.4e0b98",
+ "id": "af67ee77.5ddb88",
"type": "switchNode",
"name": "switch prop.sdncRestApi.token_id",
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1510.5001983642578,
- "y": 192.00000953674316,
- "z": "1620e9e3.f93e5e",
+ "x": 1459.5001983642578,
+ "y": 194.00000953674316,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "8c8153ea.0d28b8",
- "f01555ec.92788"
+ "196dbf86.289fe8",
+ "2e000adc.427cfe"
]
]
},
{
- "id": "8c8153ea.0d28b8",
+ "id": "196dbf86.289fe8",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1803.000244140625,
- "y": 184,
- "z": "1620e9e3.f93e5e",
+ "x": 1752.000244140625,
+ "y": 186,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "6e76fd4a.c154c4"
+ "58dbe772.71f75"
]
]
},
{
- "id": "f01555ec.92788",
+ "id": "2e000adc.427cfe",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1803.000244140625,
- "y": 224,
- "z": "1620e9e3.f93e5e",
+ "x": 1752.000244140625,
+ "y": 226,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "3afa5b8a.d8b45c"
+ "74c607f5.33c7f"
]
]
},
{
- "id": "6e76fd4a.c154c4",
+ "id": "58dbe772.71f75",
"type": "execute",
"name": "execute RestApiCallNode Get Topology",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />\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=\"topology\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.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",
"comments": "",
"outputs": 1,
- "x": 2024.500244140625,
- "y": 184,
- "z": "1620e9e3.f93e5e",
+ "x": 1973.500244140625,
+ "y": 186,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "6e1598d4.05ae",
- "fe4ed86b.9ca41"
+ "e4dc69e3.746e88",
+ "46585599.99541c"
]
]
},
{
- "id": "8b00173e.a90248",
+ "id": "9d5ac624.def28",
"type": "execute",
"name": "execute RestconfDiscoveryNode",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode' method='establishSubscription' >\n<parameter name=\"subscriberId\" value=\"sotn-controller\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ietf-subscribed-notifications:establish-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"sseConnectURL\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/streams/yang-push-json'`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.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<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n<parameter name=\"module\" value=\"DataChange\" />\n<parameter name=\"rpc\" value=\"sotn-notification-handler\" />\n<parameter name=\"mode\" value=\"sync\" />",
"comments": "",
"outputs": 1,
- "x": 1507.0001983642578,
- "y": 332.00000953674316,
- "z": "1620e9e3.f93e5e",
+ "x": 1456.0001983642578,
+ "y": 334.00000953674316,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "5d1f20b8.954bc8",
+ "id": "8f8e9805.87c3c8",
"type": "set",
"name": "set encoding-format",
"xml": "<set>\n<parameter name='input' value='ietf-subscribed-notifications:establish-subscription.input.' />\n<parameter name=\"`$input + 'encoding'`\" value=\"encode-json\" />",
"comments": "",
- "x": 1467.0001983642578,
- "y": 292.00000953674316,
- "z": "1620e9e3.f93e5e",
+ "x": 1416.0001983642578,
+ "y": 294.00000953674316,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "720c5fa5.cf9fc8",
+ "id": "bcab4612.fb18e",
"type": "comment",
"name": "Notification subscription",
"info": "",
"comments": "",
- "x": 1472.000343322754,
- "y": 249.00000858306885,
- "z": "1620e9e3.f93e5e",
+ "x": 1421.000343322754,
+ "y": 251.00000858306885,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "cee74437.1c5038",
+ "id": "289966fd.257632",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",
"comments": "",
"outputs": 1,
- "x": 157,
- "y": 320,
- "z": "1620e9e3.f93e5e",
+ "x": 106,
+ "y": 322,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "68735a94.d40f5c",
- "ab95c3e8.90657"
+ "8432bc7f.958c98",
+ "dbdc5153.c45968"
]
]
},
{
- "id": "68735a94.d40f5c",
+ "id": "8432bc7f.958c98",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 344,
- "y": 320,
- "z": "1620e9e3.f93e5e",
+ "x": 293,
+ "y": 322,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "78227710.8145c"
+ "5a242175.0e7ef"
]
]
},
{
- "id": "ab95c3e8.90657",
+ "id": "dbdc5153.c45968",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 345,
- "y": 445,
- "z": "1620e9e3.f93e5e",
+ "x": 67.00003051757812,
+ "y": 1078.75,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "9bf3753b.e16a38"
+ "94027433.59821"
]
]
},
{
- "id": "9bf3753b.e16a38",
+ "id": "94027433.59821",
"type": "call",
"name": "call esr-thirdparty-sdnc-of-zte",
"xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 568,
- "y": 445,
- "z": "1620e9e3.f93e5e",
+ "x": 298.75,
+ "y": 1095.5000610351562,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "f43baf3c.399558",
+ "id": "2ed61a13.0813c6",
"type": "other",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 1161,
- "y": 425,
- "z": "1620e9e3.f93e5e",
+ "x": 1110,
+ "y": 427,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "75540bd7.9ba5f4"
+ "4691c66b.5d4a4"
]
]
},
{
- "id": "75540bd7.9ba5f4",
+ "id": "4691c66b.5d4a4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1324,
- "y": 424,
- "z": "1620e9e3.f93e5e",
+ "x": 1273,
+ "y": 426,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "a24deaa6.af3108"
+ "7dd7f464.c6c9e4"
]
]
},
{
- "id": "a24deaa6.af3108",
+ "id": "7dd7f464.c6c9e4",
"type": "execute",
"name": "execute",
"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\"/>",
"comments": "",
"outputs": 1,
- "x": 1485,
- "y": 423,
- "z": "1620e9e3.f93e5e",
+ "x": 1434,
+ "y": 425,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "cdd2d534.962938",
- "363290e2.c2512"
+ "4311848d.591ed4",
+ "fc46f47a.aebbb"
]
]
},
{
- "id": "363290e2.c2512",
+ "id": "fc46f47a.aebbb",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1627,
- "y": 499,
- "z": "1620e9e3.f93e5e",
+ "x": 1576,
+ "y": 501,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "91d6cda6.f47358"
+ "cc96eb4.79b6718"
]
]
},
{
- "id": "cdd2d534.962938",
+ "id": "4311848d.591ed4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1661,
- "y": 420,
- "z": "1620e9e3.f93e5e",
+ "x": 1610,
+ "y": 422,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "78d89c1.df36ce4"
+ "85a205fd.e6fe2"
]
]
},
{
- "id": "78d89c1.df36ce4",
+ "id": "85a205fd.e6fe2",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1831,
- "y": 419,
- "z": "1620e9e3.f93e5e",
+ "x": 1780,
+ "y": 421,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "91d6cda6.f47358",
+ "id": "cc96eb4.79b6718",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1788,
- "y": 498,
- "z": "1620e9e3.f93e5e",
+ "x": 1737,
+ "y": 500,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "68a08572.6d4e94"
+ "84ea29d7.966748"
]
]
},
{
- "id": "68a08572.6d4e94",
+ "id": "84ea29d7.966748",
"type": "for",
"name": "for each topology",
"xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",
"comments": "",
"outputs": 1,
- "x": 1967,
- "y": 498,
- "z": "1620e9e3.f93e5e",
+ "x": 1916,
+ "y": 500,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "e2491c10.3a12"
+ "23afbd29.52671a"
]
]
},
{
- "id": "e2491c10.3a12",
+ "id": "23afbd29.52671a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2134,
- "y": 499,
- "z": "1620e9e3.f93e5e",
+ "x": 2083,
+ "y": 501,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "b1c3c921.3c12a",
- "b5a39927.d40208"
+ "be671cf9.1f4a38",
+ "2c9a9e44.4d4e72"
]
]
},
{
- "id": "b1c3c921.3c12a",
+ "id": "be671cf9.1f4a38",
"type": "set",
"name": "set topology",
"xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",
"comments": "",
- "x": 2293,
- "y": 500,
- "z": "1620e9e3.f93e5e",
+ "x": 2242,
+ "y": 502,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "b5a39927.d40208",
+ "id": "2c9a9e44.4d4e72",
"type": "call",
"name": "call tapi-update-network-to-aai",
"xml": "<call module='DataChange' rpc='tapi-update-network-to-aai' mode='sync' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2284,
- "y": 566,
- "z": "1620e9e3.f93e5e",
+ "x": 2233,
+ "y": 568,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "6e19e1c4.aa4d28",
+ "id": "ca97ad3.a311cd",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 1131.677324295044,
- "y": 581.8993349075317,
- "z": "1620e9e3.f93e5e",
+ "x": 1080.677324295044,
+ "y": 583.8993349075317,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "4227a936.fe14d"
+ "c2e22ff3.03e78"
]
]
},
{
- "id": "4227a936.fe14d",
+ "id": "c2e22ff3.03e78",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1293.6773872375488,
- "y": 579.899335861206,
- "z": "1620e9e3.f93e5e",
+ "x": 1242.6773872375488,
+ "y": 581.899335861206,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "f20725de.f4794"
+ "cdc360bb.4f8c6"
]
]
},
{
- "id": "f20725de.f4794",
+ "id": "cdc360bb.4f8c6",
"type": "execute",
"name": "execute",
"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",
"comments": "",
"outputs": 1,
- "x": 1470.6771354675293,
- "y": 571.8992919921875,
- "z": "1620e9e3.f93e5e",
+ "x": 1419.6771354675293,
+ "y": 573.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "49b0fd8b.249e2c",
- "792d01db.8d11"
+ "150d6764.a614e9",
+ "1e259e4f.0e9d9a"
]
]
},
{
- "id": "49b0fd8b.249e2c",
+ "id": "150d6764.a614e9",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1623.6771354675293,
- "y": 568.8992919921875,
- "z": "1620e9e3.f93e5e",
+ "x": 1572.6771354675293,
+ "y": 570.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "85d21e1a.a14be8"
+ "a457e272.01c1b8"
]
]
},
{
- "id": "85d21e1a.a14be8",
+ "id": "a457e272.01c1b8",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1798.6771354675293,
- "y": 567.8992919921875,
- "z": "1620e9e3.f93e5e",
+ "x": 1747.6771354675293,
+ "y": 569.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "792d01db.8d11",
+ "id": "1e259e4f.0e9d9a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1629.6771354675293,
- "y": 641.8992919921875,
- "z": "1620e9e3.f93e5e",
+ "x": 1578.6771354675293,
+ "y": 643.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "d5110405.aee948"
+ "c148d343.01eac8"
]
]
},
{
- "id": "d5110405.aee948",
+ "id": "c148d343.01eac8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1813.6771354675293,
- "y": 643.8992919921875,
- "z": "1620e9e3.f93e5e",
+ "x": 1762.6771354675293,
+ "y": 645.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "68851b61.ef75e4"
+ "f964e642.cb1ae"
]
]
},
{
- "id": "68851b61.ef75e4",
+ "id": "f964e642.cb1ae",
"type": "call",
"name": "call msa-update-network-to-aai",
"xml": "<call module='DataChange' rpc='msa-update-network-to-aai' mode='sync' >\n\n",
"comments": "",
"outputs": 1,
- "x": 2092.677001953125,
- "y": 641.8992919921875,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "945331d0.def158",
- "type": "switchNode",
- "name": "switch network_length",
- "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2684,
- "y": 310,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "901d4e1a.652118",
- "11935c8a.a490ab"
- ]
- ]
- },
- {
- "id": "9c61f388.1f0838",
- "type": "outcome",
- "name": "2 Topologies (1 Domain)",
- "xml": "<outcome value='2'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2894,
- "y": 611,
- "z": "1620e9e3.f93e5e",
+ "x": 2041.677001953125,
+ "y": 643.8992919921875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "326c6d24.4336b2",
+ "id": "dc10cae0.74e44",
"type": "switchNode",
- "name": "switch network-types[0]",
- "xml": "<switch test='`$topology.networks.network[0].network-types`'>\n",
+ "name": "switch type",
+ "xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 4603,
- "y": 400,
- "z": "1620e9e3.f93e5e",
+ "x": 212.566650390625,
+ "y": 812.5666809082031,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "709f94a4.b34cf4",
- "9cfb2d7f.448bd8"
+ "447a364c.b91ea8",
+ "f7872c45.99a4e",
+ "c8e48bf6.778e98"
]
]
},
{
- "id": "709f94a4.b34cf4",
+ "id": "447a364c.b91ea8",
"type": "outcome",
- "name": "ethernet-topology",
- "xml": "<outcome value='ethernet-topology'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4819,
- "y": 400,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "6ad78f52.8d683"
- ]
- ]
- },
- {
- "id": "6ad78f52.8d683",
- "type": "switchNode",
- "name": "switch network-types[1]",
- "xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",
+ "name": "MSA",
+ "xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 5044,
- "y": 400,
- "z": "1620e9e3.f93e5e",
+ "x": 391.857177734375,
+ "y": 729.9285888671875,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "4e12c36c.f82d3c",
- "17b8d1f3.652706"
+ "a07fdc63.5a34d8"
]
]
},
{
- "id": "4e12c36c.f82d3c",
- "type": "outcome",
- "name": "otn-topology",
- "xml": "<outcome value='otn-topology'>\n",
+ "id": "f7872c45.99a4e",
+ "type": "other",
+ "name": "TAPI",
+ "xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 5280,
- "y": 353,
- "z": "1620e9e3.f93e5e",
+ "x": 400.6070556640625,
+ "y": 980.6428527832031,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "cd9d2417.06096"
+ "6d4308e1.31c5f"
]
]
},
{
- "id": "172a24d9.92ec93",
- "type": "call",
- "name": "call update-tp-ttp-relationship",
- "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 5696,
- "y": 341,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "61a560e1.35c54",
- "type": "set",
- "name": "set networks",
- "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[0].`' />\n<parameter name='network-otn.' value='`$topology.networks.network[1].`' />\n",
- "comments": "",
- "x": 5541,
- "y": 207,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "9cfb2d7f.448bd8",
- "type": "outcome",
- "name": "otn-topology",
- "xml": "<outcome value='otn-topology'>\n",
+ "id": "a07fdc63.5a34d8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
"comments": "",
"outputs": 1,
- "x": 4824,
- "y": 457,
- "z": "1620e9e3.f93e5e",
+ "x": 545.607177734375,
+ "y": 726.7143249511719,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "f16b5928.2b534"
+ "cfc4d202.c64d78",
+ "366bec81.83eddc"
]
]
},
{
- "id": "cd9d2417.06096",
+ "id": "6d4308e1.31c5f",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 5462,
- "y": 327,
- "z": "1620e9e3.f93e5e",
+ "x": 550,
+ "y": 980.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "61a560e1.35c54",
- "172a24d9.92ec93"
+ "6a48df29.ca491",
+ "62ccb800.ba59c8"
]
]
},
{
- "id": "f16b5928.2b534",
- "type": "switchNode",
- "name": "switch network-types[1]",
- "xml": "<switch test='`$topology.networks.network[1].network-types`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5043,
- "y": 459,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "b02955b9.ece2c",
- "1f0d239a.a59004"
- ]
- ]
- },
- {
- "id": "17b8d1f3.652706",
+ "id": "c8e48bf6.778e98",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 5274,
- "y": 412,
- "z": "1620e9e3.f93e5e",
+ "x": 503,
+ "y": 1144.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "d245d127.681cb"
+ "ab761f62.a873d"
]
]
},
{
- "id": "d245d127.681cb",
+ "id": "ab761f62.a873d",
"type": "returnFailure",
"name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "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",
"comments": "",
- "x": 5476,
- "y": 410,
- "z": "1620e9e3.f93e5e",
+ "x": 665,
+ "y": 1183.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "b02955b9.ece2c",
- "type": "outcome",
- "name": "ethernet-topology",
- "xml": "<outcome value='ethernet-topology'>\n",
+ "id": "cfc4d202.c64d78",
+ "type": "get-resource",
+ "name": "get resources from DB -controller_id",
+ "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",
"comments": "",
"outputs": 1,
- "x": 5266,
- "y": 473,
- "z": "1620e9e3.f93e5e",
+ "x": 777.5,
+ "y": 774.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "a776716e.08be98"
+ "69e5b135.13096",
+ "70bf128f.7ac3cc",
+ "136d8709.29f489"
]
]
},
{
- "id": "b2d9af5c.6d71e8",
+ "id": "366bec81.83eddc",
"type": "set",
- "name": "set networks",
- "xml": "<set>\n<parameter name='network.eth' value='`$topology.networks.network[1].`' />\n<parameter name='network.otn' value='`$topology.networks.network[0].`' />\n",
- "comments": "",
- "x": 5682,
- "y": 454,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "1f0d239a.a59004",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 5225,
- "y": 534,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "7a25521e.b55894"
- ]
- ]
- },
- {
- "id": "7a25521e.b55894",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
+ "name": "set controller_id",
+ "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",
"comments": "",
- "x": 5370,
- "y": 541,
- "z": "1620e9e3.f93e5e",
+ "x": 737.5,
+ "y": 708.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "a776716e.08be98",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 5444,
- "y": 469,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "b2d9af5c.6d71e8",
- "7141defd.d7f3a8"
- ]
- ]
- },
- {
- "id": "1a8710e5.1ad6b7",
- "type": "get-resource",
- "name": "get-resource network-resources",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resources\" \n pfx='tmp.aai.network-resources' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2504,
- "y": 784,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "3a8bf069.f85ce",
- "aebcabff.82acc",
- "1f447726.4be529"
- ]
- ]
- },
- {
- "id": "3a8bf069.f85ce",
+ "id": "69e5b135.13096",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2757,
- "y": 702,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "e98ead73.d60f3"
- ]
- ]
- },
- {
- "id": "aebcabff.82acc",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2760.490966796875,
- "y": 749.5740356445312,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "94257a05.fc968"
- ]
- ]
- },
- {
- "id": "1f447726.4be529",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2748.823974609375,
- "y": 793.9073486328125,
- "z": "1620e9e3.f93e5e",
+ "x": 1016.5,
+ "y": 794.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "fe4ab328.74eee"
+ "f7324afe.a3cb98"
]
]
},
{
- "id": "7141defd.d7f3a8",
- "type": "call",
- "name": "call update-tp-ttp-relationship",
- "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",
+ "id": "f7324afe.a3cb98",
+ "type": "delete",
+ "name": "delete from db",
+ "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\">",
"comments": "",
"outputs": 1,
- "x": 5717,
- "y": 520,
- "z": "1620e9e3.f93e5e",
+ "x": 1185.5,
+ "y": 801.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "db2f1670.e36278",
- "type": "call",
- "name": "call update-open-ended-links",
- "xml": "<call module='DataChange' rpc='update-open-ended-links' mode='sync' >\n",
- "comments": "",
- "outputs": 1,
- "x": 3712,
- "y": 737,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "e98ead73.d60f3",
- "type": "switchNode",
- "name": "switch network-resources_length",
- "xml": "<switch test='tmp.aai.network-resources_length'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2972,
- "y": 700,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "c72d2527.4f27d8"
- ]
- ]
- },
- {
- "id": "c72d2527.4f27d8",
- "type": "outcome",
- "name": "4 Topologies (2 Domains)",
- "xml": "<outcome value='4'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3233,
- "y": 700,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "3dcb11c5.a0564e"
- ]
- ]
- },
- {
- "id": "94257a05.fc968",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
- "comments": "",
- "x": 2933,
- "y": 750,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "fe4ab328.74eee",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
- "comments": "",
- "x": 2922,
- "y": 796,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "6b9df565.677604",
- "type": "for",
- "name": "for each network-resource",
- "xml": "<for index='nridx' start='0' end='`$tmp.aai.network-resources.network-resource_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 3695,
- "y": 664,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "db1ad019.66229"
- ]
- ]
- },
- {
- "id": "db1ad019.66229",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 3924,
- "y": 690,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "9c9a1adf.4a9568",
- "df8384d1.95fc28"
- ]
- ]
- },
- {
- "id": "9c9a1adf.4a9568",
- "type": "switchNode",
- "name": "switch network-types[nridx]",
- "xml": "<switch test='`$tmp.aai.network-resources.network-resource[$nridx].network-type`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4197,
- "y": 715,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "be613956.e7594"
- ]
- ]
- },
- {
- "id": "be613956.e7594",
- "type": "outcome",
- "name": "otn-topology",
- "xml": "<outcome value='otn-topology'>\n",
- "comments": "",
- "outputs": 1,
- "x": 4410,
- "y": 709,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "a82463e6.b9c248"
- ]
- ]
- },
- {
- "id": "369083d8.76a43c",
- "type": "set",
- "name": "set network-resource-otn[$otnidx]",
- "xml": "<set>\n<parameter name='network-resource-otn[$otnidx].' value='`$tmp.aai.network-resources.network-resource[$nridx].`' />\n",
- "comments": "",
- "x": 4776,
- "y": 702,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "df8384d1.95fc28",
- "type": "set",
- "name": "set otnidx",
- "xml": "<set>\n<parameter name='otnidx' value='0' />\n",
- "comments": "",
- "x": 4142,
- "y": 673,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "fd786916.269048",
+ "id": "6a48df29.ca491",
"type": "set",
- "name": "set otnidx",
- "xml": "<set>\n<parameter name='otnidx' value='`$otnidx + 1`' />\n",
+ "name": "set controller_id",
+ "xml": "<set>\n<parameter name='controllerid' value=\"`$prop.sdncRestApi.type + '_' + $prop.sdncRestApi.thirdpartySdnc.url + '_' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n\n\n",
"comments": "",
- "x": 4693,
- "y": 754,
- "z": "1620e9e3.f93e5e",
+ "x": 714.5,
+ "y": 936.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "a82463e6.b9c248",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 4556,
- "y": 722,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "369083d8.76a43c",
- "fd786916.269048"
- ]
- ]
- },
- {
- "id": "3dcb11c5.a0564e",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 3449,
- "y": 695,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "6b9df565.677604",
- "db2f1670.e36278"
- ]
- ]
- },
- {
- "id": "901d4e1a.652118",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "62ccb800.ba59c8",
+ "type": "get-resource",
+ "name": "get resources from DB -controller_id",
+ "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",
"comments": "",
"outputs": 1,
- "x": 2866,
- "y": 311,
- "z": "1620e9e3.f93e5e",
+ "x": 727.5,
+ "y": 1025.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "2165924a.476cde"
+ "4cc181ad.c4d1f8",
+ "85870c46.3089f",
+ "d2032fdb.614ce8"
]
]
},
{
- "id": "11935c8a.a490ab",
- "type": "outcomeFalse",
- "name": "false",
- "xml": "<outcome value='false'>\n",
+ "id": "4cc181ad.c4d1f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2868,
- "y": 358,
- "z": "1620e9e3.f93e5e",
+ "x": 952.5,
+ "y": 1040.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "94ef4628.95e6b8"
+ "ebe8f601.eebec8"
]
]
},
{
- "id": "94ef4628.95e6b8",
- "type": "record",
- "name": "log file",
- "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n ",
+ "id": "ebe8f601.eebec8",
+ "type": "delete",
+ "name": "delete from db",
+ "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\">",
"comments": "",
"outputs": 1,
- "x": 2996,
- "y": 360,
- "z": "1620e9e3.f93e5e",
+ "x": 1123.5,
+ "y": 1041.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[]
]
},
{
- "id": "2165924a.476cde",
- "type": "for",
- "name": "for each Network",
- "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",
+ "id": "70bf128f.7ac3cc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3039,
- "y": 310,
- "z": "1620e9e3.f93e5e",
+ "x": 1002.5,
+ "y": 873.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "115276c4.acec21"
+ "dd76e326.6dd408"
]
]
},
{
- "id": "115276c4.acec21",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "85870c46.3089f",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 3209,
- "y": 308,
- "z": "1620e9e3.f93e5e",
+ "x": 933.5,
+ "y": 1113.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "2a57d05e.a0dc88",
- "dde988af.f0e1f",
- "ccc4b2dc.03b6",
- "9266c042.cf422",
- "b4168243.614878"
+ "b35680d0.668ed"
]
]
},
{
- "id": "2a57d05e.a0dc88",
- "type": "set",
- "name": "set network",
- "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",
+ "id": "dd76e326.6dd408",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
"comments": "",
- "x": 3375,
- "y": 276,
- "z": "1620e9e3.f93e5e",
+ "x": 1163.5,
+ "y": 878.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "dde988af.f0e1f",
- "type": "switchNode",
- "name": "switch network-types with topologyId",
- "xml": "<switch test='`$network.te-topology-id`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3420,
- "y": 355,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "eaf6a3f8.6275b",
- "92b40685.e87b6"
- ]
- ]
- },
- {
- "id": "b3e974ed.02509",
- "type": "record",
- "name": "log file",
- "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n <parameter name=\"field4\" value=\"network-type-is\" />\n <parameter name=\"field5\" value=\"OTN\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 3904,
- "y": 245,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "eaf6a3f8.6275b",
- "type": "outcome",
- "name": "11",
- "xml": "<outcome value='11'>\n",
- "comments": "",
- "outputs": 1,
- "x": 3639,
- "y": 309,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "7df875b.d3cf70c"
- ]
- ]
- },
- {
- "id": "92b40685.e87b6",
- "type": "outcome",
- "name": "33",
- "xml": "<outcome value='33'>\n",
+ "id": "136d8709.29f489",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3639,
- "y": 370,
- "z": "1620e9e3.f93e5e",
+ "x": 993.5,
+ "y": 933.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "16aa4525.8ff0c3"
+ "84fa6086.1cdbd"
]
]
},
{
- "id": "d246fb34.c2a69",
- "type": "record",
- "name": "log file",
- "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"networks_length\" />\n <parameter name=\"field3\" value=\"`$topology.networks.network_length`\" />\n <parameter name=\"field4\" value=\"network-type-is\" />\n <parameter name=\"field5\" value=\"ETH\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 3898,
- "y": 370,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "50aa8e02.3ace68",
- "type": "set",
- "name": "set network-otn",
- "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",
- "comments": "",
- "x": 3934,
- "y": 315,
- "z": "1620e9e3.f93e5e",
- "wires": []
- },
- {
- "id": "1ffaf146.64fab7",
- "type": "set",
- "name": "set networks",
- "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",
+ "id": "84fa6086.1cdbd",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
"comments": "",
- "x": 3916,
- "y": 409,
- "z": "1620e9e3.f93e5e",
+ "x": 1142.5,
+ "y": 935.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "ccc4b2dc.03b6",
- "type": "set",
- "name": "unset network",
- "xml": "<set>\n<parameter name='network.' value='' />\n",
+ "id": "b35680d0.668ed",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
"comments": "",
- "x": 3369,
- "y": 222,
- "z": "1620e9e3.f93e5e",
+ "x": 1081.5,
+ "y": 1114.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": []
},
{
- "id": "9266c042.cf422",
- "type": "record",
- "name": "log file",
- "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logSdncDiscovery.txt\" />\n <parameter name=\"field6\" value=\"network-otn-is\" />\n <parameter name=\"field7\" value=\"`$network-otn.te-topology-id`\" />\n <parameter name=\"field8\" value=\"network-eth-is\" />\n <parameter name=\"field9\" value=\"`$network-eth.te-topology-id`\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 3340,
- "y": 480,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
- },
- {
- "id": "7df875b.d3cf70c",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 3770,
- "y": 314,
- "z": "1620e9e3.f93e5e",
- "wires": [
- [
- "b3e974ed.02509",
- "50aa8e02.3ace68"
- ]
- ]
- },
- {
- "id": "16aa4525.8ff0c3",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
+ "id": "d2032fdb.614ce8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 3775,
- "y": 391,
- "z": "1620e9e3.f93e5e",
+ "x": 933.5,
+ "y": 1157.5,
+ "z": "7bb5d2cb.8cfacc",
"wires": [
[
- "d246fb34.c2a69",
- "1ffaf146.64fab7"
+ "a6db07ae.aaca38"
]
]
},
{
- "id": "b4168243.614878",
- "type": "call",
- "name": "call update-tp-ttp-relationship",
- "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",
+ "id": "a6db07ae.aaca38",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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",
"comments": "",
- "outputs": 1,
- "x": 3410,
- "y": 531,
- "z": "1620e9e3.f93e5e",
- "wires": [
- []
- ]
+ "x": 1098.5,
+ "y": 1154.5,
+ "z": "7bb5d2cb.8cfacc",
+ "wires": []
}
] \ No newline at end of file