diff options
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json')
-rw-r--r-- | platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json | 398 |
1 files changed, 398 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json new file mode 100644 index 00000000..e0a41e99 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json @@ -0,0 +1,398 @@ +[ + { + "id": "32a337db.ae5aa8", + "type": "execute", + "name": "execute: generateUUID", + "xml": "<execute plugin=\"com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />", + "comments": "", + "outputs": 1, + "x": 475.8888854980469, + "y": 396.50000381469727, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "aee3b0da.c79fb" + ] + ] + }, + { + "id": "aee3b0da.c79fb", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 671.6388931274414, + "y": 396.50000381469727, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "2e6b8196.18f09e" + ] + ] + }, + { + "id": "2e6b8196.18f09e", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<!-- Used to work around execute node bug -->\n\t<parameter name=\"execute_failure\" value=\"false\" />\n\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />", + "comments": "", + "x": 836.6388931274414, + "y": 396.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "19e3e967.c281b7", + "type": "get-resource", + "name": "Query AnAI - l3-network", + "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"l3-network\"\n key=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\"\n local-only=\"false\"\n pfx=\"tmp.local-variables.generate-l3network-network-id.L3NETWORK\" >", + "comments": "", + "outputs": 1, + "x": 601.1388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "2807c6fa.8fbd4a", + "94e9ced3.238", + "4ecb327.82397cc", + "a2e8b62.4d66748" + ] + ] + }, + { + "id": "c1a23e2e.3f106", + "type": "for", + "name": "for n: true", + "xml": "<for atomic=\"true\" index=\"n\" start=\"0\" end=\"1\" >", + "comments": "", + "outputs": 1, + "x": 425.1388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "19e3e967.c281b7" + ] + ] + }, + { + "id": "2807c6fa.8fbd4a", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 805.6388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "6fcc46f3.9af1a8" + ] + ] + }, + { + "id": "94e9ced3.238", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 801.6388931274414, + "y": 567.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "537fe43b.f1146c" + ] + ] + }, + { + "id": "4ecb327.82397cc", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 810.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "4292e2a6.5346ac" + ] + ] + }, + { + "id": "537fe43b.f1146c", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"`'An error occured while checking if a generated l3network-network-id was unique. network-id = ' + $tmp.local-variables.generate-l3network-network-id.uuid`\" />", + "comments": "", + "x": 968.1389007568359, + "y": 592.7500066757202, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "6fcc46f3.9af1a8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 963.6388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "17797a19.8abea6", + "4e358d48.be92b4" + ] + ] + }, + { + "id": "17797a19.8abea6", + "type": "set", + "name": "set: ...local...is-unique = 0", + "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.is-unique\" value=\"0\" />", + "comments": "", + "x": 1181.1389465332031, + "y": 487.7500066757202, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "4e358d48.be92b4", + "type": "execute", + "name": "execute: generateUUID", + "xml": "<execute plugin=\"com.att.sdnctl.sli.SliPluginUtils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />", + "comments": "", + "outputs": 1, + "x": 1174.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "4cf76132.02956" + ] + ] + }, + { + "id": "4cf76132.02956", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1361.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "dea8bdbf.c6534" + ] + ] + }, + { + "id": "dea8bdbf.c6534", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />", + "comments": "", + "x": 1515.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "4292e2a6.5346ac", + "type": "block", + "name": "block", + "xml": "<block>", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 941.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [] + ] + }, + { + "id": "dfc540f2.ccff2", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 182.13888931274414, + "y": 84, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "b386b9cc.e3d508" + ] + ] + }, + { + "id": "b386b9cc.e3d508", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "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": 206.13888549804688, + "y": 130.25, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "a7f05089.bec56" + ] + ] + }, + { + "id": "a7f05089.bec56", + "type": "method", + "name": "method generate-l3network-network-id", + "xml": "<method rpc=\"generate-l3network-network-id\" mode=\"sync\">", + "comments": "", + "outputs": 1, + "x": 291.8888854980469, + "y": 182.75, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "34f40852.137a58" + ] + ] + }, + { + "id": "f5b14600.c43d28", + "type": "comment", + "name": "GENERIC-RESOURCE-API: GENERATE-L3NETWORK-NETWORK-ID", + "info": "", + "comments": "", + "x": 733.6389007568359, + "y": 90.24999809265137, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "34f40852.137a58", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 243.6388931274414, + "y": 307.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "32a337db.ae5aa8", + "c1a23e2e.3f106", + "6d1bc386.49356c", + "2d49b311.80b8cc" + ] + ] + }, + { + "id": "de1da0bf.8163b", + "type": "comment", + "name": "LOOP UNTIL GENERATED NETWORK-ID ISN'T FOUND IN A&AI", + "info": "", + "comments": "", + "x": 644.8888854980469, + "y": 444.0000047683716, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "6ed54c0.6154fb4", + "type": "comment", + "name": "GENERATE A NETWORK-ID", + "info": "", + "comments": "", + "x": 508.6388854980469, + "y": 354.00000286102295, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "6d1bc386.49356c", + "type": "set", + "name": "unset: local-variables & return", + "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-l3network-network-id.\" value=\"\" />", + "comments": "", + "x": 494.6388931274414, + "y": 307.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "b0ae69a3.56e508", + "type": "comment", + "name": "CLEANUP LOCAL VARIABLES TO BE USED", + "info": "", + "comments": "", + "x": 578.8888854980469, + "y": 264.00000190734863, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "5a56764d.91fa68", + "type": "comment", + "name": "GLOBAL VARIABLES USED", + "info": "// RETURN VALUES\nerror-message.generate-l3network-network-id\ntmp.return.generate-l3network-network-id.uuid\n\n// LOCAL VARIABLES (erased at beginning & end of DG)\ntmp.local-variables.generate-l3network-network-id.*\ntmp.return.generate-l3network-network-id.*\n", + "comments": "", + "x": 720.138916015625, + "y": 130.24999809265137, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "2d49b311.80b8cc", + "type": "set", + "name": "unset: local-variables & return", + "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.\" value=\"\" />", + "comments": "", + "x": 494.6388931274414, + "y": 587.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "979528d.92883d8", + "type": "comment", + "name": "CLEANUP LOCAL VARIABLES", + "info": "", + "comments": "", + "x": 536.1388854980469, + "y": 545.2500057220459, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "a2e8b62.4d66748", + "type": "other", + "name": "Other", + "xml": "<outcome value=\"Other\">", + "comments": "", + "outputs": 1, + "x": 801.6388931274414, + "y": 607.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "537fe43b.f1146c" + ] + ] + } +] |