[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_generate-subnets-subnet-id.json
1 [
2     {
3         "id": "aaa6ff4b.724ea",
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-subnets-subnet-id.uuid\" />",
7         "comments": "",
8         "outputs": 1,
9         "x": 412.8571472167969,
10         "y": 357.1428527832031,
11         "z": "212bebba.daa304",
12         "wires": [
13             [
14                 "5dbe3d08.2b3ac4"
15             ]
16         ]
17     },
18     {
19         "id": "5dbe3d08.2b3ac4",
20         "type": "failure",
21         "name": "failure",
22         "xml": "<outcome value='failure'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 608.6071548461914,
26         "y": 357.1428527832031,
27         "z": "212bebba.daa304",
28         "wires": [
29             [
30                 "e14fcee.4b28f3"
31             ]
32         ]
33     },
34     {
35         "id": "e14fcee.4b28f3",
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": 773.6071548461914,
41         "y": 357.3928499221802,
42         "z": "212bebba.daa304",
43         "wires": []
44     },
45     {
46         "id": "a4f5c20.aaf894",
47         "type": "get-resource",
48         "name": "Query AnAI -  subnets",
49         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\"\n\tresource=\"subnet\"\n\t\tkey=\"l3-network.network-id = $tmp.local.network-id \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\"\n\t\tlocal-only=\"false\"\n\t\tpfx=\"tmp.local-variables.generate-subnets-subnet-id.SUBNETS\" >",
50         "comments": "",
51         "outputs": 1,
52         "x": 538.1071548461914,
53         "y": 448.3928499221802,
54         "z": "212bebba.daa304",
55         "wires": [
56             [
57                 "7566b0aa.23333",
58                 "41541145.8f2fe",
59                 "f04ddaec.babb98",
60                 "53fa760f.b1d208"
61             ]
62         ]
63     },
64     {
65         "id": "6e3cbfaa.cae83",
66         "type": "for",
67         "name": "for s: true",
68         "xml": "<for atomic=\"true\" index=\"s\" start=\"0\" end=\"1\" >",
69         "comments": "",
70         "outputs": 1,
71         "x": 362.1071548461914,
72         "y": 448.3928499221802,
73         "z": "212bebba.daa304",
74         "wires": [
75             [
76                 "a4f5c20.aaf894"
77             ]
78         ]
79     },
80     {
81         "id": "7566b0aa.23333",
82         "type": "success",
83         "name": "success",
84         "xml": "<outcome value='success'>\n",
85         "comments": "",
86         "outputs": 1,
87         "x": 742.6071548461914,
88         "y": 448.3928499221802,
89         "z": "212bebba.daa304",
90         "wires": [
91             [
92                 "a7ff3de0.89a3b"
93             ]
94         ]
95     },
96     {
97         "id": "41541145.8f2fe",
98         "type": "failure",
99         "name": "failure",
100         "xml": "<outcome value='failure'>\n",
101         "comments": "",
102         "outputs": 1,
103         "x": 738.6071548461914,
104         "y": 528.3928499221802,
105         "z": "212bebba.daa304",
106         "wires": [
107             [
108                 "f6eee8f.2de7c18"
109             ]
110         ]
111     },
112     {
113         "id": "f04ddaec.babb98",
114         "type": "not-found",
115         "name": "not-found",
116         "xml": "<outcome value='not-found'>\n",
117         "comments": "",
118         "outputs": 1,
119         "x": 747.6071548461914,
120         "y": 488.3928499221802,
121         "z": "212bebba.daa304",
122         "wires": [
123             [
124                 "ef8307c7.c73008"
125             ]
126         ]
127     },
128     {
129         "id": "f6eee8f.2de7c18",
130         "type": "returnFailure",
131         "name": "return failure",
132         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-subnets-subnet-id\" value=\"`'An error occured while checking if a generated subnets-subnet-id was unique. subnet-id = ' + $tmp.local-variables.generate-subnets-subnet-id.uuid`\" />",
133         "comments": "",
134         "x": 905.1071624755859,
135         "y": 553.3928556442261,
136         "z": "212bebba.daa304",
137         "wires": []
138     },
139     {
140         "id": "a7ff3de0.89a3b",
141         "type": "block",
142         "name": "block : atomic",
143         "xml": "<block atomic='true'>",
144         "atomic": "true",
145         "comments": "",
146         "outputs": 1,
147         "x": 900.6071548461914,
148         "y": 448.3928499221802,
149         "z": "212bebba.daa304",
150         "wires": [
151             [
152                 "bde977bc.984908",
153                 "a44a8681.7894a8"
154             ]
155         ]
156     },
157     {
158         "id": "bde977bc.984908",
159         "type": "set",
160         "name": "set: ...local...is-unique = 0",
161         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-subnets-subnet-id.is-unique\" value=\"0\" />",
162         "comments": "",
163         "outputs": 1,
164         "x": 1118.1072082519531,
165         "y": 448.3928556442261,
166         "z": "212bebba.daa304",
167         "wires": [
168             []
169         ]
170     },
171     {
172         "id": "a44a8681.7894a8",
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-subnets-subnet-id.uuid\" />",
176         "comments": "",
177         "outputs": 1,
178         "x": 1111.6071548461914,
179         "y": 488.3928499221802,
180         "z": "212bebba.daa304",
181         "wires": [
182             [
183                 "87ba26d4.c54c58"
184             ]
185         ]
186     },
187     {
188         "id": "87ba26d4.c54c58",
189         "type": "failure",
190         "name": "failure",
191         "xml": "<outcome value='failure'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 1298.6071548461914,
195         "y": 488.3928499221802,
196         "z": "212bebba.daa304",
197         "wires": [
198             [
199                 "22793b05.dbc9f4"
200             ]
201         ]
202     },
203     {
204         "id": "22793b05.dbc9f4",
205         "type": "returnFailure",
206         "name": "return failure",
207         "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-subnets-subnet-id\" value=\"An error occured while generating a UUID for SUBNETS.\" />",
208         "comments": "",
209         "x": 1452.6071548461914,
210         "y": 488.3928499221802,
211         "z": "212bebba.daa304",
212         "wires": []
213     },
214     {
215         "id": "ef8307c7.c73008",
216         "type": "block",
217         "name": "block",
218         "xml": "<block>",
219         "atomic": "false",
220         "comments": "",
221         "outputs": 1,
222         "x": 878.6071548461914,
223         "y": 488.3928499221802,
224         "z": "212bebba.daa304",
225         "wires": [
226             []
227         ]
228     },
229     {
230         "id": "514ace13.73fbc",
231         "type": "dgstart",
232         "name": "DGSTART",
233         "outputs": 1,
234         "x": 119.10715103149414,
235         "y": 44.64284896850586,
236         "z": "212bebba.daa304",
237         "wires": [
238             [
239                 "1b1cc085.47687f"
240             ]
241         ]
242     },
243     {
244         "id": "1b1cc085.47687f",
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": 143.10714721679688,
253         "y": 90.89284896850586,
254         "z": "212bebba.daa304",
255         "wires": [
256             [
257                 "d99b1637.7ed018"
258             ]
259         ]
260     },
261     {
262         "id": "d99b1637.7ed018",
263         "type": "method",
264         "name": "method generate-subnets-subnet-id",
265         "xml": "<method rpc=\"generate-subnets-subnet-id\" mode=\"sync\">",
266         "comments": "",
267         "outputs": 1,
268         "x": 228.85714721679688,
269         "y": 143.39284896850586,
270         "z": "212bebba.daa304",
271         "wires": [
272             [
273                 "11287140.bdd92f"
274             ]
275         ]
276     },
277     {
278         "id": "c84b6b4.9fc4398",
279         "type": "comment",
280         "name": "VNF-API: GENERATE-SUBNETS-SUBNET-ID",
281         "info": "",
282         "comments": "",
283         "x": 670.6071624755859,
284         "y": 50.89284706115723,
285         "z": "212bebba.daa304",
286         "wires": []
287     },
288     {
289         "id": "11287140.bdd92f",
290         "type": "block",
291         "name": "block : atomic",
292         "xml": "<block atomic=\"true\">",
293         "atomic": "true",
294         "comments": "",
295         "outputs": 1,
296         "x": 180.6071548461914,
297         "y": 268.3928499221802,
298         "z": "212bebba.daa304",
299         "wires": [
300             [
301                 "aaa6ff4b.724ea",
302                 "a5490895.039508",
303                 "41976a7f.5999d4",
304                 "6e3cbfaa.cae83"
305             ]
306         ]
307     },
308     {
309         "id": "6ab42343.db7f8c",
310         "type": "comment",
311         "name": "LOOP UNTIL GENERATED NETWORK-ID ISN'T FOUND IN A&AI",
312         "info": "",
313         "comments": "",
314         "x": 581.8571472167969,
315         "y": 404.64285373687744,
316         "z": "212bebba.daa304",
317         "wires": []
318     },
319     {
320         "id": "b9ed64f0.37f1d8",
321         "type": "comment",
322         "name": "GENERATE A SUBNET-ID",
323         "info": "",
324         "comments": "",
325         "x": 445.6071472167969,
326         "y": 314.6428518295288,
327         "z": "212bebba.daa304",
328         "wires": []
329     },
330     {
331         "id": "a5490895.039508",
332         "type": "set",
333         "name": "unset: local-variables & return",
334         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-subnets-subnet-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-subnets-subnet-id.\" value=\"\" />",
335         "comments": "",
336         "outputs": 1,
337         "x": 431.6071548461914,
338         "y": 268.3928499221802,
339         "z": "212bebba.daa304",
340         "wires": [
341             []
342         ]
343     },
344     {
345         "id": "60c2bbdc.ec4e64",
346         "type": "comment",
347         "name": "CLEANUP LOCAL VARIABLES TO BE USED",
348         "info": "",
349         "comments": "",
350         "x": 515.8571472167969,
351         "y": 224.6428508758545,
352         "z": "212bebba.daa304",
353         "wires": []
354     },
355     {
356         "id": "71172ef4.cf0d8",
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": 657.107177734375,
362         "y": 90.89284706115723,
363         "z": "212bebba.daa304",
364         "wires": []
365     },
366     {
367         "id": "41976a7f.5999d4",
368         "type": "set",
369         "name": "unset: local-variables & return",
370         "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-subnets-subnet-id.\" value=\"\" />",
371         "comments": "",
372         "outputs": 1,
373         "x": 431.6071548461914,
374         "y": 548.3928499221802,
375         "z": "212bebba.daa304",
376         "wires": [
377             []
378         ]
379     },
380     {
381         "id": "57f68649.0093a8",
382         "type": "comment",
383         "name": "CLEANUP LOCAL VARIABLES",
384         "info": "",
385         "comments": "",
386         "x": 473.1071472167969,
387         "y": 505.89285469055176,
388         "z": "212bebba.daa304",
389         "wires": []
390     },
391     {
392         "id": "53fa760f.b1d208",
393         "type": "other",
394         "name": "Other",
395         "xml": "<outcome value=\"Other\">",
396         "comments": "",
397         "outputs": 1,
398         "x": 738.6071548461914,
399         "y": 568.3928499221802,
400         "z": "212bebba.daa304",
401         "wires": [
402             [
403                 "f6eee8f.2de7c18"
404             ]
405         ]
406     }
407 ]