Fix break in brg-topology-operation-assign DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-assign.json
1 [
2   {
3     "id":"447755b1.5a154c",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":275,
8     "y":195,
9     "z":"d3629202.0e9a9",
10     "wires":[
11       [
12         "66bfcde5.5d96c4"
13       ]
14     ]
15   },
16   {
17     "id":"66bfcde5.5d96c4",
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":371.2380790710449,
26     "y":255.95239067077637,
27     "z":"d3629202.0e9a9",
28     "wires":[
29       [
30         "2dfe1c17.827494"
31       ]
32     ]
33   },
34   {
35     "id":"2dfe1c17.827494",
36     "type":"method",
37     "name":"brg-topology-operation-assign",
38     "xml":"<method rpc='brg-topology-operation-assign' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":417.15485763549805,
42     "y":291.1904458999634,
43     "z":"d3629202.0e9a9",
44     "wires":[
45       [
46         "8e0c81af.52e65"
47       ]
48     ]
49   },
50   {
51     "id":"8e0c81af.52e65",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":325.47619247436523,
59     "y":434.5237879753113,
60     "z":"d3629202.0e9a9",
61     "wires":[
62       [
63         "28efce96.95a252",
64         "74f2d05d.d128",
65         "b05fdf22.36f2",
66         "3df4d53c.54c6ca",
67         "c8732493.f72838"
68       ]
69     ]
70   },
71   {
72     "id":"2755b2a9.79da1e",
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":1168.6666564941406,
78     "y":2361.5477046966553,
79     "z":"d3629202.0e9a9",
80     "wires":[
81
82     ]
83   },
84   {
85     "id":"12aa04eb.1fdf1b",
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 + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
89     "comments":"",
90     "x":1205.7540550231934,
91     "y":2240.432439804077,
92     "z":"d3629202.0e9a9",
93     "wires":[
94
95     ]
96   },
97   {
98     "id":"9736c0da.28d34",
99     "type":"set",
100     "name":"set allotted-resource-oper-status",
101     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
102     "comments":"",
103     "x":1277.468376159668,
104     "y":1657.6228160858154,
105     "z":"d3629202.0e9a9",
106     "wires":[
107
108     ]
109   },
110   {
111     "id":"74f2d05d.d128",
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":755.7380676269531,
117     "y":326.33331298828125,
118     "z":"d3629202.0e9a9",
119     "wires":[
120
121     ]
122   },
123   {
124     "id":"28efce96.95a252",
125     "type":"set",
126     "name":"set tmp.ar.allotted-resource-id,etc",
127     "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
128     "comments":"",
129     "x":808.997314453125,
130     "y":288.59259033203125,
131     "z":"d3629202.0e9a9",
132     "wires":[
133
134     ]
135   },
136   {
137     "id":"b6562205.a7488",
138     "type":"success",
139     "name":"success",
140     "xml":"<outcome value='success'>\n",
141     "comments":"",
142     "outputs":1,
143     "x":958.8148803710938,
144     "y":474.26727294921875,
145     "z":"d3629202.0e9a9",
146     "wires":[
147       [
148         "af1477fd.c2ef48"
149       ]
150     ]
151   },
152   {
153     "id":"72e34d2d.88e074",
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.brg.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":1298.8626251220703,
160     "y":1882.1008231639862,
161     "z":"d3629202.0e9a9",
162     "wires":[
163       [
164         "d589ef8a.4b767",
165         "6a9fa011.f03d8",
166         "851f57de.ccd048"
167       ]
168     ]
169   },
170   {
171     "id":"d589ef8a.4b767",
172     "type":"not-found",
173     "name":"not-found",
174     "xml":"<outcome value='not-found'>\n",
175     "comments":"",
176     "outputs":1,
177     "x":1567.5040016174316,
178     "y":1933.4322349056602,
179     "z":"d3629202.0e9a9",
180     "wires":[
181       [
182         "e12a7d91.5e076"
183       ]
184     ]
185   },
186   {
187     "id":"6a9fa011.f03d8",
188     "type":"failure",
189     "name":"failure",
190     "xml":"<outcome value='failure'>\n",
191     "comments":"",
192     "outputs":1,
193     "x":1558.504051208496,
194     "y":1901.9322606548667,
195     "z":"d3629202.0e9a9",
196     "wires":[
197       [
198         "e12a7d91.5e076"
199       ]
200     ]
201   },
202   {
203     "id":"851f57de.ccd048",
204     "type":"success",
205     "name":"success",
206     "xml":"<outcome value='success'>\n",
207     "comments":"",
208     "outputs":1,
209     "x":1562.2540893554688,
210     "y":1872.289365530014,
211     "z":"d3629202.0e9a9",
212     "wires":[
213       [
214         "92379d68.800b2"
215       ]
216     ]
217   },
218   {
219     "id":"e12a7d91.5e076",
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":1728.2540893554688,
225     "y":1902.6822844967246,
226     "z":"d3629202.0e9a9",
227     "wires":[
228
229     ]
230   },
231   {
232     "id":"fe3888af.6a0dc8",
233     "type":"set",
234     "name":"set oper-status",
235     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
236     "comments":"",
237     "x":1308.5294189453125,
238     "y":575.0529174804688,
239     "z":"d3629202.0e9a9",
240     "wires":[
241
242     ]
243   },
244   {
245     "id":"3526b3c4.21b13c",
246     "type":"comment",
247     "name":"Save consumed-allotted-resources to mdsal",
248     "info":"",
249     "comments":"",
250     "x":1376.2434692382812,
251     "y":1256.7196044921875,
252     "z":"d3629202.0e9a9",
253     "wires":[
254
255     ]
256   },
257   {
258     "id":"e7882796.2e25a8",
259     "type":"comment",
260     "name":"GET tunnelxconn-allotted-resource from mdsal",
261     "info":"",
262     "comments":"",
263     "x":681.8148193359375,
264     "y":444.7672119140625,
265     "z":"d3629202.0e9a9",
266     "wires":[
267
268     ]
269   },
270   {
271     "id":"af1477fd.c2ef48",
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 brg-allotted-resource with order status of ' + $mdsal-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
275     "comments":"",
276     "x":1268.129150390625,
277     "y":470.6243896484375,
278     "z":"d3629202.0e9a9",
279     "wires":[
280
281     ]
282   },
283   {
284     "id":"5ce4ff52.c3598",
285     "type":"set",
286     "name":"set brg-ar-identifiers",
287     "xml":"<set>\n<parameter name='brg-ar-identifiers.consuming-service-instance-id' value=\"`$brg-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='brg-ar-identifiers.parent-service-instance-id' value=\"`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-type' value=\"`$brg-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
288     "comments":"",
289     "x":1318.38623046875,
290     "y":668.6243896484375,
291     "z":"d3629202.0e9a9",
292     "wires":[
293
294     ]
295   },
296   {
297     "id":"72aaacf.5bef354",
298     "type":"comment",
299     "name":"Set allotted-resource-identifiers",
300     "info":"",
301     "comments":"",
302     "x":1345.338623046875,
303     "y":627.338623046875,
304     "z":"d3629202.0e9a9",
305     "wires":[
306
307     ]
308   },
309   {
310     "id":"e4f1d676.269118",
311     "type":"set",
312     "name":"set identifiers in overall structure",
313     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.' \nvalue=\"`$brg-ar-identifiers.`\" />\n\n\n",
314     "comments":"",
315     "x":1335.38623046875,
316     "y":976.910400390625,
317     "z":"d3629202.0e9a9",
318     "wires":[
319
320     ]
321   },
322   {
323     "id":"af5a8dd4.2718",
324     "type":"set",
325     "name":"set onap model information from input",
326     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.brg-topology.onap-model-information.' \nvalue=\"`$brg-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
327     "comments":"",
328     "x":1363.957763671875,
329     "y":711.9100952148438,
330     "z":"d3629202.0e9a9",
331     "wires":[
332
333     ]
334   },
335   {
336     "id":"6487f749.00d688",
337     "type":"switchNode",
338     "name":"switch model-invariant-uuid is null",
339     "xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
340     "comments":"",
341     "outputs":1,
342     "x":1343.8148193359375,
343     "y":751.19580078125,
344     "z":"d3629202.0e9a9",
345     "wires":[
346       [
347         "ac9d6ff3.e94f3"
348       ]
349     ]
350   },
351   {
352     "id":"ac9d6ff3.e94f3",
353     "type":"outcome",
354     "name":"outcome null",
355     "xml":"<outcome value=''>\n",
356     "comments":"",
357     "outputs":1,
358     "x":1571.9576988220215,
359     "y":752.6243271827698,
360     "z":"d3629202.0e9a9",
361     "wires":[
362       [
363         "6de39e79.3ed02"
364       ]
365     ]
366   },
367   {
368     "id":"6de39e79.3ed02",
369     "type":"set",
370     "name":"set model-invariant-uuid",
371     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
372     "comments":"",
373     "x":1773.38627243042,
374     "y":752.0528798103333,
375     "z":"d3629202.0e9a9",
376     "wires":[
377
378     ]
379   },
380   {
381     "id":"62ed5c3a.385604",
382     "type":"switchNode",
383     "name":"switch model-uuid is null",
384     "xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
385     "comments":"",
386     "outputs":1,
387     "x":1316.2434158325195,
388     "y":785.4815106391907,
389     "z":"d3629202.0e9a9",
390     "wires":[
391       [
392         "94d93434.23d938"
393       ]
394     ]
395   },
396   {
397     "id":"94d93434.23d938",
398     "type":"outcome",
399     "name":"outcome null",
400     "xml":"<outcome value=''>\n",
401     "comments":"",
402     "outputs":1,
403     "x":1517.6719818115234,
404     "y":786.0529322624207,
405     "z":"d3629202.0e9a9",
406     "wires":[
407       [
408         "aa516303.e0eee"
409       ]
410     ]
411   },
412   {
413     "id":"aa516303.e0eee",
414     "type":"set",
415     "name":"set model-uuid",
416     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
417     "comments":"",
418     "x":1710.529140472412,
419     "y":786.0528540611267,
420     "z":"d3629202.0e9a9",
421     "wires":[
422
423     ]
424   },
425   {
426     "id":"15675ff3.fe7c9",
427     "type":"switchNode",
428     "name":"switch model-version is null",
429     "xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
430     "comments":"",
431     "outputs":1,
432     "x":1324.8148193359375,
433     "y":818.3386378288269,
434     "z":"d3629202.0e9a9",
435     "wires":[
436       [
437         "baad5acc.7ffcb8"
438       ]
439     ]
440   },
441   {
442     "id":"baad5acc.7ffcb8",
443     "type":"outcome",
444     "name":"outcome null",
445     "xml":"<outcome value=''>\n",
446     "comments":"",
447     "outputs":1,
448     "x":1574.8148002624512,
449     "y":818.3386225700378,
450     "z":"d3629202.0e9a9",
451     "wires":[
452       [
453         "ff89d62f.a88838"
454       ]
455     ]
456   },
457   {
458     "id":"ff89d62f.a88838",
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":1767.6719589233398,
464     "y":818.3385443687439,
465     "z":"d3629202.0e9a9",
466     "wires":[
467
468     ]
469   },
470   {
471     "id":"4359a5ff.7933ac",
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":1388.38623046875,
478     "y":920.7672729492188,
479     "z":"d3629202.0e9a9",
480     "wires":[
481       [
482         "caaf3501.3ba9c8",
483         "2ae9bf81.d8366"
484       ]
485     ]
486   },
487   {
488     "id":"caaf3501.3ba9c8",
489     "type":"other",
490     "name":"outcome Y",
491     "xml":"<outcome value='Y'>\n",
492     "comments":"",
493     "outputs":1,
494     "x":1674.3862915039062,
495     "y":920.1958618164062,
496     "z":"d3629202.0e9a9",
497     "wires":[
498       [
499         "e333882f.732e78"
500       ]
501     ]
502   },
503   {
504     "id":"e333882f.732e78",
505     "type":"block",
506     "name":"block : atomic",
507     "xml":"<block atomic=\"true\">\n",
508     "atomic":"true",
509     "comments":"",
510     "outputs":1,
511     "x":1828.1363525390625,
512     "y":922.69580078125,
513     "z":"d3629202.0e9a9",
514     "wires":[
515       [
516         "68a80432.57affc"
517       ]
518     ]
519   },
520   {
521     "id":"2ae9bf81.d8366",
522     "type":"other",
523     "name":"other",
524     "xml":"<outcome value='Other'>\n",
525     "comments":"",
526     "outputs":1,
527     "x":1693.608642578125,
528     "y":1009.1958618164062,
529     "z":"d3629202.0e9a9",
530     "wires":[
531       [
532         "363e0870.e596f8"
533       ]
534     ]
535   },
536   {
537     "id":"363e0870.e596f8",
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":1876.608642578125,
543     "y":1014.1958618164062,
544     "z":"d3629202.0e9a9",
545     "wires":[
546
547     ]
548   },
549   {
550     "id":"68a80432.57affc",
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":1964.38623046875,
557     "y":971.767333984375,
558     "z":"d3629202.0e9a9",
559     "wires":[
560       [
561         "b9e5730f.7b10e",
562         "1e6aef5f.dbbe91"
563       ]
564     ]
565   },
566   {
567     "id":"b9e5730f.7b10e",
568     "type":"other",
569     "name":"outcome oam_network_policy",
570     "xml":"<outcome value='oam_network_policy'>\n",
571     "comments":"",
572     "outputs":1,
573     "x":2339.244140625,
574     "y":975.3453369140625,
575     "z":"d3629202.0e9a9",
576     "wires":[
577       [
578         "272bfe84.8b7ee2"
579       ]
580     ]
581   },
582   {
583     "id":"1e6aef5f.dbbe91",
584     "type":"other",
585     "name":"other",
586     "xml":"<outcome value='Other'>\n",
587     "comments":"",
588     "outputs":1,
589     "x":2253.671875,
590     "y":1052.1958618164062,
591     "z":"d3629202.0e9a9",
592     "wires":[
593       [
594         "272bfe84.8b7ee2"
595       ]
596     ]
597   },
598   {
599     "id":"23093b95.f9aaa4",
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":2645.100830078125,
605     "y":1010.7672729492188,
606     "z":"d3629202.0e9a9",
607     "wires":[
608
609     ]
610   },
611   {
612     "id":"1a68705f.d6389",
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":2789.2437858581543,
619     "y":1054.6244196891785,
620     "z":"d3629202.0e9a9",
621     "wires":[
622       [
623
624       ]
625     ]
626   },
627   {
628     "id":"7aa8e90e.1063e8",
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":2776.243896484375,
635     "y":1094.7672729492188,
636     "z":"d3629202.0e9a9",
637     "wires":[
638       [
639
640       ]
641     ]
642   },
643   {
644     "id":"272bfe84.8b7ee2",
645     "type":"block",
646     "name":"block: atomic",
647     "xml":"<block atomic='true'>\n",
648     "atomic":"false",
649     "comments":"",
650     "outputs":1,
651     "x":2453.5292015075684,
652     "y":1050.3387522697449,
653     "z":"d3629202.0e9a9",
654     "wires":[
655       [
656         "23093b95.f9aaa4",
657         "1a68705f.d6389",
658         "7aa8e90e.1063e8",
659         "4308f250.0d061c"
660       ]
661     ]
662   },
663   {
664     "id":"4308f250.0d061c",
665     "type":"set",
666     "name":"set identifiers.allotted-resource-name",
667     "xml":"<set>\n<parameter name='brg-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
668     "comments":"",
669     "x":2734.1005859375,
670     "y":1145.052978515625,
671     "z":"d3629202.0e9a9",
672     "wires":[
673
674     ]
675   },
676   {
677     "id":"18920617.98a00a",
678     "type":"set",
679     "name":"set assignments in overall structure",
680     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.' \nvalue=\"`$brg-ar-assignments.`\" />\n\n\n",
681     "comments":"",
682     "x":1343.8624572753906,
683     "y":1181.6246919631958,
684     "z":"d3629202.0e9a9",
685     "wires":[
686
687     ]
688   },
689   {
690     "id":"21493890.2a9e08",
691     "type":"set",
692     "name":"Handle brg-ar-assignments",
693     "xml":"<set>\n<parameter name='brg-ar-assignments.vbrg-wan-ip' value='127.0.0.1'/>\n",
694     "comments":"",
695     "x":1323.529052734375,
696     "y":1078.0530395507812,
697     "z":"d3629202.0e9a9",
698     "wires":[
699
700     ]
701   },
702   {
703     "id":"d4e58fd3.5a831",
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":2361.8155822753906,
710     "y":1455.0411586761475,
711     "z":"d3629202.0e9a9",
712     "wires":[
713       [
714         "c0a127f7.72a988"
715       ]
716     ]
717   },
718   {
719     "id":"d68f413c.e0018",
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":1392.8148193359375,
726     "y":1342.505126953125,
727     "z":"d3629202.0e9a9",
728     "wires":[
729       [
730         "d8f09bad.98faa8",
731         "980eb422.8bc7a8"
732       ]
733     ]
734   },
735   {
736     "id":"d8f09bad.98faa8",
737     "type":"other",
738     "name":"outcome Null",
739     "xml":"<outcome value=''>\n",
740     "comments":"",
741     "outputs":1,
742     "x":1768.2077865600586,
743     "y":1347.1124458312988,
744     "z":"d3629202.0e9a9",
745     "wires":[
746       [
747         "19b4289e.1770d7"
748       ]
749     ]
750   },
751   {
752     "id":"980eb422.8bc7a8",
753     "type":"other",
754     "name":"other",
755     "xml":"<outcome value='Other'>\n",
756     "comments":"",
757     "outputs":1,
758     "x":1766.9577865600586,
759     "y":1437.1124477386475,
760     "z":"d3629202.0e9a9",
761     "wires":[
762       [
763         "1162545f.50c16c"
764       ]
765     ]
766   },
767   {
768     "id":"c0a127f7.72a988",
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":2796.4106826782227,
775     "y":1456.85085105896,
776     "z":"d3629202.0e9a9",
777     "wires":[
778       [
779         "ff33ae53.f22d8"
780       ]
781     ]
782   },
783   {
784     "id":"ff33ae53.f22d8",
785     "type":"outcomeTrue",
786     "name":"true",
787     "xml":"<outcome value='true'>\n",
788     "comments":"",
789     "outputs":1,
790     "x":3003.220375061035,
791     "y":1460.064962387085,
792     "z":"d3629202.0e9a9",
793     "wires":[
794       [
795         "d155597e.e18e78"
796       ]
797     ]
798   },
799   {
800     "id":"1162545f.50c16c",
801     "type":"block",
802     "name":"block : atomic",
803     "xml":"<block atomic=\"true\">",
804     "atomic":"true",
805     "outputs":1,
806     "x":1924.834976196289,
807     "y":1443.4885501861572,
808     "z":"d3629202.0e9a9",
809     "wires":[
810       [
811         "d4e58fd3.5a831",
812         "e918e4d2.1efcf8"
813       ]
814     ]
815   },
816   {
817     "id":"d155597e.e18e78",
818     "type":"block",
819     "name":"block : atomic",
820     "xml":"<block atomic=\"true\">",
821     "atomic":"true",
822     "outputs":1,
823     "x":3171.4817276000977,
824     "y":1464.9222631454468,
825     "z":"d3629202.0e9a9",
826     "wires":[
827       [
828         "c63d8f00.d8d8c",
829         "83bc7036.c8dd5"
830       ]
831     ]
832   },
833   {
834     "id":"19b4289e.1770d7",
835     "type":"set",
836     "name":"set cidx",
837     "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",
838     "comments":"",
839     "x":1947.0647735595703,
840     "y":1349.3266830444336,
841     "z":"d3629202.0e9a9",
842     "wires":[
843
844     ]
845   },
846   {
847     "id":"c63d8f00.d8d8c",
848     "type":"set",
849     "name":"set tmp.cidx and ctx.consumed-ar",
850     "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' />",
851     "comments":"",
852     "x":3417.3391876220703,
853     "y":1459.4937419891357,
854     "z":"d3629202.0e9a9",
855     "wires":[
856
857     ]
858   },
859   {
860     "id":"61be16d.26f08e8",
861     "type":"set",
862     "name":"set consumed allotted resources",
863     "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=\"`$brg-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",
864     "comments":"",
865     "x":1303.6720123291016,
866     "y":1507.826681137085,
867     "z":"d3629202.0e9a9",
868     "wires":[
869
870     ]
871   },
872   {
873     "id":"92379d68.800b2",
874     "type":"block",
875     "name":"block",
876     "xml":"<block>\n",
877     "atomic":"false",
878     "comments":"",
879     "outputs":1,
880     "x":1703.910057067871,
881     "y":1868.4815347194672,
882     "z":"d3629202.0e9a9",
883     "wires":[
884       [
885         "c74947a6.46a2b8"
886       ]
887     ]
888   },
889   {
890     "id":"8606840b.b8ce78",
891     "type":"comment",
892     "name":"Add BRG AR to mdsal",
893     "info":"",
894     "comments":"",
895     "x":1228.148208618164,
896     "y":1843.1957080364227,
897     "z":"d3629202.0e9a9",
898     "wires":[
899
900     ]
901   },
902   {
903     "id":"a3f8e39.226902",
904     "type":"execute",
905     "name":"execute getTime",
906     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
907     "comments":"",
908     "outputs":1,
909     "x":1244.4814224243164,
910     "y":1581.671986579895,
911     "z":"d3629202.0e9a9",
912     "wires":[
913       [
914
915       ]
916     ]
917   },
918   {
919     "id":"681e6bc2.d5fc84",
920     "type":"other",
921     "name":"other",
922     "xml":"<outcome value='Other'>\n",
923     "comments":"",
924     "outputs":1,
925     "x":964.57666015625,
926     "y":525.4814453125,
927     "z":"d3629202.0e9a9",
928     "wires":[
929       [
930         "4c28d627.be47d8"
931       ]
932     ]
933   },
934   {
935     "id":"4c28d627.be47d8",
936     "type":"block",
937     "name":"block: atomic",
938     "xml":"<block atomic=\"true\">\n",
939     "atomic":"false",
940     "comments":"",
941     "outputs":1,
942     "x":912.57666015625,
943     "y":1021.2908325195312,
944     "z":"d3629202.0e9a9",
945     "wires":[
946       [
947         "75b209f7.c1c7f8",
948         "5ce4ff52.c3598",
949         "af5a8dd4.2718",
950         "6487f749.00d688",
951         "62ed5c3a.385604",
952         "15675ff3.fe7c9",
953         "fe3888af.6a0dc8",
954         "4359a5ff.7933ac",
955         "e4f1d676.269118",
956         "21493890.2a9e08",
957         "18920617.98a00a",
958         "d68f413c.e0018",
959         "61be16d.26f08e8",
960         "a3f8e39.226902",
961         "9736c0da.28d34",
962         "c78f845.d573978",
963         "72e34d2d.88e074",
964         "12aa04eb.1fdf1b",
965         "2755b2a9.79da1e"
966       ]
967     ]
968   },
969   {
970     "id":"75b209f7.c1c7f8",
971     "type":"set",
972     "name":"set id",
973     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />",
974     "comments":"",
975     "x":1283.2434387207031,
976     "y":531.433837890625,
977     "z":"d3629202.0e9a9",
978     "wires":[
979
980     ]
981   },
982   {
983     "id":"c78f845.d573978",
984     "type":"update",
985     "name":"update AAI allotted-resource",
986     "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",
987     "comments":"",
988     "outputs":1,
989     "x":1265.0529327392578,
990     "y":1749.5767517089844,
991     "z":"d3629202.0e9a9",
992     "wires":[
993       [
994         "fd42eaba.bcea98",
995         "44f6df87.e6131"
996       ]
997     ]
998   },
999   {
1000     "id":"fd42eaba.bcea98",
1001     "type":"failure",
1002     "name":"failure",
1003     "xml":"<outcome value='failure'>\n",
1004     "comments":"",
1005     "outputs":1,
1006     "x":1520.814842224121,
1007     "y":1732.5292553901672,
1008     "z":"d3629202.0e9a9",
1009     "wires":[
1010       [
1011         "cf813c6.4773dc"
1012       ]
1013     ]
1014   },
1015   {
1016     "id":"cf813c6.4773dc",
1017     "type":"returnFailure",
1018     "name":"return failure",
1019     "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",
1020     "comments":"",
1021     "x":1687.338722229004,
1022     "y":1744.1483263969421,
1023     "z":"d3629202.0e9a9",
1024     "wires":[
1025
1026     ]
1027   },
1028   {
1029     "id":"44f6df87.e6131",
1030     "type":"failure",
1031     "name":"not-found",
1032     "xml":"<outcome value='not-found'>\n",
1033     "comments":"",
1034     "outputs":1,
1035     "x":1527.9101295471191,
1036     "y":1765.2912230491638,
1037     "z":"d3629202.0e9a9",
1038     "wires":[
1039       [
1040         "cf813c6.4773dc"
1041       ]
1042     ]
1043   },
1044   {
1045     "id":"e918e4d2.1efcf8",
1046     "type":"switchNode",
1047     "name":"switch tmp.found-cidx",
1048     "xml":"<switch test='`$tmp.found-cidx`'>\n",
1049     "comments":"",
1050     "outputs":1,
1051     "x":2176.743423461914,
1052     "y":1701.2315921783447,
1053     "z":"d3629202.0e9a9",
1054     "wires":[
1055       [
1056         "97cac5ec.6c2cb8"
1057       ]
1058     ]
1059   },
1060   {
1061     "id":"97cac5ec.6c2cb8",
1062     "type":"outcomeTrue",
1063     "name":"false",
1064     "xml":"<outcome value='false'>\n",
1065     "comments":"",
1066     "outputs":1,
1067     "x":2366.743377685547,
1068     "y":1701.2315292358398,
1069     "z":"d3629202.0e9a9",
1070     "wires":[
1071       [
1072         "79bcb05d.e925c"
1073       ]
1074     ]
1075   },
1076   {
1077     "id":"79bcb05d.e925c",
1078     "type":"block",
1079     "name":"block : atomic",
1080     "xml":"<block atomic=\"true\">",
1081     "atomic":"true",
1082     "outputs":1,
1083     "x":2532.743377685547,
1084     "y":1701.2315292358398,
1085     "z":"d3629202.0e9a9",
1086     "wires":[
1087       [
1088         "e7aa5ffb.99baf"
1089       ]
1090     ]
1091   },
1092   {
1093     "id":"e7aa5ffb.99baf",
1094     "type":"set",
1095     "name":"set tmp.cidx ",
1096     "xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1097     "comments":"",
1098     "x":2778.600706100464,
1099     "y":1701.8030033111572,
1100     "z":"d3629202.0e9a9",
1101     "wires":[
1102
1103     ]
1104   },
1105   {
1106     "id":"c74947a6.46a2b8",
1107     "type":"execute",
1108     "name":"execute RestApiCallNode - Update parent provided service AR",
1109     "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",
1110     "comments":"",
1111     "outputs":1,
1112     "x":2054.9521980285645,
1113     "y":1868.1904199123383,
1114     "z":"d3629202.0e9a9",
1115     "wires":[
1116       [
1117         "779e9c7a.0850b4",
1118         "9d87709f.92daf",
1119         "1c59440e.45623c"
1120       ]
1121     ]
1122   },
1123   {
1124     "id":"889dce84.ffc52",
1125     "type":"comment",
1126     "name":"Rollback parent",
1127     "info":"",
1128     "comments":"",
1129     "x":1898.9521255493164,
1130     "y":1837.8570504188538,
1131     "z":"d3629202.0e9a9",
1132     "wires":[
1133
1134     ]
1135   },
1136   {
1137     "id":"779e9c7a.0850b4",
1138     "type":"not-found",
1139     "name":"not-found",
1140     "xml":"<outcome value='not-found'>\n",
1141     "comments":"",
1142     "outputs":1,
1143     "x":2426.2602462768555,
1144     "y":1928.8553862571716,
1145     "z":"d3629202.0e9a9",
1146     "wires":[
1147       [
1148         "b6ba7293.f6aed"
1149       ]
1150     ]
1151   },
1152   {
1153     "id":"9d87709f.92daf",
1154     "type":"failure",
1155     "name":"failure",
1156     "xml":"<outcome value='failure'>\n",
1157     "comments":"",
1158     "outputs":1,
1159     "x":2417.26029586792,
1160     "y":1897.3554120063782,
1161     "z":"d3629202.0e9a9",
1162     "wires":[
1163       [
1164         "b6ba7293.f6aed"
1165       ]
1166     ]
1167   },
1168   {
1169     "id":"1c59440e.45623c",
1170     "type":"success",
1171     "name":"success",
1172     "xml":"<outcome value='success'>\n",
1173     "comments":"",
1174     "outputs":1,
1175     "x":2421.0103340148926,
1176     "y":1867.7125168815255,
1177     "z":"d3629202.0e9a9",
1178     "wires":[
1179       [
1180         "b6ba7293.f6aed"
1181       ]
1182     ]
1183   },
1184   {
1185     "id":"b6ba7293.f6aed",
1186     "type":"block",
1187     "name":"block",
1188     "xml":"<block>\n",
1189     "atomic":"false",
1190     "comments":"",
1191     "outputs":1,
1192     "x":2562.666301727295,
1193     "y":1863.9046860709786,
1194     "z":"d3629202.0e9a9",
1195     "wires":[
1196       [
1197
1198       ]
1199     ]
1200   },
1201   {
1202     "id":"fbee093c.3938b8",
1203     "type":"comment",
1204     "name":"Generate naming",
1205     "info":"",
1206     "comments":"",
1207     "x":1319.3862762451172,
1208     "y":878.7672252655029,
1209     "z":"d3629202.0e9a9",
1210     "wires":[
1211
1212     ]
1213   },
1214   {
1215     "id":"b05fdf22.36f2",
1216     "type":"get-resource",
1217     "name":"get-resource tunnelxconn-allotted-resource",
1218     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='brg-allotted-resources/brg-allotted-resource/$brg-topology-operation-input.alloted-resource-information.allotted-resource-id' pfx='mdsal-ar' >\n",
1219     "comments":"",
1220     "outputs":1,
1221     "x":664,
1222     "y":479,
1223     "z":"d3629202.0e9a9",
1224     "wires":[
1225       [
1226         "b6562205.a7488",
1227         "681e6bc2.d5fc84"
1228       ]
1229     ]
1230   },
1231   {
1232     "id":"3df4d53c.54c6ca",
1233     "type":"execute",
1234     "name":"execute Properties",
1235     "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",
1236     "comments":"",
1237     "outputs":1,
1238     "x":740,
1239     "y":368,
1240     "z":"d3629202.0e9a9",
1241     "wires":[
1242       [
1243
1244       ]
1245     ]
1246   },
1247   {
1248     "id":"c8732493.f72838",
1249     "type":"execute",
1250     "name":"generate allotted-resource url",
1251     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.brg-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",
1252     "comments":"",
1253     "outputs":1,
1254     "x":747,
1255     "y":408,
1256     "z":"d3629202.0e9a9",
1257     "wires":[
1258       [
1259
1260       ]
1261     ]
1262   },
1263   {
1264     "id":"83bc7036.c8dd5",
1265     "type":"break",
1266     "name":"break",
1267     "xml":"<break>\n",
1268     "comments":"",
1269     "x":3330.243507385254,
1270     "y":1504.7316856384277,
1271     "z":"d3629202.0e9a9",
1272     "wires":[
1273
1274     ]
1275   }
1276 ]