8f77ac232e63e8399047772866c575328c3142c8
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json
1 [
2   {
3     "id":"b999eafe.842858",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":140,
8     "y":82,
9     "z":"6d778d5b.c45f64",
10     "wires":[
11       [
12         "9b116564.833cb8"
13       ]
14     ]
15   },
16   {
17     "id":"9b116564.833cb8",
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":236.23807907104492,
26     "y":142.95239067077637,
27     "z":"6d778d5b.c45f64",
28     "wires":[
29       [
30         "edc3be65.01613"
31       ]
32     ]
33   },
34   {
35     "id":"edc3be65.01613",
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":282.15485763549805,
42     "y":178.19044589996338,
43     "z":"6d778d5b.c45f64",
44     "wires":[
45       [
46         "54beea01.d91654"
47       ]
48     ]
49   },
50   {
51     "id":"54beea01.d91654",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":190.47619247436523,
59     "y":321.5237879753113,
60     "z":"6d778d5b.c45f64",
61     "wires":[
62       [
63         "b278cddb.d9fd3",
64         "9cae3448.05d718",
65         "979614.a2bff9f",
66         "d949a905.c1bea8",
67         "ad83edc9.9f4e2"
68       ]
69     ]
70   },
71   {
72     "id":"b89786a1.d6f318",
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":1033.6666564941406,
78     "y":2248.5477046966553,
79     "z":"6d778d5b.c45f64",
80     "wires":[
81
82     ]
83   },
84   {
85     "id":"dc5c7ceb.62245",
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":1070.7540550231934,
91     "y":2127.432439804077,
92     "z":"6d778d5b.c45f64",
93     "wires":[
94
95     ]
96   },
97   {
98     "id":"d5b8885e.fd6168",
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":1142.468376159668,
104     "y":1544.6228160858154,
105     "z":"6d778d5b.c45f64",
106     "wires":[
107
108     ]
109   },
110   {
111     "id":"9cae3448.05d718",
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":620.7380676269531,
117     "y":213.33331298828125,
118     "z":"6d778d5b.c45f64",
119     "wires":[
120
121     ]
122   },
123   {
124     "id":"b278cddb.d9fd3",
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":673.997314453125,
130     "y":175.59259033203125,
131     "z":"6d778d5b.c45f64",
132     "wires":[
133
134     ]
135   },
136   {
137     "id":"da748381.28b49",
138     "type":"success",
139     "name":"success",
140     "xml":"<outcome value='success'>\n",
141     "comments":"",
142     "outputs":1,
143     "x":823.8148803710938,
144     "y":361.26727294921875,
145     "z":"6d778d5b.c45f64",
146     "wires":[
147       [
148         "e55d0a81.00b8c8"
149       ]
150     ]
151   },
152   {
153     "id":"c75dc9bc.241ea8",
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":1163.8626251220703,
160     "y":1769.1008231639862,
161     "z":"6d778d5b.c45f64",
162     "wires":[
163       [
164         "5bb67f7.ab55c8",
165         "46f52c14.83ac04",
166         "c3730f0f.b2283"
167       ]
168     ]
169   },
170   {
171     "id":"5bb67f7.ab55c8",
172     "type":"not-found",
173     "name":"not-found",
174     "xml":"<outcome value='not-found'>\n",
175     "comments":"",
176     "outputs":1,
177     "x":1432.5040016174316,
178     "y":1820.4322349056602,
179     "z":"6d778d5b.c45f64",
180     "wires":[
181       [
182         "2d28b29b.2679ae"
183       ]
184     ]
185   },
186   {
187     "id":"46f52c14.83ac04",
188     "type":"failure",
189     "name":"failure",
190     "xml":"<outcome value='failure'>\n",
191     "comments":"",
192     "outputs":1,
193     "x":1423.504051208496,
194     "y":1788.9322606548667,
195     "z":"6d778d5b.c45f64",
196     "wires":[
197       [
198         "2d28b29b.2679ae"
199       ]
200     ]
201   },
202   {
203     "id":"c3730f0f.b2283",
204     "type":"success",
205     "name":"success",
206     "xml":"<outcome value='success'>\n",
207     "comments":"",
208     "outputs":1,
209     "x":1427.2540893554688,
210     "y":1759.289365530014,
211     "z":"6d778d5b.c45f64",
212     "wires":[
213       [
214         "bfc770a.039b39"
215       ]
216     ]
217   },
218   {
219     "id":"2d28b29b.2679ae",
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":1593.2540893554688,
225     "y":1789.6822844967246,
226     "z":"6d778d5b.c45f64",
227     "wires":[
228
229     ]
230   },
231   {
232     "id":"26675278.de272e",
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":1173.5294189453125,
238     "y":462.05291748046875,
239     "z":"6d778d5b.c45f64",
240     "wires":[
241
242     ]
243   },
244   {
245     "id":"56500c.86eb1ff4",
246     "type":"comment",
247     "name":"Save consumed-allotted-resources to mdsal",
248     "info":"",
249     "comments":"",
250     "x":1241.2434692382812,
251     "y":1143.7196044921875,
252     "z":"6d778d5b.c45f64",
253     "wires":[
254
255     ]
256   },
257   {
258     "id":"a45d9a74.e21dc8",
259     "type":"comment",
260     "name":"GET tunnelxconn-allotted-resource from mdsal",
261     "info":"",
262     "comments":"",
263     "x":546.8148193359375,
264     "y":331.7672119140625,
265     "z":"6d778d5b.c45f64",
266     "wires":[
267
268     ]
269   },
270   {
271     "id":"e55d0a81.00b8c8",
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.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
275     "comments":"",
276     "x":1133.129150390625,
277     "y":357.6243896484375,
278     "z":"6d778d5b.c45f64",
279     "wires":[
280
281     ]
282   },
283   {
284     "id":"585a5348.26ebdc",
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":1183.38623046875,
290     "y":555.6243896484375,
291     "z":"6d778d5b.c45f64",
292     "wires":[
293
294     ]
295   },
296   {
297     "id":"adb0c575.93fc28",
298     "type":"comment",
299     "name":"Set allotted-resource-identifiers",
300     "info":"",
301     "comments":"",
302     "x":1210.338623046875,
303     "y":514.338623046875,
304     "z":"6d778d5b.c45f64",
305     "wires":[
306
307     ]
308   },
309   {
310     "id":"657f2f7c.d06f3",
311     "type":"set",
312     "name":"set identifiers in overal structure",
313     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' \nvalue=\"`$tx-ar-identifiers.`\" />\n\n\n",
314     "comments":"",
315     "x":1200.38623046875,
316     "y":863.910400390625,
317     "z":"6d778d5b.c45f64",
318     "wires":[
319
320     ]
321   },
322   {
323     "id":"5116afe8.1fbc7",
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":1228.957763671875,
329     "y":598.9100952148438,
330     "z":"6d778d5b.c45f64",
331     "wires":[
332
333     ]
334   },
335   {
336     "id":"ae66aa68.abd658",
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":1209.8148193359375,
343     "y":638.195809841156,
344     "z":"6d778d5b.c45f64",
345     "wires":[
346       [
347         "6cc54295.2d161c"
348       ]
349     ]
350   },
351   {
352     "id":"6cc54295.2d161c",
353     "type":"outcome",
354     "name":"outcome null",
355     "xml":"<outcome value=''>\n",
356     "comments":"",
357     "outputs":1,
358     "x":1436.9576988220215,
359     "y":639.6243271827698,
360     "z":"6d778d5b.c45f64",
361     "wires":[
362       [
363         "81127881.9d9608"
364       ]
365     ]
366   },
367   {
368     "id":"81127881.9d9608",
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":1638.38627243042,
374     "y":639.0528798103333,
375     "z":"6d778d5b.c45f64",
376     "wires":[
377
378     ]
379   },
380   {
381     "id":"152bdff8.022b9",
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":1181.2434158325195,
388     "y":672.4815106391907,
389     "z":"6d778d5b.c45f64",
390     "wires":[
391       [
392         "bbbedf49.98db6"
393       ]
394     ]
395   },
396   {
397     "id":"bbbedf49.98db6",
398     "type":"outcome",
399     "name":"outcome null",
400     "xml":"<outcome value=''>\n",
401     "comments":"",
402     "outputs":1,
403     "x":1382.6719818115234,
404     "y":673.0529322624207,
405     "z":"6d778d5b.c45f64",
406     "wires":[
407       [
408         "569c769b.028248"
409       ]
410     ]
411   },
412   {
413     "id":"569c769b.028248",
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":1575.529140472412,
419     "y":673.0528540611267,
420     "z":"6d778d5b.c45f64",
421     "wires":[
422
423     ]
424   },
425   {
426     "id":"20290d0b.2155a2",
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":1189.8148193359375,
433     "y":705.3386378288269,
434     "z":"6d778d5b.c45f64",
435     "wires":[
436       [
437         "7e9cf888.d7fe28"
438       ]
439     ]
440   },
441   {
442     "id":"7e9cf888.d7fe28",
443     "type":"outcome",
444     "name":"outcome null",
445     "xml":"<outcome value=''>\n",
446     "comments":"",
447     "outputs":1,
448     "x":1439.8148002624512,
449     "y":705.3386225700378,
450     "z":"6d778d5b.c45f64",
451     "wires":[
452       [
453         "5612f00a.3e69b"
454       ]
455     ]
456   },
457   {
458     "id":"5612f00a.3e69b",
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":1632.6719589233398,
464     "y":705.3385443687439,
465     "z":"6d778d5b.c45f64",
466     "wires":[
467
468     ]
469   },
470   {
471     "id":"a6deba2.5709c48",
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":1253.38623046875,
478     "y":807.7672729492188,
479     "z":"6d778d5b.c45f64",
480     "wires":[
481       [
482         "6d922375.aad36c",
483         "57e0183a.8970f8"
484       ]
485     ]
486   },
487   {
488     "id":"6d922375.aad36c",
489     "type":"other",
490     "name":"outcome Y",
491     "xml":"<outcome value='Y'>\n",
492     "comments":"",
493     "outputs":1,
494     "x":1539.3862915039062,
495     "y":807.1958618164062,
496     "z":"6d778d5b.c45f64",
497     "wires":[
498       [
499         "1fce2277.8cc94e"
500       ]
501     ]
502   },
503   {
504     "id":"1fce2277.8cc94e",
505     "type":"block",
506     "name":"block : atomic",
507     "xml":"<block atomic=\"true\">\n",
508     "atomic":"true",
509     "comments":"",
510     "outputs":1,
511     "x":1693.1363525390625,
512     "y":809.69580078125,
513     "z":"6d778d5b.c45f64",
514     "wires":[
515       [
516         "88e249.16900db8"
517       ]
518     ]
519   },
520   {
521     "id":"57e0183a.8970f8",
522     "type":"other",
523     "name":"other",
524     "xml":"<outcome value='Other'>\n",
525     "comments":"",
526     "outputs":1,
527     "x":1558.608642578125,
528     "y":896.1958618164062,
529     "z":"6d778d5b.c45f64",
530     "wires":[
531       [
532         "3976e608.f5d75a"
533       ]
534     ]
535   },
536   {
537     "id":"3976e608.f5d75a",
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":1741.608642578125,
543     "y":901.1958618164062,
544     "z":"6d778d5b.c45f64",
545     "wires":[
546
547     ]
548   },
549   {
550     "id":"88e249.16900db8",
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":1829.38623046875,
557     "y":858.767333984375,
558     "z":"6d778d5b.c45f64",
559     "wires":[
560       [
561         "5641d8c.283f728",
562         "b39ef6a0.0274b8"
563       ]
564     ]
565   },
566   {
567     "id":"5641d8c.283f728",
568     "type":"other",
569     "name":"outcome oam_network_policy",
570     "xml":"<outcome value='oam_network_policy'>\n",
571     "comments":"",
572     "outputs":1,
573     "x":2204.244140625,
574     "y":862.3453369140625,
575     "z":"6d778d5b.c45f64",
576     "wires":[
577       [
578         "b3953e7c.866a1"
579       ]
580     ]
581   },
582   {
583     "id":"b39ef6a0.0274b8",
584     "type":"other",
585     "name":"other",
586     "xml":"<outcome value='Other'>\n",
587     "comments":"",
588     "outputs":1,
589     "x":2118.671875,
590     "y":939.1958618164062,
591     "z":"6d778d5b.c45f64",
592     "wires":[
593       [
594         "b3953e7c.866a1"
595       ]
596     ]
597   },
598   {
599     "id":"2b9f3515.cf741a",
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":2510.100830078125,
605     "y":897.7672729492188,
606     "z":"6d778d5b.c45f64",
607     "wires":[
608
609     ]
610   },
611   {
612     "id":"3cef7181.8fe5ae",
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":2654.2437858581543,
619     "y":941.6244196891785,
620     "z":"6d778d5b.c45f64",
621     "wires":[
622       [
623
624       ]
625     ]
626   },
627   {
628     "id":"ab0c53b1.763fd",
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":2641.243896484375,
635     "y":981.7672729492188,
636     "z":"6d778d5b.c45f64",
637     "wires":[
638       [
639
640       ]
641     ]
642   },
643   {
644     "id":"b3953e7c.866a1",
645     "type":"block",
646     "name":"block: atomic",
647     "xml":"<block atomic='true'>\n",
648     "atomic":"false",
649     "comments":"",
650     "outputs":1,
651     "x":2318.5292015075684,
652     "y":937.3387522697449,
653     "z":"6d778d5b.c45f64",
654     "wires":[
655       [
656         "2b9f3515.cf741a",
657         "3cef7181.8fe5ae",
658         "ab0c53b1.763fd",
659         "d423712c.9510d"
660       ]
661     ]
662   },
663   {
664     "id":"d423712c.9510d",
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":2599.1005859375,
670     "y":1032.052978515625,
671     "z":"6d778d5b.c45f64",
672     "wires":[
673
674     ]
675   },
676   {
677     "id":"f2d263a0.9cb28",
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":1208.8624572753906,
683     "y":1068.6246919631958,
684     "z":"6d778d5b.c45f64",
685     "wires":[
686
687     ]
688   },
689   {
690     "id":"cfb78668.00cd08",
691     "type":"set",
692     "name":"Handle tx-ar-assignments",
693     "xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.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\n",
694     "comments":"",
695     "x":1192.529052734375,
696     "y":1014.0530395507812,
697     "z":"6d778d5b.c45f64",
698     "wires":[
699
700     ]
701   },
702   {
703     "id":"4da8a0e3.f9391",
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":2226.8155822753906,
710     "y":1342.0411586761475,
711     "z":"6d778d5b.c45f64",
712     "wires":[
713       [
714         "501bbf27.3dc73"
715       ]
716     ]
717   },
718   {
719     "id":"a8b2172e.cd4e48",
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":1255.8148498535156,
726     "y":1230.505145072937,
727     "z":"6d778d5b.c45f64",
728     "wires":[
729       [
730         "a50704cf.c04048",
731         "85ec2af5.2058c8"
732       ]
733     ]
734   },
735   {
736     "id":"a50704cf.c04048",
737     "type":"other",
738     "name":"outcome Null",
739     "xml":"<outcome value=''>\n",
740     "comments":"",
741     "outputs":1,
742     "x":1633.2077865600586,
743     "y":1234.1124458312988,
744     "z":"6d778d5b.c45f64",
745     "wires":[
746       [
747         "529a9ced.1689c4"
748       ]
749     ]
750   },
751   {
752     "id":"85ec2af5.2058c8",
753     "type":"other",
754     "name":"other",
755     "xml":"<outcome value='Other'>\n",
756     "comments":"",
757     "outputs":1,
758     "x":1631.9577865600586,
759     "y":1324.1124477386475,
760     "z":"6d778d5b.c45f64",
761     "wires":[
762       [
763         "c7832c3d.51fd4"
764       ]
765     ]
766   },
767   {
768     "id":"501bbf27.3dc73",
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":2661.4106826782227,
775     "y":1343.85085105896,
776     "z":"6d778d5b.c45f64",
777     "wires":[
778       [
779         "b8d3fff1.f08f7"
780       ]
781     ]
782   },
783   {
784     "id":"b8d3fff1.f08f7",
785     "type":"outcomeTrue",
786     "name":"true",
787     "xml":"<outcome value='true'>\n",
788     "comments":"",
789     "outputs":1,
790     "x":2868.220375061035,
791     "y":1347.064962387085,
792     "z":"6d778d5b.c45f64",
793     "wires":[
794       [
795         "a18e2528.73b4b8"
796       ]
797     ]
798   },
799   {
800     "id":"c7832c3d.51fd4",
801     "type":"block",
802     "name":"block : atomic",
803     "xml":"<block atomic=\"true\">",
804     "atomic":"true",
805     "outputs":1,
806     "x":1789.834976196289,
807     "y":1330.4885501861572,
808     "z":"6d778d5b.c45f64",
809     "wires":[
810       [
811         "4da8a0e3.f9391",
812         "cf052f96.b8566"
813       ]
814     ]
815   },
816   {
817     "id":"a18e2528.73b4b8",
818     "type":"block",
819     "name":"block : atomic",
820     "xml":"<block atomic=\"true\">",
821     "atomic":"true",
822     "outputs":1,
823     "x":3036.4817276000977,
824     "y":1351.9222631454468,
825     "z":"6d778d5b.c45f64",
826     "wires":[
827       [
828         "1499010f.83f3cf",
829         "9c256baa.9a73c8"
830       ]
831     ]
832   },
833   {
834     "id":"529a9ced.1689c4",
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":1812.0647735595703,
840     "y":1236.3266830444336,
841     "z":"6d778d5b.c45f64",
842     "wires":[
843
844     ]
845   },
846   {
847     "id":"1499010f.83f3cf",
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":3282.3391876220703,
853     "y":1346.4937419891357,
854     "z":"6d778d5b.c45f64",
855     "wires":[
856
857     ]
858   },
859   {
860     "id":"ba9689e8.b0eb18",
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=\"`$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",
864     "comments":"",
865     "x":1168.6720123291016,
866     "y":1394.826681137085,
867     "z":"6d778d5b.c45f64",
868     "wires":[
869
870     ]
871   },
872   {
873     "id":"bfc770a.039b39",
874     "type":"block",
875     "name":"block",
876     "xml":"<block>\n",
877     "atomic":"false",
878     "comments":"",
879     "outputs":1,
880     "x":1568.910057067871,
881     "y":1755.4815347194672,
882     "z":"6d778d5b.c45f64",
883     "wires":[
884       [
885         "16086eb5.0d69c1"
886       ]
887     ]
888   },
889   {
890     "id":"6d9885bf.82560c",
891     "type":"comment",
892     "name":"Add SZ AR to mdsal",
893     "info":"",
894     "comments":"",
895     "x":1093.148208618164,
896     "y":1730.1957080364227,
897     "z":"6d778d5b.c45f64",
898     "wires":[
899
900     ]
901   },
902   {
903     "id":"bfbe7bd4.d6c658",
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":1109.4814224243164,
910     "y":1468.671986579895,
911     "z":"6d778d5b.c45f64",
912     "wires":[
913       [
914
915       ]
916     ]
917   },
918   {
919     "id":"9216b08d.5fd83",
920     "type":"other",
921     "name":"other",
922     "xml":"<outcome value='Other'>\n",
923     "comments":"",
924     "outputs":1,
925     "x":829.57666015625,
926     "y":412.4814453125,
927     "z":"6d778d5b.c45f64",
928     "wires":[
929       [
930         "e846c57.b684038"
931       ]
932     ]
933   },
934   {
935     "id":"371cd2ba.38774e",
936     "type":"block",
937     "name":"block: atomic",
938     "xml":"<block atomic=\"true\">\n",
939     "atomic":"false",
940     "comments":"",
941     "outputs":1,
942     "x":777.57666015625,
943     "y":908.2908325195312,
944     "z":"6d778d5b.c45f64",
945     "wires":[
946       [
947         "2a2df6fc.2dabba",
948         "585a5348.26ebdc",
949         "5116afe8.1fbc7",
950         "ae66aa68.abd658",
951         "152bdff8.022b9",
952         "20290d0b.2155a2",
953         "26675278.de272e",
954         "a6deba2.5709c48",
955         "657f2f7c.d06f3",
956         "cfb78668.00cd08",
957         "f2d263a0.9cb28",
958         "a8b2172e.cd4e48",
959         "ba9689e8.b0eb18",
960         "bfbe7bd4.d6c658",
961         "d5b8885e.fd6168",
962         "d48a17c0.cf0328",
963         "c75dc9bc.241ea8",
964         "dc5c7ceb.62245",
965         "b89786a1.d6f318",
966         "f9fa039a.8b5e4",
967         "34f814bd.9517ec"
968       ]
969     ]
970   },
971   {
972     "id":"2a2df6fc.2dabba",
973     "type":"set",
974     "name":"set id",
975     "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.` \" />",
976     "comments":"",
977     "x":1148.2434387207031,
978     "y":418.433837890625,
979     "z":"6d778d5b.c45f64",
980     "wires":[
981
982     ]
983   },
984   {
985     "id":"d48a17c0.cf0328",
986     "type":"update",
987     "name":"update AAI allotted-resource",
988     "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",
989     "comments":"",
990     "outputs":1,
991     "x":1130.0529327392578,
992     "y":1636.5767517089844,
993     "z":"6d778d5b.c45f64",
994     "wires":[
995       [
996         "79fa545.87748ac",
997         "4d20b9c0.a03f48"
998       ]
999     ]
1000   },
1001   {
1002     "id":"79fa545.87748ac",
1003     "type":"failure",
1004     "name":"failure",
1005     "xml":"<outcome value='failure'>\n",
1006     "comments":"",
1007     "outputs":1,
1008     "x":1385.814842224121,
1009     "y":1619.5292553901672,
1010     "z":"6d778d5b.c45f64",
1011     "wires":[
1012       [
1013         "35f0ebf7.475e14"
1014       ]
1015     ]
1016   },
1017   {
1018     "id":"35f0ebf7.475e14",
1019     "type":"returnFailure",
1020     "name":"return failure",
1021     "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",
1022     "comments":"",
1023     "x":1552.338722229004,
1024     "y":1631.1483263969421,
1025     "z":"6d778d5b.c45f64",
1026     "wires":[
1027
1028     ]
1029   },
1030   {
1031     "id":"4d20b9c0.a03f48",
1032     "type":"failure",
1033     "name":"not-found",
1034     "xml":"<outcome value='not-found'>\n",
1035     "comments":"",
1036     "outputs":1,
1037     "x":1392.9101295471191,
1038     "y":1652.2912230491638,
1039     "z":"6d778d5b.c45f64",
1040     "wires":[
1041       [
1042         "35f0ebf7.475e14"
1043       ]
1044     ]
1045   },
1046   {
1047     "id":"cf052f96.b8566",
1048     "type":"switchNode",
1049     "name":"switch tmp.found-cidx",
1050     "xml":"<switch test='`$tmp.found-cidx`'>\n",
1051     "comments":"",
1052     "outputs":1,
1053     "x":2041.743423461914,
1054     "y":1588.2315921783447,
1055     "z":"6d778d5b.c45f64",
1056     "wires":[
1057       [
1058         "8bf3422f.2b157"
1059       ]
1060     ]
1061   },
1062   {
1063     "id":"8bf3422f.2b157",
1064     "type":"outcomeTrue",
1065     "name":"false",
1066     "xml":"<outcome value='false'>\n",
1067     "comments":"",
1068     "outputs":1,
1069     "x":2231.743377685547,
1070     "y":1588.2315292358398,
1071     "z":"6d778d5b.c45f64",
1072     "wires":[
1073       [
1074         "9c6522bb.3d0d8"
1075       ]
1076     ]
1077   },
1078   {
1079     "id":"9c6522bb.3d0d8",
1080     "type":"block",
1081     "name":"block : atomic",
1082     "xml":"<block atomic=\"true\">",
1083     "atomic":"true",
1084     "outputs":1,
1085     "x":2397.743377685547,
1086     "y":1588.2315292358398,
1087     "z":"6d778d5b.c45f64",
1088     "wires":[
1089       [
1090         "7050f1b9.4b61d"
1091       ]
1092     ]
1093   },
1094   {
1095     "id":"7050f1b9.4b61d",
1096     "type":"set",
1097     "name":"set tmp.cidx ",
1098     "xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1099     "comments":"",
1100     "x":2643.600706100464,
1101     "y":1588.8030033111572,
1102     "z":"6d778d5b.c45f64",
1103     "wires":[
1104
1105     ]
1106   },
1107   {
1108     "id":"9c256baa.9a73c8",
1109     "type":"break",
1110     "name":"break",
1111     "xml":"<break>",
1112     "comments":"",
1113     "x":3201.243408203125,
1114     "y":1391.731689453125,
1115     "z":"6d778d5b.c45f64",
1116     "wires":[
1117
1118     ]
1119   },
1120   {
1121     "id":"16086eb5.0d69c1",
1122     "type":"execute",
1123     "name":"execute RestApiCallNode - Update parent provided service AR",
1124     "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",
1125     "comments":"",
1126     "outputs":1,
1127     "x":1919.9521980285645,
1128     "y":1755.1904199123383,
1129     "z":"6d778d5b.c45f64",
1130     "wires":[
1131       [
1132         "86e0d6.1ae8cf28",
1133         "75544fc8.6352b",
1134         "57a8706f.ba354"
1135       ]
1136     ]
1137   },
1138   {
1139     "id":"a5553221.c0fd3",
1140     "type":"comment",
1141     "name":"Rollback parent",
1142     "info":"",
1143     "comments":"",
1144     "x":1763.9521255493164,
1145     "y":1724.8570504188538,
1146     "z":"6d778d5b.c45f64",
1147     "wires":[
1148
1149     ]
1150   },
1151   {
1152     "id":"86e0d6.1ae8cf28",
1153     "type":"not-found",
1154     "name":"not-found",
1155     "xml":"<outcome value='not-found'>\n",
1156     "comments":"",
1157     "outputs":1,
1158     "x":2291.2602462768555,
1159     "y":1815.8553862571716,
1160     "z":"6d778d5b.c45f64",
1161     "wires":[
1162       [
1163         "caf797d4.f6d228"
1164       ]
1165     ]
1166   },
1167   {
1168     "id":"75544fc8.6352b",
1169     "type":"failure",
1170     "name":"failure",
1171     "xml":"<outcome value='failure'>\n",
1172     "comments":"",
1173     "outputs":1,
1174     "x":2282.26029586792,
1175     "y":1784.3554120063782,
1176     "z":"6d778d5b.c45f64",
1177     "wires":[
1178       [
1179         "caf797d4.f6d228"
1180       ]
1181     ]
1182   },
1183   {
1184     "id":"57a8706f.ba354",
1185     "type":"success",
1186     "name":"success",
1187     "xml":"<outcome value='success'>\n",
1188     "comments":"",
1189     "outputs":1,
1190     "x":2286.0103340148926,
1191     "y":1754.7125168815255,
1192     "z":"6d778d5b.c45f64",
1193     "wires":[
1194       [
1195         "caf797d4.f6d228"
1196       ]
1197     ]
1198   },
1199   {
1200     "id":"caf797d4.f6d228",
1201     "type":"block",
1202     "name":"block",
1203     "xml":"<block>\n",
1204     "atomic":"false",
1205     "comments":"",
1206     "outputs":1,
1207     "x":2427.666301727295,
1208     "y":1750.9046860709786,
1209     "z":"6d778d5b.c45f64",
1210     "wires":[
1211       [
1212
1213       ]
1214     ]
1215   },
1216   {
1217     "id":"9ff8826d.6bd4a",
1218     "type":"comment",
1219     "name":"Generate naming",
1220     "info":"",
1221     "comments":"",
1222     "x":1184.3862762451172,
1223     "y":765.7672252655029,
1224     "z":"6d778d5b.c45f64",
1225     "wires":[
1226
1227     ]
1228   },
1229   {
1230     "id":"979614.a2bff9f",
1231     "type":"get-resource",
1232     "name":"get-resource tunnelxconn-allotted-resource",
1233     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/$tunnelxconn-topology-operation-input.alloted-resource-information.allotted-resource-id' pfx='mdsal-ar' >\n",
1234     "comments":"",
1235     "outputs":1,
1236     "x":529,
1237     "y":366,
1238     "z":"6d778d5b.c45f64",
1239     "wires":[
1240       [
1241         "da748381.28b49",
1242         "9216b08d.5fd83"
1243       ]
1244     ]
1245   },
1246   {
1247     "id":"d949a905.c1bea8",
1248     "type":"execute",
1249     "name":"execute Properties",
1250     "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",
1251     "comments":"",
1252     "outputs":1,
1253     "x":605,
1254     "y":255,
1255     "z":"6d778d5b.c45f64",
1256     "wires":[
1257       [
1258
1259       ]
1260     ]
1261   },
1262   {
1263     "id":"e846c57.b684038",
1264     "type":"get-resource",
1265     "name":"get-resource parent service instance",
1266     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id' pfx='mdsal-parent-service-instance' >\n",
1267     "comments":"",
1268     "outputs":1,
1269     "x":642,
1270     "y":515,
1271     "z":"6d778d5b.c45f64",
1272     "wires":[
1273       [
1274         "a2470c46.eb9cf",
1275         "62985d2c.2792b4"
1276       ]
1277     ]
1278   },
1279   {
1280     "id":"a2470c46.eb9cf",
1281     "type":"success",
1282     "name":"success",
1283     "xml":"<outcome value='success'>\n",
1284     "comments":"",
1285     "outputs":1,
1286     "x":905,
1287     "y":509,
1288     "z":"6d778d5b.c45f64",
1289     "wires":[
1290       [
1291         "371cd2ba.38774e"
1292       ]
1293     ]
1294   },
1295   {
1296     "id":"62985d2c.2792b4",
1297     "type":"other",
1298     "name":"other",
1299     "xml":"<outcome value='Other'>\n",
1300     "comments":"",
1301     "outputs":1,
1302     "x":718,
1303     "y":610,
1304     "z":"6d778d5b.c45f64",
1305     "wires":[
1306       [
1307         "b1afedee.bd87b"
1308       ]
1309     ]
1310   },
1311   {
1312     "id":"b1afedee.bd87b",
1313     "type":"returnFailure",
1314     "name":"return failure - tunnelxconn already exists",
1315     "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",
1316     "comments":"",
1317     "x":645,
1318     "y":671,
1319     "z":"6d778d5b.c45f64",
1320     "wires":[
1321
1322     ]
1323   },
1324   {
1325     "id":"f9fa039a.8b5e4",
1326     "type":"for",
1327     "name":"for vf module parameters",
1328     "xml":"<for index='curparm' start='0' end='`$parent-service-instance.service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameter.param_length`' >\n",
1329     "comments":"",
1330     "outputs":1,
1331     "x":1179,
1332     "y":961,
1333     "z":"6d778d5b.c45f64",
1334     "wires":[
1335       [
1336         "92171d5f.d4722"
1337       ]
1338     ]
1339   },
1340   {
1341     "id":"92171d5f.d4722",
1342     "type":"switchNode",
1343     "name":"switch parameter name",
1344     "xml":"<switch test='$parent-service-instance.service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameter.param[$curparm].name'>\n",
1345     "comments":"",
1346     "outputs":1,
1347     "x":1449,
1348     "y":960,
1349     "z":"6d778d5b.c45f64",
1350     "wires":[
1351       [
1352         "56162789.d15ac8",
1353         "15568e39.5cb232"
1354       ]
1355     ]
1356   },
1357   {
1358     "id":"56162789.d15ac8",
1359     "type":"other",
1360     "name":"vGMUX_Bearer_IP",
1361     "xml":"<outcome value='vGMUX_Bearer_IP'>\n",
1362     "comments":"",
1363     "outputs":1,
1364     "x":1675,
1365     "y":964,
1366     "z":"6d778d5b.c45f64",
1367     "wires":[
1368       [
1369         "d653d93c.35b268"
1370       ]
1371     ]
1372   },
1373   {
1374     "id":"d653d93c.35b268",
1375     "type":"set",
1376     "name":"set tmp.vgmux-bearer-ip",
1377     "xml":"<set>\n<parameter name='tmp.vgmux-bearer-ip' value='`$parent-service-instance.service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameter.param[$curparm].value`'/>\n",
1378     "comments":"",
1379     "x":1917.999984741211,
1380     "y":965.0000286102295,
1381     "z":"6d778d5b.c45f64",
1382     "wires":[
1383
1384     ]
1385   },
1386   {
1387     "id":"15568e39.5cb232",
1388     "type":"other",
1389     "name":"vGMUX_LAN_IP",
1390     "xml":"<outcome value='vGMUX_LAN_IP'>\n",
1391     "comments":"",
1392     "outputs":1,
1393     "x":1677,
1394     "y":1024,
1395     "z":"6d778d5b.c45f64",
1396     "wires":[
1397       [
1398         "2e8b39e3.6a9606"
1399       ]
1400     ]
1401   },
1402   {
1403     "id":"2e8b39e3.6a9606",
1404     "type":"set",
1405     "name":"set tmp.vgmux-lan-ip",
1406     "xml":"<set>\n<parameter name='tmp.vgmux-lan-ip' value='`$parent-service-instance.service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameter.param[$curparm].value`'/>\n",
1407     "comments":"",
1408     "x":1920,
1409     "y":1025,
1410     "z":"6d778d5b.c45f64",
1411     "wires":[
1412
1413     ]
1414   },
1415   {
1416     "id":"34f814bd.9517ec",
1417     "type":"set",
1418     "name":"set default assignments",
1419     "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' />",
1420     "comments":"",
1421     "x":1163,
1422     "y":910,
1423     "z":"6d778d5b.c45f64",
1424     "wires":[
1425
1426     ]
1427   },
1428   {
1429     "id":"ad83edc9.9f4e2",
1430     "type":"execute",
1431     "name":"generate allotted-resource url",
1432     "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",
1433     "comments":"",
1434     "outputs":1,
1435     "x":612,
1436     "y":295,
1437     "z":"6d778d5b.c45f64",
1438     "wires":[
1439       [
1440
1441       ]
1442     ]
1443   }
1444 ]