aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json546
1 files changed, 295 insertions, 251 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
index 9f672c12..7d5dfcaa 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "674547d2.8e25c8",
+ "id": "4ddcb062.8ecdb",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 102.5039176940918,
- "y": 36.00000238418579,
- "z": "5630a65a.9ec898",
+ "x": 88.03125,
+ "y": 50.03125,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "e5902308.c1c82"
+ "596e35be.20cc4c"
]
]
},
{
- "id": "e5902308.c1c82",
+ "id": "596e35be.20cc4c",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,711 +22,755 @@
"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='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 288.50392150878906,
- "y": 108.00001955032349,
- "z": "5630a65a.9ec898",
+ "x": 274.03125381469727,
+ "y": 122.0312671661377,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "790713af.f45e7c"
+ "c01d9d60.83407"
]
]
},
{
- "id": "790713af.f45e7c",
+ "id": "c01d9d60.83407",
"type": "method",
"name": "method sdwan-network-topology-operation-activate",
"xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 276.5040397644043,
- "y": 196.0000023841858,
- "z": "5630a65a.9ec898",
+ "x": 262.0313720703125,
+ "y": 210.03125,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "e083889a.f74828"
+ "18ab359f.ed0fba"
]
]
},
{
- "id": "e083889a.f74828",
+ "id": "18ab359f.ed0fba",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 450.50393295288086,
- "y": 304.0000615119934,
- "z": "5630a65a.9ec898",
+ "x": 436.03126525878906,
+ "y": 318.0313091278076,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "6158cb8c.f46db4",
- "81410bf9.e64458",
- "781fc34d.70c51c",
- "7be4b307.5359ec",
- "2905e598.65892a",
- "68901172.3a726",
- "a0fba53c.970e38",
- "944018c7.5a14b8",
- "5e8274ed.a57dbc",
- "f220bde6.61096",
- "1ebcf5b8.ee7c3a",
- "95959ba8.d84698",
- "cf1e1603.5d6118",
- "f18b4542.7d2158",
- "581db18a.df70a"
+ "c561faa1.7d7778",
+ "6dc01778.009fd8",
+ "da487e61.56608",
+ "c6b01240.db33",
+ "3f3b0e5f.2cbb02",
+ "98c44abf.148e28",
+ "21c2ad92.7e1fb2",
+ "2511a75a.f0a8b8",
+ "1ae62a5a.18e726",
+ "fc4fc9d4.5f3178",
+ "3bff9e87.90adb2",
+ "3355eb7a.3cf5b4",
+ "fce8b550.d12f88",
+ "cc83cf92.13ac4",
+ "5ff87b45.2a9d04"
]
]
},
{
- "id": "6158cb8c.f46db4",
+ "id": "c561faa1.7d7778",
"type": "call",
"name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 908.8928184509277,
- "y": 53.00000238418579,
- "z": "5630a65a.9ec898",
+ "x": 894.4201507568359,
+ "y": 67.03125,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "81410bf9.e64458",
+ "id": "6dc01778.009fd8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-network-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
"comments": "",
"outputs": 1,
- "x": 709.0595169067383,
- "y": 106.77785539627075,
- "z": "5630a65a.9ec898",
+ "x": 694.5868492126465,
+ "y": 120.80910301208496,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "781fc34d.70c51c",
+ "id": "da487e61.56608",
"type": "set",
"name": "set networkId and network-object-path",
"xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
"comments": "",
- "x": 796.0597953796387,
- "y": 1029.3134715557098,
- "z": "5630a65a.9ec898",
+ "x": 781.5871276855469,
+ "y": 1043.344719171524,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "7be4b307.5359ec",
+ "id": "c6b01240.db33",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
"comments": "",
- "x": 717.8375968933105,
- "y": 1218.8688914775848,
- "z": "5630a65a.9ec898",
+ "x": 703.3649291992188,
+ "y": 1232.900139093399,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "2905e598.65892a",
+ "id": "3f3b0e5f.2cbb02",
"type": "set",
"name": "set network-level-oper-status",
"xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
"comments": "",
- "x": 762.9487113952637,
- "y": 1090.53564620018,
- "z": "5630a65a.9ec898",
+ "x": 748.4760437011719,
+ "y": 1104.5668938159943,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "68901172.3a726",
+ "id": "98c44abf.148e28",
"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": 741.3616218566895,
- "y": 159.77789163589478,
- "z": "5630a65a.9ec898",
+ "x": 726.8889541625977,
+ "y": 173.80913925170898,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "a0fba53c.970e38",
+ "id": "21c2ad92.7e1fb2",
"type": "update",
"name": "update SDWAN VPN status to AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanatId' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />",
"comments": "",
"outputs": 1,
- "x": 780.1674270629883,
- "y": 1153.2388577461243,
- "z": "5630a65a.9ec898",
+ "x": 765.6947593688965,
+ "y": 1167.2701053619385,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "944018c7.5a14b8",
+ "id": "2511a75a.f0a8b8",
"type": "set",
"name": "set network in service-data",
"xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
"comments": "",
- "x": 756.5043258666992,
- "y": 976.0913054943085,
- "z": "5630a65a.9ec898",
+ "x": 742.0316581726074,
+ "y": 990.1225531101227,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "5e8274ed.a57dbc",
+ "id": "1ae62a5a.18e726",
"type": "for",
"name": "for each network-input-parameters",
"xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 793.5039176940918,
- "y": 230.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 779.03125,
+ "y": 244.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "aff4cb70.f51d18"
+ "b794657d.4da128"
]
]
},
{
- "id": "aff4cb70.f51d18",
+ "id": "b794657d.4da128",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1050.3373489379883,
- "y": 164.33726105093956,
- "z": "5630a65a.9ec898",
+ "x": 1035.8646812438965,
+ "y": 178.36850866675377,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "55124a0e.ecead4",
- "b20e40a7.db9f2"
+ "53501d6c.c520f4",
+ "e1341c8f.56768"
]
]
},
{
- "id": "55124a0e.ecead4",
+ "id": "53501d6c.c520f4",
"type": "switchNode",
"name": "switch name",
"xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1241.3374099731445,
- "y": 160.33729347586632,
- "z": "5630a65a.9ec898",
+ "x": 1226.8647422790527,
+ "y": 174.36854109168053,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "c7d7c03b.f2fa6"
+ "2cafaedf.cedf32"
]
]
},
{
- "id": "c7d7c03b.f2fa6",
+ "id": "2cafaedf.cedf32",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1415.3375358581543,
- "y": 160.33729729056358,
- "z": "5630a65a.9ec898",
+ "x": 1400.8648681640625,
+ "y": 174.3685449063778,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "af327670.c19a78"
+ "529c0b0c.8d2074"
]
]
},
{
- "id": "af327670.c19a78",
+ "id": "529c0b0c.8d2074",
"type": "set",
"name": "set name",
"xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1578.3374214172363,
- "y": 159.9372919499874,
- "z": "5630a65a.9ec898",
+ "x": 1563.8647537231445,
+ "y": 173.96853956580162,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "f220bde6.61096",
+ "id": "fce8b550.d12f88",
"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 = 'SDWAN-Controller' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 787.5039176940918,
- "y": 339.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 773.03125,
+ "y": 353.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "9390ab8d.339038",
- "422112c5.89ee3c",
- "b2fc220b.c981"
+ "9b25121d.283a4",
+ "385f822e.d7b4ae",
+ "f3914c31.422ce"
]
]
},
{
- "id": "9390ab8d.339038",
+ "id": "9b25121d.283a4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1032.5039176940918,
- "y": 285.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 1018.03125,
+ "y": 299.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "b9e9d09e.1a521"
+ "f386956a.705be8"
]
]
},
{
- "id": "422112c5.89ee3c",
+ "id": "385f822e.d7b4ae",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1035.9948844909668,
- "y": 332.5779455602169,
- "z": "5630a65a.9ec898",
+ "x": 1021.522216796875,
+ "y": 346.6091931760311,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "fc9a3019.525c8"
+ "e34bc405.635f88"
]
]
},
{
- "id": "b2fc220b.c981",
+ "id": "f3914c31.422ce",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1031.3278923034668,
- "y": 373.91125854849815,
- "z": "5630a65a.9ec898",
+ "x": 1016.855224609375,
+ "y": 387.94250616431236,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "9d79278.15d3ed8"
+ "799bf116.3f716"
]
]
},
{
- "id": "b9e9d09e.1a521",
+ "id": "f386956a.705be8",
"type": "set",
"name": "set controller data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
"comments": "",
- "x": 1230.003978729248,
- "y": 273.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 1215.5313110351562,
+ "y": 287.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "fc9a3019.525c8",
+ "id": "e34bc405.635f88",
"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": 1212.5662956237793,
- "y": 320.8636816442013,
- "z": "5630a65a.9ec898",
+ "x": 1198.0936279296875,
+ "y": 334.8949292600155,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "9d79278.15d3ed8",
+ "id": "799bf116.3f716",
"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": 1219.1004486083984,
- "y": 369.3504513204098,
- "z": "5630a65a.9ec898",
+ "x": 1204.6277809143066,
+ "y": 383.381698936224,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "1ebcf5b8.ee7c3a",
+ "id": "cc83cf92.13ac4",
"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.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
"comments": "",
"outputs": 1,
- "x": 795.5039176940918,
- "y": 450.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 781.03125,
+ "y": 464.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "fd9ecfb8.dcb2c",
- "2aa6377a.1dbc88"
+ "de360ea0.df86c",
+ "8ab64288.ec606"
]
]
},
{
- "id": "fd9ecfb8.dcb2c",
+ "id": "de360ea0.df86c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1030.5039176940918,
- "y": 428.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 1020.031322479248,
+ "y": 442.03518772125244,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "ff15f3bd.bf298"
+ "d8a5f197.3daff"
]
]
},
{
- "id": "2aa6377a.1dbc88",
+ "id": "8ab64288.ec606",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1022.7539176940918,
- "y": 481.6467932164669,
- "z": "5630a65a.9ec898",
+ "x": 1012.281322479248,
+ "y": 495.6780710220337,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "95badc84.277a8"
+ "761741d1.08b81"
]
]
},
{
- "id": "ff15f3bd.bf298",
+ "id": "d8a5f197.3daff",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1184.5039176940918,
- "y": 429.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 1170.03125,
+ "y": 443.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "95badc84.277a8",
+ "id": "761741d1.08b81",
"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=\"Error executing get token rest api\" />\n",
"comments": "",
- "x": 1175.5039176940918,
- "y": 481.39685425162315,
- "z": "5630a65a.9ec898",
+ "x": 1165.031322479248,
+ "y": 495.42813205718994,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "b20e40a7.db9f2",
+ "id": "e1341c8f.56768",
"type": "switchNode",
"name": "switch topology",
"xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1239.7539176940918,
- "y": 213.00390991568565,
- "z": "5630a65a.9ec898",
+ "x": 1225.28125,
+ "y": 227.03515753149986,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "968633ac.1886b"
+ "abb60c8f.8ac5f"
]
]
},
{
- "id": "968633ac.1886b",
+ "id": "abb60c8f.8ac5f",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1413.7540435791016,
- "y": 213.00391373038292,
- "z": "5630a65a.9ec898",
+ "x": 1399.2813758850098,
+ "y": 227.03516134619713,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "28e1e286.2c199e"
+ "36b54251.f429ce"
]
]
},
{
- "id": "28e1e286.2c199e",
+ "id": "36b54251.f429ce",
"type": "set",
"name": "set topology",
"xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1576.7539291381836,
- "y": 212.60390838980675,
- "z": "5630a65a.9ec898",
+ "x": 1562.2812614440918,
+ "y": 226.63515600562096,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "95959ba8.d84698",
+ "id": "5ff87b45.2a9d04",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 722.2539329528809,
- "y": 650.0039599835873,
- "z": "5630a65a.9ec898",
+ "x": 702.7812957763672,
+ "y": 710.0352792739868,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "c37fc252.ca32b"
+ "34512469.61377c"
]
]
},
{
- "id": "c37fc252.ca32b",
+ "id": "34512469.61377c",
"type": "execute",
"name": "execute RestApiCallNode Create network orchestration",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1044.7539825439453,
- "y": 653.0040616989136,
- "z": "5630a65a.9ec898",
+ "x": 1023.2814025878906,
+ "y": 699.0353622436523,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "cf1e1603.5d6118",
+ "id": "fc4fc9d4.5f3178",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 719.7539329528809,
- "y": 758.0039599835873,
- "z": "5630a65a.9ec898",
+ "x": 705.2812652587891,
+ "y": 772.0352075994015,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "e379ec58.8ceb2",
- "3e353248.8e09fe",
- "6943d9d8.2f1f68"
+ "dcf83ef9.92d4e",
+ "6fd086ba.35f488",
+ "ccbce6bf.529778"
]
]
},
{
- "id": "e379ec58.8ceb2",
+ "id": "6fd086ba.35f488",
"type": "execute",
"name": "execute RestApiCallNode Create vpn",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 991.253978729248,
- "y": 748.0040839612484,
- "z": "5630a65a.9ec898",
+ "x": 976.7813110351562,
+ "y": 762.0353315770626,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "3e353248.8e09fe",
+ "id": "dcf83ef9.92d4e",
"type": "set",
"name": "set prop.vpn-id and prop.vpn1Id",
- "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.id`' />\n",
+ "xml": "<set>\n<!--parameter name='prop.vpn-id' value='`$vpn-result.id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.id`' /-->\n\n<parameter name='prop.vpn-id' value='10' />\n<parameter name='prop.vpn1Id' value='10' />\n",
"comments": "",
- "x": 975.2541313171387,
- "y": 800.004145950079,
- "z": "5630a65a.9ec898",
+ "x": 972.7814674377441,
+ "y": 814.0354309082031,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "6943d9d8.2f1f68",
+ "id": "ccbce6bf.529778",
"type": "execute",
"name": "execute RestApiCallNode Create vpn topology",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn-id + '/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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1018.7539825439453,
- "y": 852.0039582252502,
- "z": "5630a65a.9ec898",
+ "x": 1004.2813148498535,
+ "y": 866.0352058410645,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "f18b4542.7d2158",
+ "id": "3bff9e87.90adb2",
"type": "set",
"name": "set tenant-id and vpn-id to service-data",
"xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].name' value='tenant-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length].value' value='`$prop.tenant-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1].name' value='vpn-id' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1].value' value='`$prop.vpn-id`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 2`' />",
"comments": "",
- "x": 798.7539215087891,
- "y": 921.7539792060852,
- "z": "5630a65a.9ec898",
+ "x": 784.2812538146973,
+ "y": 935.7852268218994,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "581db18a.df70a",
+ "id": "3355eb7a.3cf5b4",
"type": "get-resource",
"name": "get-resource service-subscription",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n\n",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n \n",
"comments": "",
"outputs": 1,
- "x": 786.0039520263672,
- "y": 547.2539210319519,
- "z": "5630a65a.9ec898",
+ "x": 758.5313873291016,
+ "y": 613.2851915359497,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "fcef5013.081b8"
+ "edc9287a.cc5518",
+ "5b0f29d9.42a638"
]
]
},
{
- "id": "fcef5013.081b8",
+ "id": "a1fba96c.417d58",
"type": "switchNode",
"name": "switch temp-ub-sub-account-id",
"xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 1078.003993988037,
- "y": 539.0039348602295,
- "z": "5630a65a.9ec898",
+ "x": 1170.531478881836,
+ "y": 578.0352725982666,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "a4ce55d.f40f1a8",
- "90c8ccd1.35a13"
+ "e5d2c50b.cba8f8",
+ "21c5a234.6190ae"
]
]
},
{
- "id": "a4ce55d.f40f1a8",
+ "id": "e5d2c50b.cba8f8",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 1299.7182807922363,
- "y": 540.0039367675781,
- "z": "5630a65a.9ec898",
+ "x": 1363.2459297180176,
+ "y": 552.0353136062622,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "d1e6018.8be3d"
+ "f0651115.93559"
]
]
},
{
- "id": "90c8ccd1.35a13",
+ "id": "21c5a234.6190ae",
"type": "other",
"name": "Other",
"xml": "<outcome value='Other'>",
"comments": "",
"outputs": 1,
- "x": 1301.00390625,
- "y": 594.00390625,
- "z": "5630a65a.9ec898",
+ "x": 1363.531494140625,
+ "y": 607.0352764129639,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "3ebb744f.dbc61c"
+ "867c2305.719d4"
]
]
},
{
- "id": "3ebb744f.dbc61c",
+ "id": "867c2305.719d4",
"type": "set",
"name": "set prop.tenant-id",
"xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
"comments": "",
- "x": 1487.0041427612305,
- "y": 594.0039291381836,
- "z": "5630a65a.9ec898",
+ "x": 1519.5316696166992,
+ "y": 665.0351943969727,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "d1e6018.8be3d",
+ "id": "f0651115.93559",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1515.75390625,
- "y": 539.75390625,
- "z": "5630a65a.9ec898",
+ "x": 1501.2812385559082,
+ "y": 553.7851538658142,
+ "z": "28e3f0b9.24cf2",
"wires": [
[
- "3f91e970.83e3f6",
- "df20c5db.1ec7f8",
- "8a6f7c34.568fe",
- "f54989e1.a4a098",
- "eb872c81.f35e"
+ "369b1850.33da28",
+ "6de36f9a.0a191",
+ "1299a0cc.66391f",
+ "8cc3c364.b95fb",
+ "c1785bc5.472658"
]
]
},
{
- "id": "f54989e1.a4a098",
+ "id": "8cc3c364.b95fb",
"type": "set",
"name": "set prop.customer-id",
"xml": "<set>\n<parameter name='prop.customer-id' value='`$ctx.network-data.service-information.global-customer-id`' />\n",
"comments": "",
- "x": 1728.2540321350098,
- "y": 492.75404182076454,
- "z": "5630a65a.9ec898",
+ "x": 1716.7815170288086,
+ "y": 490.78530991077423,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "3f91e970.83e3f6",
+ "id": "369b1850.33da28",
"type": "execute",
"name": "execute RestApiCallNode Create tenant",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenanats'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1789.2539176940918,
- "y": 553.7539159357548,
- "z": "5630a65a.9ec898",
+ "x": 1774.78125,
+ "y": 567.785163551569,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "df20c5db.1ec7f8",
+ "id": "6de36f9a.0a191",
"type": "set",
"name": "set prop.tenant-id",
"xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
"comments": "",
- "x": 1722.253963470459,
- "y": 582.7538844645023,
- "z": "5630a65a.9ec898",
+ "x": 1724.7814826965332,
+ "y": 619.785234451294,
+ "z": "28e3f0b9.24cf2",
"wires": []
},
{
- "id": "8a6f7c34.568fe",
+ "id": "1299a0cc.66391f",
"type": "execute",
"name": "execute RestApiCallNode Create tenant auth",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenanats/authorization/' + $prop.tenant-id`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1803.7538719177246,
- "y": 613.5038854181767,
- "z": "5630a65a.9ec898",
+ "x": 1792.281478881836,
+ "y": 655.535234451294,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
},
{
- "id": "eb872c81.f35e",
+ "id": "c1785bc5.472658",
"type": "get-resource",
"name": "save-resource customer-id in service-subscription",
"xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.networks.network[$tmp.nidx].network-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.networks.network[$tmp.nidx].network-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' />\n\n",
"comments": "",
"outputs": 1,
- "x": 1819.253963470459,
- "y": 524.7540208399296,
- "z": "5630a65a.9ec898",
+ "x": 1794.7813568115234,
+ "y": 528.7853126525879,
+ "z": "28e3f0b9.24cf2",
"wires": [
[]
]
+ },
+ {
+ "id": "edc9287a.cc5518",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 969.03125,
+ "y": 586.03125,
+ "z": "28e3f0b9.24cf2",
+ "wires": [
+ [
+ "a1fba96c.417d58"
+ ]
+ ]
+ },
+ {
+ "id": "5b0f29d9.42a638",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 961.28125,
+ "y": 639.6741333007812,
+ "z": "28e3f0b9.24cf2",
+ "wires": [
+ [
+ "406169f1.4046c8"
+ ]
+ ]
+ },
+ {
+ "id": "406169f1.4046c8",
+ "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=\"Error executing get token rest api\" />\n",
+ "comments": "",
+ "x": 1114.03125,
+ "y": 639.4241943359375,
+ "z": "28e3f0b9.24cf2",
+ "wires": []
}
]