Fix tunxconn-assign DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json
1 [
2   {
3     "id":"f7a51f5.fe86ce",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":415,
8     "y":350,
9     "z":"6d778d5b.c45f64",
10     "wires":[
11       [
12         "ba9c043e.e07f58"
13       ]
14     ]
15   },
16   {
17     "id":"ba9c043e.e07f58",
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":511.2380790710449,
26     "y":410.95239067077637,
27     "z":"6d778d5b.c45f64",
28     "wires":[
29       [
30         "249d942d.c245dc"
31       ]
32     ]
33   },
34   {
35     "id":"249d942d.c245dc",
36     "type":"method",
37     "name":"tunnelxconn-topology-operation-assign",
38     "xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":562.154857635498,
42     "y":446.1904458999634,
43     "z":"6d778d5b.c45f64",
44     "wires":[
45       [
46         "6d5b29f7.7a4718"
47       ]
48     ]
49   },
50   {
51     "id":"6d5b29f7.7a4718",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":465.47619247436523,
59     "y":589.5237879753113,
60     "z":"6d778d5b.c45f64",
61     "wires":[
62       [
63         "3003211a.e085be",
64         "e75e77ea.b57f18",
65         "f5d1d70b.ddc6f8",
66         "338371c3.03166e",
67         "bec51e2f.be8cc"
68       ]
69     ]
70   },
71   {
72     "id":"d0d44753.44ba98",
73     "type":"returnSuccess",
74     "name":"return success",
75     "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",
76     "comments":"",
77     "x":1308.6666564941406,
78     "y":2516.5477046966553,
79     "z":"6d778d5b.c45f64",
80     "wires":[
81
82     ]
83   },
84   {
85     "id":"8469024b.7a82b",
86     "type":"set",
87     "name":"set output to api handler",
88     "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
89     "comments":"",
90     "x":1345.7540550231934,
91     "y":2395.432439804077,
92     "z":"6d778d5b.c45f64",
93     "wires":[
94
95     ]
96   },
97   {
98     "id":"2132e3dd.5539fc",
99     "type":"set",
100     "name":"set allotted-resource-oper-status",
101     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
102     "comments":"",
103     "x":1417.468376159668,
104     "y":1812.6228160858154,
105     "z":"6d778d5b.c45f64",
106     "wires":[
107
108     ]
109   },
110   {
111     "id":"e75e77ea.b57f18",
112     "type":"set",
113     "name":"set tmp.ar.self-link",
114     "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
115     "comments":"",
116     "x":911.738037109375,
117     "y":457.33331298828125,
118     "z":"6d778d5b.c45f64",
119     "wires":[
120
121     ]
122   },
123   {
124     "id":"3003211a.e085be",
125     "type":"set",
126     "name":"set tmp.ar.allotted-resource-id,etc",
127     "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
128     "comments":"",
129     "x":959.997314453125,
130     "y":413.59259033203125,
131     "z":"6d778d5b.c45f64",
132     "wires":[
133
134     ]
135   },
136   {
137     "id":"eb1ff0c9.ef38e",
138     "type":"success",
139     "name":"success",
140     "xml":"<outcome value='success'>\n",
141     "comments":"",
142     "outputs":1,
143     "x":1098.8148803710938,
144     "y":629.2672729492188,
145     "z":"6d778d5b.c45f64",
146     "wires":[
147       [
148         "c02bbcdf.bc013"
149       ]
150     ]
151   },
152   {
153     "id":"4e2ca4b9.af9d2c",
154     "type":"execute",
155     "name":"execute RestApiCallNode - PUT AR by id",
156     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
157     "comments":"",
158     "outputs":1,
159     "x":1438.8626251220703,
160     "y":2037.1008231639862,
161     "z":"6d778d5b.c45f64",
162     "wires":[
163       [
164         "aff222bc.8e6d2",
165         "d2e716e0.ea3f78",
166         "52261953.a9dda8"
167       ]
168     ]
169   },
170   {
171     "id":"aff222bc.8e6d2",
172     "type":"not-found",
173     "name":"not-found",
174     "xml":"<outcome value='not-found'>\n",
175     "comments":"",
176     "outputs":1,
177     "x":1707.5040016174316,
178     "y":2088.43223490566,
179     "z":"6d778d5b.c45f64",
180     "wires":[
181       [
182         "39f6948c.62523c"
183       ]
184     ]
185   },
186   {
187     "id":"d2e716e0.ea3f78",
188     "type":"failure",
189     "name":"failure",
190     "xml":"<outcome value='failure'>\n",
191     "comments":"",
192     "outputs":1,
193     "x":1698.504051208496,
194     "y":2056.9322606548667,
195     "z":"6d778d5b.c45f64",
196     "wires":[
197       [
198         "39f6948c.62523c"
199       ]
200     ]
201   },
202   {
203     "id":"52261953.a9dda8",
204     "type":"success",
205     "name":"success",
206     "xml":"<outcome value='success'>\n",
207     "comments":"",
208     "outputs":1,
209     "x":1702.2540893554688,
210     "y":2027.289365530014,
211     "z":"6d778d5b.c45f64",
212     "wires":[
213       [
214         "dcd5ec61.1101"
215       ]
216     ]
217   },
218   {
219     "id":"39f6948c.62523c",
220     "type":"returnFailure",
221     "name":"return failure",
222     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
223     "comments":"",
224     "x":1868.2540893554688,
225     "y":2057.6822844967246,
226     "z":"6d778d5b.c45f64",
227     "wires":[
228
229     ]
230   },
231   {
232     "id":"c1360476.7b6098",
233     "type":"set",
234     "name":"set oper-status",
235     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
236     "comments":"",
237     "x":1448.5294189453125,
238     "y":730.0529174804688,
239     "z":"6d778d5b.c45f64",
240     "wires":[
241
242     ]
243   },
244   {
245     "id":"f35d4335.54c9c",
246     "type":"comment",
247     "name":"Save consumed-allotted-resources to mdsal",
248     "info":"",
249     "comments":"",
250     "x":1475.2435302734375,
251     "y":1552.7196044921875,
252     "z":"6d778d5b.c45f64",
253     "wires":[
254
255     ]
256   },
257   {
258     "id":"655635e7.0e3eec",
259     "type":"comment",
260     "name":"GET tunnelxconn-allotted-resource from mdsal",
261     "info":"",
262     "comments":"",
263     "x":821.8148193359375,
264     "y":599.7672119140625,
265     "z":"6d778d5b.c45f64",
266     "wires":[
267
268     ]
269   },
270   {
271     "id":"c02bbcdf.bc013",
272     "type":"returnFailure",
273     "name":"return failure - tunnelxconn already exists",
274     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing tunnelxconn-allotted-resource with order status of ' + $mdsal-ar.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
275     "comments":"",
276     "x":1408.129150390625,
277     "y":624.6243896484375,
278     "z":"6d778d5b.c45f64",
279     "wires":[
280
281     ]
282   },
283   {
284     "id":"573f6a07.f17fd4",
285     "type":"set",
286     "name":"set tx-ar-identifiers",
287     "xml":"<set>\n<parameter name='tx-ar-identifiers.consuming-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='tx-ar-identifiers.parent-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
288     "comments":"",
289     "x":1458.38623046875,
290     "y":823.6243896484375,
291     "z":"6d778d5b.c45f64",
292     "wires":[
293
294     ]
295   },
296   {
297     "id":"d7829a8.d904768",
298     "type":"comment",
299     "name":"Set allotted-resource-identifiers",
300     "info":"",
301     "comments":"",
302     "x":1485.338623046875,
303     "y":782.338623046875,
304     "z":"6d778d5b.c45f64",
305     "wires":[
306
307     ]
308   },
309   {
310     "id":"42c79ea2.81985",
311     "type":"set",
312     "name":"set identifiers in overall structure",
313     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' value=\"`$tx-ar-identifiers.`\" />\n\n\n",
314     "comments":"",
315     "x":1475.38623046875,
316     "y":1131.910400390625,
317     "z":"6d778d5b.c45f64",
318     "wires":[
319
320     ]
321   },
322   {
323     "id":"d8d243c1.7bb7e",
324     "type":"set",
325     "name":"set ecomp model information from input",
326     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.' \nvalue=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
327     "comments":"",
328     "x":1503.957763671875,
329     "y":866.9100952148438,
330     "z":"6d778d5b.c45f64",
331     "wires":[
332
333     ]
334   },
335   {
336     "id":"388bbf45.722ad",
337     "type":"switchNode",
338     "name":"switch model-invariant-uuid is null",
339     "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
340     "comments":"",
341     "outputs":1,
342     "x":1484.8148193359375,
343     "y":906.195809841156,
344     "z":"6d778d5b.c45f64",
345     "wires":[
346       [
347         "61c62608.d61778"
348       ]
349     ]
350   },
351   {
352     "id":"61c62608.d61778",
353     "type":"outcome",
354     "name":"outcome null",
355     "xml":"<outcome value=''>\n",
356     "comments":"",
357     "outputs":1,
358     "x":1711.9576988220215,
359     "y":907.6243271827698,
360     "z":"6d778d5b.c45f64",
361     "wires":[
362       [
363         "39e6f667.b8ce5a"
364       ]
365     ]
366   },
367   {
368     "id":"39e6f667.b8ce5a",
369     "type":"set",
370     "name":"set model-invariant-uuid",
371     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
372     "comments":"",
373     "x":1913.38627243042,
374     "y":907.0528798103333,
375     "z":"6d778d5b.c45f64",
376     "wires":[
377
378     ]
379   },
380   {
381     "id":"e8848901.4775c8",
382     "type":"switchNode",
383     "name":"switch model-uuid is null",
384     "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
385     "comments":"",
386     "outputs":1,
387     "x":1456.2434158325195,
388     "y":940.4815106391907,
389     "z":"6d778d5b.c45f64",
390     "wires":[
391       [
392         "d9785a66.79e3a8"
393       ]
394     ]
395   },
396   {
397     "id":"d9785a66.79e3a8",
398     "type":"outcome",
399     "name":"outcome null",
400     "xml":"<outcome value=''>\n",
401     "comments":"",
402     "outputs":1,
403     "x":1657.6719818115234,
404     "y":941.0529322624207,
405     "z":"6d778d5b.c45f64",
406     "wires":[
407       [
408         "1427b5c2.d5936a"
409       ]
410     ]
411   },
412   {
413     "id":"1427b5c2.d5936a",
414     "type":"set",
415     "name":"set model-uuid",
416     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
417     "comments":"",
418     "x":1850.529140472412,
419     "y":941.0528540611267,
420     "z":"6d778d5b.c45f64",
421     "wires":[
422
423     ]
424   },
425   {
426     "id":"109fba97.f782b5",
427     "type":"switchNode",
428     "name":"switch model-version is null",
429     "xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
430     "comments":"",
431     "outputs":1,
432     "x":1464.8148193359375,
433     "y":982.338623046875,
434     "z":"6d778d5b.c45f64",
435     "wires":[
436       [
437         "3f70eb82.810ee4"
438       ]
439     ]
440   },
441   {
442     "id":"3f70eb82.810ee4",
443     "type":"outcome",
444     "name":"outcome null",
445     "xml":"<outcome value=''>\n",
446     "comments":"",
447     "outputs":1,
448     "x":1714.8148002624512,
449     "y":973.3386225700378,
450     "z":"6d778d5b.c45f64",
451     "wires":[
452       [
453         "dc565eb7.6c9dc"
454       ]
455     ]
456   },
457   {
458     "id":"dc565eb7.6c9dc",
459     "type":"set",
460     "name":"set model-version",
461     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
462     "comments":"",
463     "x":1907.6719589233398,
464     "y":973.3385443687439,
465     "z":"6d778d5b.c45f64",
466     "wires":[
467
468     ]
469   },
470   {
471     "id":"1d9a0b0d.a6f8f5",
472     "type":"switchNode",
473     "name":"switch ar-model.ecomp-generated-naming",
474     "xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n",
475     "comments":"",
476     "outputs":1,
477     "x":1528.38623046875,
478     "y":1075.7672729492188,
479     "z":"6d778d5b.c45f64",
480     "wires":[
481       [
482         "5928be3a.62e24",
483         "297d3bf7.200674"
484       ]
485     ]
486   },
487   {
488     "id":"5928be3a.62e24",
489     "type":"other",
490     "name":"outcome Y",
491     "xml":"<outcome value='Y'>\n",
492     "comments":"",
493     "outputs":1,
494     "x":1814.3862915039062,
495     "y":1075.1958618164062,
496     "z":"6d778d5b.c45f64",
497     "wires":[
498       [
499         "7b105e84.481c9"
500       ]
501     ]
502   },
503   {
504     "id":"7b105e84.481c9",
505     "type":"block",
506     "name":"block : atomic",
507     "xml":"<block atomic=\"true\">\n",
508     "atomic":"true",
509     "comments":"",
510     "outputs":1,
511     "x":1968.1363525390625,
512     "y":1077.69580078125,
513     "z":"6d778d5b.c45f64",
514     "wires":[
515       [
516         "92b98902.431af8"
517       ]
518     ]
519   },
520   {
521     "id":"297d3bf7.200674",
522     "type":"other",
523     "name":"other",
524     "xml":"<outcome value='Other'>\n",
525     "comments":"",
526     "outputs":1,
527     "x":1833.608642578125,
528     "y":1164.1958618164062,
529     "z":"6d778d5b.c45f64",
530     "wires":[
531       [
532         "3e840127.e2aa3e"
533       ]
534     ]
535   },
536   {
537     "id":"3e840127.e2aa3e",
538     "type":"returnFailure",
539     "name":"return failure",
540     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error in allotted-resource-model data.  Ecomp-generated-naming should be true\" />\n\n",
541     "comments":"",
542     "x":2016.608642578125,
543     "y":1169.1958618164062,
544     "z":"6d778d5b.c45f64",
545     "wires":[
546
547     ]
548   },
549   {
550     "id":"92b98902.431af8",
551     "type":"switchNode",
552     "name":"switch ar-model.ecomp-generated-naming",
553     "xml":"<switch test='`$ar-model.naming-policy`'>\n",
554     "comments":"",
555     "outputs":1,
556     "x":2104.38623046875,
557     "y":1126.767333984375,
558     "z":"6d778d5b.c45f64",
559     "wires":[
560       [
561         "26eb7249.47e7fe",
562         "f1043fa9.14b2e"
563       ]
564     ]
565   },
566   {
567     "id":"26eb7249.47e7fe",
568     "type":"other",
569     "name":"outcome oam_network_policy",
570     "xml":"<outcome value='oam_network_policy'>\n",
571     "comments":"",
572     "outputs":1,
573     "x":2479.244140625,
574     "y":1130.3453369140625,
575     "z":"6d778d5b.c45f64",
576     "wires":[
577       [
578         "e7502764.f34288"
579       ]
580     ]
581   },
582   {
583     "id":"f1043fa9.14b2e",
584     "type":"other",
585     "name":"other",
586     "xml":"<outcome value='Other'>\n",
587     "comments":"",
588     "outputs":1,
589     "x":2393.671875,
590     "y":1207.1958618164062,
591     "z":"6d778d5b.c45f64",
592     "wires":[
593       [
594         "e7502764.f34288"
595       ]
596     ]
597   },
598   {
599     "id":"1d6e2e9f.9f6281",
600     "type":"set",
601     "name":"set ar_name",
602     "xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n",
603     "comments":"",
604     "x":2785.100830078125,
605     "y":1165.7672729492188,
606     "z":"6d778d5b.c45f64",
607     "wires":[
608
609     ]
610   },
611   {
612     "id":"d37d22cd.5e612",
613     "type":"execute",
614     "name":"execute SliStringUtils - replace TenantOAMNetworkRole",
615     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n",
616     "comments":"",
617     "outputs":1,
618     "x":2929.2437858581543,
619     "y":1209.6244196891785,
620     "z":"6d778d5b.c45f64",
621     "wires":[
622       [
623
624       ]
625     ]
626   },
627   {
628     "id":"ef7b09c8.6b36b8",
629     "type":"execute",
630     "name":"execute SliStringUtils - replace LandingNetworkRole",
631     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n",
632     "comments":"",
633     "outputs":1,
634     "x":2916.243896484375,
635     "y":1249.7672729492188,
636     "z":"6d778d5b.c45f64",
637     "wires":[
638       [
639
640       ]
641     ]
642   },
643   {
644     "id":"e7502764.f34288",
645     "type":"block",
646     "name":"block: atomic",
647     "xml":"<block atomic='true'>\n",
648     "atomic":"false",
649     "comments":"",
650     "outputs":1,
651     "x":2593.5292015075684,
652     "y":1205.3387522697449,
653     "z":"6d778d5b.c45f64",
654     "wires":[
655       [
656         "1d6e2e9f.9f6281",
657         "d37d22cd.5e612",
658         "ef7b09c8.6b36b8",
659         "49ad4058.d0089"
660       ]
661     ]
662   },
663   {
664     "id":"49ad4058.d0089",
665     "type":"set",
666     "name":"set identifiers.allotted-resource-name",
667     "xml":"<set>\n<parameter name='tx-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
668     "comments":"",
669     "x":2874.1005859375,
670     "y":1300.052978515625,
671     "z":"6d778d5b.c45f64",
672     "wires":[
673
674     ]
675   },
676   {
677     "id":"d092a98.3446758",
678     "type":"set",
679     "name":"set assignments in overall structure",
680     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.' \nvalue=\"`$tx-ar-assignments.`\" />\n\n\n",
681     "comments":"",
682     "x":1460.8624267578125,
683     "y":1498.6246337890625,
684     "z":"6d778d5b.c45f64",
685     "wires":[
686
687     ]
688   },
689   {
690     "id":"add28223.49736",
691     "type":"set",
692     "name":"Handle tx-ar-assignments",
693     "xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar-assignments.vgmux-bearer-ip' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar-assignments.vgmux-lan-ip' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar-assignments.vg-ip' value='`$tmp.manageIpaddr.ip`'/>\n\n",
694     "comments":"",
695     "x":1428.529052734375,
696     "y":1418.052978515625,
697     "z":"6d778d5b.c45f64",
698     "wires":[
699
700     ]
701   },
702   {
703     "id":"6d7c9c61.51b0b4",
704     "type":"for",
705     "name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
706     "xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
707     "comments":"",
708     "outputs":1,
709     "x":2501.8155822753906,
710     "y":1610.0411586761475,
711     "z":"6d778d5b.c45f64",
712     "wires":[
713       [
714         "70f7bb5e.ea0274"
715       ]
716     ]
717   },
718   {
719     "id":"c057b9c3.dc3768",
720     "type":"switchNode",
721     "name":"switch service-data.consumed-allotted-resources_length",
722     "xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
723     "comments":"",
724     "outputs":1,
725     "x":1507.8148193359375,
726     "y":1603.505126953125,
727     "z":"6d778d5b.c45f64",
728     "wires":[
729       [
730         "62b02de0.0af454",
731         "26557b09.94a7f4"
732       ]
733     ]
734   },
735   {
736     "id":"62b02de0.0af454",
737     "type":"other",
738     "name":"outcome Null",
739     "xml":"<outcome value=''>\n",
740     "comments":"",
741     "outputs":1,
742     "x":1908.207763671875,
743     "y":1582.1124267578125,
744     "z":"6d778d5b.c45f64",
745     "wires":[
746       [
747         "b0181993.439998"
748       ]
749     ]
750   },
751   {
752     "id":"26557b09.94a7f4",
753     "type":"other",
754     "name":"other",
755     "xml":"<outcome value='Other'>\n",
756     "comments":"",
757     "outputs":1,
758     "x":1900.957763671875,
759     "y":1663.1124267578125,
760     "z":"6d778d5b.c45f64",
761     "wires":[
762       [
763         "670fdc23.c2e944"
764       ]
765     ]
766   },
767   {
768     "id":"70f7bb5e.ea0274",
769     "type":"switchNode",
770     "name":"switch allotted-resource-id",
771     "xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
772     "comments":"",
773     "outputs":1,
774     "x":2936.4106826782227,
775     "y":1611.85085105896,
776     "z":"6d778d5b.c45f64",
777     "wires":[
778       [
779         "a8f61abf.fcd308"
780       ]
781     ]
782   },
783   {
784     "id":"a8f61abf.fcd308",
785     "type":"outcomeTrue",
786     "name":"true",
787     "xml":"<outcome value='true'>\n",
788     "comments":"",
789     "outputs":1,
790     "x":3143.220375061035,
791     "y":1615.064962387085,
792     "z":"6d778d5b.c45f64",
793     "wires":[
794       [
795         "df6d8539.73d218"
796       ]
797     ]
798   },
799   {
800     "id":"670fdc23.c2e944",
801     "type":"block",
802     "name":"block : atomic",
803     "xml":"<block atomic=\"true\">",
804     "atomic":"true",
805     "outputs":1,
806     "x":2067.8349609375,
807     "y":1657.488525390625,
808     "z":"6d778d5b.c45f64",
809     "wires":[
810       [
811         "6d7c9c61.51b0b4",
812         "a831b9c8.902e48"
813       ]
814     ]
815   },
816   {
817     "id":"df6d8539.73d218",
818     "type":"block",
819     "name":"block : atomic",
820     "xml":"<block atomic=\"true\">",
821     "atomic":"true",
822     "outputs":1,
823     "x":3311.4817276000977,
824     "y":1619.9222631454468,
825     "z":"6d778d5b.c45f64",
826     "wires":[
827       [
828         "cf90980d.2f50b8"
829       ]
830     ]
831   },
832   {
833     "id":"b0181993.439998",
834     "type":"set",
835     "name":"set cidx",
836     "xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
837     "comments":"",
838     "x":2093.0648193359375,
839     "y":1585.32666015625,
840     "z":"6d778d5b.c45f64",
841     "wires":[
842
843     ]
844   },
845   {
846     "id":"cf90980d.2f50b8",
847     "type":"set",
848     "name":"set tmp.cidx and ctx.consumed-ar",
849     "xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />",
850     "comments":"",
851     "x":3557.3391876220703,
852     "y":1614.4937419891357,
853     "z":"6d778d5b.c45f64",
854     "wires":[
855
856     ]
857   },
858   {
859     "id":"9e1a3f00.67db8",
860     "type":"set",
861     "name":"set consumed allotted resources",
862     "xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
863     "comments":"",
864     "x":1443.6720123291016,
865     "y":1662.826681137085,
866     "z":"6d778d5b.c45f64",
867     "wires":[
868
869     ]
870   },
871   {
872     "id":"dcd5ec61.1101",
873     "type":"block",
874     "name":"block",
875     "xml":"<block>\n",
876     "atomic":"false",
877     "comments":"",
878     "outputs":1,
879     "x":1843.910057067871,
880     "y":2023.4815347194672,
881     "z":"6d778d5b.c45f64",
882     "wires":[
883       [
884
885       ]
886     ]
887   },
888   {
889     "id":"1b2081c9.a5da5e",
890     "type":"comment",
891     "name":"Add SZ AR to mdsal",
892     "info":"",
893     "comments":"",
894     "x":1370.148193359375,
895     "y":1973.1956787109375,
896     "z":"6d778d5b.c45f64",
897     "wires":[
898
899     ]
900   },
901   {
902     "id":"7aaed588.63511c",
903     "type":"execute",
904     "name":"execute getTime",
905     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
906     "comments":"",
907     "outputs":1,
908     "x":1384.4814224243164,
909     "y":1736.671986579895,
910     "z":"6d778d5b.c45f64",
911     "wires":[
912       [
913
914       ]
915     ]
916   },
917   {
918     "id":"99804d99.5a352",
919     "type":"other",
920     "name":"other",
921     "xml":"<outcome value='Other'>\n",
922     "comments":"",
923     "outputs":1,
924     "x":1104.57666015625,
925     "y":680.4814453125,
926     "z":"6d778d5b.c45f64",
927     "wires":[
928       [
929         "e8c6a2dd.e4b3e"
930       ]
931     ]
932   },
933   {
934     "id":"aae390e8.74c6e",
935     "type":"block",
936     "name":"block: atomic",
937     "xml":"<block atomic=\"true\">\n",
938     "atomic":"false",
939     "comments":"",
940     "outputs":1,
941     "x":1052.57666015625,
942     "y":1176.2908325195312,
943     "z":"6d778d5b.c45f64",
944     "wires":[
945       [
946         "9e1a3f00.67db8",
947         "7aaed588.63511c",
948         "2132e3dd.5539fc",
949         "4e2ca4b9.af9d2c",
950         "8469024b.7a82b",
951         "d0d44753.44ba98",
952         "d7a47b9d.32cb28",
953         "c1360476.7b6098",
954         "573f6a07.f17fd4",
955         "d8d243c1.7bb7e",
956         "388bbf45.722ad",
957         "e8848901.4775c8",
958         "109fba97.f782b5",
959         "1d9a0b0d.a6f8f5",
960         "42c79ea2.81985",
961         "59dac422.4bc30c",
962         "d857982b.5cce48",
963         "40af5f1c.9055f",
964         "add28223.49736",
965         "d092a98.3446758",
966         "c057b9c3.dc3768",
967         "30b6665f.e4a89a",
968         "de53cfb9.dddbd",
969         "abea3cf1.3111d",
970         "f623a457.d69fb8"
971       ]
972     ]
973   },
974   {
975     "id":"d7a47b9d.32cb28",
976     "type":"set",
977     "name":"set id",
978     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
979     "comments":"",
980     "x":1423.2434387207031,
981     "y":686.433837890625,
982     "z":"6d778d5b.c45f64",
983     "wires":[
984
985     ]
986   },
987   {
988     "id":"f623a457.d69fb8",
989     "type":"update",
990     "name":"update AAI allotted-resource",
991     "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n",
992     "comments":"",
993     "outputs":1,
994     "x":1411.052978515625,
995     "y":1888.5767822265625,
996     "z":"6d778d5b.c45f64",
997     "wires":[
998       [
999         "34d1f7b2.8b87a8",
1000         "b3d34689.7dc1b8"
1001       ]
1002     ]
1003   },
1004   {
1005     "id":"34d1f7b2.8b87a8",
1006     "type":"failure",
1007     "name":"failure",
1008     "xml":"<outcome value='failure'>\n",
1009     "comments":"",
1010     "outputs":1,
1011     "x":1660.814842224121,
1012     "y":1887.5292553901672,
1013     "z":"6d778d5b.c45f64",
1014     "wires":[
1015       [
1016         "a85cc318.f284a"
1017       ]
1018     ]
1019   },
1020   {
1021     "id":"a85cc318.f284a",
1022     "type":"returnFailure",
1023     "name":"return failure",
1024     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",
1025     "comments":"",
1026     "x":1827.338722229004,
1027     "y":1899.1483263969421,
1028     "z":"6d778d5b.c45f64",
1029     "wires":[
1030
1031     ]
1032   },
1033   {
1034     "id":"b3d34689.7dc1b8",
1035     "type":"failure",
1036     "name":"not-found",
1037     "xml":"<outcome value='not-found'>\n",
1038     "comments":"",
1039     "outputs":1,
1040     "x":1667.9101295471191,
1041     "y":1920.2912230491638,
1042     "z":"6d778d5b.c45f64",
1043     "wires":[
1044       [
1045         "a85cc318.f284a"
1046       ]
1047     ]
1048   },
1049   {
1050     "id":"a831b9c8.902e48",
1051     "type":"switchNode",
1052     "name":"switch tmp.found-cidx",
1053     "xml":"<switch test='`$tmp.found-cidx`'>\n",
1054     "comments":"",
1055     "outputs":1,
1056     "x":2316.743423461914,
1057     "y":1856.2315921783447,
1058     "z":"6d778d5b.c45f64",
1059     "wires":[
1060       [
1061         "7ea3dd53.4333f4"
1062       ]
1063     ]
1064   },
1065   {
1066     "id":"7ea3dd53.4333f4",
1067     "type":"outcomeTrue",
1068     "name":"false",
1069     "xml":"<outcome value='false'>\n",
1070     "comments":"",
1071     "outputs":1,
1072     "x":2506.743377685547,
1073     "y":1856.2315292358398,
1074     "z":"6d778d5b.c45f64",
1075     "wires":[
1076       [
1077         "b69b3a44.e782b8"
1078       ]
1079     ]
1080   },
1081   {
1082     "id":"b69b3a44.e782b8",
1083     "type":"block",
1084     "name":"block : atomic",
1085     "xml":"<block atomic=\"true\">",
1086     "atomic":"true",
1087     "outputs":1,
1088     "x":2672.743377685547,
1089     "y":1856.2315292358398,
1090     "z":"6d778d5b.c45f64",
1091     "wires":[
1092       [
1093         "b4e6550a.303748"
1094       ]
1095     ]
1096   },
1097   {
1098     "id":"b4e6550a.303748",
1099     "type":"set",
1100     "name":"set tmp.cidx ",
1101     "xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1102     "comments":"",
1103     "x":2918.600706100464,
1104     "y":1856.8030033111572,
1105     "z":"6d778d5b.c45f64",
1106     "wires":[
1107
1108     ]
1109   },
1110   {
1111     "id":"995e10ab.ef2f6",
1112     "type":"break",
1113     "name":"break",
1114     "xml":"<break/>\n",
1115     "comments":"",
1116     "x":3476.243408203125,
1117     "y":1659.731689453125,
1118     "z":"6d778d5b.c45f64",
1119     "wires":[
1120
1121     ]
1122   },
1123   {
1124     "id":"ad2c1042.ffcf4",
1125     "type":"execute",
1126     "name":"execute RestApiCallNode - Update parent provided service AR",
1127     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
1128     "comments":"",
1129     "outputs":1,
1130     "x":2194.9521980285645,
1131     "y":2023.1904199123383,
1132     "z":"6d778d5b.c45f64",
1133     "wires":[
1134       [
1135         "473b0bea.e2adf4",
1136         "7b199046.8906d",
1137         "416141e2.fa511"
1138       ]
1139     ]
1140   },
1141   {
1142     "id":"f9d8c7c9.5d1db8",
1143     "type":"comment",
1144     "name":"Rollback parent",
1145     "info":"",
1146     "comments":"",
1147     "x":2038.9521255493164,
1148     "y":1992.8570504188538,
1149     "z":"6d778d5b.c45f64",
1150     "wires":[
1151
1152     ]
1153   },
1154   {
1155     "id":"473b0bea.e2adf4",
1156     "type":"not-found",
1157     "name":"not-found",
1158     "xml":"<outcome value='not-found'>\n",
1159     "comments":"",
1160     "outputs":1,
1161     "x":2566.2602462768555,
1162     "y":2083.8553862571716,
1163     "z":"6d778d5b.c45f64",
1164     "wires":[
1165       [
1166         "4115590f.ef7568"
1167       ]
1168     ]
1169   },
1170   {
1171     "id":"7b199046.8906d",
1172     "type":"failure",
1173     "name":"failure",
1174     "xml":"<outcome value='failure'>\n",
1175     "comments":"",
1176     "outputs":1,
1177     "x":2557.26029586792,
1178     "y":2052.355412006378,
1179     "z":"6d778d5b.c45f64",
1180     "wires":[
1181       [
1182         "4115590f.ef7568"
1183       ]
1184     ]
1185   },
1186   {
1187     "id":"416141e2.fa511",
1188     "type":"success",
1189     "name":"success",
1190     "xml":"<outcome value='success'>\n",
1191     "comments":"",
1192     "outputs":1,
1193     "x":2561.0103340148926,
1194     "y":2022.7125168815255,
1195     "z":"6d778d5b.c45f64",
1196     "wires":[
1197       [
1198         "4115590f.ef7568"
1199       ]
1200     ]
1201   },
1202   {
1203     "id":"4115590f.ef7568",
1204     "type":"block",
1205     "name":"block",
1206     "xml":"<block>\n",
1207     "atomic":"false",
1208     "comments":"",
1209     "outputs":1,
1210     "x":2702.666301727295,
1211     "y":2018.9046860709786,
1212     "z":"6d778d5b.c45f64",
1213     "wires":[
1214       [
1215
1216       ]
1217     ]
1218   },
1219   {
1220     "id":"bf37a377.dd8a4",
1221     "type":"comment",
1222     "name":"Generate naming",
1223     "info":"",
1224     "comments":"",
1225     "x":1459.3862762451172,
1226     "y":1033.767225265503,
1227     "z":"6d778d5b.c45f64",
1228     "wires":[
1229
1230     ]
1231   },
1232   {
1233     "id":"f5d1d70b.ddc6f8",
1234     "type":"execute",
1235     "name":"execute Properties",
1236     "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",
1237     "comments":"",
1238     "outputs":1,
1239     "x":904,
1240     "y":502,
1241     "z":"6d778d5b.c45f64",
1242     "wires":[
1243       [
1244
1245       ]
1246     ]
1247   },
1248   {
1249     "id":"e8c6a2dd.e4b3e",
1250     "type":"get-resource",
1251     "name":"get-resource parent service instance",
1252     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.ar.parent-service-instance-id/service-data/' pfx='parent-service-instance' >\n",
1253     "comments":"",
1254     "outputs":1,
1255     "x":917,
1256     "y":783,
1257     "z":"6d778d5b.c45f64",
1258     "wires":[
1259       [
1260         "8991d34b.f48af",
1261         "dbef2e21.0da74"
1262       ]
1263     ]
1264   },
1265   {
1266     "id":"dbef2e21.0da74",
1267     "type":"success",
1268     "name":"success",
1269     "xml":"<outcome value='success'>\n",
1270     "comments":"",
1271     "outputs":1,
1272     "x":1180,
1273     "y":777,
1274     "z":"6d778d5b.c45f64",
1275     "wires":[
1276       [
1277         "aae390e8.74c6e"
1278       ]
1279     ]
1280   },
1281   {
1282     "id":"8991d34b.f48af",
1283     "type":"other",
1284     "name":"other",
1285     "xml":"<outcome value='Other'>\n",
1286     "comments":"",
1287     "outputs":1,
1288     "x":993,
1289     "y":878,
1290     "z":"6d778d5b.c45f64",
1291     "wires":[
1292       [
1293         "d4ea2429.a9c908"
1294       ]
1295     ]
1296   },
1297   {
1298     "id":"d4ea2429.a9c908",
1299     "type":"returnFailure",
1300     "name":"return failure - parent service instance not found",
1301     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n",
1302     "comments":"",
1303     "x":920,
1304     "y":939,
1305     "z":"6d778d5b.c45f64",
1306     "wires":[
1307
1308     ]
1309   },
1310   {
1311     "id":"be6a5ce7.0ed",
1312     "type":"for",
1313     "name":"for parent vnf parameters",
1314     "xml":"<for index='curidx' start='0' end='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length`' >\n",
1315     "comments":"",
1316     "outputs":1,
1317     "x":1970,
1318     "y":1223,
1319     "z":"6d778d5b.c45f64",
1320     "wires":[
1321       [
1322         "95805190.debbe"
1323       ]
1324     ]
1325   },
1326   {
1327     "id":"95805190.debbe",
1328     "type":"switchNode",
1329     "name":"switch parameter name",
1330     "xml":"<switch test='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-name`'>\n",
1331     "comments":"",
1332     "outputs":1,
1333     "x":2092,
1334     "y":1315,
1335     "z":"6d778d5b.c45f64",
1336     "wires":[
1337       [
1338         "508d4d24.3b9154",
1339         "1ac32417.a325dc"
1340       ]
1341     ]
1342   },
1343   {
1344     "id":"508d4d24.3b9154",
1345     "type":"other",
1346     "name":"vgmux_private_ip_0",
1347     "xml":"<outcome value='vgmux_private_ip_0'>\n",
1348     "comments":"",
1349     "outputs":1,
1350     "x":2318,
1351     "y":1319,
1352     "z":"6d778d5b.c45f64",
1353     "wires":[
1354       [
1355         "861fd9c6.6015f8"
1356       ]
1357     ]
1358   },
1359   {
1360     "id":"755943b8.1a105c",
1361     "type":"set",
1362     "name":"set tmp.vgmux-bearer-ip",
1363     "xml":"<set>\n<parameter name='tmp.vgmux-bearer-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n",
1364     "comments":"",
1365     "x":2550.9999771118164,
1366     "y":1380.0000400543213,
1367     "z":"6d778d5b.c45f64",
1368     "wires":[
1369
1370     ]
1371   },
1372   {
1373     "id":"1ac32417.a325dc",
1374     "type":"other",
1375     "name":"vgmux_private_ip_2",
1376     "xml":"<outcome value='vgmux_private_ip_2'>\n",
1377     "comments":"",
1378     "outputs":1,
1379     "x":2320,
1380     "y":1379,
1381     "z":"6d778d5b.c45f64",
1382     "wires":[
1383       [
1384         "755943b8.1a105c"
1385       ]
1386     ]
1387   },
1388   {
1389     "id":"861fd9c6.6015f8",
1390     "type":"set",
1391     "name":"set tmp.vgmux-lan-ip",
1392     "xml":"<set>\n<parameter name='tmp.vgmux-lan-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n",
1393     "comments":"",
1394     "x":2540.9999771118164,
1395     "y":1322.0000381469727,
1396     "z":"6d778d5b.c45f64",
1397     "wires":[
1398
1399     ]
1400   },
1401   {
1402     "id":"59dac422.4bc30c",
1403     "type":"set",
1404     "name":"set default assignments",
1405     "xml":"<set>\n<parameter name='tmp.vni' value='123' />\n<parameter name='tmp.vgmux-bearer-ip' value='127.0.0.1' />\n<parameter name='tmp.vgmux-lan-ip' value='127.0.0.1' />",
1406     "comments":"",
1407     "x":1450,
1408     "y":1177,
1409     "z":"6d778d5b.c45f64",
1410     "wires":[
1411
1412     ]
1413   },
1414   {
1415     "id":"338371c3.03166e",
1416     "type":"execute",
1417     "name":"generate allotted-resource url",
1418     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
1419     "comments":"",
1420     "outputs":1,
1421     "x":900,
1422     "y":545,
1423     "z":"6d778d5b.c45f64",
1424     "wires":[
1425       [
1426
1427       ]
1428     ]
1429   },
1430   {
1431     "id":"40af5f1c.9055f",
1432     "type":"call",
1433     "name":"call GENERIC-RESOURCE-API:manage-vni-assignment",
1434     "xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-vni-assignment' mode='sync' >\n",
1435     "comments":"",
1436     "outputs":1,
1437     "x":1537,
1438     "y":1322,
1439     "z":"6d778d5b.c45f64",
1440     "wires":[
1441       [
1442
1443       ]
1444     ]
1445   },
1446   {
1447     "id":"d857982b.5cce48",
1448     "type":"set",
1449     "name":"set actions = reserve, pools = VNI, VGW",
1450     "xml":"<set>\n<parameter name='tmp.manageVni.action' value='reserve' />\n<parameter name='tmp.manageIpaddr.action' value='reserve' />\n<parameter name='tmp.manageVni.pool' value='VNI'/>\n<parameter name='tmp.manageIpaddr.pool' value='VGW'/>",
1451     "comments":"",
1452     "x":1473,
1453     "y":1268,
1454     "z":"6d778d5b.c45f64",
1455     "wires":[
1456
1457     ]
1458   },
1459   {
1460     "id":"bec51e2f.be8cc",
1461     "type":"execute",
1462     "name":"execute RestApiCallNode - Get AR by id",
1463     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1464     "comments":"",
1465     "outputs":1,
1466     "x":824,
1467     "y":680,
1468     "z":"6d778d5b.c45f64",
1469     "wires":[
1470       [
1471         "eb1ff0c9.ef38e",
1472         "99804d99.5a352"
1473       ]
1474     ]
1475   },
1476   {
1477     "id":"30b6665f.e4a89a",
1478     "type":"switchNode",
1479     "name":"Does parent service instance have vnf parameters?",
1480     "xml":"<switch test=\"`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length != ''`\">\n",
1481     "comments":"",
1482     "outputs":1,
1483     "x":1517,
1484     "y":1218,
1485     "z":"6d778d5b.c45f64",
1486     "wires":[
1487       [
1488         "a8ab7150.c4542"
1489       ]
1490     ]
1491   },
1492   {
1493     "id":"a8ab7150.c4542",
1494     "type":"outcomeTrue",
1495     "name":"true",
1496     "xml":"<outcome value='true'>\n",
1497     "comments":"",
1498     "outputs":1,
1499     "x":1779,
1500     "y":1220,
1501     "z":"6d778d5b.c45f64",
1502     "wires":[
1503       [
1504         "be6a5ce7.0ed"
1505       ]
1506     ]
1507   },
1508   {
1509     "id":"de53cfb9.dddbd",
1510     "type":"call",
1511     "name":"call GENERIC-RESOURCE-API:manage-ipaddr-assignment",
1512     "xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-ipaddr-assignment' mode='sync' >\n",
1513     "comments":"",
1514     "outputs":1,
1515     "x":1533,
1516     "y":1369,
1517     "z":"6d778d5b.c45f64",
1518     "wires":[
1519       [
1520
1521       ]
1522     ]
1523   },
1524   {
1525     "id":"abea3cf1.3111d",
1526     "type":"set",
1527     "name":"Handle tx parameters",
1528     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].name' value='VNI'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].value' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].name' value='vgmux_private_ip_2'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].value' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].name' value='vgmux_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].value' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].name' value='vgw_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].value' value='`$tmp.manageIpaddr.ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters_length' value='4'/>\n\n",
1529     "comments":"",
1530     "x":1425,
1531     "y":1458,
1532     "z":"6d778d5b.c45f64",
1533     "wires":[
1534
1535     ]
1536   }
1537 ]