Update overlay DG for delete flow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "afc82ce2.121c78",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 79,
8     "y": 77,
9     "z": "5a5462f8.9bc3ac",
10     "wires": [
11       [
12         "db617858.b4ddb"
13       ]
14     ]
15   },
16   {
17     "id": "db617858.b4ddb",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "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}'>",
24     "outputs": 1,
25     "x": 340,
26     "y": 148,
27     "z": "5a5462f8.9bc3ac",
28     "wires": [
29       [
30         "bb132476.9ca4e"
31       ]
32     ]
33   },
34   {
35     "id": "bb132476.9ca4e",
36     "type": "method",
37     "name": "method dci-connects-network-topology-operation-deactivate",
38     "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 230,
42     "y": 233,
43     "z": "5a5462f8.9bc3ac",
44     "wires": [
45       [
46         "2a9be4c6.eb14b4"
47       ]
48     ]
49   },
50   {
51     "id": "2a9be4c6.eb14b4",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 565.0000152587891,
58     "y": 233.00000953674316,
59     "z": "5a5462f8.9bc3ac",
60     "wires": [
61       [
62         "ab306509.d7099",
63         "d2dfa358.504c58",
64         "a8a63952.1bc7f8",
65         "57931680.a91588",
66         "4204819e.38435",
67         "82e8e8d7.c3425",
68         "c09f45a3.c220d8"
69       ]
70     ]
71   },
72   {
73     "id": "ab306509.d7099",
74     "type": "call",
75     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
76     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
77     "comments": "",
78     "outputs": 1,
79     "x": 900,
80     "y": 102,
81     "z": "5a5462f8.9bc3ac",
82     "wires": [
83       []
84     ]
85   },
86   {
87     "id": "d2dfa358.504c58",
88     "type": "returnSuccess",
89     "name": "return success",
90     "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",
91     "comments": "",
92     "x": 774,
93     "y": 995,
94     "z": "5a5462f8.9bc3ac",
95     "wires": []
96   },
97   {
98     "id": "ae004639.5a1a9",
99     "type": "block",
100     "name": "block : sendRequest",
101     "xml": "<block atomic=\"true\">",
102     "atomic": "true",
103     "comments": "",
104     "outputs": 1,
105     "x": 961.5000305175781,
106     "y": 576.5156650543213,
107     "z": "5a5462f8.9bc3ac",
108     "wires": [
109       [
110         "ca9f4012.a368f",
111         "6f0aecce.06e20c",
112         "29bbe40.27fea1c",
113         "1ce08181.681226"
114       ]
115     ]
116   },
117   {
118     "id": "4509fe22.e5801",
119     "type": "success",
120     "name": "success",
121     "xml": "<outcome value='success'>\n",
122     "comments": "",
123     "outputs": 1,
124     "x": 1493.999927520752,
125     "y": 373.51519107818604,
126     "z": "5a5462f8.9bc3ac",
127     "wires": [
128       [
129         "fd4a0bd2.51c28"
130       ]
131     ]
132   },
133   {
134     "id": "72b32ace.1dce64",
135     "type": "not-found",
136     "name": "not-found",
137     "xml": "<outcome value='not-found'>\n",
138     "comments": "",
139     "outputs": 1,
140     "x": 1500.999927520752,
141     "y": 411.51519107818604,
142     "z": "5a5462f8.9bc3ac",
143     "wires": [
144       [
145         "6310ff1e.a9757"
146       ]
147     ]
148   },
149   {
150     "id": "3dd8b536.d8d3e2",
151     "type": "other",
152     "name": "other",
153     "xml": "<outcome value='Other'>\n",
154     "comments": "",
155     "outputs": 1,
156     "x": 1492.999927520752,
157     "y": 453.51519107818604,
158     "z": "5a5462f8.9bc3ac",
159     "wires": [
160       [
161         "bf2176dd.c8fbf8"
162       ]
163     ]
164   },
165   {
166     "id": "6310ff1e.a9757",
167     "type": "returnFailure",
168     "name": "return failure",
169     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
170     "comments": "",
171     "x": 1657.999927520752,
172     "y": 415.51519107818604,
173     "z": "5a5462f8.9bc3ac",
174     "wires": []
175   },
176   {
177     "id": "bf2176dd.c8fbf8",
178     "type": "returnFailure",
179     "name": "return failure",
180     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
181     "comments": "",
182     "x": 1650.999927520752,
183     "y": 462.51519107818604,
184     "z": "5a5462f8.9bc3ac",
185     "wires": []
186   },
187   {
188     "id": "ca9f4012.a368f",
189     "type": "get-resource",
190     "name": "get-resource esr-thirdparty-sdnc",
191     "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 = $prop.dci-connects.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
192     "comments": "",
193     "outputs": 1,
194     "x": 1270.000015258789,
195     "y": 420.51519799232483,
196     "z": "5a5462f8.9bc3ac",
197     "wires": [
198       [
199         "4509fe22.e5801",
200         "72b32ace.1dce64",
201         "3dd8b536.d8d3e2"
202       ]
203     ]
204   },
205   {
206     "id": "fd4a0bd2.51c28",
207     "type": "set",
208     "name": "set controller data",
209     "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<parameter name='prop.sdncRestApi.thirdpartySdnc.vendor' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].vendor`\" />\n\n",
210     "comments": "",
211     "x": 1673.4998779296875,
212     "y": 366.01513671875,
213     "z": "5a5462f8.9bc3ac",
214     "wires": []
215   },
216   {
217     "id": "270eaaaf.6d8a76",
218     "type": "execute",
219     "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
220     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
221     "comments": "",
222     "outputs": 1,
223     "x": 2097.500289916992,
224     "y": 566.5156259536743,
225     "z": "5a5462f8.9bc3ac",
226     "wires": [
227       []
228     ]
229   },
230   {
231     "id": "108e039c.2a2694",
232     "type": "switchNode",
233     "name": "switch tunnelType",
234     "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
235     "comments": "",
236     "outputs": 1,
237     "x": 1560.4997482299805,
238     "y": 591.01513671875,
239     "z": "5a5462f8.9bc3ac",
240     "wires": [
241       [
242         "b27ecfa7.2e204",
243         "70cba102.5a4918"
244       ]
245     ]
246   },
247   {
248     "id": "b27ecfa7.2e204",
249     "type": "outcomeTrue",
250     "name": "L3-DCI",
251     "xml": "<outcome value='L3-DCI'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 1773.4998779296875,
255     "y": 571.01513671875,
256     "z": "5a5462f8.9bc3ac",
257     "wires": [
258       [
259         "270eaaaf.6d8a76"
260       ]
261     ]
262   },
263   {
264     "id": "70cba102.5a4918",
265     "type": "outcomeTrue",
266     "name": "L2-DCI",
267     "xml": "<outcome value='L2-DCI'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1771.499698638916,
271     "y": 643.01513671875,
272     "z": "5a5462f8.9bc3ac",
273     "wires": [
274       [
275         "a70a8740.35415"
276       ]
277     ]
278   },
279   {
280     "id": "a70a8740.35415",
281     "type": "execute",
282     "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
283     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>",
284     "comments": "",
285     "outputs": 1,
286     "x": 2091.500244140625,
287     "y": 643.5155620574951,
288     "z": "5a5462f8.9bc3ac",
289     "wires": [
290       []
291     ]
292   },
293   {
294     "id": "b6e2380b.22053",
295     "type": "for",
296     "name": "for each network-input-parameters",
297     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1023.9999847412109,
301     "y": 177.51563167572021,
302     "z": "5a5462f8.9bc3ac",
303     "wires": [
304       [
305         "93278f1f.6117c"
306       ]
307     ]
308   },
309   {
310     "id": "6f0aecce.06e20c",
311     "type": "record",
312     "name": "record",
313     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"dci-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field7\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field8\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field9\" value=\"sdncRestApi.thirdpartySdnc.url\"/>\n<parameter name=\"field10\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
314     "comments": "",
315     "outputs": 1,
316     "x": 1207.3333740234375,
317     "y": 529,
318     "z": "5a5462f8.9bc3ac",
319     "wires": [
320       []
321     ]
322   },
323   {
324     "id": "93278f1f.6117c",
325     "type": "block",
326     "name": "block",
327     "xml": "<block>\n",
328     "atomic": "false",
329     "comments": "",
330     "outputs": 1,
331     "x": 1257.3334274291992,
332     "y": 177.00000762939453,
333     "z": "5a5462f8.9bc3ac",
334     "wires": [
335       [
336         "98a85984.08bf9",
337         "c01c858f.6535f"
338       ]
339     ]
340   },
341   {
342     "id": "98a85984.08bf9",
343     "type": "switchNode",
344     "name": "switch site1_id",
345     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
346     "comments": "",
347     "outputs": 1,
348     "x": 1463.6666374206543,
349     "y": 146.00000381469727,
350     "z": "5a5462f8.9bc3ac",
351     "wires": [
352       [
353         "931a8fd9.57dc4"
354       ]
355     ]
356   },
357   {
358     "id": "931a8fd9.57dc4",
359     "type": "outcomeTrue",
360     "name": "true",
361     "xml": "<outcome value='true'>\n",
362     "comments": "",
363     "outputs": 1,
364     "x": 1664.666732788086,
365     "y": 145.00000286102295,
366     "z": "5a5462f8.9bc3ac",
367     "wires": [
368       [
369         "bf8602b7.a89dd"
370       ]
371     ]
372   },
373   {
374     "id": "bf8602b7.a89dd",
375     "type": "set",
376     "name": "set id",
377     "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
378     "comments": "",
379     "x": 1838.3330841064453,
380     "y": 144.66654777526855,
381     "z": "5a5462f8.9bc3ac",
382     "wires": []
383   },
384   {
385     "id": "c01c858f.6535f",
386     "type": "switchNode",
387     "name": "switch tunnelType",
388     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
389     "comments": "",
390     "outputs": 1,
391     "x": 1473.6667175292969,
392     "y": 199.00000977516174,
393     "z": "5a5462f8.9bc3ac",
394     "wires": [
395       [
396         "21e6cd01.99ffda"
397       ]
398     ]
399   },
400   {
401     "id": "21e6cd01.99ffda",
402     "type": "outcomeTrue",
403     "name": "true",
404     "xml": "<outcome value='true'>\n",
405     "comments": "",
406     "outputs": 1,
407     "x": 1679.6667175292969,
408     "y": 199.00000977516174,
409     "z": "5a5462f8.9bc3ac",
410     "wires": [
411       [
412         "4b7be50f.b4ead4"
413       ]
414     ]
415   },
416   {
417     "id": "4b7be50f.b4ead4",
418     "type": "set",
419     "name": "set tunnelType",
420     "xml": "<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
421     "comments": "",
422     "x": 1848.6668167114258,
423     "y": 199.0000250339508,
424     "z": "5a5462f8.9bc3ac",
425     "wires": []
426   },
427   {
428     "id": "a8a63952.1bc7f8",
429     "type": "block",
430     "name": "block : executeSite1",
431     "xml": "<block atomic=\"true\">",
432     "atomic": "true",
433     "comments": "",
434     "outputs": 1,
435     "x": 753.3333358764648,
436     "y": 178.66666412353516,
437     "z": "5a5462f8.9bc3ac",
438     "wires": [
439       [
440         "b6e2380b.22053",
441         "ae004639.5a1a9"
442       ]
443     ]
444   },
445   {
446     "id": "e321a5f2.fe2e3",
447     "type": "for",
448     "name": "for each network-input-parameters",
449     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
450     "comments": "",
451     "outputs": 1,
452     "x": 1029.0000686645508,
453     "y": 283.66663551330566,
454     "z": "5a5462f8.9bc3ac",
455     "wires": [
456       [
457         "d37e272b.ea0298"
458       ]
459     ]
460   },
461   {
462     "id": "d37e272b.ea0298",
463     "type": "block",
464     "name": "block",
465     "xml": "<block>\n",
466     "atomic": "false",
467     "comments": "",
468     "outputs": 1,
469     "x": 1257.3334350585938,
470     "y": 286.15101146698,
471     "z": "5a5462f8.9bc3ac",
472     "wires": [
473       [
474         "d847cda0.0460f"
475       ]
476     ]
477   },
478   {
479     "id": "d847cda0.0460f",
480     "type": "switchNode",
481     "name": "switch site2_id",
482     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
483     "comments": "",
484     "outputs": 1,
485     "x": 1458.3333854675293,
486     "y": 286.15099716186523,
487     "z": "5a5462f8.9bc3ac",
488     "wires": [
489       [
490         "7ed96e02.76a578"
491       ]
492     ]
493   },
494   {
495     "id": "7ed96e02.76a578",
496     "type": "outcomeTrue",
497     "name": "true",
498     "xml": "<outcome value='true'>\n",
499     "comments": "",
500     "outputs": 1,
501     "x": 1659.333480834961,
502     "y": 285.1509962081909,
503     "z": "5a5462f8.9bc3ac",
504     "wires": [
505       [
506         "d7f24acd.dc28e"
507       ]
508     ]
509   },
510   {
511     "id": "d7f24acd.dc28e",
512     "type": "set",
513     "name": "set id",
514     "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
515     "comments": "",
516     "x": 1832.9998321533203,
517     "y": 284.8175411224365,
518     "z": "5a5462f8.9bc3ac",
519     "wires": []
520   },
521   {
522     "id": "57931680.a91588",
523     "type": "block",
524     "name": "block : executeSite1",
525     "xml": "<block atomic=\"true\">",
526     "atomic": "true",
527     "comments": "",
528     "outputs": 1,
529     "x": 753.3333435058594,
530     "y": 287.8176679611206,
531     "z": "5a5462f8.9bc3ac",
532     "wires": [
533       [
534         "e321a5f2.fe2e3",
535         "ae004639.5a1a9"
536       ]
537     ]
538   },
539   {
540     "id": "85aea54b.a8d68",
541     "type": "comment",
542     "name": "TODO",
543     "info": "Currently deactivate does deletion too, later divide in two phases.",
544     "comments": "",
545     "x": 687.3333358764648,
546     "y": 41,
547     "z": "5a5462f8.9bc3ac",
548     "wires": []
549   },
550   {
551     "id": "4204819e.38435",
552     "type": "delete",
553     "name": "delete underlay configuration in AAI",
554     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n        key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
555     "comments": "",
556     "outputs": 1,
557     "x": 847,
558     "y": 636,
559     "z": "5a5462f8.9bc3ac",
560     "wires": [
561       []
562     ]
563   },
564   {
565     "id": "29bbe40.27fea1c",
566     "type": "execute",
567     "name": "execute Properties",
568     "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",
569     "comments": "",
570     "outputs": 1,
571     "x": 1242,
572     "y": 477,
573     "z": "5a5462f8.9bc3ac",
574     "wires": [
575       []
576     ]
577   },
578   {
579     "id": "1ce08181.681226",
580     "type": "switchNode",
581     "name": "switch vendor",
582     "xml": "<switch test=\"`$prop.sdncRestApi.thirdpartySdnc.vendor`\">\n",
583     "comments": "",
584     "outputs": 1,
585     "x": 1198,
586     "y": 591,
587     "z": "5a5462f8.9bc3ac",
588     "wires": [
589       [
590         "d96f0afb.72174"
591       ]
592     ]
593   },
594   {
595     "id": "d96f0afb.72174",
596     "type": "outcomeTrue",
597     "name": "SPTN",
598     "xml": "<outcome value='SPTN'>\n",
599     "comments": "",
600     "outputs": 1,
601     "x": 1373,
602     "y": 591,
603     "z": "5a5462f8.9bc3ac",
604     "wires": [
605       [
606         "108e039c.2a2694"
607       ]
608     ]
609   },
610   {
611     "id": "b44d2822.3215d8",
612     "type": "comment",
613     "name": "Remove network from service data",
614     "info": "",
615     "comments": "",
616     "x": 863.0000610351562,
617     "y": 696.9999389648438,
618     "z": "5a5462f8.9bc3ac",
619     "wires": []
620   },
621   {
622     "id": "82e8e8d7.c3425",
623     "type": "switchNode",
624     "name": "switch $service-data.networks.network_length",
625     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
626     "comments": "",
627     "outputs": 1,
628     "x": 878.7658081054688,
629     "y": 740.0079956054688,
630     "z": "5a5462f8.9bc3ac",
631     "wires": [
632       [
633         "dba62b53.9a3ec",
634         "57166c95.83901c"
635       ]
636     ]
637   },
638   {
639     "id": "c09f45a3.c220d8",
640     "type": "set",
641     "name": "set output to api handler",
642     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />\n \n",
643     "comments": "",
644     "x": 814.7658081054688,
645     "y": 886.0079956054688,
646     "z": "5a5462f8.9bc3ac",
647     "wires": []
648   },
649   {
650     "id": "500bd365.2cd4bc",
651     "type": "comment",
652     "name": "If only one remove all networks",
653     "info": "",
654     "comments": "",
655     "x": 1253.1837692260742,
656     "y": 701.267255783081,
657     "z": "5a5462f8.9bc3ac",
658     "wires": []
659   },
660   {
661     "id": "dba62b53.9a3ec",
662     "type": "outcome",
663     "name": "1",
664     "xml": "<outcome value='1'>\n",
665     "comments": "",
666     "outputs": 1,
667     "x": 1181.8134078979492,
668     "y": 736.674482345581,
669     "z": "5a5462f8.9bc3ac",
670     "wires": [
671       [
672         "9f9202f3.6e105"
673       ]
674     ]
675   },
676   {
677     "id": "9f9202f3.6e105",
678     "type": "block",
679     "name": "block : atomic",
680     "xml": "<block atomic=\"true\">",
681     "atomic": "true",
682     "outputs": 1,
683     "x": 1361.1467208862305,
684     "y": 737.3782787322998,
685     "z": "5a5462f8.9bc3ac",
686     "wires": [
687       [
688         "f066bd89.a6c2e8",
689         "c6b689fd.992278"
690       ]
691     ]
692   },
693   {
694     "id": "57166c95.83901c",
695     "type": "other",
696     "name": "other",
697     "xml": "<outcome value='Other'>\n",
698     "comments": "",
699     "outputs": 1,
700     "x": 1148.1943588256836,
701     "y": 889.0078001022339,
702     "z": "5a5462f8.9bc3ac",
703     "wires": [
704       [
705         "3d590d9a.bcff9a"
706       ]
707     ]
708   },
709   {
710     "id": "3d590d9a.bcff9a",
711     "type": "block",
712     "name": "block : atomic",
713     "xml": "<block atomic=\"true\">",
714     "atomic": "true",
715     "outputs": 1,
716     "x": 1370.194236755371,
717     "y": 889.0078001022339,
718     "z": "5a5462f8.9bc3ac",
719     "wires": [
720       [
721         "5a71292a.6b8408",
722         "d3de161f.966088",
723         "963a7919.b37fb8",
724         "227d053b.c1572a"
725       ]
726     ]
727   },
728   {
729     "id": "f066bd89.a6c2e8",
730     "type": "set",
731     "name": "Remove networks",
732     "xml": "<set>\n\t<parameter name=\"service-data.networks.\" value=\"\"/>\n\n",
733     "comments": "",
734     "x": 1611.432273864746,
735     "y": 740.3413572311401,
736     "z": "5a5462f8.9bc3ac",
737     "wires": []
738   },
739   {
740     "id": "c6b689fd.992278",
741     "type": "set",
742     "name": "set new network length",
743     "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"0\"/>\n\n\t\n",
744     "comments": "",
745     "x": 1627.7656478881836,
746     "y": 775.045015335083,
747     "z": "5a5462f8.9bc3ac",
748     "wires": []
749   },
750   {
751     "id": "227d053b.c1572a",
752     "type": "set",
753     "name": "Set new network length",
754     "xml": "<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\t\n\t\n",
755     "comments": "",
756     "x": 1633.8979721069336,
757     "y": 826.2671995162964,
758     "z": "5a5462f8.9bc3ac",
759     "wires": []
760   },
761   {
762     "id": "5a71292a.6b8408",
763     "type": "for",
764     "name": "for snidx..service-data.networks.network[]",
765     "xml": "<for silentFailure='true' index='snidx' start='`$tmp.nidx + 1`' end='`$service-data.networks.network_length`' >\n",
766     "comments": "",
767     "outputs": 1,
768     "x": 1682.603172302246,
769     "y": 878.5711545944214,
770     "z": "5a5462f8.9bc3ac",
771     "wires": [
772       [
773         "ccdd9c9d.183f1"
774       ]
775     ]
776   },
777   {
778     "id": "963a7919.b37fb8",
779     "type": "set",
780     "name": "set new network length",
781     "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
782     "comments": "",
783     "x": 1641.0620422363281,
784     "y": 922.3414134979248,
785     "z": "5a5462f8.9bc3ac",
786     "wires": []
787   },
788   {
789     "id": "d3de161f.966088",
790     "type": "set",
791     "name": "Remove networks",
792     "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.new_length].\" value=\"\"/>\n\n",
793     "comments": "",
794     "x": 1620.9085083007812,
795     "y": 960.3093585968018,
796     "z": "5a5462f8.9bc3ac",
797     "wires": []
798   },
799   {
800     "id": "ccdd9c9d.183f1",
801     "type": "block",
802     "name": "block : atomic",
803     "xml": "<block atomic=\"true\">",
804     "atomic": "true",
805     "comments": "",
806     "outputs": 1,
807     "x": 1971.1941833496094,
808     "y": 888.007833480835,
809     "z": "5a5462f8.9bc3ac",
810     "wires": [
811       []
812     ]
813   }
814 ]