From 79a537071550d5ae0df0c58572ff2b5aa3065c72 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 6 Sep 2017 11:03:15 -0400 Subject: Add generic-resource-api DG seed code Add seed code for generic-resource-api directed graphs. Change-Id: I51df937740d54d6f907c79fe322e4ffafe53537c Issue-ID: SDNC-45 Signed-off-by: Dan Timoney Former-commit-id: b014b942536d93f55664b67a36436168e623bcec --- ...RESOURCE-API_generate-l3network-network-id.json | 398 +++++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-l3network-network-id.json') 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": "\n\t", + "comments": "", + "outputs": 1, + "x": 475.8888854980469, + "y": 396.50000381469727, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "aee3b0da.c79fb" + ] + ] + }, + { + "id": "aee3b0da.c79fb", + "type": "failure", + "name": "failure", + "xml": "\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": "\n\t\n\t\n\n\t\n\t", + "comments": "", + "x": 836.6388931274414, + "y": 396.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "19e3e967.c281b7", + "type": "get-resource", + "name": "Query AnAI - l3-network", + "xml": "", + "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": "", + "comments": "", + "outputs": 1, + "x": 425.1388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "19e3e967.c281b7" + ] + ] + }, + { + "id": "2807c6fa.8fbd4a", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 805.6388931274414, + "y": 487.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "6fcc46f3.9af1a8" + ] + ] + }, + { + "id": "94e9ced3.238", + "type": "failure", + "name": "failure", + "xml": "\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": "\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": "\n\t\n\t", + "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": "\n\t", + "comments": "", + "x": 1181.1389465332031, + "y": 487.7500066757202, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "4e358d48.be92b4", + "type": "execute", + "name": "execute: generateUUID", + "xml": "\n\t", + "comments": "", + "outputs": 1, + "x": 1174.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "4cf76132.02956" + ] + ] + }, + { + "id": "4cf76132.02956", + "type": "failure", + "name": "failure", + "xml": "\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": "\n\t\n\t", + "comments": "", + "x": 1515.6388931274414, + "y": 527.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [] + }, + { + "id": "4292e2a6.5346ac", + "type": "block", + "name": "block", + "xml": "", + "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": "", + "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": "", + "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": "", + "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": "\n\t\n\t", + "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": "\n\t", + "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": "", + "comments": "", + "outputs": 1, + "x": 801.6388931274414, + "y": 607.7500009536743, + "z": "ed9b1fd8.6f0a7", + "wires": [ + [ + "537fe43b.f1146c" + ] + ] + } +] -- cgit 1.2.3-korg