diff options
Diffstat (limited to 'platform-logic/datachange')
4 files changed, 1952 insertions, 893 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 ef7fa0f2..8890e247 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,243 +1,243 @@ [
{
- "id": "66d82769.1d01a8",
+ "id": "eb42a6e7.ddd6e8",
"type": "other",
"name": "update",
"xml": "<outcome value='Update'>\n",
"comments": "",
"outputs": 1,
- "x": 739,
- "y": 271,
- "z": "dc90116d.356cd8",
+ "x": 724.566650390625,
+ "y": 294.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "ae6185fd.f9c2d8"
+ "425a951d.825abc"
]
]
},
{
- "id": "3efeb782.bfc1",
+ "id": "ce31ec0e.11664",
"type": "other",
"name": "delete",
"xml": "<outcome value='Delete'>\n",
"comments": "",
"outputs": 1,
- "x": 739,
- "y": 351,
- "z": "dc90116d.356cd8",
+ "x": 724.566650390625,
+ "y": 374.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "a1ab5058.aebdf"
+ "6f6496df.ac4628"
]
]
},
{
- "id": "a1ab5058.aebdf",
+ "id": "6f6496df.ac4628",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 880.5,
- "y": 351,
- "z": "dc90116d.356cd8",
+ "x": 866.066650390625,
+ "y": 374.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "fb3f26da.0ae3f8"
+ "ec84ec4.f54909"
]
]
},
{
- "id": "22ce6fbc.3616d",
+ "id": "bb1faf36.38bc68",
"type": "switchNode",
"name": "switch aai-event-trigger",
"xml": "<switch test=\"`$data-change-notification-input.aai-event-trigger`\">\n",
"comments": "",
"outputs": 1,
- "x": 569.5,
- "y": 311,
- "z": "dc90116d.356cd8",
+ "x": 555.066650390625,
+ "y": 334.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "66d82769.1d01a8",
- "3efeb782.bfc1"
+ "eb42a6e7.ddd6e8",
+ "ce31ec0e.11664"
]
]
},
{
- "id": "8b8fad8f.084508",
+ "id": "35c2f29a.1be256",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1266.5,
- "y": 182,
- "z": "dc90116d.356cd8",
+ "x": 1252.066650390625,
+ "y": 205.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "cb379294.cf5aa8",
- "43fea2be.adabc4",
- "4f03377f.b0c4c8",
- "590ac352.e76a14",
- "80b5f8f0.c85808"
+ "b3fe6e9c.5e518",
+ "1157e25a.b3aaf6",
+ "8ed327ef.0a6418",
+ "a6f5f559.0834d8",
+ "a2c3bd53.7d688"
]
]
},
{
- "id": "43fea2be.adabc4",
+ "id": "1157e25a.b3aaf6",
"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\"/>",
+ "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\"/>-->\n\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=\"disableHostVerification\" value=\"true\"/>\n<parameter name=\"ssl\" value=\"false\"/>",
"comments": "",
"outputs": 1,
- "x": 1539.5001983642578,
- "y": 103.00000953674316,
- "z": "dc90116d.356cd8",
+ "x": 1525.0668487548828,
+ "y": 126.56665992736816,
+ "z": "100033e5.240444",
"wires": [
[
- "1315a46.1a747dc",
- "5b12ff34.641e88"
+ "a5029911.344a8",
+ "b637cac7.4cfc78"
]
]
},
{
- "id": "1315a46.1a747dc",
+ "id": "a5029911.344a8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1829.000244140625,
- "y": 95,
- "z": "dc90116d.356cd8",
+ "x": 1814.56689453125,
+ "y": 118.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "396d79e7.1bf7ce"
+ "96da7706.24308"
]
]
},
{
- "id": "5b12ff34.641e88",
+ "id": "b637cac7.4cfc78",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1825.000244140625,
- "y": 135,
- "z": "dc90116d.356cd8",
+ "x": 1810.56689453125,
+ "y": 158.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "20884b0c.6135fc"
+ "f16e693e.95fe88"
]
]
},
{
- "id": "396d79e7.1bf7ce",
+ "id": "96da7706.24308",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1979.500244140625,
- "y": 95,
- "z": "dc90116d.356cd8",
+ "x": 1965.06689453125,
+ "y": 118.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "794a42a5.7ff634",
+ "id": "4a69e7b4.ce88c8",
"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`\" />",
+ "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=\"disableHostVerification\" value=\"true\"/>\n<parameter name=\"ssl\" value=\"false\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n",
"comments": "",
"outputs": 1,
- "x": 2046.500244140625,
- "y": 215,
- "z": "dc90116d.356cd8",
+ "x": 2032.06689453125,
+ "y": 238.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "38377ff8.a67d2",
- "b0153eb4.a0abb"
+ "35ba5c8b.05feac",
+ "19246ee.1e8b391"
]
]
},
{
- "id": "38377ff8.a67d2",
+ "id": "35ba5c8b.05feac",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2289.000244140625,
- "y": 235,
- "z": "dc90116d.356cd8",
+ "x": 2274.56689453125,
+ "y": 258.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "1c21d3a8.a908bc"
+ "cde549c3.0cb9c"
]
]
},
{
- "id": "1c21d3a8.a908bc",
+ "id": "cde549c3.0cb9c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2446.500244140625,
- "y": 235,
- "z": "dc90116d.356cd8",
+ "x": 2432.06689453125,
+ "y": 258.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "6ecea195.591998",
- "10fd3c36.34f02c"
+ "f41e9aee.0ea7e",
+ "5267f0eb.f5f548"
]
]
},
{
- "id": "e2c46cc9.208aa",
+ "id": "f1edc7ed.c7d62",
"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": 2423.000244140625,
- "y": 135,
- "z": "dc90116d.356cd8",
+ "x": 2408.56689453125,
+ "y": 158.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "b0153eb4.a0abb",
+ "id": "19246ee.1e8b391",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2285.000244140625,
- "y": 135,
- "z": "dc90116d.356cd8",
+ "x": 2270.56689453125,
+ "y": 158.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "e2c46cc9.208aa"
+ "f1edc7ed.c7d62"
]
]
},
{
- "id": "8bce8e2f.0d81e8",
+ "id": "17d8530e.3b57a5",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 192,
- "y": 46,
- "z": "dc90116d.356cd8",
+ "x": 177.566650390625,
+ "y": 69.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "75e87f6c.a6d9e"
+ "ae2448d5.6f3d8"
]
]
},
{
- "id": "75e87f6c.a6d9e",
+ "id": "ae2448d5.6f3d8",
"type": "service-logic",
"name": "DataChange ${project.version}",
"module": "DataChange",
@@ -245,1255 +245,1645 @@ "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": 205,
- "y": 106,
- "z": "dc90116d.356cd8",
+ "x": 190.566650390625,
+ "y": 129.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "11c7e938.bc92c7"
+ "e890e49.2521818"
]
]
},
{
- "id": "11c7e938.bc92c7",
+ "id": "e890e49.2521818",
"type": "method",
"name": "method esr-thirdparty-sdnc-discovery",
"xml": "<method rpc='esr-thirdparty-sdnc-discovery' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 225,
- "y": 186,
- "z": "dc90116d.356cd8",
+ "x": 210.566650390625,
+ "y": 209.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "e3374842.e3f818"
+ "bd7f0c8.00dac7"
]
]
},
{
- "id": "e3374842.e3f818",
+ "id": "bd7f0c8.00dac7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 472.5,
- "y": 186,
- "z": "dc90116d.356cd8",
+ "x": 458.066650390625,
+ "y": 209.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "f09b5855.16ea9"
+ "a38e4a00.4bca48"
]
]
},
{
- "id": "6ecea195.591998",
+ "id": "f41e9aee.0ea7e",
"type": "for",
"name": "for each Network",
"xml": "<for index='nidx' start='0' end='`$topology.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 2665.500244140625,
- "y": 164,
- "z": "dc90116d.356cd8",
+ "x": 2651.06689453125,
+ "y": 187.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "6ca8b7e7.59b19"
+ "cbb7226c.c5fa18"
]
]
},
{
- "id": "6ca8b7e7.59b19",
+ "id": "cbb7226c.c5fa18",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2814.000244140625,
- "y": 164,
- "z": "dc90116d.356cd8",
+ "x": 2799.56689453125,
+ "y": 187.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "43a0eef1.e5c518",
- "e94a8c36.a2247",
- "92aeb11c.309eb8"
+ "5d8258e6.2a87b8",
+ "dac0198d.9ab848",
+ "b75178b1.485098"
]
]
},
{
- "id": "43a0eef1.e5c518",
+ "id": "5d8258e6.2a87b8",
"type": "call",
"name": "call update-network-to-aai",
"xml": "<call module='DataChange' rpc='update-network-to-aai' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2993.000244140625,
- "y": 184,
- "z": "dc90116d.356cd8",
+ "x": 2978.56689453125,
+ "y": 207.566650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "e94a8c36.a2247",
+ "id": "dac0198d.9ab848",
"type": "set",
"name": "set network",
"xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$nidx].`' />\n",
"comments": "",
- "x": 2946.000244140625,
- "y": 144,
- "z": "dc90116d.356cd8",
+ "x": 2931.56689453125,
+ "y": 167.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "20884b0c.6135fc",
+ "id": "f16e693e.95fe88",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1945.000244140625,
- "y": 135,
- "z": "dc90116d.356cd8",
+ "x": 1930.56689453125,
+ "y": 158.566650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "62ce2665.d3bbc",
+ "id": "2c1750cc.58c18",
"type": "comment",
"name": "Do Nothing",
"info": "",
"comments": "",
- "x": 2115.000244140625,
- "y": 175,
- "z": "dc90116d.356cd8",
+ "x": 2100.56689453125,
+ "y": 198.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "c35780c2.b517a8",
+ "id": "1a4d7f8b.4e1088",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 992,
- "y": 271,
- "z": "dc90116d.356cd8",
+ "x": 977.566650390625,
+ "y": 294.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "4be7af0d.179fe8",
- "9d611449.5dcd4",
- "88a47a49.6947f",
- "c116943.cd1a8e8"
+ "eac2dc2c.513bb8",
+ "388dbaf2.0f4e5e",
+ "7b1929a1.74662",
+ "fc298bd6.9b18b8"
]
]
},
{
- "id": "ae6185fd.f9c2d8",
+ "id": "425a951d.825abc",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 859,
- "y": 271,
- "z": "dc90116d.356cd8",
+ "x": 844.566650390625,
+ "y": 294.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "c35780c2.b517a8"
+ "1a4d7f8b.4e1088"
]
]
},
{
- "id": "4be7af0d.179fe8",
+ "id": "eac2dc2c.513bb8",
"type": "other",
"name": "WAN",
"xml": "<outcome value='WAN'>\n",
"comments": "",
"outputs": 1,
- "x": 1105,
- "y": 182,
- "z": "dc90116d.356cd8",
+ "x": 1090.566650390625,
+ "y": 205.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "8b8fad8f.084508"
+ "35c2f29a.1be256"
]
]
},
{
- "id": "9d611449.5dcd4",
+ "id": "388dbaf2.0f4e5e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1134.5,
- "y": 643.5001220703125,
- "z": "dc90116d.356cd8",
+ "x": 1120.066650390625,
+ "y": 667.0667724609375,
+ "z": "100033e5.240444",
"wires": [
[
- "8a5453eb.ab4e28"
+ "6587fa82.7b26bc"
]
]
},
{
- "id": "8a5453eb.ab4e28",
+ "id": "6587fa82.7b26bc",
"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": 1320.75,
- "y": 669.5001220703125,
- "z": "dc90116d.356cd8",
+ "x": 1306.316650390625,
+ "y": 693.0667724609375,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "cb379294.cf5aa8",
+ "id": "b3fe6e9c.5e518",
"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": 1486.0001983642578,
- "y": 63.000009536743164,
- "z": "dc90116d.356cd8",
+ "x": 1471.5668487548828,
+ "y": 86.56665992736816,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "4f03377f.b0c4c8",
+ "id": "8ed327ef.0a6418",
"type": "switchNode",
"name": "switch prop.sdncRestApi.token_id",
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1532.5001983642578,
- "y": 183.00000953674316,
- "z": "dc90116d.356cd8",
+ "x": 1518.0668487548828,
+ "y": 206.56665992736816,
+ "z": "100033e5.240444",
"wires": [
[
- "e2260a6c.d9a708",
- "536e3c2c.29577c"
+ "30d1af5b.3bdca8",
+ "adbf1377.a7f068"
]
]
},
{
- "id": "e2260a6c.d9a708",
+ "id": "30d1af5b.3bdca8",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1825.000244140625,
- "y": 175,
- "z": "dc90116d.356cd8",
+ "x": 1810.56689453125,
+ "y": 198.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "9626e71e.38aeb8"
+ "adc47e8.4943f8"
]
]
},
{
- "id": "536e3c2c.29577c",
+ "id": "adbf1377.a7f068",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1825.000244140625,
- "y": 215,
- "z": "dc90116d.356cd8",
+ "x": 1810.56689453125,
+ "y": 238.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "794a42a5.7ff634"
+ "4a69e7b4.ce88c8"
]
]
},
{
- "id": "9626e71e.38aeb8",
+ "id": "adc47e8.4943f8",
"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",
+ "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=\"disableHostVerification\" value=\"true\"/>\n<parameter name=\"ssl\" value=\"false\"/>\n",
"comments": "",
"outputs": 1,
- "x": 2046.500244140625,
- "y": 175,
- "z": "dc90116d.356cd8",
+ "x": 2032.06689453125,
+ "y": 198.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "b0153eb4.a0abb",
- "38377ff8.a67d2"
+ "19246ee.1e8b391",
+ "35ba5c8b.05feac"
]
]
},
{
- "id": "80b5f8f0.c85808",
+ "id": "a2c3bd53.7d688",
"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": 1529.0001983642578,
- "y": 323.00000953674316,
- "z": "dc90116d.356cd8",
+ "x": 1514.5668487548828,
+ "y": 346.56665992736816,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "590ac352.e76a14",
+ "id": "a6f5f559.0834d8",
"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": 1489.0001983642578,
- "y": 283.00000953674316,
- "z": "dc90116d.356cd8",
+ "x": 1474.5668487548828,
+ "y": 306.56665992736816,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "50fcae42.2c2a8",
+ "id": "9f49f9b0.1dbf6",
"type": "comment",
"name": "Notification subscription",
"info": "",
"comments": "",
- "x": 1494.000343322754,
- "y": 240.00000858306885,
- "z": "dc90116d.356cd8",
+ "x": 1479.566993713379,
+ "y": 263.56665897369385,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "f09b5855.16ea9",
+ "id": "a38e4a00.4bca48",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$prop.sdncRestApi.vendor == 'ZTE'`\">\n",
"comments": "",
"outputs": 1,
- "x": 179,
- "y": 311,
- "z": "dc90116d.356cd8",
+ "x": 164.566650390625,
+ "y": 334.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "bf78bf6d.9dbf38",
- "2804a0b9.d69f28"
+ "6d27fe21.3d4388",
+ "cb2a82bb.4830f8"
]
]
},
{
- "id": "bf78bf6d.9dbf38",
+ "id": "6d27fe21.3d4388",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 366,
- "y": 311,
- "z": "dc90116d.356cd8",
+ "x": 351.566650390625,
+ "y": 334.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "22ce6fbc.3616d"
+ "bb1faf36.38bc68"
]
]
},
{
- "id": "2804a0b9.d69f28",
+ "id": "cb2a82bb.4830f8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 140.00003051757812,
- "y": 1067.75,
- "z": "dc90116d.356cd8",
+ "x": 125.56668090820312,
+ "y": 1091.316650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "53ab0ac2.38d284"
+ "6cc1d054.8d616"
]
]
},
{
- "id": "53ab0ac2.38d284",
+ "id": "6cc1d054.8d616",
"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": 371.75,
- "y": 1084.5000610351562,
- "z": "dc90116d.356cd8",
+ "x": 357.316650390625,
+ "y": 1108.0667114257812,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "88a47a49.6947f",
+ "id": "7b1929a1.74662",
"type": "other",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 1183,
- "y": 416,
- "z": "dc90116d.356cd8",
+ "x": 1168.566650390625,
+ "y": 439.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "d5710d01.9be8f8"
+ "dc6abd95.e281e8"
]
]
},
{
- "id": "d5710d01.9be8f8",
+ "id": "dc6abd95.e281e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1346,
- "y": 415,
- "z": "dc90116d.356cd8",
+ "x": 1331.566650390625,
+ "y": 438.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "a039ff23.d54198"
+ "4656eb90.a3df74"
]
]
},
{
- "id": "a039ff23.d54198",
+ "id": "4656eb90.a3df74",
"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": 1507,
- "y": 414,
- "z": "dc90116d.356cd8",
+ "x": 1492.566650390625,
+ "y": 437.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "44a0211d.fd2598",
- "493dc7eb.c52f08"
+ "97dce644.e5cf28",
+ "15def9ca.daa76e"
]
]
},
{
- "id": "493dc7eb.c52f08",
+ "id": "15def9ca.daa76e",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1649,
- "y": 490,
- "z": "dc90116d.356cd8",
+ "x": 1634.566650390625,
+ "y": 513.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "2d7698ce.b0a7a"
+ "6a4df950.67c0a"
]
]
},
{
- "id": "44a0211d.fd2598",
+ "id": "97dce644.e5cf28",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1683,
- "y": 411,
- "z": "dc90116d.356cd8",
+ "x": 1668.566650390625,
+ "y": 434.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "fe95a25e.cdaa98"
+ "602235a7.ceca1c"
]
]
},
{
- "id": "fe95a25e.cdaa98",
+ "id": "602235a7.ceca1c",
"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": 1853,
- "y": 410,
- "z": "dc90116d.356cd8",
+ "x": 1838.566650390625,
+ "y": 433.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "2d7698ce.b0a7a",
+ "id": "6a4df950.67c0a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1810,
- "y": 489,
- "z": "dc90116d.356cd8",
+ "x": 1795.566650390625,
+ "y": 512.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "1dc691cb.358196"
+ "e642f50e.f13828"
]
]
},
{
- "id": "1dc691cb.358196",
+ "id": "e642f50e.f13828",
"type": "for",
"name": "for each topology",
"xml": "<for index='tidx' start='0' end=\"`$topologies.topology_length`\" >\n",
"comments": "",
"outputs": 1,
- "x": 1989,
- "y": 489,
- "z": "dc90116d.356cd8",
+ "x": 1974.566650390625,
+ "y": 512.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "48d82ee8.688dd"
+ "949ad6ee.883e28"
]
]
},
{
- "id": "48d82ee8.688dd",
+ "id": "949ad6ee.883e28",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2156,
- "y": 490,
- "z": "dc90116d.356cd8",
+ "x": 2141.566650390625,
+ "y": 513.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "d5ce9061.b89e98",
- "b1436387.1231d8"
+ "2583814e.697dce",
+ "b07e0fb.d8d5d7"
]
]
},
{
- "id": "d5ce9061.b89e98",
+ "id": "2583814e.697dce",
"type": "set",
"name": "set topology",
"xml": "<set>\n<parameter name='topology.' value='`$topologies.topology[$tidx].`' />\n",
"comments": "",
- "x": 2315,
- "y": 491,
- "z": "dc90116d.356cd8",
+ "x": 2300.566650390625,
+ "y": 514.566650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "b1436387.1231d8",
+ "id": "b07e0fb.d8d5d7",
"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": 2306,
- "y": 557,
- "z": "dc90116d.356cd8",
+ "x": 2291.566650390625,
+ "y": 580.566650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "c116943.cd1a8e8",
+ "id": "fc298bd6.9b18b8",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 1153.677324295044,
- "y": 572.8993349075317,
- "z": "dc90116d.356cd8",
+ "x": 1139.243974685669,
+ "y": 596.4659852981567,
+ "z": "100033e5.240444",
"wires": [
[
- "9d338868.302c1"
+ "6f0e921e.27c1d4"
]
]
},
{
- "id": "9d338868.302c1",
+ "id": "6f0e921e.27c1d4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1315.6773872375488,
- "y": 570.899335861206,
- "z": "dc90116d.356cd8",
+ "x": 1301.2440376281738,
+ "y": 594.465986251831,
+ "z": "100033e5.240444",
"wires": [
[
- "b0b285cb.6ebea"
+ "68ad84a0.31b1ec"
]
]
},
{
- "id": "b0b285cb.6ebea",
+ "id": "68ad84a0.31b1ec",
"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": 1492.6771354675293,
- "y": 562.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 1478.2437858581543,
+ "y": 586.4659423828125,
+ "z": "100033e5.240444",
"wires": [
[
- "8054b37a.3900a8",
- "37099c40.484064"
+ "aa4a16bd.b39f38",
+ "6833c974.cb0df"
]
]
},
{
- "id": "8054b37a.3900a8",
+ "id": "aa4a16bd.b39f38",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1645.6771354675293,
- "y": 559.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 1631.2437858581543,
+ "y": 583.4659423828125,
+ "z": "100033e5.240444",
"wires": [
[
- "ee854a40.fe1848"
+ "af2dd05e.694dd"
]
]
},
{
- "id": "ee854a40.fe1848",
+ "id": "af2dd05e.694dd",
"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": 1820.6771354675293,
- "y": 558.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 1806.2437858581543,
+ "y": 582.4659423828125,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "37099c40.484064",
+ "id": "6833c974.cb0df",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1651.6771354675293,
- "y": 632.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 1637.2437858581543,
+ "y": 656.4659423828125,
+ "z": "100033e5.240444",
"wires": [
[
- "6b6e7027.f016d"
+ "77660684.39b22"
]
]
},
{
- "id": "6b6e7027.f016d",
+ "id": "77660684.39b22",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1835.6771354675293,
- "y": 634.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 1821.2437858581543,
+ "y": 658.4659423828125,
+ "z": "100033e5.240444",
"wires": [
[
- "5444f8a5.36fed"
+ "46a5e22a.e759ec"
]
]
},
{
- "id": "5444f8a5.36fed",
+ "id": "46a5e22a.e759ec",
"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": 2114.677001953125,
- "y": 632.8992919921875,
- "z": "dc90116d.356cd8",
+ "x": 2100.24365234375,
+ "y": 656.4659423828125,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "fb3f26da.0ae3f8",
+ "id": "ec84ec4.f54909",
"type": "switchNode",
"name": "switch type",
"xml": "<switch test=\"`$prop.sdncRestApi.type`\">\n",
"comments": "",
"outputs": 1,
- "x": 285.566650390625,
- "y": 801.5666809082031,
- "z": "dc90116d.356cd8",
+ "x": 271.13330078125,
+ "y": 825.1333312988281,
+ "z": "100033e5.240444",
"wires": [
[
- "57cb25c2.9e9be4",
- "30ce121c.bfe97e",
- "d3232a5d.18a288"
+ "dcb0c746.be85c",
+ "344e819d.e9fbfe",
+ "7c1ca888.e14b78"
]
]
},
{
- "id": "57cb25c2.9e9be4",
+ "id": "dcb0c746.be85c",
"type": "outcome",
"name": "MSA",
"xml": "<outcome value='MSA'>\n",
"comments": "",
"outputs": 1,
- "x": 464.857177734375,
- "y": 718.9285888671875,
- "z": "dc90116d.356cd8",
+ "x": 450.423828125,
+ "y": 742.4952392578125,
+ "z": "100033e5.240444",
"wires": [
[
- "7a4cfe82.92d42"
+ "fe312a4c.869b08"
]
]
},
{
- "id": "30ce121c.bfe97e",
+ "id": "344e819d.e9fbfe",
"type": "other",
"name": "TAPI",
"xml": "<outcome value='TAPI'>\n",
"comments": "",
"outputs": 1,
- "x": 473.6070556640625,
- "y": 969.6428527832031,
- "z": "dc90116d.356cd8",
+ "x": 459.1737060546875,
+ "y": 993.2095031738281,
+ "z": "100033e5.240444",
"wires": [
[
- "d394227.d0cf06"
+ "939f4eff.98948"
]
]
},
{
- "id": "7a4cfe82.92d42",
+ "id": "fe312a4c.869b08",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 618.607177734375,
- "y": 715.7143249511719,
- "z": "dc90116d.356cd8",
+ "x": 604.173828125,
+ "y": 739.2809753417969,
+ "z": "100033e5.240444",
"wires": [
[
- "b595413f.cfe8e8",
- "8c8fae68.b08168"
+ "b6b263f3.b9fe38",
+ "3b06d733.c1279"
]
]
},
{
- "id": "d394227.d0cf06",
+ "id": "939f4eff.98948",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 623,
- "y": 969.5,
- "z": "dc90116d.356cd8",
+ "x": 608.566650390625,
+ "y": 993.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "6724f8a4.5cbe3",
- "c711ca11.6e628"
+ "271f34c5.fab814",
+ "905585ff.6a128"
]
]
},
{
- "id": "d3232a5d.18a288",
+ "id": "7c1ca888.e14b78",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 576,
- "y": 1133.5,
- "z": "dc90116d.356cd8",
+ "x": 561.566650390625,
+ "y": 1157.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "ba5f29b3.a93ac8"
+ "6947b80c.413c68"
]
]
},
{
- "id": "ba5f29b3.a93ac8",
+ "id": "6947b80c.413c68",
"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": 738,
- "y": 1172.5,
- "z": "dc90116d.356cd8",
+ "x": 723.566650390625,
+ "y": 1196.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "b595413f.cfe8e8",
+ "id": "b6b263f3.b9fe38",
"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": 850.5,
- "y": 763.5,
- "z": "dc90116d.356cd8",
+ "x": 836.066650390625,
+ "y": 787.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "74d7baba.1daacc",
- "582fc831.36e3c",
- "b559176c.28e268"
+ "7a3da34b.513514",
+ "553772e.9e98c8c",
+ "b885de93.3b5b9"
]
]
},
{
- "id": "8c8fae68.b08168",
+ "id": "3b06d733.c1279",
"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": 810.5,
- "y": 697.5,
- "z": "dc90116d.356cd8",
+ "x": 796.066650390625,
+ "y": 721.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "74d7baba.1daacc",
+ "id": "7a3da34b.513514",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1089.5,
- "y": 783.5,
- "z": "dc90116d.356cd8",
+ "x": 1075.066650390625,
+ "y": 807.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "c192dc38.daa8b8"
+ "971049fa.30ea4"
]
]
},
{
- "id": "c192dc38.daa8b8",
+ "id": "971049fa.30ea4",
"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": 1258.5,
- "y": 790.5,
- "z": "dc90116d.356cd8",
+ "x": 1244.066650390625,
+ "y": 814.066650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "6724f8a4.5cbe3",
+ "id": "271f34c5.fab814",
"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": 787.5,
- "y": 925.5,
- "z": "dc90116d.356cd8",
+ "x": 773.066650390625,
+ "y": 949.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "c711ca11.6e628",
+ "id": "905585ff.6a128",
"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": 800.5,
- "y": 1014.5,
- "z": "dc90116d.356cd8",
+ "x": 786.066650390625,
+ "y": 1038.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "9c302232.f8804",
- "b1ece16a.0f3c9",
- "3da8c72e.feda78"
+ "bd87421a.19651",
+ "797c1fd2.cac728",
+ "215fd10b.0c27b6"
]
]
},
{
- "id": "9c302232.f8804",
+ "id": "bd87421a.19651",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1025.5,
- "y": 1029.5,
- "z": "dc90116d.356cd8",
+ "x": 1011.066650390625,
+ "y": 1053.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "dd99da73.f2065"
+ "29e292be.694c86"
]
]
},
{
- "id": "dd99da73.f2065",
+ "id": "29e292be.694c86",
"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": 1196.5,
- "y": 1030.5,
- "z": "dc90116d.356cd8",
+ "x": 1182.066650390625,
+ "y": 1054.066650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "582fc831.36e3c",
+ "id": "553772e.9e98c8c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1075.5,
- "y": 862.5,
- "z": "dc90116d.356cd8",
+ "x": 1061.066650390625,
+ "y": 886.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "b099b128.5136c8"
+ "a14c543.bbc4328"
]
]
},
{
- "id": "b1ece16a.0f3c9",
+ "id": "797c1fd2.cac728",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1006.5,
- "y": 1102.5,
- "z": "dc90116d.356cd8",
+ "x": 992.066650390625,
+ "y": 1126.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "c581f585.410918"
+ "ecb4b07c.b59388"
]
]
},
{
- "id": "b099b128.5136c8",
+ "id": "a14c543.bbc4328",
"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": 1236.5,
- "y": 867.5,
- "z": "dc90116d.356cd8",
+ "x": 1222.066650390625,
+ "y": 891.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "b559176c.28e268",
+ "id": "b885de93.3b5b9",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1066.5,
- "y": 922.5,
- "z": "dc90116d.356cd8",
+ "x": 1052.066650390625,
+ "y": 946.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "50ff2098.8d83d"
+ "4ef4f0eb.b7ec3"
]
]
},
{
- "id": "50ff2098.8d83d",
+ "id": "4ef4f0eb.b7ec3",
"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": 1215.5,
- "y": 924.5,
- "z": "dc90116d.356cd8",
+ "x": 1201.066650390625,
+ "y": 948.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "c581f585.410918",
+ "id": "ecb4b07c.b59388",
"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": 1154.5,
- "y": 1103.5,
- "z": "dc90116d.356cd8",
+ "x": 1140.066650390625,
+ "y": 1127.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "3da8c72e.feda78",
+ "id": "215fd10b.0c27b6",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1006.5,
- "y": 1146.5,
- "z": "dc90116d.356cd8",
+ "x": 992.066650390625,
+ "y": 1170.066650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "37d6a3b7.1cca8c"
+ "f22958ae.854098"
]
]
},
{
- "id": "37d6a3b7.1cca8c",
+ "id": "f22958ae.854098",
"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": 1171.5,
- "y": 1143.5,
- "z": "dc90116d.356cd8",
+ "x": 1157.066650390625,
+ "y": 1167.066650390625,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "10fd3c36.34f02c",
+ "id": "5267f0eb.f5f548",
"type": "switchNode",
"name": "switch network_length",
"xml": "<switch test='`$topology.networks.network_length >= 2`'>\n",
"comments": "",
"outputs": 1,
- "x": 2682,
- "y": 295,
- "z": "dc90116d.356cd8",
+ "x": 2667.566650390625,
+ "y": 318.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "fbaeb9ed.a2e628"
+ "388d7c88.cc2e1c"
]
]
},
{
- "id": "fbaeb9ed.a2e628",
+ "id": "388d7c88.cc2e1c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2864,
- "y": 296,
- "z": "dc90116d.356cd8",
+ "x": 2849.566650390625,
+ "y": 319.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "93fe6a3d.a61a8"
+ "316a57ab.91be38"
]
]
},
{
- "id": "c8aabe3a.b7443",
+ "id": "526e56a9.b69518",
"type": "for",
"name": "for each Network",
"xml": "<for index='netidx' start='0' end='`$topology.networks.network_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 3237,
- "y": 289,
- "z": "dc90116d.356cd8",
+ "x": 3222.566650390625,
+ "y": 312.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "c5d07173.a82"
+ "5620946b.b88e4c"
]
]
},
{
- "id": "c5d07173.a82",
+ "id": "5620946b.b88e4c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 3455,
- "y": 286,
- "z": "dc90116d.356cd8",
+ "x": 3440.566650390625,
+ "y": 309.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "6173b924.39e6a8",
- "a7527c77.d05fd8",
- "17750ab4.92778d"
+ "eb819aa2.4b64a",
+ "61b0f184.1bc42",
+ "f61eed06.0dbea8",
+ "dacd0763.534e7",
+ "f9b1eec4.34228",
+ "50a780c7.0ebd4",
+ "b6a26f89.b58e08"
]
]
},
{
- "id": "1c54dabe.e430a5",
+ "id": "3e5b4803.13392",
"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": 349,
- "z": "dc90116d.356cd8",
+ "x": 3255.566650390625,
+ "y": 372.566650390625,
+ "z": "100033e5.240444",
"wires": [
[]
]
},
{
- "id": "93fe6a3d.a61a8",
+ "id": "316a57ab.91be38",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 3034,
- "y": 292,
- "z": "dc90116d.356cd8",
+ "x": 3019.566650390625,
+ "y": 315.566650390625,
+ "z": "100033e5.240444",
"wires": [
[
- "c8aabe3a.b7443",
- "1c54dabe.e430a5"
+ "526e56a9.b69518",
+ "3e5b4803.13392"
]
]
},
{
- "id": "17750ab4.92778d",
+ "id": "f61eed06.0dbea8",
"type": "set",
"name": "unset network",
"xml": "<set>\n<parameter name='network.' value='' />\n",
"comments": "",
- "x": 3614,
- "y": 226,
- "z": "dc90116d.356cd8",
+ "x": 3608.5669555664062,
+ "y": 71.56664276123047,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "6173b924.39e6a8",
+ "id": "eb819aa2.4b64a",
"type": "set",
"name": "set network",
"xml": "<set>\n<parameter name='network.' value='`$topology.networks.network[$netidx].`' />\n",
"comments": "",
- "x": 3608,
- "y": 274,
- "z": "dc90116d.356cd8",
+ "x": 3602.5669555664062,
+ "y": 119.56664276123047,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "a7527c77.d05fd8",
+ "id": "61b0f184.1bc42",
"type": "switchNode",
"name": "switch network-types with topologyId",
- "xml": "<switch test='`$network.te-topology-identifier.topology-id`'>\n",
+ "xml": "<switch test='`$tmpo.te-topo-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 3685,
- "y": 321,
- "z": "dc90116d.356cd8",
+ "x": 3669.5669555664062,
+ "y": 528.5665893554688,
+ "z": "100033e5.240444",
"wires": [
[
- "de52bd0e.85db08",
- "fa3a626b.d125c8"
+ "266c119e.c82536",
+ "86537ad0.2fd4d8",
+ "51b0b0ad.37e0d",
+ "9a90f4d9.5f6fb8"
]
]
},
{
- "id": "de52bd0e.85db08",
+ "id": "266c119e.c82536",
"type": "outcome",
"name": "1",
"xml": "<outcome value='1'>\n",
"comments": "",
"outputs": 1,
- "x": 3911,
- "y": 290,
- "z": "dc90116d.356cd8",
+ "x": 3895.5669555664062,
+ "y": 497.56658935546875,
+ "z": "100033e5.240444",
"wires": [
[
- "84c7d418.e115f8"
+ "8f8ae289.538d08"
]
]
},
{
- "id": "fa3a626b.d125c8",
+ "id": "86537ad0.2fd4d8",
"type": "outcome",
"name": "2",
"xml": "<outcome value='2'>\n",
"comments": "",
"outputs": 1,
- "x": 3911,
- "y": 351,
- "z": "dc90116d.356cd8",
+ "x": 3895.5669555664062,
+ "y": 558.5665893554688,
+ "z": "100033e5.240444",
"wires": [
[
- "caaba956.377e8"
+ "838d97d0.aae9d"
]
]
},
{
- "id": "23780bd3.2604dc",
+ "id": "2e8eeb06.916eb4",
"type": "set",
"name": "set network-otn",
"xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",
"comments": "",
- "x": 4206,
- "y": 290,
- "z": "dc90116d.356cd8",
+ "x": 4190.566955566406,
+ "y": 497.56658935546875,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "6f9e8e73.c1bc3",
+ "id": "3ddf7b5e.6d6d64",
"type": "set",
"name": "set network eth",
"xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",
"comments": "",
- "x": 4206,
- "y": 351,
- "z": "dc90116d.356cd8",
+ "x": 4190.566955566406,
+ "y": 558.5665893554688,
+ "z": "100033e5.240444",
"wires": []
},
{
- "id": "84c7d418.e115f8",
+ "id": "8f8ae289.538d08",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4045,
- "y": 290,
- "z": "dc90116d.356cd8",
+ "x": 4029.5669555664062,
+ "y": 497.56658935546875,
+ "z": "100033e5.240444",
"wires": [
[
- "23780bd3.2604dc"
+ "2e8eeb06.916eb4"
]
]
},
{
- "id": "caaba956.377e8",
+ "id": "838d97d0.aae9d",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 4046,
- "y": 351,
- "z": "dc90116d.356cd8",
+ "x": 4030.5669555664062,
+ "y": 558.5665893554688,
+ "z": "100033e5.240444",
"wires": [
[
- "6f9e8e73.c1bc3"
+ "3ddf7b5e.6d6d64"
]
]
},
{
- "id": "92aeb11c.309eb8",
+ "id": "b75178b1.485098",
"type": "set",
"name": "unset network",
"xml": "<set>\n<parameter name='network.' value='' />\n",
"comments": "",
- "x": 2952,
- "y": 94,
- "z": "dc90116d.356cd8",
+ "x": 2937.566650390625,
+ "y": 117.566650390625,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "dacd0763.534e7",
+ "type": "set",
+ "name": "set tmpo.client-id tmpo.te-topo-id tmpo.provider-id",
+ "xml": "<set>\n<parameter name='tmpo.client-id' value='`$network.te-topology-identifier.client-id`' />\n<parameter name='tmpo.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />\n<parameter name='tmpo.provider-id' value='`$network.te-topology-identifier.provider-id`' />",
+ "comments": "",
+ "x": 3724.5671997070312,
+ "y": 179.89998626708984,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "f9b1eec4.34228",
+ "type": "switchNode",
+ "name": "switch tmpo.client-id == null",
+ "xml": "<switch test=\"`length($tmpo.client-id) == 0`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3680.3335571289062,
+ "y": 259.0666809082031,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "abff95d.6f80ee8"
+ ]
+ ]
+ },
+ {
+ "id": "50a780c7.0ebd4",
+ "type": "switchNode",
+ "name": "switch tmpo.te-topo-id == null",
+ "xml": "<switch test=\"`length($tmpo.te-topo-id) == 0`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 3677.3335571289062,
+ "y": 309.4667053222656,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "90193df7.a11c88"
+ ]
+ ]
+ },
+ {
+ "id": "b6a26f89.b58e08",
+ "type": "switchNode",
+ "name": "switch tmpo.provider-id == null",
+ "xml": "<switch test=\"`length($tmpo.provider-id) == 0`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3678.3335571289062,
+ "y": 363.4666442871094,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "daf18f2e.21fb18"
+ ]
+ ]
+ },
+ {
+ "id": "abff95d.6f80ee8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3900.3334350585938,
+ "y": 259.0666809082031,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "5a49fb40.c47a64"
+ ]
+ ]
+ },
+ {
+ "id": "90193df7.a11c88",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3901.3334350585938,
+ "y": 310.4666748046875,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "b5c174bd.80824"
+ ]
+ ]
+ },
+ {
+ "id": "daf18f2e.21fb18",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3908.3334350585938,
+ "y": 362.4666748046875,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "fb128967.58101"
+ ]
+ ]
+ },
+ {
+ "id": "5a49fb40.c47a64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4046.3335571289062,
+ "y": 260.066650390625,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "a7ecd644.030cb8"
+ ]
+ ]
+ },
+ {
+ "id": "b5c174bd.80824",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4042.3335571289062,
+ "y": 310.4666442871094,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "88941bd2.f1e958"
+ ]
+ ]
+ },
+ {
+ "id": "fb128967.58101",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4049.3335571289062,
+ "y": 362.4666442871094,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "bfc059e6.496548"
+ ]
+ ]
+ },
+ {
+ "id": "a7ecd644.030cb8",
+ "type": "set",
+ "name": "set tmpo.client-id",
+ "xml": "<set>\n<parameter name='tmpo.client-id' value='`$network.client-id`' />",
+ "comments": "",
+ "x": 4216.333557128906,
+ "y": 260.4666442871094,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "88941bd2.f1e958",
+ "type": "set",
+ "name": "set tmpo.te-topo-id",
+ "xml": "<set>\n<parameter name='tmpo.te-topo-id' value='`$network.te-topology-id`' />\n",
+ "comments": "",
+ "x": 4217.333557128906,
+ "y": 309.86663818359375,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "bfc059e6.496548",
+ "type": "set",
+ "name": "set tmpo.provider-id",
+ "xml": "<set>\n<parameter name='tmpo.provider-id' value='`$network.provider-id`' />",
+ "comments": "",
+ "x": 4224.333557128906,
+ "y": 362.86663818359375,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "cf5bc692.307cc8",
+ "type": "switchNode",
+ "name": "switch network-types with topologyId",
+ "xml": "<switch test='`$network.te-topology-identifier.topology-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3667.5669555664062,
+ "y": 871.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "1c9042b6.fd8a45",
+ "979a569f.37e0f"
+ ]
+ ]
+ },
+ {
+ "id": "1c9042b6.fd8a45",
+ "type": "outcome",
+ "name": "1",
+ "xml": "<outcome value='1'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3893.5669555664062,
+ "y": 840.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "2829b45f.206f4c"
+ ]
+ ]
+ },
+ {
+ "id": "979a569f.37e0f",
+ "type": "outcome",
+ "name": "2",
+ "xml": "<outcome value='2'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3893.5669555664062,
+ "y": 901.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "cb54f719.40feb"
+ ]
+ ]
+ },
+ {
+ "id": "dcdd47df.4decf",
+ "type": "set",
+ "name": "set network-otn",
+ "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4188.566955566406,
+ "y": 840.8999633789062,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "f806fdab.e8fd5",
+ "type": "set",
+ "name": "set network eth",
+ "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4188.566955566406,
+ "y": 901.8999633789062,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "2829b45f.206f4c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4027.5669555664062,
+ "y": 840.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "dcdd47df.4decf"
+ ]
+ ]
+ },
+ {
+ "id": "cb54f719.40feb",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4028.5669555664062,
+ "y": 901.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "f806fdab.e8fd5"
+ ]
+ ]
+ },
+ {
+ "id": "51b0b0ad.37e0d",
+ "type": "outcome",
+ "name": "11",
+ "xml": "<outcome value='11'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3899.5668334960938,
+ "y": 610.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "e569defd.3a2ff8"
+ ]
+ ]
+ },
+ {
+ "id": "9a90f4d9.5f6fb8",
+ "type": "outcome",
+ "name": "33",
+ "xml": "<outcome value='33'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 3899.5668334960938,
+ "y": 671.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "73f7ba7.09c7c44"
+ ]
+ ]
+ },
+ {
+ "id": "a35d7f3c.2487c",
+ "type": "set",
+ "name": "set network-otn",
+ "xml": "<set>\n<parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4194.566833496094,
+ "y": 610.8999633789062,
+ "z": "100033e5.240444",
"wires": []
+ },
+ {
+ "id": "5bf2d30b.4e5fec",
+ "type": "set",
+ "name": "set network eth",
+ "xml": "<set>\n<parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />\n",
+ "comments": "",
+ "x": 4194.566833496094,
+ "y": 671.8999633789062,
+ "z": "100033e5.240444",
+ "wires": []
+ },
+ {
+ "id": "e569defd.3a2ff8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4033.5668334960938,
+ "y": 610.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "a35d7f3c.2487c"
+ ]
+ ]
+ },
+ {
+ "id": "73f7ba7.09c7c44",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 4034.5668334960938,
+ "y": 671.8999633789062,
+ "z": "100033e5.240444",
+ "wires": [
+ [
+ "5bf2d30b.4e5fec"
+ ]
+ ]
}
]
\ No newline at end of file diff --git a/platform-logic/datachange/src/main/json/DataChange_update-network-to-aai.json b/platform-logic/datachange/src/main/json/DataChange_update-network-to-aai.json index 5cf9d15e..0285c5d0 100644 --- a/platform-logic/datachange/src/main/json/DataChange_update-network-to-aai.json +++ b/platform-logic/datachange/src/main/json/DataChange_update-network-to-aai.json @@ -1,20 +1,20 @@ [
{
- "id": "761e68a4.20d828",
+ "id": "833893fc.cd4dc",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 138,
- "y": 118,
- "z": "602a9cf3.38fe14",
+ "x": 135.56666564941406,
+ "y": 158.56666564941406,
+ "z": "a00613f8.474e58",
"wires": [
[
- "77bd0709.0316f8"
+ "ddef51e8.c000f"
]
]
},
{
- "id": "77bd0709.0316f8",
+ "id": "ddef51e8.c000f",
"type": "service-logic",
"name": "DataChange ${project.version}",
"module": "DataChange",
@@ -22,1120 +22,1624 @@ "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": 227.00003051757812,
- "y": 208.88891220092773,
- "z": "602a9cf3.38fe14",
+ "x": 224.5666961669922,
+ "y": 249.4555778503418,
+ "z": "a00613f8.474e58",
"wires": [
[
- "ce4c01c9.aadb6"
+ "590cf9dc.a4f168"
]
]
},
{
- "id": "ce4c01c9.aadb6",
+ "id": "590cf9dc.a4f168",
"type": "method",
"name": "update-network-to-aai",
"xml": "<method rpc='update-network-to-aai' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 263.1112518310547,
- "y": 279.2222366333008,
- "z": "602a9cf3.38fe14",
+ "x": 260.67791748046875,
+ "y": 319.78890228271484,
+ "z": "a00613f8.474e58",
"wires": [
[
- "d7c571d2.ba17"
+ "4ea80a5b.3a2674"
]
]
},
{
- "id": "d7c571d2.ba17",
+ "id": "4ea80a5b.3a2674",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 488.33343505859375,
- "y": 278.7779235839844,
- "z": "602a9cf3.38fe14",
+ "x": 485.9001007080078,
+ "y": 319.34458923339844,
+ "z": "a00613f8.474e58",
"wires": [
[
- "bbf04729.a6b23",
- "e453d9fe.dac3d",
- "5625b915.f4097",
- "c5a21baf.a8c168",
- "6179e02b.bcf5",
- "1d5c0100.129fd7"
+ "ebff53.633678b",
+ "ca110ee4.0623c",
+ "a428df69.d4918",
+ "bcb331d5.4b2888",
+ "621633c6.c8ab1c",
+ "f650a5ef.af19b",
+ "41c6a2f9.33057c",
+ "55d89697.da8d4",
+ "fc94b1ae.7adf4",
+ "d0070ca3.12857",
+ "7cbfe92.8c19d98"
]
]
},
{
- "id": "e453d9fe.dac3d",
+ "id": "ca110ee4.0623c",
"type": "save",
"name": "save network-resource",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \n key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$network.te-topology-identifier.client-id`' />\n<parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />\n<parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource' \n key='network-resource.network-id = $tmp.network-id' >\n<parameter name='network-id' value='`$tmp.network-id`' />\n<parameter name='client-id' value='`$tmp.client-id`' />\n<parameter name='te-topo-id' value='`$tmp.te-topo-id`' />\n<parameter name='provider-id' value='`$tmp.provider-id`' />\n<!--<parameter name='client-id' value='`$network.te-topology-identifier.client-id`' />-->\n<!--<parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />-->\n<!--<parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />-->\n\n<parameter name='network-type' value='`$network.network-types`' />\n\n\n",
"comments": "",
"outputs": 1,
- "x": 718.333251953125,
- "y": 184.00001525878906,
- "z": "602a9cf3.38fe14",
+ "x": 815.89990234375,
+ "y": 1077.5667419433594,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "375be865.3c0f",
+ "id": "1c5189aa.97911e",
"type": "save",
"name": "save pnf",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf' \n key='pnf.pnf-name = $unique-nodeId' >\n<parameter name='pnf-name' value='`$unique-nodeId`' />\n<parameter name='pnf-id' value='`$node.node-id`' />\n<parameter name='operational-status' value='`$node.te.oper-status`' />\n<parameter name='admin-status' value='`$node.te.te-node-attributes.admin-status`' />\n<parameter name='in-maint' value='true' />\n\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 918.1111450195312,
- "y": 555.111083984375,
- "z": "602a9cf3.38fe14",
+ "x": 979.6777954101562,
+ "y": 1599.6777038574219,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "5625b915.f4097",
+ "id": "a428df69.d4918",
"type": "for",
"name": "for each node",
"xml": "<for index='pidx' start='0' end='`$network.node_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 689.8888549804688,
- "y": 535.3333129882812,
- "z": "602a9cf3.38fe14",
+ "x": 751.4555053710938,
+ "y": 1579.8999328613281,
+ "z": "a00613f8.474e58",
"wires": [
[
- "375be865.3c0f",
- "4ec17378.333f8c",
- "56584a7c.bcf26c",
- "e61a37ad.722b58",
- "53212212.eee0d4",
- "d084b3c7.e9a8d8",
- "b406de10.4f976",
- "10825cf6.777533"
+ "1c5189aa.97911e",
+ "5cc65873.45f068",
+ "6e932325.b3ce0c",
+ "fa029f12.0579a8",
+ "74eb96bf.859028",
+ "f1753d6a.8970a",
+ "488b7493.2568f4",
+ "5792a57.27026dc"
]
]
},
{
- "id": "4ec17378.333f8c",
+ "id": "5cc65873.45f068",
"type": "set",
"name": "set node",
"xml": "<set>\n<parameter name='node.' value='`$network.node[$pidx].`' />\n<parameter name='unique-networkId' value='`$tmp.network-id`' />\n\n",
"comments": "",
- "x": 923.111083984375,
- "y": 451.2222137451172,
- "z": "602a9cf3.38fe14",
+ "x": 984.677734375,
+ "y": 1495.788833618164,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "e61a37ad.722b58",
+ "id": "fa029f12.0579a8",
"type": "save",
"name": "save pnf relationship to network-resource in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-resource.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.network-id`\" />",
"comments": "",
"outputs": 1,
- "x": 1014.7779541015625,
- "y": 730.4444780349731,
- "z": "602a9cf3.38fe14",
+ "x": 1076.3446044921875,
+ "y": 1775.01109790802,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "663dfab3.1deedc",
+ "id": "673098cb.075338",
"type": "for",
"name": "for each termination point",
"xml": "<for index='tidx' start='0' end='`$node.termination-point_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1322.4444580078125,
- "y": 646.1110534667969,
- "z": "602a9cf3.38fe14",
+ "x": 1384.0111083984375,
+ "y": 1690.6776733398438,
+ "z": "a00613f8.474e58",
"wires": [
[
- "34b91b9e.a21bbc",
- "8ee77851.c5edd8",
- "15e31265.27a116",
- "bdd15a8d.477f28",
- "847fbf7b.b4b66"
+ "14328870.e01fc8",
+ "98b3a9f1.3c7a",
+ "1e0cb0c8.6af377",
+ "d97910b0.5bb5e8",
+ "2568e5e9.694fba"
]
]
},
{
- "id": "34b91b9e.a21bbc",
+ "id": "14328870.e01fc8",
"type": "set",
"name": "set termination point",
"xml": "<set>\n<parameter name='tp.' value='`$node.termination-point[$tidx].`' />\n",
"comments": "",
- "x": 1592.111328125,
- "y": 629.0000305175781,
- "z": "602a9cf3.38fe14",
+ "x": 1653.677978515625,
+ "y": 1673.566650390625,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "15e31265.27a116",
+ "id": "1e0cb0c8.6af377",
"type": "save",
"name": "save p-interface",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />\n\n",
"comments": "",
"outputs": 1,
- "x": 1586.815185546875,
- "y": 816.5555725097656,
- "z": "602a9cf3.38fe14",
+ "x": 1648.3818359375,
+ "y": 1861.1221923828125,
+ "z": "a00613f8.474e58",
"wires": [
[
- "3101a3f2.5441ec",
- "1a80d066.48736"
+ "27884524.eae2da",
+ "6320df74.68c278"
]
]
},
{
- "id": "923c5d7b.98959",
+ "id": "522b5f86.997c5",
"type": "save",
"name": "save pnf relationship to p-interface in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $unique-nodeId '/p-interfaces/p-interface/' + $unique-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId`\" />",
"comments": "",
"outputs": 1,
- "x": 1407.703857421875,
- "y": 1729.3333435058594,
- "z": "602a9cf3.38fe14",
+ "x": 1469.2705078125,
+ "y": 2773.8999633789062,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "8ee77851.c5edd8",
+ "id": "98b3a9f1.3c7a",
"type": "set",
"name": "set unique-ltpId",
"xml": "<set>\n<parameter name='unique-ltpId' value=\"`$unique-nodeId + '-ltpId-' + $tp.te-tp-id`\" />\n",
"comments": "",
- "x": 1576.000244140625,
- "y": 686.1110534667969,
- "z": "602a9cf3.38fe14",
+ "x": 1637.56689453125,
+ "y": 1730.6776733398438,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "bbf04729.a6b23",
+ "id": "ebff53.633678b",
"type": "execute",
"name": "execute",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$network.network-id`\"/>\n <parameter name=\"outputPath\" value=\"tmp.original-network-id\"/>\n <parameter name=\"target\" value=\"/\"/>\n <parameter name=\"replacement\" value=\"-\"/>\n ",
"comments": "",
"outputs": 1,
- "x": 674.9935302734375,
- "y": 92.99349975585938,
- "z": "602a9cf3.38fe14",
+ "x": 658.5601806640625,
+ "y": 39.56017303466797,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "56584a7c.bcf26c",
+ "id": "6e932325.b3ce0c",
"type": "save",
"name": "save pnf relation with esr-thirdparty-sdnc",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='esr-thirdparty-sdnc:relationship-list' \n key='esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",
"comments": "",
"outputs": 1,
- "x": 996,
- "y": 766.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1057.566650390625,
+ "y": 1811.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "3101a3f2.5441ec",
+ "id": "27884524.eae2da",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1758.499885559082,
- "y": 803.7460479736328,
- "z": "602a9cf3.38fe14",
+ "x": 1820.066535949707,
+ "y": 1848.3126678466797,
+ "z": "a00613f8.474e58",
"wires": [
[
- "f0102e05.0d4918"
+ "eca5dc85.dc169"
]
]
},
{
- "id": "1a80d066.48736",
+ "id": "6320df74.68c278",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1752.1784744262695,
- "y": 855.9603595733643,
- "z": "602a9cf3.38fe14",
+ "x": 1813.7451248168945,
+ "y": 1900.5269794464111,
+ "z": "a00613f8.474e58",
"wires": [
[
- "851b8afc.ed0d6"
+ "4f36fae3.fb3d2c"
]
]
},
{
- "id": "f0102e05.0d4918",
+ "id": "eca5dc85.dc169",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1909.0000457763672,
- "y": 802.999979019165,
- "z": "602a9cf3.38fe14",
+ "x": 1970.5666961669922,
+ "y": 1847.566598892212,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "851b8afc.ed0d6",
+ "id": "4f36fae3.fb3d2c",
"type": "update",
"name": "update p-interface",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' > \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='network-ref' value='`$tp.supporting-termination-point[0].network-ref`' />\n<parameter name='transparent' value='`$tp.svc.supported-classification.transparent`' />\n<parameter name='speed-value' value='`$tp.te.interface-switching-capability[0].max-lsp-bandwidth[0].te-bandwidth.eth-bandwidth`' />\n<parameter name='operational-status' value='`$tp.te.oper-status`' />\n<parameter name='in-maint' value=\"true\" />\n\n<parameter name='inter-layer-lock-id' value='`$tp.te.inter-layer-lock-id[0]`' />\n<!--<parameter name='inter-domain-plug-id' value='`$tp.te.inter-domain-plug-id`' />-->\n<parameter name='inter-domain-plug-id' value='`$tmp.decoded-plug-id`' />",
"comments": "",
"outputs": 1,
- "x": 1938,
- "y": 856.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1999.566650390625,
+ "y": 1901.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "95d00fe5.3c431",
+ "id": "9afbe60e.d5e018",
"type": "save",
"name": "save tunnel-termination-point",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id[0]`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1652,
- "y": 1107.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1713.566650390625,
+ "y": 2152.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "fd2c3c98.e696c",
- "ddcea662.a71648"
+ "d31fa9d0.e36698",
+ "6da3b2ca.c0f984"
]
]
},
{
- "id": "9b51f802.015ec",
+ "id": "db4633a0.6d81",
"type": "for",
"name": "for each tunnel termination point",
"xml": "<for index='ttidx' start='0' end='`$node.te.tunnel-termination-point_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1315,
- "y": 1095.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1376.566650390625,
+ "y": 2140.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "f4695d4f.8e6e6",
- "5bac7584.0c80fc",
- "95d00fe5.3c431",
- "215e84ff.a6a76c",
- "27c88040.1575b8",
- "cbf87dc2.898dc8"
+ "f58dd7ba.f71ba8",
+ "e9a95ae5.095c7",
+ "9afbe60e.d5e018",
+ "dfba66a0.a570f",
+ "8e56a27.ed9656",
+ "a3b0d055.5709c"
]
]
},
{
- "id": "f4695d4f.8e6e6",
+ "id": "f58dd7ba.f71ba8",
"type": "set",
"name": "set tunnel termination point",
"xml": "<set>\n<parameter name='ttp.' value='`$node.te.tunnel-termination-point[$ttidx].`' />\n",
"comments": "",
- "x": 1650,
- "y": 1015.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1711.566650390625,
+ "y": 2060.5665893554688,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "5bac7584.0c80fc",
+ "id": "e9a95ae5.095c7",
"type": "set",
"name": "set unique-ttpId",
"xml": "<set>\n<parameter name='unique-ttpId' value=\"`$unique-nodeId + '-ttpId-' + $ttp.tunnel-tp-id`\" />\n",
"comments": "",
- "x": 1608.888916015625,
- "y": 1054.1110534667969,
- "z": "602a9cf3.38fe14",
+ "x": 1670.45556640625,
+ "y": 2098.6776733398438,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "fd2c3c98.e696c",
+ "id": "d31fa9d0.e36698",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1918,
- "y": 1093.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1979.566650390625,
+ "y": 2138.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "17cf7c51.7123dc"
+ "95619f03.b62ee"
]
]
},
{
- "id": "ddcea662.a71648",
+ "id": "6da3b2ca.c0f984",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1911.6785888671875,
- "y": 1146.2142810821533,
- "z": "602a9cf3.38fe14",
+ "x": 1973.2452392578125,
+ "y": 2190.7809009552,
+ "z": "a00613f8.474e58",
"wires": [
[
- "44867d6a.9d6f04"
+ "88d246a7.3c6ed8"
]
]
},
{
- "id": "17cf7c51.7123dc",
+ "id": "95619f03.b62ee",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2068.500160217285,
- "y": 1093.253900527954,
- "z": "602a9cf3.38fe14",
+ "x": 2130.06681060791,
+ "y": 2137.820520401001,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "44867d6a.9d6f04",
+ "id": "88d246a7.3c6ed8",
"type": "update",
"name": "update tunnel-termination-point",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' >\n\n<parameter name='ttp-id' value='`$unique-ttpId`' />\n<parameter name='tunnel-tp-id' value='`$ttp.tunnel-tp-id`' />\n<parameter name='name' value='`$ttp.name`' />\n<parameter name='admin-status' value='`$ttp.admin-status`' />\n<parameter name='oper-status' value='`$ttp.oper-status`' />\n<parameter name='inter-layer-lock-id' value='`$ttp.inter-layer-lock-id[0]`' />\n<parameter name='switching-capability' value='`$ttp.switching-capability`' />\n<parameter name='protection-type' value='`$ttp.protection-type`' />\n<parameter name='encoding' value='`$ttp.encoding`' />\n\n\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 2149,
- "y": 1147.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2210.566650390625,
+ "y": 2192.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "53212212.eee0d4",
+ "id": "74eb96bf.859028",
"type": "set",
"name": "set local variables",
"xml": "<set>\n<parameter name='unique-nodeId' value=\"`'networkId-' + $unique-networkId + '-nodeId-' + $node.node-id`\" />\n",
"comments": "",
- "x": 948,
- "y": 498,
- "z": "602a9cf3.38fe14",
+ "x": 1009.566650390625,
+ "y": 1542.5666198730469,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "c5a21baf.a8c168",
+ "id": "bcb331d5.4b2888",
"type": "call",
"name": "call update-network-links-to-aai",
"xml": "<call module='DataChange' rpc='update-network-links-to-aai' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 632,
- "y": 661,
- "z": "602a9cf3.38fe14",
+ "x": 693.566650390625,
+ "y": 1705.5666198730469,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "bb1cacb7.ad451",
+ "id": "842a0151.8415f",
"type": "save",
"name": "save pnf-interface relationship to pnf in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface:relationship-list' \n key='pnf.pnf-name = $unique-nodeId\n AND p-interface.interface-name = $unique-ltpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"pnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-nodeId`\" />\n",
"comments": "",
"outputs": 1,
- "x": 1414,
- "y": 1684.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1475.566650390625,
+ "y": 2729.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "215e84ff.a6a76c",
+ "id": "dfba66a0.a570f",
"type": "save",
"name": "save pnf relationship to tunnel termination point in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='pnf:relationship-list' \n key='pnf.pnf-name = $unique-nodeId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tunnel-termination-point\" />\n<!--<parameter name=\"relationship-list.relationship[$ttidx].related-link\" value=\"`'/network/network-resources/network-resource/' + $tmp.network-id + '/pnfs/pnf/' + $node.node-id '/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />-->\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/tunnel-termination-points/tunnel-termination-point/' + $unique-ttpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"tunnel-termination-point.ttp-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ttpId`\" />",
"comments": "",
"outputs": 1,
- "x": 1723,
- "y": 1199.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1784.566650390625,
+ "y": 2244.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "b2ce5e57.725c48",
- "ecae58d2.6c42a"
+ "e89e91e3.86ef68",
+ "cb114306.b09568"
]
]
},
{
- "id": "d084b3c7.e9a8d8",
+ "id": "f1753d6a.8970a",
"type": "switchNode",
"name": "switch node ttp",
"xml": "<switch test='`$node.te.tunnel-termination-point_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 887,
- "y": 1071.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 948.566650390625,
+ "y": 2116.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "4865cde2.7cfebc",
- "3d27675.a149b18",
- "57deece8.01b8cc"
+ "3e378927.66a8e6",
+ "8e7d32ae.6545b8",
+ "823a8d5c.adc0e"
]
]
},
{
- "id": "35cbe11c.dd6a16",
+ "id": "c17cfb12.a956f",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1235,
- "y": 1023.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1296.566650390625,
+ "y": 2068.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "57deece8.01b8cc",
+ "id": "823a8d5c.adc0e",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1082,
- "y": 1106.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1143.566650390625,
+ "y": 2151.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "9b51f802.015ec"
+ "db4633a0.6d81"
]
]
},
{
- "id": "b406de10.4f976",
+ "id": "488b7493.2568f4",
"type": "switchNode",
"name": "switch node tp",
"xml": "<switch test='`$node.termination-point_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 936,
- "y": 621.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 997.566650390625,
+ "y": 1666.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "d2843fed.623f28",
- "35baa2d4.5e4b66",
- "ea06dcd1.7022d8"
+ "28c0a1a9.e89256",
+ "298d87ce.e145a",
+ "dc9cd29a.1758c8"
]
]
},
{
- "id": "d2843fed.623f28",
+ "id": "28c0a1a9.e89256",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1115,
- "y": 573.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1176.566650390625,
+ "y": 1618.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "6b24c820.32a928"
+ "dbf4e13b.6fd0b"
]
]
},
{
- "id": "35baa2d4.5e4b66",
+ "id": "298d87ce.e145a",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1114,
- "y": 675.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1175.566650390625,
+ "y": 1720.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "663dfab3.1deedc"
+ "673098cb.075338"
]
]
},
{
- "id": "6b24c820.32a928",
+ "id": "dbf4e13b.6fd0b",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1270,
- "y": 573.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1331.566650390625,
+ "y": 1618.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "c2dd2cff.e58418",
+ "id": "ba8600e5.03dd3",
"type": "record",
"name": "log file",
"xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n ",
"comments": "",
"outputs": 1,
- "x": 865,
- "y": 1115.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 926.566650390625,
+ "y": 2160.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "4865cde2.7cfebc",
+ "id": "3e378927.66a8e6",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1075,
- "y": 957.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1136.566650390625,
+ "y": 2002.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "35cbe11c.dd6a16"
+ "c17cfb12.a956f"
]
]
},
{
- "id": "3d27675.a149b18",
+ "id": "8e7d32ae.6545b8",
"type": "outcome",
"name": "length 0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 1080,
- "y": 1032.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1141.566650390625,
+ "y": 2077.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "35cbe11c.dd6a16"
+ "c17cfb12.a956f"
]
]
},
{
- "id": "ea06dcd1.7022d8",
+ "id": "dc9cd29a.1758c8",
"type": "outcome",
"name": "length 0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 1125,
- "y": 621.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1186.566650390625,
+ "y": 1666.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "6b24c820.32a928"
+ "dbf4e13b.6fd0b"
]
]
},
{
- "id": "10825cf6.777533",
+ "id": "5792a57.27026dc",
"type": "set",
"name": "unset node",
"xml": "<set>\n<parameter name='node.' value='' />\n\n",
"comments": "",
- "x": 920,
- "y": 400,
- "z": "602a9cf3.38fe14",
+ "x": 981.566650390625,
+ "y": 1444.5666198730469,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "bdd15a8d.477f28",
+ "id": "d97910b0.5bb5e8",
"type": "set",
"name": "unset termination point",
"xml": "<set>\n<parameter name='tp.' value='' />\n",
"comments": "",
- "x": 1604,
- "y": 571.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1665.566650390625,
+ "y": 1616.5665893554688,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "27c88040.1575b8",
+ "id": "8e56a27.ed9656",
"type": "set",
"name": "unset tunnel termination point",
"xml": "<set>\n<parameter name='ttp.' value='' />\n",
"comments": "",
- "x": 1650,
- "y": 967.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1711.566650390625,
+ "y": 2012.5665893554688,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "b2ce5e57.725c48",
+ "id": "e89e91e3.86ef68",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2055,
- "y": 1202.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2116.566650390625,
+ "y": 2247.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "ecae58d2.6c42a",
+ "id": "cb114306.b09568",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2052,
- "y": 1250.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2113.566650390625,
+ "y": 2295.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "66810254.224164",
+ "id": "d3d202cd.308948",
"type": "record",
"name": "log file",
"xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"sucessfully saved ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n ",
"comments": "",
"outputs": 1,
- "x": 2210,
- "y": 1203.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2271.566650390625,
+ "y": 2248.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "1bb980b.9e20b7f",
+ "id": "8a1cfb4d.696d18",
"type": "record",
"name": "log file",
"xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/onap/logTopologyDiscovery.txt\" />\n <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n <parameter name=\"field2\" value=\"sucess executing Hesam log file\" />\n <parameter name=\"field3\" value=\"`$node.te.tunnel-termination-point_length`\" />\n <parameter name=\"field4\" value=\"`$node.termination-point_length`\" />\n <parameter name=\"field5\" value=\"failuire on saving ttp\" />\n <parameter name=\"field6\" value=\"`relationship-list.relationship[$ttidx].related-link`\" />\n\n ",
"comments": "",
"outputs": 1,
- "x": 2211,
- "y": 1251.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2272.566650390625,
+ "y": 2296.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "7353d26c.dd96ec",
+ "id": "50b8a3b8.1b8644",
"type": "execute",
"name": "execute Base64 Converter",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='base64DecodingAlgo' >\n <parameter name=\"encodedValue\" value='`$tp.te.inter-domain-plug-id`'/>\n <parameter name=\"decodedValue\" value=\"tmp.decoded-plug-id\"/>\n ",
"comments": "",
"outputs": 1,
- "x": 2070,
- "y": 740.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2131.566650390625,
+ "y": 1785.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "5edff614.826d5",
- "1737b2af.9f2d45"
+ "fd502708.7f6088",
+ "ceed1c04.61dda"
]
]
},
{
- "id": "847fbf7b.b4b66",
+ "id": "2568e5e9.694fba",
"type": "switchNode",
"name": "switch inter-domain-plug-id empty?",
"xml": "<switch test='`length($tp.te.inter-domain-plug-id) == 0`'>\n\n",
"comments": "",
"outputs": 1,
- "x": 1640,
- "y": 741.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1701.566650390625,
+ "y": 1786.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "c7b2022.f3821",
- "cdd8e382.236ad"
+ "96134678.4ddb",
+ "b351d2bc.b887c"
]
]
},
{
- "id": "cdd8e382.236ad",
+ "id": "b351d2bc.b887c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1867,
- "y": 694.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1928.566650390625,
+ "y": 1739.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "7cffd999.b3b1b8"
+ "465845f4.285064"
]
]
},
{
- "id": "c7b2022.f3821",
+ "id": "96134678.4ddb",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1868,
- "y": 740.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 1929.566650390625,
+ "y": 1785.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "7353d26c.dd96ec"
+ "50b8a3b8.1b8644"
]
]
},
{
- "id": "7cffd999.b3b1b8",
+ "id": "465845f4.285064",
"type": "set",
"name": "unset tmp.decoded-plug-id",
"xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='' />\n",
"comments": "",
- "x": 2071,
- "y": 694.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2132.566650390625,
+ "y": 1739.5665893554688,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "5edff614.826d5",
+ "id": "fd502708.7f6088",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2275,
- "y": 717.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2336.566650390625,
+ "y": 1762.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[
- "c0e19e99.143c08"
+ "4fd4e9b0.85ded8"
]
]
},
{
- "id": "1737b2af.9f2d45",
+ "id": "ceed1c04.61dda",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2268.6785888671875,
- "y": 770.2142810821533,
- "z": "602a9cf3.38fe14",
+ "x": 2330.2452392578125,
+ "y": 1814.7809009552002,
+ "z": "a00613f8.474e58",
"wires": [
[
- "d55c12df.ae4af8"
+ "7cb0f25f.577834"
]
]
},
{
- "id": "c0e19e99.143c08",
+ "id": "4fd4e9b0.85ded8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2416,
- "y": 717.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2477.566650390625,
+ "y": 1762.5665893554688,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "d55c12df.ae4af8",
+ "id": "7cb0f25f.577834",
"type": "set",
"name": "unset tmp.decoded-plug-id",
"xml": "<set>\n<parameter name='tmp.decoded-plug-id' value='`$tp.te.inter-domain-plug-id`' />\n",
"comments": "",
- "x": 2475,
- "y": 769.9999694824219,
- "z": "602a9cf3.38fe14",
+ "x": 2536.566650390625,
+ "y": 1814.5665893554688,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "6179e02b.bcf5",
+ "id": "621633c6.c8ab1c",
"type": "set",
"name": "set tmp.network-if",
"xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"`$tmp.original-network-id`\" />\n\n",
"comments": "",
- "x": 700,
- "y": 134,
- "z": "602a9cf3.38fe14",
+ "x": 695.566650390625,
+ "y": 84.5666732788086,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "1d5c0100.129fd7",
+ "id": "f650a5ef.af19b",
"type": "get-resource",
"name": "get-resource esr-thirdparty-sdnc",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 761,
- "y": 272.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 822.566650390625,
+ "y": 1317.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "90eb31b2.77c238",
- "f3a7ce78.cbd56",
- "9f7c8245.3dec38"
+ "bf82df38.5fc2f8",
+ "ce81da89.35a2c8",
+ "f4d6f467.ce569"
]
]
},
{
- "id": "90eb31b2.77c238",
+ "id": "bf82df38.5fc2f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1007,
- "y": 232.99349975585938,
- "z": "602a9cf3.38fe14",
+ "x": 1068.566650390625,
+ "y": 1277.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "8f122881.12a378"
+ "d25f7df8.46aa78"
]
]
},
{
- "id": "f3a7ce78.cbd56",
+ "id": "ce81da89.35a2c8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1011,
- "y": 272.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1072.566650390625,
+ "y": 1317.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "ecbad826.8cc148"
+ "695ad308.5680bc"
]
]
},
{
- "id": "9f7c8245.3dec38",
+ "id": "f4d6f467.ce569",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1003,
- "y": 312.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1064.566650390625,
+ "y": 1357.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "cf84ec83.d6cc78"
+ "bf5c49d4.b655e"
]
]
},
{
- "id": "ecbad826.8cc148",
+ "id": "695ad308.5680bc",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1161,
- "y": 272.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1222.566650390625,
+ "y": 1317.5601196289062,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "cf84ec83.d6cc78",
+ "id": "bf5c49d4.b655e",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1161,
- "y": 312.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1222.566650390625,
+ "y": 1357.5601196289062,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "8f122881.12a378",
+ "id": "d25f7df8.46aa78",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1151,
- "y": 230.99349975585938,
- "z": "602a9cf3.38fe14",
+ "x": 1212.566650390625,
+ "y": 1275.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "1e7c71ae.903b3e"
+ "792abb8a.e3a5dc"
]
]
},
{
- "id": "1e7c71ae.903b3e",
+ "id": "792abb8a.e3a5dc",
"type": "save",
"name": "save network-resource relationship to esr-thirdparty-sdnc",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource:relationship-list' \n key='network-resource.network-id = $tmp.network-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"esr-thirdparty-sdnc\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/' + $prop.sdncRestApi.thirdpartySdnc.id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"esr-thirdparty-sdnc.thirdparty-sdnc-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sdncRestApi.thirdpartySdnc.id`\" />\n\n<!--/aai/v19/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/SOTNControllerDomain2-->\n",
"comments": "",
"outputs": 1,
- "x": 1454,
- "y": 231.99349975585938,
- "z": "602a9cf3.38fe14",
+ "x": 1515.566650390625,
+ "y": 1276.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "cbf87dc2.898dc8",
+ "id": "a3b0d055.5709c",
"type": "switchNode",
"name": "switch llcl length",
"xml": "<switch test='`$node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 1584,
- "y": 1371.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1645.566650390625,
+ "y": 2416.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "63cc82cd.b17e4c",
- "7a2ef7bd.18409",
- "bb4f9fb3.43afc8"
+ "51a385c5.556044",
+ "df46ecf8.1b26",
+ "6a30fe4f.16242"
]
]
},
{
- "id": "63cc82cd.b17e4c",
+ "id": "51a385c5.556044",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1772,
- "y": 1257.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1833.566650390625,
+ "y": 2302.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "6223b1f1.46672"
+ "f8b8a3a6.588ed8"
]
]
},
{
- "id": "7a2ef7bd.18409",
+ "id": "df46ecf8.1b26",
"type": "outcome",
"name": "length 0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 1777,
- "y": 1332.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1838.566650390625,
+ "y": 2377.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "6223b1f1.46672"
+ "f8b8a3a6.588ed8"
]
]
},
{
- "id": "bb4f9fb3.43afc8",
+ "id": "6a30fe4f.16242",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1779,
- "y": 1406.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1840.566650390625,
+ "y": 2451.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "3a444976.a40cae"
+ "fa9c435a.363ed"
]
]
},
{
- "id": "6223b1f1.46672",
+ "id": "f8b8a3a6.588ed8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1932,
- "y": 1323.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1993.566650390625,
+ "y": 2368.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "7f51d8cc.cf481",
+ "id": "76c367aa.287738",
"type": "save",
"name": "save ttp relationship to tp in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='tunnel-termination-point:relationship-list' \n key='tunnel-termination-point.ttp-id = $unique-ttpId' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $unique-nodeId + '/p-interfaces/p-interface/' + $unique-ltpId-second`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$unique-ltpId-second`\" />",
"comments": "",
"outputs": 1,
- "x": 2160,
- "y": 1409.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 2221.566650390625,
+ "y": 2454.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[]
]
},
{
- "id": "23d6e8d8.b0dc08",
+ "id": "c237437d.176ec",
"type": "set",
"name": "set unique-ltpId second",
"xml": "<set>\n<parameter name='unique-ltpId-second' value=\"`$unique-nodeId + '-ltpId-' + $node.te.tunnel-termination-point[$ttidx].local-link-connectivities.local-link-connectivity[0].link-tp-ref`\" />\n",
"comments": "",
- "x": 2109,
- "y": 1365.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 2170.566650390625,
+ "y": 2410.5601196289062,
+ "z": "a00613f8.474e58",
"wires": []
},
{
- "id": "3a444976.a40cae",
+ "id": "fa9c435a.363ed",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1919,
- "y": 1402.9934997558594,
- "z": "602a9cf3.38fe14",
+ "x": 1980.566650390625,
+ "y": 2447.5601196289062,
+ "z": "a00613f8.474e58",
"wires": [
[
- "23d6e8d8.b0dc08",
- "7f51d8cc.cf481"
+ "c237437d.176ec",
+ "76c367aa.287738"
]
]
+ },
+ {
+ "id": "7aeac230.77765c",
+ "type": "switchNode",
+ "name": "switch tmp.client-id == null",
+ "xml": "<switch test=\"`$tmp.client-id == ''`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1334.566650390625,
+ "y": 180.76666259765625,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "9fd2771f.b2305"
+ ]
+ ]
+ },
+ {
+ "id": "d25e9719.928048",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1683.566650390625,
+ "y": 180.76666259765625,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "32b7e6d6.b83d1a"
+ ]
+ ]
+ },
+ {
+ "id": "9fd2771f.b2305",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1534.566650390625,
+ "y": 180.566650390625,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "d25e9719.928048"
+ ]
+ ]
+ },
+ {
+ "id": "41c6a2f9.33057c",
+ "type": "set",
+ "name": "set tmp.client-id tmp.te-topo-id tmp.provider-id",
+ "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.te-topology-identifier.client-id`' />\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />\n<parameter name='tmp.provider-id' value='`$network.te-topology-identifier.provider-id`' />",
+ "comments": "",
+ "x": 790.566650390625,
+ "y": 124.16668701171875,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "32b7e6d6.b83d1a",
+ "type": "set",
+ "name": "set tmp.client-id",
+ "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.client-id`' />",
+ "comments": "",
+ "x": 1849.566650390625,
+ "y": 181.16665649414062,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "6b15946e.9597ac",
+ "type": "switchNode",
+ "name": "switch tmp.te-topo-id == null",
+ "xml": "<switch test=\"`$tmp.te-topo-id == ''`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1335.566650390625,
+ "y": 244.16665649414062,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "71fa1b7b.ba79b4"
+ ]
+ ]
+ },
+ {
+ "id": "a3f5f044.007008",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1684.566650390625,
+ "y": 244.16665649414062,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "a8f5864b.aef3c8"
+ ]
+ ]
+ },
+ {
+ "id": "71fa1b7b.ba79b4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1535.566650390625,
+ "y": 243.96664428710938,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "a3f5f044.007008"
+ ]
+ ]
+ },
+ {
+ "id": "a8f5864b.aef3c8",
+ "type": "set",
+ "name": "set tmp.te-topo-id",
+ "xml": "<set>\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-id`' />\n",
+ "comments": "",
+ "x": 1859.566650390625,
+ "y": 243.566650390625,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "f92eff62.249f6",
+ "type": "switchNode",
+ "name": "switch tmp.provider-id == null",
+ "xml": "<switch test=\"`$tmp.provider-id == ''`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1342.566650390625,
+ "y": 296.1666564941406,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "2d5bf1b1.a9788e"
+ ]
+ ]
+ },
+ {
+ "id": "1a037929.4dd227",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1691.566650390625,
+ "y": 296.1666564941406,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "a99d65fe.4861b8"
+ ]
+ ]
+ },
+ {
+ "id": "2d5bf1b1.a9788e",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1542.566650390625,
+ "y": 295.9666442871094,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "1a037929.4dd227"
+ ]
+ ]
+ },
+ {
+ "id": "a99d65fe.4861b8",
+ "type": "set",
+ "name": "set tmp.provider-id",
+ "xml": "<set>\n<parameter name='tmp.provider-id' value='`$network.provider-id`' />",
+ "comments": "",
+ "x": 1866.566650390625,
+ "y": 296.566650390625,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "55d89697.da8d4",
+ "type": "switchNode",
+ "name": "switch tmp.client-id == null",
+ "xml": "<switch test=\"`length($tmp.client-id) == 0`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1267.3333740234375,
+ "y": 389.3333435058594,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "272672a2.e44276"
+ ]
+ ]
+ },
+ {
+ "id": "ab7feb07.dbe038",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1731.3333740234375,
+ "y": 369.3333435058594,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "2193f8b4.77b338"
+ ]
+ ]
+ },
+ {
+ "id": "2193f8b4.77b338",
+ "type": "set",
+ "name": "set tmp.client-id",
+ "xml": "<set>\n<parameter name='tmp.client-id' value='`$network.client-id`' />",
+ "comments": "",
+ "x": 1897.3333740234375,
+ "y": 369.73333740234375,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "fc94b1ae.7adf4",
+ "type": "switchNode",
+ "name": "switch tmp.te-topo-id == null",
+ "xml": "<switch test=\"`length($tmp.te-topo-id) == 0`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1251.3333740234375,
+ "y": 472.7333679199219,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "9b4c347f.fa1878"
+ ]
+ ]
+ },
+ {
+ "id": "71cf7044.501c68",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1723.3333740234375,
+ "y": 436.73333740234375,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "9f940be9.c32868"
+ ]
+ ]
+ },
+ {
+ "id": "9f940be9.c32868",
+ "type": "set",
+ "name": "set tmp.te-topo-id",
+ "xml": "<set>\n<parameter name='tmp.te-topo-id' value='`$network.te-topology-id`' />\n",
+ "comments": "",
+ "x": 1898.3333740234375,
+ "y": 436.1333312988281,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "d0070ca3.12857",
+ "type": "switchNode",
+ "name": "switch tmp.provider-id == null",
+ "xml": "<switch test=\"`length($tmp.provider-id) == 0`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258.3333740234375,
+ "y": 537.7333374023438,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "63564627.e914c8"
+ ]
+ ]
+ },
+ {
+ "id": "1ee1eaf5.757aed",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1730.3333740234375,
+ "y": 488.73333740234375,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "be338d62.c1df2"
+ ]
+ ]
+ },
+ {
+ "id": "be338d62.c1df2",
+ "type": "set",
+ "name": "set tmp.provider-id",
+ "xml": "<set>\n<parameter name='tmp.provider-id' value='`$network.provider-id`' />",
+ "comments": "",
+ "x": 1905.3333740234375,
+ "y": 489.1333312988281,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "272672a2.e44276",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1468.3333740234375,
+ "y": 389.3333435058594,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "ab7feb07.dbe038"
+ ]
+ ]
+ },
+ {
+ "id": "9b4c347f.fa1878",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1469.3333740234375,
+ "y": 452.73333740234375,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "71cf7044.501c68"
+ ]
+ ]
+ },
+ {
+ "id": "63564627.e914c8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1476.3333740234375,
+ "y": 504.73333740234375,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "1ee1eaf5.757aed"
+ ]
+ ]
+ },
+ {
+ "id": "7cbfe92.8c19d98",
+ "type": "save",
+ "name": "get network-resource from aai",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resource\"\n\t key=\"network-resource.network-id = $tmp.network-id\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmpo.aai.network-resource\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 819.3333129882812,
+ "y": 729.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "8087f47e.b7d908",
+ "2e139068.5a46b"
+ ]
+ ]
+ },
+ {
+ "id": "8087f47e.b7d908",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1079.333251953125,
+ "y": 694.3332824707031,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "6dd6f49f.057544"
+ ]
+ ]
+ },
+ {
+ "id": "2e139068.5a46b",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1085.82421875,
+ "y": 755.9073486328125,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "6d4b5f63.14c128"
+ ]
+ ]
+ },
+ {
+ "id": "6dd6f49f.057544",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1227.3333740234375,
+ "y": 692.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": [
+ [
+ "4e2a0d4a.685e74",
+ "d3c795bb.795f1",
+ "5fcca940.5ce38",
+ "6c8a563f.779dc"
+ ]
+ ]
+ },
+ {
+ "id": "6d4b5f63.14c128",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1228.3333740234375,
+ "y": 757.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4e2a0d4a.685e74",
+ "type": "set",
+ "name": "set tmp.network-if",
+ "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"`'providerId-' + $tmp.provider-id + '-clientId-' + $tmp.client-id + '-topologyId-' + $tmp.te-topo-id `\" />\n<!--<parameter name='tmp.network-id' value=\"`'providerId-' + $tmpo.provider-id `\" />-->\n\n",
+ "comments": "",
+ "x": 1425.3333740234375,
+ "y": 814.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "d3c795bb.795f1",
+ "type": "set",
+ "name": "set tmpo.provider-id",
+ "xml": "<set>\n<parameter name='tmpo.provider-id' value=\"`$tmp.provider-id + 'new' `\" />",
+ "comments": "",
+ "x": 1418.3333740234375,
+ "y": 620.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "5fcca940.5ce38",
+ "type": "set",
+ "name": "unset tmp.network-if",
+ "xml": "<set>\n<!--<parameter name='tmp.network-id' value=\"`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`\" />-->\n<parameter name='tmp.network-id' value=\"\" />\n\n",
+ "comments": "",
+ "x": 1425.3333740234375,
+ "y": 738.3333129882812,
+ "z": "a00613f8.474e58",
+ "wires": []
+ },
+ {
+ "id": "6c8a563f.779dc",
+ "type": "set",
+ "name": "set tmp.provider-id",
+ "xml": "<set>\n<parameter name='tmp.provider-id' value=\"`$tmpo.provider-id`\" />",
+ "comments": "",
+ "x": 1419.566650390625,
+ "y": 662.566650390625,
+ "z": "a00613f8.474e58",
+ "wires": []
}
]
\ No newline at end of file diff --git a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml index ebed9d63..b9e143d8 100644 --- a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml +++ b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-discovery.xml @@ -21,10 +21,16 @@ <parameter name="format" value="json"/>
<parameter name="httpMethod" value="post"/>
<parameter name="responsePrefix" value="token-result"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ <parameter name="disableHostVerification" value="true"/>
+ <parameter name="ssl" value="false"/>
<outcome value='success'>
<set>
<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />
@@ -43,10 +49,12 @@ <parameter name="format" value="json"/>
<parameter name="httpMethod" value="get"/>
<parameter name="responsePrefix" value="topology"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ <parameter name="disableHostVerification" value="true"/>
+ <parameter name="ssl" value="false"/>
<outcome value='failure'>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
@@ -78,7 +86,39 @@ <set>
<parameter name='network.' value='`$topology.networks.network[$netidx].`' />
</set>
- <switch test='`$network.te-topology-identifier.topology-id`'>
+ <set>
+ <parameter name='tmpo.client-id' value='`$network.te-topology-identifier.client-id`' />
+ <parameter name='tmpo.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />
+ <parameter name='tmpo.provider-id' value='`$network.te-topology-identifier.provider-id`' />
+ </set>
+ <switch test="`length($tmpo.client-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.client-id' value='`$network.client-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmpo.te-topo-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.te-topo-id' value='`$network.te-topology-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmpo.provider-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.provider-id' value='`$network.provider-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test='`$tmpo.te-topo-id`'>
<outcome value='1'>
<block>
<set>
@@ -93,6 +133,20 @@ </set>
</block>
</outcome>
+ <outcome value='11'>
+ <block>
+ <set>
+ <parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='33'>
+ <block>
+ <set>
+ <parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />
+ </set>
+ </block>
+ </outcome>
</switch>
</block>
</for>
@@ -112,10 +166,12 @@ <parameter name="format" value="json"/>
<parameter name="httpMethod" value="get"/>
<parameter name="responsePrefix" value="topology"/>
- <parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
- <parameter name="trustStorePassword" value="adminadmin"/>
- <parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
- <parameter name="keyStorePassword" value="adminadmin"/>
+ <!--<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>-->
+ <!--<parameter name="trustStorePassword" value="adminadmin"/>-->
+ <!--<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>-->
+ <!--<parameter name="keyStorePassword" value="adminadmin"/>-->
+ <parameter name="disableHostVerification" value="true"/>
+ <parameter name="ssl" value="false"/>
<parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
<outcome value='failure'>
<return status='failure'>
@@ -148,7 +204,39 @@ <set>
<parameter name='network.' value='`$topology.networks.network[$netidx].`' />
</set>
- <switch test='`$network.te-topology-identifier.topology-id`'>
+ <set>
+ <parameter name='tmpo.client-id' value='`$network.te-topology-identifier.client-id`' />
+ <parameter name='tmpo.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />
+ <parameter name='tmpo.provider-id' value='`$network.te-topology-identifier.provider-id`' />
+ </set>
+ <switch test="`length($tmpo.client-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.client-id' value='`$network.client-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmpo.te-topo-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.te-topo-id' value='`$network.te-topology-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmpo.provider-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmpo.provider-id' value='`$network.provider-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test='`$tmpo.te-topo-id`'>
<outcome value='1'>
<block>
<set>
@@ -163,6 +251,20 @@ </set>
</block>
</outcome>
+ <outcome value='11'>
+ <block>
+ <set>
+ <parameter name='network-otn.' value='`$topology.networks.network[$netidx].`' />
+ </set>
+ </block>
+ </outcome>
+ <outcome value='33'>
+ <block>
+ <set>
+ <parameter name='network-eth.' value='`$topology.networks.network[$netidx].`' />
+ </set>
+ </block>
+ </outcome>
</switch>
</block>
</for>
diff --git a/platform-logic/datachange/src/main/xml/DataChange_update-network-to-aai.xml b/platform-logic/datachange/src/main/xml/DataChange_update-network-to-aai.xml index 311514bd..c5aeb2a1 100644 --- a/platform-logic/datachange/src/main/xml/DataChange_update-network-to-aai.xml +++ b/platform-logic/datachange/src/main/xml/DataChange_update-network-to-aai.xml @@ -13,12 +13,75 @@ <!--<parameter name='tmp.network-id' value="`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`" />-->
<parameter name='tmp.network-id' value="`$tmp.original-network-id`" />
</set>
+ <set>
+ <parameter name='tmp.client-id' value='`$network.te-topology-identifier.client-id`' />
+ <parameter name='tmp.te-topo-id' value='`$network.te-topology-identifier.topology-id`' />
+ <parameter name='tmp.provider-id' value='`$network.te-topology-identifier.provider-id`' />
+ </set>
+ <switch test="`length($tmp.client-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.client-id' value='`$network.client-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmp.te-topo-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.te-topo-id' value='`$network.te-topology-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <switch test="`length($tmp.provider-id) == 0`">
+ <outcome value='true'>
+ <block>
+ <set>
+ <parameter name='tmp.provider-id' value='`$network.provider-id`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="network-resource"
+ key="network-resource.network-id = $tmp.network-id"
+ local-only="false"
+ pfx="tmpo.aai.network-resource" >
+ <outcome value='success'>
+ <block>
+ <set>
+ <parameter name='tmpo.provider-id' value="`$tmp.provider-id + 'new' `" />
+ </set>
+ <set>
+ <parameter name='tmp.provider-id' value="`$tmpo.provider-id`" />
+ </set>
+ <set>
+ <!--<parameter name='tmp.network-id' value="`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`" />-->
+ <parameter name='tmp.network-id' value="" />
+ </set>
+ <set>
+ <!--<parameter name='tmp.network-id' value="`$prop.sdncRestApi.thirdpartySdnc.id + '-' + $tmp.original-network-id`" />-->
+ <parameter name='tmp.network-id' value="`'providerId-' + $tmp.provider-id + '-clientId-' + $tmp.client-id + '-topologyId-' + $tmp.te-topo-id `" />
+ <!--<parameter name='tmp.network-id' value="`'providerId-' + $tmpo.provider-id `" />-->
+ </set>
+ </block>
+ </outcome>
+ <outcome value='not-found'>
+ <block></block>
+ </outcome>
+ </get-resource>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='network-resource'
key='network-resource.network-id = $tmp.network-id' >
<parameter name='network-id' value='`$tmp.network-id`' />
- <parameter name='client-id' value='`$network.te-topology-identifier.client-id`' />
- <parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />
- <parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />
+ <parameter name='client-id' value='`$tmp.client-id`' />
+ <parameter name='te-topo-id' value='`$tmp.te-topo-id`' />
+ <parameter name='provider-id' value='`$tmp.provider-id`' />
+ <!--<parameter name='client-id' value='`$network.te-topology-identifier.client-id`' />-->
+ <!--<parameter name='te-topo-id' value='`$network.te-topology-identifier.topology-id`' />-->
+ <!--<parameter name='provider-id' value='`$network.te-topology-identifier.provider-id`' />-->
<parameter name='network-type' value='`$network.network-types`' />
</save>
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
|