summaryrefslogtreecommitdiffstats
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.json1055
1 files changed, 641 insertions, 414 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 ca5ed7ae..81060bf3 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,242 +1,243 @@
[
{
- "id": "346770b6.e0b2e",
+ "id": "c3dc4adb.8c6008",
"type": "other",
"name": "update",
"xml": "<outcome value='Update'>\n",
"comments": "",
"outputs": 1,
- "x": 666,
- "y": 282,
- "z": "7bb5d2cb.8cfacc",
+ "x": 739,
+ "y": 311,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "ac79093c.29ec78"
+ "bd0845c9.41d478"
]
]
},
{
- "id": "2f504934.7894c6",
+ "id": "71253ee0.23906",
"type": "other",
"name": "delete",
"xml": "<outcome value='Delete'>\n",
"comments": "",
"outputs": 1,
- "x": 666,
- "y": 362,
- "z": "7bb5d2cb.8cfacc",
+ "x": 739,
+ "y": 391,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "5f23df82.9ac6e"
+ "3f0bf71e.180588"
]
]
},
{
- "id": "5f23df82.9ac6e",
+ "id": "3f0bf71e.180588",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 807.5,
- "y": 362,
- "z": "7bb5d2cb.8cfacc",
+ "x": 880.5,
+ "y": 391,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "dc10cae0.74e44"
+ "67540de7.5dd14c"
]
]
},
{
- "id": "5a242175.0e7ef",
+ "id": "de801ea6.e90758",
"type": "switchNode",
"name": "switch aai-event-trigger",
"xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
"comments": "",
"outputs": 1,
- "x": 496.5,
- "y": 322,
- "z": "7bb5d2cb.8cfacc",
+ "x": 569.5,
+ "y": 351,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "346770b6.e0b2e",
- "2f504934.7894c6"
+ "c3dc4adb.8c6008",
+ "71253ee0.23906"
]
]
},
{
- "id": "39f2e6f9.408272",
+ "id": "1007cea6.282501",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1193.5,
- "y": 193,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1266.5,
+ "y": 222,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "97074a04.9156f",
- "a612156e.6c82f",
- "af67ee77.5ddb88",
- "8f8e9805.87c3c8",
- "9d5ac624.def28"
+ "95e785b5.d067b",
+ "7a1058d1.4b2d6",
+ "558bdafc.122dbc",
+ "54848569.ec4d54",
+ "25993b47.1f060c"
]
]
},
{
- "id": "a612156e.6c82f",
+ "id": "7a1058d1.4b2d6",
"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": 1466.5001983642578,
- "y": 114.00000953674316,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1539.5001983642578,
+ "y": 143.00000953674316,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "e7c29f07.2a4d28",
- "fe96d7c9.6dc11"
+ "1f13ca65.eddc8e",
+ "fa7642f7.a126c8"
]
]
},
{
- "id": "e7c29f07.2a4d28",
+ "id": "1f13ca65.eddc8e",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1756.000244140625,
- "y": 106,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1829.000244140625,
+ "y": 135,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "9a41c115.acccd8"
+ "a5768e87.aa1bb"
]
]
},
{
- "id": "fe96d7c9.6dc11",
+ "id": "fa7642f7.a126c8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1752.000244140625,
- "y": 146,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1825.000244140625,
+ "y": 175,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "142d0bb2.73cbec"
+ "334af206.383786"
]
]
},
{
- "id": "9a41c115.acccd8",
+ "id": "a5768e87.aa1bb",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1906.500244140625,
- "y": 106,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1979.500244140625,
+ "y": 135,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "74c607f5.33c7f",
+ "id": "272f0d19.0aa972",
"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": 1973.500244140625,
- "y": 226,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2046.500244140625,
+ "y": 255,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "46585599.99541c",
- "e4dc69e3.746e88"
+ "c0f8711f.5047d8",
+ "6134ff85.3a875"
]
]
},
{
- "id": "46585599.99541c",
+ "id": "c0f8711f.5047d8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2216.000244140625,
- "y": 246,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2289.000244140625,
+ "y": 275,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "c7c89355.9ce378"
+ "f5e8d64.1d84ba8"
]
]
},
{
- "id": "c7c89355.9ce378",
+ "id": "f5e8d64.1d84ba8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2373.500244140625,
- "y": 246,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2446.500244140625,
+ "y": 275,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "b3a801bb.6b3e08"
+ "f392518f.1c82f",
+ "f7bc5da7.da31b"
]
]
},
{
- "id": "4462058b.03bf7c",
+ "id": "dd9ef895.8d06e8",
"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": 2350.000244140625,
- "y": 146,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2423.000244140625,
+ "y": 175,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "e4dc69e3.746e88",
+ "id": "6134ff85.3a875",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2212.000244140625,
- "y": 146,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2285.000244140625,
+ "y": 175,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "4462058b.03bf7c"
+ "dd9ef895.8d06e8"
]
]
},
{
- "id": "e48e789f.6305e8",
+ "id": "bca2c88c.f5748",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 119,
- "y": 57,
- "z": "7bb5d2cb.8cfacc",
+ "x": 192,
+ "y": 86,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "f17ff4c0.c3b85"
+ "1c8eebdb.be2d0c"
]
]
},
{
- "id": "f17ff4c0.c3b85",
+ "id": "1c8eebdb.be2d0c",
"type": "service-logic",
"name": "DataChange ${project.version}",
"module": "DataChange",
@@ -244,1017 +245,1243 @@
"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": 132,
- "y": 117,
- "z": "7bb5d2cb.8cfacc",
+ "x": 205,
+ "y": 146,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "dcee4efc.fbc398"
+ "a6fcf3ab.5f9578"
]
]
},
{
- "id": "dcee4efc.fbc398",
+ "id": "a6fcf3ab.5f9578",
"type": "method",
"name": "method esr-thirdparty-sdnc-discovery",
"xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 152,
- "y": 197,
- "z": "7bb5d2cb.8cfacc",
+ "x": 225,
+ "y": 226,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "ee1d05c.842daf8"
+ "6420c8d3.d15ee"
]
]
},
{
- "id": "ee1d05c.842daf8",
+ "id": "6420c8d3.d15ee",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 399.5,
- "y": 197,
- "z": "7bb5d2cb.8cfacc",
+ "x": 472.5,
+ "y": 226,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "289966fd.257632"
+ "39152f22.f0d4a8"
]
]
},
{
- "id": "b3a801bb.6b3e08",
+ "id": "f392518f.1c82f",
"type": "for",
"name": "for each Network",
"xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1799.500259399414,
- "y": 345.00001525878906,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2665.500244140625,
+ "y": 204,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "f46be5c.444e598"
+ "48caa041.662da"
]
]
},
{
- "id": "f46be5c.444e598",
+ "id": "48caa041.662da",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1948.000259399414,
- "y": 345.00001525878906,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2814.000244140625,
+ "y": 204,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "9f7c6e21.8e3448",
- "a45b31cf.5b428"
+ "f9d6723a.6cdf78",
+ "929dfcd4.4e318"
]
]
},
{
- "id": "9f7c6e21.8e3448",
+ "id": "f9d6723a.6cdf78",
"type": "call",
"name": "call update-network-to-aai",
"xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2127.000259399414,
- "y": 365.00001525878906,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2993.000244140625,
+ "y": 224,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "a45b31cf.5b428",
+ "id": "929dfcd4.4e318",
"type": "set",
"name": "set network",
"xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
"comments": "",
- "x": 2082.000259399414,
- "y": 325.00001525878906,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2948.000244140625,
+ "y": 184,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "142d0bb2.73cbec",
+ "id": "334af206.383786",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1872.000244140625,
- "y": 146,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1945.000244140625,
+ "y": 175,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "77d98c9a.bbdddc",
+ "id": "2b9bc1fc.7f9d86",
"type": "comment",
"name": "Do Nothing",
"info": "",
"comments": "",
- "x": 2042.000244140625,
- "y": 186,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2115.000244140625,
+ "y": 215,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "7a5efd17.5c18a4",
+ "id": "ec977bcd.52b8a8",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 919,
- "y": 282,
- "z": "7bb5d2cb.8cfacc",
+ "x": 992,
+ "y": 311,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "c610bb27.6f7938",
- "f6f15d6a.b855f8",
- "2ed61a13.0813c6",
- "ca97ad3.a311cd"
+ "e6327558.85a0e",
+ "ece3c1dc.08a25",
+ "57f0cdff.7f0d04",
+ "e6efb547.0bd5a8"
]
]
},
{
- "id": "ac79093c.29ec78",
+ "id": "bd0845c9.41d478",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 786,
- "y": 282,
- "z": "7bb5d2cb.8cfacc",
+ "x": 859,
+ "y": 311,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "7a5efd17.5c18a4"
+ "ec977bcd.52b8a8"
]
]
},
{
- "id": "c610bb27.6f7938",
+ "id": "e6327558.85a0e",
"type": "other",
"name": "SOTN",
"xml": "<outcome value='SOTN'>\n",
"comments": "",
"outputs": 1,
- "x": 1032,
- "y": 193,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1105,
+ "y": 222,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "39f2e6f9.408272"
+ "1007cea6.282501"
]
]
},
{
- "id": "f6f15d6a.b855f8",
+ "id": "ece3c1dc.08a25",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1061.5,
- "y": 654.5001220703125,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1134.5,
+ "y": 683.5001220703125,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "bacba57d.e755a8"
+ "752a836e.32daf4"
]
]
},
{
- "id": "bacba57d.e755a8",
+ "id": "752a836e.32daf4",
"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": 1247.75,
- "y": 680.5001220703125,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1320.75,
+ "y": 709.5001220703125,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "97074a04.9156f",
+ "id": "95e785b5.d067b",
"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": 1413.0001983642578,
- "y": 74.00000953674316,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1486.0001983642578,
+ "y": 103.00000953674316,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "af67ee77.5ddb88",
+ "id": "558bdafc.122dbc",
"type": "switchNode",
"name": "switch prop.sdncRestApi.token_id",
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1459.5001983642578,
- "y": 194.00000953674316,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1532.5001983642578,
+ "y": 223.00000953674316,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "196dbf86.289fe8",
- "2e000adc.427cfe"
+ "9764857a.46386",
+ "b55a5855.1b4c4"
]
]
},
{
- "id": "196dbf86.289fe8",
+ "id": "9764857a.46386",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1752.000244140625,
- "y": 186,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1825.000244140625,
+ "y": 215,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "58dbe772.71f75"
+ "d18413fb.5938e8"
]
]
},
{
- "id": "2e000adc.427cfe",
+ "id": "b55a5855.1b4c4",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1752.000244140625,
- "y": 226,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1825.000244140625,
+ "y": 255,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "74c607f5.33c7f"
+ "272f0d19.0aa972"
]
]
},
{
- "id": "58dbe772.71f75",
+ "id": "d18413fb.5938e8",
"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": 1973.500244140625,
- "y": 186,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2046.500244140625,
+ "y": 215,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "e4dc69e3.746e88",
- "46585599.99541c"
+ "6134ff85.3a875",
+ "c0f8711f.5047d8"
]
]
},
{
- "id": "9d5ac624.def28",
+ "id": "25993b47.1f060c",
"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": 1456.0001983642578,
- "y": 334.00000953674316,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1529.0001983642578,
+ "y": 363.00000953674316,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "8f8e9805.87c3c8",
+ "id": "54848569.ec4d54",
"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": 1416.0001983642578,
- "y": 294.00000953674316,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1489.0001983642578,
+ "y": 323.00000953674316,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "bcab4612.fb18e",
+ "id": "c147e994.7edd08",
"type": "comment",
"name": "Notification subscription",
"info": "",
"comments": "",
- "x": 1421.000343322754,
- "y": 251.00000858306885,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1494.000343322754,
+ "y": 280.00000858306885,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "289966fd.257632",
+ "id": "39152f22.f0d4a8",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",
"comments": "",
"outputs": 1,
- "x": 106,
- "y": 322,
- "z": "7bb5d2cb.8cfacc",
+ "x": 179,
+ "y": 351,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "8432bc7f.958c98",
- "dbdc5153.c45968"
+ "404d2f08.96ad7",
+ "74ffd1db.2f31c8"
]
]
},
{
- "id": "8432bc7f.958c98",
+ "id": "404d2f08.96ad7",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 293,
- "y": 322,
- "z": "7bb5d2cb.8cfacc",
+ "x": 366,
+ "y": 351,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "5a242175.0e7ef"
+ "de801ea6.e90758"
]
]
},
{
- "id": "dbdc5153.c45968",
+ "id": "74ffd1db.2f31c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 67.00003051757812,
- "y": 1078.75,
- "z": "7bb5d2cb.8cfacc",
+ "x": 140.00003051757812,
+ "y": 1107.75,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "94027433.59821"
+ "c3886c05.a14928"
]
]
},
{
- "id": "94027433.59821",
+ "id": "c3886c05.a14928",
"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": 298.75,
- "y": 1095.5000610351562,
- "z": "7bb5d2cb.8cfacc",
+ "x": 371.75,
+ "y": 1124.5000610351562,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "2ed61a13.0813c6",
+ "id": "57f0cdff.7f0d04",
"type": "other",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 1110,
- "y": 427,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1183,
+ "y": 456,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "4691c66b.5d4a4"
+ "9159c5db.f9ecb"
]
]
},
{
- "id": "4691c66b.5d4a4",
+ "id": "9159c5db.f9ecb",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1273,
- "y": 426,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1346,
+ "y": 455,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "7dd7f464.c6c9e4"
+ "359e52a9.fb7c36"
]
]
},
{
- "id": "7dd7f464.c6c9e4",
+ "id": "359e52a9.fb7c36",
"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": 1434,
- "y": 425,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1507,
+ "y": 454,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "4311848d.591ed4",
- "fc46f47a.aebbb"
+ "bdd5dc28.9d2908",
+ "a872bbb4.c3aec8"
]
]
},
{
- "id": "fc46f47a.aebbb",
+ "id": "a872bbb4.c3aec8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1576,
- "y": 501,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1649,
+ "y": 530,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "cc96eb4.79b6718"
+ "e24829ea.497098"
]
]
},
{
- "id": "4311848d.591ed4",
+ "id": "bdd5dc28.9d2908",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1610,
- "y": 422,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1683,
+ "y": 451,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "85a205fd.e6fe2"
+ "ba70e873.59e928"
]
]
},
{
- "id": "85a205fd.e6fe2",
+ "id": "ba70e873.59e928",
"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": 1780,
- "y": 421,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1853,
+ "y": 450,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "cc96eb4.79b6718",
+ "id": "e24829ea.497098",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1737,
- "y": 500,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1810,
+ "y": 529,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "84ea29d7.966748"
+ "e5d11bee.6d3f3"
]
]
},
{
- "id": "84ea29d7.966748",
+ "id": "e5d11bee.6d3f3",
"type": "for",
"name": "for each topology",
"xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",
"comments": "",
"outputs": 1,
- "x": 1916,
- "y": 500,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1989,
+ "y": 529,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "23afbd29.52671a"
+ "f9dbd640.006d18"
]
]
},
{
- "id": "23afbd29.52671a",
+ "id": "f9dbd640.006d18",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2083,
- "y": 501,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2156,
+ "y": 530,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "be671cf9.1f4a38",
- "2c9a9e44.4d4e72"
+ "c60ea7f.3bd2058",
+ "b4f9b29d.c49458"
]
]
},
{
- "id": "be671cf9.1f4a38",
+ "id": "c60ea7f.3bd2058",
"type": "set",
"name": "set topology",
"xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",
"comments": "",
- "x": 2242,
- "y": 502,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2315,
+ "y": 531,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "2c9a9e44.4d4e72",
+ "id": "b4f9b29d.c49458",
"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": 2233,
- "y": 568,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2306,
+ "y": 597,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "ca97ad3.a311cd",
+ "id": "e6efb547.0bd5a8",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 1080.677324295044,
- "y": 583.8993349075317,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1153.677324295044,
+ "y": 612.8993349075317,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "c2e22ff3.03e78"
+ "e1657417.9cefe8"
]
]
},
{
- "id": "c2e22ff3.03e78",
+ "id": "e1657417.9cefe8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1242.6773872375488,
- "y": 581.899335861206,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1315.6773872375488,
+ "y": 610.899335861206,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "cdc360bb.4f8c6"
+ "1f0bde0a.fa2cb2"
]
]
},
{
- "id": "cdc360bb.4f8c6",
+ "id": "1f0bde0a.fa2cb2",
"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": 1419.6771354675293,
- "y": 573.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1492.6771354675293,
+ "y": 602.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "150d6764.a614e9",
- "1e259e4f.0e9d9a"
+ "7133cad2.99b11c",
+ "c3d837c.d0ca2c8"
]
]
},
{
- "id": "150d6764.a614e9",
+ "id": "7133cad2.99b11c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1572.6771354675293,
- "y": 570.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1645.6771354675293,
+ "y": 599.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "a457e272.01c1b8"
+ "eab907ff.882ae8"
]
]
},
{
- "id": "a457e272.01c1b8",
+ "id": "eab907ff.882ae8",
"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": 1747.6771354675293,
- "y": 569.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1820.6771354675293,
+ "y": 598.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "1e259e4f.0e9d9a",
+ "id": "c3d837c.d0ca2c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1578.6771354675293,
- "y": 643.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1651.6771354675293,
+ "y": 672.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "c148d343.01eac8"
+ "224d6e37.21354a"
]
]
},
{
- "id": "c148d343.01eac8",
+ "id": "224d6e37.21354a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1762.6771354675293,
- "y": 645.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1835.6771354675293,
+ "y": 674.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "f964e642.cb1ae"
+ "622b9c10.ebdeac"
]
]
},
{
- "id": "f964e642.cb1ae",
+ "id": "622b9c10.ebdeac",
"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": 2041.677001953125,
- "y": 643.8992919921875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 2114.677001953125,
+ "y": 672.8992919921875,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "dc10cae0.74e44",
+ "id": "67540de7.5dd14c",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 212.566650390625,
- "y": 812.5666809082031,
- "z": "7bb5d2cb.8cfacc",
+ "x": 285.566650390625,
+ "y": 841.5666809082031,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "447a364c.b91ea8",
- "f7872c45.99a4e",
- "c8e48bf6.778e98"
+ "ed11f93e.13815",
+ "b9986099.553ab8",
+ "eeccf78a.d71e3"
]
]
},
{
- "id": "447a364c.b91ea8",
+ "id": "ed11f93e.13815",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 391.857177734375,
- "y": 729.9285888671875,
- "z": "7bb5d2cb.8cfacc",
+ "x": 464.857177734375,
+ "y": 758.9285888671875,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "a07fdc63.5a34d8"
+ "40980c29.103654"
]
]
},
{
- "id": "f7872c45.99a4e",
+ "id": "b9986099.553ab8",
"type": "other",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 400.6070556640625,
- "y": 980.6428527832031,
- "z": "7bb5d2cb.8cfacc",
+ "x": 473.6070556640625,
+ "y": 1009.6428527832031,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "6d4308e1.31c5f"
+ "b9906adb.aedb"
]
]
},
{
- "id": "a07fdc63.5a34d8",
+ "id": "40980c29.103654",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 545.607177734375,
- "y": 726.7143249511719,
- "z": "7bb5d2cb.8cfacc",
+ "x": 618.607177734375,
+ "y": 755.7143249511719,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "cfc4d202.c64d78",
- "366bec81.83eddc"
+ "f4759d50.5acb",
+ "6300b23d.858844"
]
]
},
{
- "id": "6d4308e1.31c5f",
+ "id": "b9906adb.aedb",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 550,
- "y": 980.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 623,
+ "y": 1009.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "6a48df29.ca491",
- "62ccb800.ba59c8"
+ "ee72aef0.96b35",
+ "80047dba.a18518"
]
]
},
{
- "id": "c8e48bf6.778e98",
+ "id": "eeccf78a.d71e3",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 503,
- "y": 1144.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 576,
+ "y": 1173.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "ab761f62.a873d"
+ "a7ccb229.5cc45"
]
]
},
{
- "id": "ab761f62.a873d",
+ "id": "a7ccb229.5cc45",
"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": 665,
- "y": 1183.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 738,
+ "y": 1212.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "cfc4d202.c64d78",
+ "id": "f4759d50.5acb",
"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": 777.5,
- "y": 774.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 850.5,
+ "y": 803.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "69e5b135.13096",
- "70bf128f.7ac3cc",
- "136d8709.29f489"
+ "418351d.550fdb",
+ "5d9de12a.c40778",
+ "4f52ba75.31f414"
]
]
},
{
- "id": "366bec81.83eddc",
+ "id": "6300b23d.858844",
"type": "set",
"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": 737.5,
- "y": 708.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 810.5,
+ "y": 737.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "69e5b135.13096",
+ "id": "418351d.550fdb",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1016.5,
- "y": 794.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1089.5,
+ "y": 823.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "f7324afe.a3cb98"
+ "7d4b021f.b58864"
]
]
},
{
- "id": "f7324afe.a3cb98",
+ "id": "7d4b021f.b58864",
"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": 1185.5,
- "y": 801.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1258.5,
+ "y": 830.5,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "6a48df29.ca491",
+ "id": "ee72aef0.96b35",
"type": "set",
"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": 714.5,
- "y": 936.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 787.5,
+ "y": 965.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "62ccb800.ba59c8",
+ "id": "80047dba.a18518",
"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": 727.5,
- "y": 1025.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 800.5,
+ "y": 1054.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "4cc181ad.c4d1f8",
- "85870c46.3089f",
- "d2032fdb.614ce8"
+ "193e8ffa.2d1e68",
+ "392a4087.7340c",
+ "3b51b50f.fabfaa"
]
]
},
{
- "id": "4cc181ad.c4d1f8",
+ "id": "193e8ffa.2d1e68",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 952.5,
- "y": 1040.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1025.5,
+ "y": 1069.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "ebe8f601.eebec8"
+ "7c3655cf.c7356c"
]
]
},
{
- "id": "ebe8f601.eebec8",
+ "id": "7c3655cf.c7356c",
"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": 1123.5,
- "y": 1041.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1196.5,
+ "y": 1070.5,
+ "z": "fcc91756.c8d038",
"wires": [
[]
]
},
{
- "id": "70bf128f.7ac3cc",
+ "id": "5d9de12a.c40778",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1002.5,
- "y": 873.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1075.5,
+ "y": 902.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "dd76e326.6dd408"
+ "44b36cb9.4f203c"
]
]
},
{
- "id": "85870c46.3089f",
+ "id": "392a4087.7340c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 933.5,
- "y": 1113.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1006.5,
+ "y": 1142.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "b35680d0.668ed"
+ "568e56df.183be8"
]
]
},
{
- "id": "dd76e326.6dd408",
+ "id": "44b36cb9.4f203c",
"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": 1163.5,
- "y": 878.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1236.5,
+ "y": 907.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "136d8709.29f489",
+ "id": "4f52ba75.31f414",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 993.5,
- "y": 933.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1066.5,
+ "y": 962.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "84fa6086.1cdbd"
+ "67091014.c5cb48"
]
]
},
{
- "id": "84fa6086.1cdbd",
+ "id": "67091014.c5cb48",
"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": 1142.5,
- "y": 935.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1215.5,
+ "y": 964.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "b35680d0.668ed",
+ "id": "568e56df.183be8",
"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": 1081.5,
- "y": 1114.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1154.5,
+ "y": 1143.5,
+ "z": "fcc91756.c8d038",
"wires": []
},
{
- "id": "d2032fdb.614ce8",
+ "id": "3b51b50f.fabfaa",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 933.5,
- "y": 1157.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1006.5,
+ "y": 1186.5,
+ "z": "fcc91756.c8d038",
"wires": [
[
- "a6db07ae.aaca38"
+ "74792395.d77524"
]
]
},
{
- "id": "a6db07ae.aaca38",
+ "id": "74792395.d77524",
"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": 1098.5,
- "y": 1154.5,
- "z": "7bb5d2cb.8cfacc",
+ "x": 1171.5,
+ "y": 1183.5,
+ "z": "fcc91756.c8d038",
"wires": []
+ },
+ {
+ "id": "f7bc5da7.da31b",
+ "type": "switchNode",
+ "name": "switch network_length",
+ "xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2682,
+ "y": 335,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "aa4a8663.38bb68"
+ ]
+ ]
+ },
+ {
+ "id": "aa4a8663.38bb68",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2864,
+ "y": 336,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "efdac693.289728"
+ ]
+ ]
+ },
+ {
+ "id": "6a7f62ea.d32524",
+ "type": "for",
+ "name": "for each Network",
+ "xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3237,
+ "y": 329,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "de962ed4.8e2558"
+ ]
+ ]
+ },
+ {
+ "id": "de962ed4.8e2558",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 3455,
+ "y": 326,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "d31ddaea.690348",
+ "bbbca45f.8e2228",
+ "acccc325.a38838"
+ ]
+ ]
+ },
+ {
+ "id": "73e20b64.41827c",
+ "type": "call",
+ "name": "call update-tp-ttp-relationship",
+ "xml": "<call module='DataChange' rpc='update-tp-ttp-relationship' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3270,
+ "y": 389,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "efdac693.289728",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3034,
+ "y": 332,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "6a7f62ea.d32524",
+ "73e20b64.41827c"
+ ]
+ ]
+ },
+ {
+ "id": "acccc325.a38838",
+ "type": "set",
+ "name": "unset network",
+ "xml": "<set>\n<parameter name='network.' value='' />\n",
+ "comments": "",
+ "x": 3614,
+ "y": 266,
+ "z": "fcc91756.c8d038",
+ "wires": []
+ },
+ {
+ "id": "d31ddaea.690348",
+ "type": "set",
+ "name": "set network",
+ "xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 3608,
+ "y": 314,
+ "z": "fcc91756.c8d038",
+ "wires": []
+ },
+ {
+ "id": "bbbca45f.8e2228",
+ "type": "switchNode",
+ "name": "switch network-types with topologyId",
+ "xml": "<switch test='`$network.te-topology-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3685,
+ "y": 361,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "e4f22bce.03ea18",
+ "2f6da0f9.e964d8"
+ ]
+ ]
+ },
+ {
+ "id": "e4f22bce.03ea18",
+ "type": "outcome",
+ "name": "11",
+ "xml": "<outcome value='11'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3911,
+ "y": 330,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "a545d36e.f0b618"
+ ]
+ ]
+ },
+ {
+ "id": "2f6da0f9.e964d8",
+ "type": "outcome",
+ "name": "33",
+ "xml": "<outcome value='33'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3911,
+ "y": 391,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "d2ccc5d0.bc949"
+ ]
+ ]
+ },
+ {
+ "id": "dcbdf3ee.469d4",
+ "type": "set",
+ "name": "set network-otn",
+ "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4206,
+ "y": 330,
+ "z": "fcc91756.c8d038",
+ "wires": []
+ },
+ {
+ "id": "6a7bd0f0.92b65",
+ "type": "set",
+ "name": "set network eth",
+ "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4206,
+ "y": 391,
+ "z": "fcc91756.c8d038",
+ "wires": []
+ },
+ {
+ "id": "a545d36e.f0b618",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4045,
+ "y": 330,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "dcbdf3ee.469d4"
+ ]
+ ]
+ },
+ {
+ "id": "d2ccc5d0.bc949",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4046,
+ "y": 391,
+ "z": "fcc91756.c8d038",
+ "wires": [
+ [
+ "6a7bd0f0.92b65"
+ ]
+ ]
}
] \ No newline at end of file