diff options
author | 2018-08-27 17:48:24 +0530 | |
---|---|---|
committer | 2018-08-27 12:22:43 +0000 | |
commit | e14a7ecc352d842413391a574dce5c1d9bfe7d09 (patch) | |
tree | e2ae7551db3e62fb764cc33b27180efcda0373f6 /platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json | |
parent | 724551253283f7869d50a671e07d70004e46089f (diff) |
SDWAN sdnc DGs aai resource changes
SDWAN configuration save in aai resource-name changes are updated in SDWAN DGs
Change-Id: I9097f205751af47b5db8f228142f27786e9d190d
Issue-ID: SDNC-357
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: fad8ff4f0b3660a5c1dd4b7abdb5ac5b95c8fec2
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.json | 550 |
1 files changed, 281 insertions, 269 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 7d5dfcaa..7bba81aa 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": "4ddcb062.8ecdb", + "id": "65a8b91d.24abd8", "type": "dgstart", "name": "DGSTART", "outputs": 1, - "x": 88.03125, - "y": 50.03125, - "z": "28e3f0b9.24cf2", + "x": 151.00390625, + "y": 84.99999904632568, + "z": "8dba42d4.2fc58", "wires": [ [ - "596e35be.20cc4c" + "84123a61.191508" ] ] }, { - "id": "596e35be.20cc4c", + "id": "84123a61.191508", "type": "service-logic", "name": "GENERIC-RESOURCE-API ${project.version}", "module": "GENERIC-RESOURCE-API", @@ -22,755 +22,767 @@ "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": 274.03125381469727, - "y": 122.0312671661377, - "z": "28e3f0b9.24cf2", + "x": 337.00391006469727, + "y": 157.00001621246338, + "z": "8dba42d4.2fc58", "wires": [ [ - "c01d9d60.83407" + "8bfdb728.fd5fb8" ] ] }, { - "id": "c01d9d60.83407", + "id": "8bfdb728.fd5fb8", "type": "method", "name": "method sdwan-network-topology-operation-activate", "xml": "<method rpc='sdwan-network-topology-operation-activate' mode='sync'>\n", "comments": "", "outputs": 1, - "x": 262.0313720703125, - "y": 210.03125, - "z": "28e3f0b9.24cf2", + "x": 325.0040283203125, + "y": 244.99999904632568, + "z": "8dba42d4.2fc58", "wires": [ [ - "18ab359f.ed0fba" + "61fe5ec.24b3ea" ] ] }, { - "id": "18ab359f.ed0fba", + "id": "61fe5ec.24b3ea", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 436.03126525878906, - "y": 318.0313091278076, - "z": "28e3f0b9.24cf2", + "x": 499.00392150878906, + "y": 353.0000581741333, + "z": "8dba42d4.2fc58", "wires": [ [ - "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" + "1c31cf0.eb62931", + "3d6bcf7d.5c2b4", + "55b053ca.9c8fec", + "efb367a9.777348", + "faa41b3d.6507b8", + "25d677c3.3e42d8", + "eb7cc280.f6366", + "178920a9.13ec3f", + "546fc3e9.7052dc", + "dc4c0558.42daa8", + "f31fc51b.0a7188", + "2ab6006d.5b2cc", + "1a43627f.6e263e", + "204db58e.69892a", + "634732f9.1dcf5c", + "d5289859.e9ecf8" ] ] }, { - "id": "c561faa1.7d7778", + "id": "1c31cf0.eb62931", "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": 894.4201507568359, - "y": 67.03125, - "z": "28e3f0b9.24cf2", + "x": 957.3928070068359, + "y": 101.99999904632568, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "6dc01778.009fd8", + "id": "3d6bcf7d.5c2b4", "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": 694.5868492126465, - "y": 120.80910301208496, - "z": "28e3f0b9.24cf2", + "x": 757.5595054626465, + "y": 155.77785205841064, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "da487e61.56608", + "id": "55b053ca.9c8fec", "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": 781.5871276855469, - "y": 1043.344719171524, - "z": "28e3f0b9.24cf2", + "x": 844.5597839355469, + "y": 1078.3134682178497, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "c6b01240.db33", + "id": "efb367a9.777348", "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": 703.3649291992188, - "y": 1232.900139093399, - "z": "28e3f0b9.24cf2", + "x": 766.3375854492188, + "y": 1267.8688881397247, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "3f3b0e5f.2cbb02", + "id": "faa41b3d.6507b8", "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": 748.4760437011719, - "y": 1104.5668938159943, - "z": "28e3f0b9.24cf2", + "x": 811.4486999511719, + "y": 1139.53564286232, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "98c44abf.148e28", + "id": "25d677c3.3e42d8", "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": 726.8889541625977, - "y": 173.80913925170898, - "z": "28e3f0b9.24cf2", + "x": 789.8616104125977, + "y": 208.77788829803467, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "21c2ad92.7e1fb2", + "id": "eb7cc280.f6366", "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`' />", + "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='tenanat-id' value='`$prop.tenant-id`' />\n<parameter name='vpn-id' value='`$prop.vpn-id`' />", "comments": "", "outputs": 1, - "x": 765.6947593688965, - "y": 1167.2701053619385, - "z": "28e3f0b9.24cf2", + "x": 828.6674156188965, + "y": 1202.2388544082642, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "2511a75a.f0a8b8", + "id": "178920a9.13ec3f", "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": 742.0316581726074, - "y": 990.1225531101227, - "z": "28e3f0b9.24cf2", + "x": 805.0043144226074, + "y": 1025.0913021564484, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "1ae62a5a.18e726", + "id": "546fc3e9.7052dc", "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": 779.03125, - "y": 244.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 842.00390625, + "y": 279.00390657782555, + "z": "8dba42d4.2fc58", "wires": [ [ - "b794657d.4da128" + "7343f9f8.91aa58" ] ] }, { - "id": "b794657d.4da128", + "id": "7343f9f8.91aa58", "type": "block", "name": "block", "xml": "<block>\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1035.8646812438965, - "y": 178.36850866675377, - "z": "28e3f0b9.24cf2", + "x": 1098.8373374938965, + "y": 213.33725771307945, + "z": "8dba42d4.2fc58", "wires": [ [ - "53501d6c.c520f4", - "e1341c8f.56768" + "8d49b6eb.aacfa8", + "75ed8e31.a1e03" ] ] }, { - "id": "53501d6c.c520f4", + "id": "8d49b6eb.aacfa8", "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": 1226.8647422790527, - "y": 174.36854109168053, - "z": "28e3f0b9.24cf2", + "x": 1289.8373985290527, + "y": 209.3372901380062, + "z": "8dba42d4.2fc58", "wires": [ [ - "2cafaedf.cedf32" + "9aed38f3.ef1268" ] ] }, { - "id": "2cafaedf.cedf32", + "id": "9aed38f3.ef1268", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1400.8648681640625, - "y": 174.3685449063778, - "z": "28e3f0b9.24cf2", + "x": 1463.8375244140625, + "y": 209.33729395270348, + "z": "8dba42d4.2fc58", "wires": [ [ - "529c0b0c.8d2074" + "f86c1bb0.83c838" ] ] }, { - "id": "529c0b0c.8d2074", + "id": "f86c1bb0.83c838", "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": 1563.8647537231445, - "y": 173.96853956580162, - "z": "28e3f0b9.24cf2", + "x": 1626.8374099731445, + "y": 208.9372886121273, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "fce8b550.d12f88", + "id": "1a43627f.6e263e", "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", + "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 = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n", "comments": "", "outputs": 1, - "x": 773.03125, - "y": 353.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 836.00390625, + "y": 388.00390657782555, + "z": "8dba42d4.2fc58", "wires": [ [ - "9b25121d.283a4", - "385f822e.d7b4ae", - "f3914c31.422ce" + "1feb8ff6.c06a9", + "a8710737.3b8c28", + "e42763ba.ed5ab" ] ] }, { - "id": "9b25121d.283a4", + "id": "1feb8ff6.c06a9", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1018.03125, - "y": 299.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 1081.00390625, + "y": 334.00390657782555, + "z": "8dba42d4.2fc58", "wires": [ [ - "f386956a.705be8" + "4a6a181d.584358" ] ] }, { - "id": "385f822e.d7b4ae", + "id": "a8710737.3b8c28", "type": "not-found", "name": "not-found", "xml": "<outcome value='not-found'>\n", "comments": "", "outputs": 1, - "x": 1021.522216796875, - "y": 346.6091931760311, - "z": "28e3f0b9.24cf2", + "x": 1084.494873046875, + "y": 381.5779422223568, + "z": "8dba42d4.2fc58", "wires": [ [ - "e34bc405.635f88" + "e9aab137.64b04" ] ] }, { - "id": "f3914c31.422ce", + "id": "e42763ba.ed5ab", "type": "other", "name": "other", "xml": "<outcome value='Other'>\n", "comments": "", "outputs": 1, - "x": 1016.855224609375, - "y": 387.94250616431236, - "z": "28e3f0b9.24cf2", + "x": 1079.827880859375, + "y": 422.91125521063805, + "z": "8dba42d4.2fc58", "wires": [ [ - "799bf116.3f716" + "4b35376e.7e4788" ] ] }, { - "id": "f386956a.705be8", + "id": "4a6a181d.584358", "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": 1215.5313110351562, - "y": 287.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 1278.5039672851562, + "y": 322.00390657782555, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "e34bc405.635f88", + "id": "e9aab137.64b04", "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": 1198.0936279296875, - "y": 334.8949292600155, - "z": "28e3f0b9.24cf2", + "x": 1261.0662841796875, + "y": 369.86367830634117, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "799bf116.3f716", + "id": "4b35376e.7e4788", "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": 1204.6277809143066, - "y": 383.381698936224, - "z": "28e3f0b9.24cf2", + "x": 1267.6004371643066, + "y": 418.35044798254967, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "cc83cf92.13ac4", + "id": "204db58e.69892a", "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": 781.03125, - "y": 464.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 844.00390625, + "y": 499.00390657782555, + "z": "8dba42d4.2fc58", "wires": [ [ - "de360ea0.df86c", - "8ab64288.ec606" + "ced0b203.a391b", + "184980af.bcb96f" ] ] }, { - "id": "de360ea0.df86c", + "id": "ced0b203.a391b", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 1020.031322479248, - "y": 442.03518772125244, - "z": "28e3f0b9.24cf2", + "x": 1083.003978729248, + "y": 477.0039367675781, + "z": "8dba42d4.2fc58", "wires": [ [ - "d8a5f197.3daff" + "17cfd49c.8c98fb" ] ] }, { - "id": "8ab64288.ec606", + "id": "184980af.bcb96f", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 1012.281322479248, - "y": 495.6780710220337, - "z": "28e3f0b9.24cf2", + "x": 1075.253978729248, + "y": 530.6468200683594, + "z": "8dba42d4.2fc58", "wires": [ [ - "761741d1.08b81" + "2ec37152.e84eee" ] ] }, { - "id": "d8a5f197.3daff", + "id": "17cfd49c.8c98fb", "type": "set", "name": "set token-id", "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n", "comments": "", - "x": 1170.03125, - "y": 443.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 1233.00390625, + "y": 478.00390657782555, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "761741d1.08b81", + "id": "2ec37152.e84eee", "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": 1165.031322479248, - "y": 495.42813205718994, - "z": "28e3f0b9.24cf2", + "x": 1228.003978729248, + "y": 530.3968811035156, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "e1341c8f.56768", + "id": "75ed8e31.a1e03", "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": 1225.28125, - "y": 227.03515753149986, - "z": "28e3f0b9.24cf2", + "x": 1288.25390625, + "y": 262.00390657782555, + "z": "8dba42d4.2fc58", "wires": [ [ - "abb60c8f.8ac5f" + "6c4b55cb.0408ec" ] ] }, { - "id": "abb60c8f.8ac5f", + "id": "6c4b55cb.0408ec", "type": "outcomeTrue", "name": "true", "xml": "<outcome value='true'>\n", "comments": "", "outputs": 1, - "x": 1399.2813758850098, - "y": 227.03516134619713, - "z": "28e3f0b9.24cf2", + "x": 1462.2540321350098, + "y": 262.0039103925228, + "z": "8dba42d4.2fc58", "wires": [ [ - "36b54251.f429ce" + "6d553f1a.6f2d" ] ] }, { - "id": "36b54251.f429ce", + "id": "6d553f1a.6f2d", "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": 1562.2812614440918, - "y": 226.63515600562096, - "z": "28e3f0b9.24cf2", + "x": 1625.2539176940918, + "y": 261.60390505194664, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "5ff87b45.2a9d04", + "id": "634732f9.1dcf5c", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 702.7812957763672, - "y": 710.0352792739868, - "z": "28e3f0b9.24cf2", + "x": 765.7539520263672, + "y": 745.0040283203125, + "z": "8dba42d4.2fc58", "wires": [ [ - "34512469.61377c" + "f913ba01.d721f8" ] ] }, { - "id": "34512469.61377c", + "id": "f913ba01.d721f8", "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": 1023.2814025878906, - "y": 699.0353622436523, - "z": "28e3f0b9.24cf2", + "x": 1086.2540588378906, + "y": 734.004111289978, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "fc4fc9d4.5f3178", + "id": "dc4c0558.42daa8", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 705.2812652587891, - "y": 772.0352075994015, - "z": "28e3f0b9.24cf2", + "x": 768.2539215087891, + "y": 807.0039566457272, + "z": "8dba42d4.2fc58", "wires": [ [ - "dcf83ef9.92d4e", - "6fd086ba.35f488", - "ccbce6bf.529778" + "fb537bd1.22fa68", + "e996dfd6.0f7c", + "81b5cd25.b683d" ] ] }, { - "id": "6fd086ba.35f488", + "id": "e996dfd6.0f7c", "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": 976.7813110351562, - "y": 762.0353315770626, - "z": "28e3f0b9.24cf2", + "x": 1039.7539672851562, + "y": 797.0040806233883, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "dcf83ef9.92d4e", + "id": "fb537bd1.22fa68", "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\n<parameter name='prop.vpn-id' value='10' />\n<parameter name='prop.vpn1Id' value='10' />\n", + "xml": "<set>\n<parameter name='prop.vpn-id' value='`$vpn-result.success[0].id`' />\n<parameter name='prop.vpn1Id' value='`$vpn-result.success[0].id`' />\n", "comments": "", - "x": 972.7814674377441, - "y": 814.0354309082031, - "z": "28e3f0b9.24cf2", + "x": 1035.7541236877441, + "y": 849.0041799545288, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "ccbce6bf.529778", + "id": "81b5cd25.b683d", "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": 1004.2813148498535, - "y": 866.0352058410645, - "z": "28e3f0b9.24cf2", + "x": 1067.2539710998535, + "y": 901.0039548873901, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "3bff9e87.90adb2", + "id": "f31fc51b.0a7188", "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`' />", + "name": "set tenant-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_length' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length + 1`' />", "comments": "", - "x": 784.2812538146973, - "y": 935.7852268218994, - "z": "28e3f0b9.24cf2", + "x": 803.2540588378906, + "y": 942.7540893554688, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "3355eb7a.3cf5b4", + "id": "2ab6006d.5b2cc", "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", "comments": "", "outputs": 1, - "x": 758.5313873291016, - "y": 613.2851915359497, - "z": "28e3f0b9.24cf2", + "x": 821.5040435791016, + "y": 648.2539405822754, + "z": "8dba42d4.2fc58", "wires": [ [ - "edc9287a.cc5518", - "5b0f29d9.42a638" + "7a3e9a9e.b5ebe4", + "beceadfe.18cd7" ] ] }, { - "id": "a1fba96c.417d58", + "id": "1272bfc5.9264a", "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": 1170.531478881836, - "y": 578.0352725982666, - "z": "28e3f0b9.24cf2", + "x": 1233.504135131836, + "y": 613.0040216445923, + "z": "8dba42d4.2fc58", "wires": [ [ - "e5d2c50b.cba8f8", - "21c5a234.6190ae" + "89f0974b.4d94b8", + "b024d53.775b128" ] ] }, { - "id": "e5d2c50b.cba8f8", + "id": "89f0974b.4d94b8", "type": "outcome", "name": "NULL", "xml": "<outcome value=''>", "comments": "", "outputs": 1, - "x": 1363.2459297180176, - "y": 552.0353136062622, - "z": "28e3f0b9.24cf2", + "x": 1426.2185859680176, + "y": 587.0040626525879, + "z": "8dba42d4.2fc58", "wires": [ [ - "f0651115.93559" + "13ebb7af.038dc8" ] ] }, { - "id": "21c5a234.6190ae", + "id": "b024d53.775b128", "type": "other", "name": "Other", "xml": "<outcome value='Other'>", "comments": "", "outputs": 1, - "x": 1363.531494140625, - "y": 607.0352764129639, - "z": "28e3f0b9.24cf2", + "x": 1426.504150390625, + "y": 642.0040254592896, + "z": "8dba42d4.2fc58", "wires": [ [ - "867c2305.719d4" + "fbfaef01.8c56a" ] ] }, { - "id": "867c2305.719d4", + "id": "fbfaef01.8c56a", "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": 1519.5316696166992, - "y": 665.0351943969727, - "z": "28e3f0b9.24cf2", + "x": 1582.5043258666992, + "y": 700.0039434432983, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "f0651115.93559", + "id": "13ebb7af.038dc8", "type": "block", "name": "block : atomic", "xml": "<block atomic=\"true\">\n", "atomic": "false", "comments": "", "outputs": 1, - "x": 1501.2812385559082, - "y": 553.7851538658142, - "z": "28e3f0b9.24cf2", + "x": 1564.2538948059082, + "y": 588.7539029121399, + "z": "8dba42d4.2fc58", "wires": [ [ - "369b1850.33da28", - "6de36f9a.0a191", - "1299a0cc.66391f", - "8cc3c364.b95fb", - "c1785bc5.472658" + "4e788339.2d713c", + "a323c09d.a8718", + "93da7d77.20b82", + "fa0331db.90ed7", + "b9f4426f.77ac" ] ] }, { - "id": "8cc3c364.b95fb", + "id": "fa0331db.90ed7", "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": 1716.7815170288086, - "y": 490.78530991077423, - "z": "28e3f0b9.24cf2", + "x": 1776.7542114257812, + "y": 525.7540578842163, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "369b1850.33da28", + "id": "4e788339.2d713c", "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": 1774.78125, - "y": 567.785163551569, - "z": "28e3f0b9.24cf2", + "x": 1837.75390625, + "y": 602.7539125978947, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "6de36f9a.0a191", + "id": "a323c09d.a8718", "type": "set", "name": "set prop.tenant-id", "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n", "comments": "", - "x": 1724.7814826965332, - "y": 619.785234451294, - "z": "28e3f0b9.24cf2", + "x": 1787.7541389465332, + "y": 654.7539834976196, + "z": "8dba42d4.2fc58", "wires": [] }, { - "id": "1299a0cc.66391f", + "id": "93da7d77.20b82", "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": 1792.281478881836, - "y": 655.535234451294, - "z": "28e3f0b9.24cf2", + "x": 1855.254135131836, + "y": 690.5039834976196, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "c1785bc5.472658", + "id": "b9f4426f.77ac", "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": 1794.7813568115234, - "y": 528.7853126525879, - "z": "28e3f0b9.24cf2", + "x": 1857.7540130615234, + "y": 563.7540616989136, + "z": "8dba42d4.2fc58", "wires": [ [] ] }, { - "id": "edc9287a.cc5518", + "id": "7a3e9a9e.b5ebe4", "type": "success", "name": "success", "xml": "<outcome value='success'>\n", "comments": "", "outputs": 1, - "x": 969.03125, - "y": 586.03125, - "z": "28e3f0b9.24cf2", + "x": 1032.00390625, + "y": 620.9999990463257, + "z": "8dba42d4.2fc58", "wires": [ [ - "a1fba96c.417d58" + "1272bfc5.9264a" ] ] }, { - "id": "5b0f29d9.42a638", + "id": "beceadfe.18cd7", "type": "failure", "name": "failure", "xml": "<outcome value='failure'>\n", "comments": "", "outputs": 1, - "x": 961.28125, - "y": 639.6741333007812, - "z": "28e3f0b9.24cf2", + "x": 1024.25390625, + "y": 674.6428823471069, + "z": "8dba42d4.2fc58", "wires": [ [ - "406169f1.4046c8" + "e7f65c34.ba5cc" ] ] }, { - "id": "406169f1.4046c8", + "id": "e7f65c34.ba5cc", "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", + "x": 1177.00390625, + "y": 674.3929433822632, + "z": "8dba42d4.2fc58", + "wires": [] + }, + { + "id": "d5289859.e9ecf8", + "type": "set", + "name": "set 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='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].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 + 1`' />", + "comments": "", + "x": 801.5039825439453, + "y": 980.5039672851562, + "z": "8dba42d4.2fc58", "wires": [] } ] |