[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_generate-l3network-network-id.json
1 [
2     {
3         "id": "dd70f366.d125c",
4         "type": "execute",
5         "name": "execute: generateUUID",
6         "xml": "<execute plugin=\"org.openecomp.sdnc.sli.SliPluginUtils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />",
7         "comments": "",
8         "outputs": 1,
9         "x": 508.75,
10         "y": 337.5,
11         "z": "d1ec70b0.44ebb",
12         "wires": [
13             [
14                 "f9cd5358.f88ee"
15             ]
16         ]
17     },
18     {
19         "id": "f9cd5358.f88ee",
20         "type": "failure",
21         "name": "failure",
22         "xml": "<outcome value='failure'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 704.5000076293945,
26         "y": 337.5,
27         "z": "d1ec70b0.44ebb",
28         "wires": [
29             [
30                 "8a954bff.6fab18"
31             ]
32         ]
33     },
34     {
35         "id": "8a954bff.6fab18",
36         "type": "returnFailure",
37         "name": "return failure",
38         "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.\" />",
39         "comments": "",
40         "x": 869.5000076293945,
41         "y": 337.74999713897705,
42         "z": "d1ec70b0.44ebb",
43         "wires": []
44     },
45     {
46         "id": "e113a5e5.a5dc38",
47         "type": "get-resource",
48         "name": "Query AnAI -  l3-network",
49         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.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\" >",
50         "comments": "",
51         "outputs": 1,
52         "x": 634.0000076293945,
53         "y": 428.74999713897705,
54         "z": "d1ec70b0.44ebb",
55         "wires": [
56             [
57                 "8852c700.cf1728",
58                 "49979ca4.27c0b4",
59                 "414c6b14.1afed4",
60                 "5312fbfe.635864"
61             ]
62         ]
63     },
64     {
65         "id": "5c1d01b6.e9f5e",
66         "type": "for",
67         "name": "for n: true",
68         "xml": "<for atomic=\"true\" index=\"n\" start=\"0\" end=\"1\" >",
69         "comments": "",
70         "outputs": 1,
71         "x": 458.00000762939453,
72         "y": 428.74999713897705,
73         "z": "d1ec70b0.44ebb",
74         "wires": [
75             [
76                 "e113a5e5.a5dc38"
77             ]
78         ]
79     },
80     {
81         "id": "8852c700.cf1728",
82         "type": "success",
83         "name": "success",
84         "xml": "<outcome value='success'>\n",
85         "comments": "",
86         "outputs": 1,
87         "x": 838.5000076293945,
88         "y": 428.74999713897705,
89         "z": "d1ec70b0.44ebb",
90         "wires": [
91             [
92                 "8e45d485.7ae718"
93             ]
94         ]
95     },
96     {
97         "id": "49979ca4.27c0b4",
98         "type": "failure",
99         "name": "failure",
100         "xml": "<outcome value='failure'>\n",
101         "comments": "",
102         "outputs": 1,
103         "x": 834.5000076293945,
104         "y": 508.74999713897705,
105         "z": "d1ec70b0.44ebb",
106         "wires": [
107             [
108                 "9c34c546.317498"
109             ]
110         ]
111     },
112     {
113         "id": "414c6b14.1afed4",
114         "type": "not-found",
115         "name": "not-found",
116         "xml": "<outcome value='not-found'>\n",
117         "comments": "",
118         "outputs": 1,
119         "x": 843.5000076293945,
120         "y": 468.74999713897705,
121         "z": "d1ec70b0.44ebb",
122         "wires": [
123             [
124                 "6b739598.b52fcc"
125             ]
126         ]
127     },
128     {
129         "id": "9c34c546.317498",
130         "type": "returnFailure",
131         "name": "return failure",
132         "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`\" />",
133         "comments": "",
134         "x": 1001.0000152587891,
135         "y": 533.750002861023,
136         "z": "d1ec70b0.44ebb",
137         "wires": []
138     },
139     {
140         "id": "8e45d485.7ae718",
141         "type": "block",
142         "name": "block : atomic",
143         "xml": "<block atomic='true'>",
144         "atomic": "true",
145         "comments": "",
146         "outputs": 1,
147         "x": 996.5000076293945,
148         "y": 428.74999713897705,
149         "z": "d1ec70b0.44ebb",
150         "wires": [
151             [
152                 "2b4a6d59.a9d4b2",
153                 "401c414.4d08ac"
154             ]
155         ]
156     },
157     {
158         "id": "2b4a6d59.a9d4b2",
159         "type": "set",
160         "name": "set: ...local...is-unique = 0",
161         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.is-unique\" value=\"0\" />",
162         "comments": "",
163         "outputs": 1,
164         "x": 1214.0000610351562,
165         "y": 428.75000286102295,
166         "z": "d1ec70b0.44ebb",
167         "wires": [
168             []
169         ]
170     },
171     {
172         "id": "401c414.4d08ac",
173         "type": "execute",
174         "name": "execute: generateUUID",
175         "xml": "<execute plugin=\"org.openecomp.sdnc.sli.SliPluginUtils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-l3network-network-id.uuid\" />",
176         "comments": "",
177         "outputs": 1,
178         "x": 1207.5000076293945,
179         "y": 468.74999713897705,
180         "z": "d1ec70b0.44ebb",
181         "wires": [
182             [
183                 "2afa9dc4.53e492"
184             ]
185         ]
186     },
187     {
188         "id": "2afa9dc4.53e492",
189         "type": "failure",
190         "name": "failure",
191         "xml": "<outcome value='failure'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 1394.5000076293945,
195         "y": 468.74999713897705,
196         "z": "d1ec70b0.44ebb",
197         "wires": [
198             [
199                 "34a04552.d8838a"
200             ]
201         ]
202     },
203     {
204         "id": "34a04552.d8838a",
205         "type": "returnFailure",
206         "name": "return failure",
207         "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.\" />",
208         "comments": "",
209         "x": 1548.5000076293945,
210         "y": 468.74999713897705,
211         "z": "d1ec70b0.44ebb",
212         "wires": []
213     },
214     {
215         "id": "6b739598.b52fcc",
216         "type": "block",
217         "name": "block",
218         "xml": "<block>",
219         "atomic": "false",
220         "comments": "",
221         "outputs": 1,
222         "x": 974.5000076293945,
223         "y": 468.74999713897705,
224         "z": "d1ec70b0.44ebb",
225         "wires": [
226             []
227         ]
228     },
229     {
230         "id": "437c334.fa9bacc",
231         "type": "dgstart",
232         "name": "DGSTART",
233         "outputs": 1,
234         "x": 215.00000381469727,
235         "y": 24.999996185302734,
236         "z": "d1ec70b0.44ebb",
237         "wires": [
238             [
239                 "d0d787ad.11a628"
240             ]
241         ]
242     },
243     {
244         "id": "d0d787ad.11a628",
245         "type": "service-logic",
246         "name": "VNF-API ${project.version}",
247         "module": "VNF-API",
248         "version": "${project.version}",
249         "comments": "",
250         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
251         "outputs": 1,
252         "x": 239,
253         "y": 71.24999618530273,
254         "z": "d1ec70b0.44ebb",
255         "wires": [
256             [
257                 "b3eba119.c492f"
258             ]
259         ]
260     },
261     {
262         "id": "b3eba119.c492f",
263         "type": "method",
264         "name": "method generate-l3network-network-id",
265         "xml": "<method rpc=\"generate-l3network-network-id\" mode=\"sync\">",
266         "comments": "",
267         "outputs": 1,
268         "x": 324.75,
269         "y": 123.74999618530273,
270         "z": "d1ec70b0.44ebb",
271         "wires": [
272             [
273                 "f616b569.f578f8"
274             ]
275         ]
276     },
277     {
278         "id": "bd83e429.00ab68",
279         "type": "comment",
280         "name": "VNF-API: GENERATE-L3NETWORK-NETWORK-ID",
281         "info": "",
282         "comments": "",
283         "x": 766.5000152587891,
284         "y": 31.2499942779541,
285         "z": "d1ec70b0.44ebb",
286         "wires": []
287     },
288     {
289         "id": "f616b569.f578f8",
290         "type": "block",
291         "name": "block : atomic",
292         "xml": "<block atomic=\"true\">",
293         "atomic": "true",
294         "comments": "",
295         "outputs": 1,
296         "x": 276.50000762939453,
297         "y": 248.74999713897705,
298         "z": "d1ec70b0.44ebb",
299         "wires": [
300             [
301                 "dd70f366.d125c",
302                 "5c1d01b6.e9f5e",
303                 "b4996f5b.9e931",
304                 "60de1533.5bb86c"
305             ]
306         ]
307     },
308     {
309         "id": "2ec4eee9.2ac6b2",
310         "type": "comment",
311         "name": "LOOP UNTIL GENERATED NETWORK-ID ISN'T FOUND IN A&AI",
312         "info": "",
313         "comments": "",
314         "x": 677.75,
315         "y": 385.0000009536743,
316         "z": "d1ec70b0.44ebb",
317         "wires": []
318     },
319     {
320         "id": "5ce6ee54.fd9d2",
321         "type": "comment",
322         "name": "GENERATE A NETWORK-ID",
323         "info": "",
324         "comments": "",
325         "x": 541.5,
326         "y": 294.9999990463257,
327         "z": "d1ec70b0.44ebb",
328         "wires": []
329     },
330     {
331         "id": "b4996f5b.9e931",
332         "type": "set",
333         "name": "unset: local-variables & return",
334         "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=\"\" />",
335         "comments": "",
336         "outputs": 1,
337         "x": 527.5000076293945,
338         "y": 248.74999713897705,
339         "z": "d1ec70b0.44ebb",
340         "wires": [
341             []
342         ]
343     },
344     {
345         "id": "a706e0b1.9117a",
346         "type": "comment",
347         "name": "CLEANUP LOCAL VARIABLES TO BE USED",
348         "info": "",
349         "comments": "",
350         "x": 611.75,
351         "y": 204.99999809265137,
352         "z": "d1ec70b0.44ebb",
353         "wires": []
354     },
355     {
356         "id": "a0f4690f.efa0d8",
357         "type": "comment",
358         "name": "GLOBAL VARIABLES USED",
359         "info": "// RETURN VALUES\nerror-message.generate-generic-vnf-id\ntmp.return.generate-generic-vnf-id.uuid\n\n// LOCAL VARIABLES (erased at beginning & end of DG)\ntmp.local-variables.generate-generic-vnf-id.*\ntmp.local-variables.generate-generic-vnf-id.GENERIC_VNF.*",
360         "comments": "",
361         "x": 753.0000305175781,
362         "y": 71.2499942779541,
363         "z": "d1ec70b0.44ebb",
364         "wires": []
365     },
366     {
367         "id": "60de1533.5bb86c",
368         "type": "set",
369         "name": "unset: local-variables & return",
370         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-l3network-network-id.\" value=\"\" />",
371         "comments": "",
372         "outputs": 1,
373         "x": 527.5000076293945,
374         "y": 528.749997138977,
375         "z": "d1ec70b0.44ebb",
376         "wires": [
377             []
378         ]
379     },
380     {
381         "id": "39e8f5d1.20ee3a",
382         "type": "comment",
383         "name": "CLEANUP LOCAL VARIABLES",
384         "info": "",
385         "comments": "",
386         "x": 569,
387         "y": 486.25000190734863,
388         "z": "d1ec70b0.44ebb",
389         "wires": []
390     },
391     {
392         "id": "5312fbfe.635864",
393         "type": "other",
394         "name": "Other",
395         "xml": "<outcome value=\"Other\">",
396         "comments": "",
397         "outputs": 1,
398         "x": 834.5000076293945,
399         "y": 548.749997138977,
400         "z": "d1ec70b0.44ebb",
401         "wires": [
402             [
403                 "9c34c546.317498"
404             ]
405         ]
406     }
407 ]