Merge "Add missing network naming gen info"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "510329fc.5eb288",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 92,
8     "y": 51,
9     "z": "f24fb736.66a428",
10     "wires": [
11       [
12         "d0754e51.43601"
13       ]
14     ]
15   },
16   {
17     "id": "d0754e51.43601",
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": 304.00000381469727,
26     "y": 123.0000171661377,
27     "z": "f24fb736.66a428",
28     "wires": [
29       [
30         "5324d186.c424e"
31       ]
32     ]
33   },
34   {
35     "id": "5324d186.c424e",
36     "type": "method",
37     "name": "sotn-attachment-topology-operation-activate",
38     "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 292.0001220703125,
42     "y": 211,
43     "z": "f24fb736.66a428",
44     "wires": [
45       [
46         "200d23ad.1ba52c"
47       ]
48     ]
49   },
50   {
51     "id": "200d23ad.1ba52c",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 308.0001220703125,
59     "y": 766.0002446174622,
60     "z": "f24fb736.66a428",
61     "wires": [
62       [
63         "50fa98f0.7c4998",
64         "6f233fc4.4456d",
65         "8ef678b.4678d88",
66         "41e3aa85.858d54",
67         "b2920bb5.1af8e8",
68         "525ecaee.ee9b24",
69         "ab2f4625.6243a8",
70         "b09745d8.bb7668",
71         "b13bf095.cdea1",
72         "dcca5b8a.14d818",
73         "5d5e7f8f.d3d28",
74         "b3a2976e.016ed8",
75         "33c05db5.bb8532",
76         "dde46f65.1623c",
77         "3d236d8e.1a1ed2",
78         "9dd9851c.cc5e08",
79         "21b8bdc2.b30a32",
80         "c4803883.47c5a8",
81         "ad2575da.f719b8",
82         "c4ade364.dff4"
83       ]
84     ]
85   },
86   {
87     "id": "50fa98f0.7c4998",
88     "type": "set",
89     "name": "set tmp.ar.allotted-resource-id,etc",
90     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
91     "comments": "",
92     "x": 704.9935607910156,
93     "y": 164.9934868812561,
94     "z": "f24fb736.66a428",
95     "wires": []
96   },
97   {
98     "id": "d87c2a28.d4a808",
99     "type": "comment",
100     "name": "set tmp ar-id to fetch resource from MDSAL",
101     "info": "",
102     "comments": "",
103     "x": 733.9538726806641,
104     "y": 129.02528285980225,
105     "z": "f24fb736.66a428",
106     "wires": []
107   },
108   {
109     "id": "6f233fc4.4456d",
110     "type": "set",
111     "name": "set tmp.ar.self-link",
112     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
113     "comments": "",
114     "x": 658.9934997558594,
115     "y": 257.99349212646484,
116     "z": "f24fb736.66a428",
117     "wires": []
118   },
119   {
120     "id": "b2920bb5.1af8e8",
121     "type": "execute",
122     "name": "execute Properties",
123     "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",
124     "comments": "",
125     "outputs": 1,
126     "x": 665.2553901672363,
127     "y": 345.6602210998535,
128     "z": "f24fb736.66a428",
129     "wires": [
130       []
131     ]
132   },
133   {
134     "id": "8ef678b.4678d88",
135     "type": "execute",
136     "name": "generate allotted-resource tmp.ar-url",
137     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-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",
138     "comments": "",
139     "outputs": 1,
140     "x": 712.2554473876953,
141     "y": 433.6602249145508,
142     "z": "f24fb736.66a428",
143     "wires": [
144       []
145     ]
146   },
147   {
148     "id": "2c8ad64b.5a9c0a",
149     "type": "comment",
150     "name": "GET connection-attachment-allotted-resource from mdsal",
151     "info": "",
152     "comments": "",
153     "x": 758.8083801269531,
154     "y": 564.5386590957642,
155     "z": "f24fb736.66a428",
156     "wires": []
157   },
158   {
159     "id": "3f345735.382a78",
160     "type": "comment",
161     "name": "Used for setting output to API Handler",
162     "info": "",
163     "comments": "",
164     "x": 712.9935302734375,
165     "y": 224.993501663208,
166     "z": "f24fb736.66a428",
167     "wires": []
168   },
169   {
170     "id": "dc7c3756.7911f8",
171     "type": "comment",
172     "name": "Obtain different URL, template location etc",
173     "info": "For saving resource information to MDSAL & for AAI",
174     "comments": "",
175     "x": 730.9934959411621,
176     "y": 310.8823823928833,
177     "z": "f24fb736.66a428",
178     "wires": []
179   },
180   {
181     "id": "385fcb45.8d58e4",
182     "type": "comment",
183     "name": "Used to Get AR by id to MDSAL, same as self-link",
184     "info": "",
185     "comments": "",
186     "x": 756.9935150146484,
187     "y": 397.8823413848877,
188     "z": "f24fb736.66a428",
189     "wires": []
190   },
191   {
192     "id": "fb3f3db1.2e857",
193     "type": "success",
194     "name": "success",
195     "xml": "<outcome value='success'>\n",
196     "comments": "",
197     "outputs": 1,
198     "x": 1218.6667919158936,
199     "y": 581.9999847412109,
200     "z": "f24fb736.66a428",
201     "wires": [
202       [
203         "7924d66d.1039e8"
204       ]
205     ]
206   },
207   {
208     "id": "7924d66d.1039e8",
209     "type": "block",
210     "name": "block: atomic",
211     "xml": "<block atomic=\"true\">\n",
212     "atomic": "false",
213     "comments": "",
214     "outputs": 1,
215     "x": 1362.6668701171875,
216     "y": 539.4999027252197,
217     "z": "f24fb736.66a428",
218     "wires": [
219       [
220         "2e9884a4.fb6aac"
221       ]
222     ]
223   },
224   {
225     "id": "2e9884a4.fb6aac",
226     "type": "switchNode",
227     "name": "switch cr length",
228     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1531.5242938995361,
232     "y": 537.1190738677979,
233     "z": "f24fb736.66a428",
234     "wires": [
235       [
236         "a5020a5a.1a8de8",
237         "a75f121c.781a7"
238       ]
239     ]
240   },
241   {
242     "id": "a5020a5a.1a8de8",
243     "type": "other",
244     "name": "outcome 1",
245     "xml": "<outcome value='1'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 1686.8574295043945,
249     "y": 509.1189889907837,
250     "z": "f24fb736.66a428",
251     "wires": [
252       [
253         "dc7b8304.a3929"
254       ]
255     ]
256   },
257   {
258     "id": "dc7b8304.a3929",
259     "type": "block",
260     "name": "block: atomic",
261     "xml": "<block atomic='true'>\n",
262     "atomic": "false",
263     "comments": "",
264     "outputs": 1,
265     "x": 1845.381233215332,
266     "y": 507.02383613586426,
267     "z": "f24fb736.66a428",
268     "wires": [
269       [
270         "2e53bf10.53616",
271         "4d06247.7481adc",
272         "16d5ef9e.67621"
273       ]
274     ]
275   },
276   {
277     "id": "57e48b3f.e4d594",
278     "type": "returnFailure",
279     "name": "return failure",
280     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connection attachment resource not exist\" />\n    \n",
281     "comments": "",
282     "x": 1785.5191650390625,
283     "y": 614.0660705566406,
284     "z": "f24fb736.66a428",
285     "wires": []
286   },
287   {
288     "id": "549a2a73.774b74",
289     "type": "other",
290     "name": "other",
291     "xml": "<outcome value='Other'>\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 1210.5185947418213,
295     "y": 617.0660696029663,
296     "z": "f24fb736.66a428",
297     "wires": [
298       [
299         "13c58b6.0463e75"
300       ]
301     ]
302   },
303   {
304     "id": "13c58b6.0463e75",
305     "type": "block",
306     "name": "block: atomic",
307     "xml": "<block atomic=\"true\">\n",
308     "atomic": "false",
309     "comments": "",
310     "outputs": 1,
311     "x": 1390.5185451507568,
312     "y": 617.7326202392578,
313     "z": "f24fb736.66a428",
314     "wires": [
315       [
316         "57e48b3f.e4d594"
317       ]
318     ]
319   },
320   {
321     "id": "a75f121c.781a7",
322     "type": "other",
323     "name": "other",
324     "xml": "<outcome value='Other'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1678.185432434082,
328     "y": 568.3993635177612,
329     "z": "f24fb736.66a428",
330     "wires": [
331       [
332         "57e48b3f.e4d594"
333       ]
334     ]
335   },
336   {
337     "id": "2e53bf10.53616",
338     "type": "set",
339     "name": "set connection-attachment-ar from get",
340     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
341     "comments": "",
342     "x": 2092.4446868896484,
343     "y": 480.00008821487427,
344     "z": "f24fb736.66a428",
345     "wires": []
346   },
347   {
348     "id": "16d5ef9e.67621",
349     "type": "set",
350     "name": "set oper-status",
351     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
352     "comments": "",
353     "x": 2026.4447174072266,
354     "y": 553.4285907745361,
355     "z": "f24fb736.66a428",
356     "wires": []
357   },
358   {
359     "id": "4d06247.7481adc",
360     "type": "switchNode",
361     "name": "switch order-status",
362     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 2036.4444961547852,
366     "y": 519.0000247955322,
367     "z": "f24fb736.66a428",
368     "wires": [
369       [
370         "13c3c1da.98e52e",
371         "c01b9863.c31138",
372         "bd2b5022.a474e"
373       ]
374     ]
375   },
376   {
377     "id": "13c3c1da.98e52e",
378     "type": "outcome",
379     "name": "outcome Created",
380     "xml": "<outcome value='Created'>\n",
381     "comments": "",
382     "outputs": 1,
383     "x": 2272.044578552246,
384     "y": 513.0000557899475,
385     "z": "f24fb736.66a428",
386     "wires": [
387       [
388         "29af8103.34f60e"
389       ]
390     ]
391   },
392   {
393     "id": "c01b9863.c31138",
394     "type": "outcome",
395     "name": "outcome Other",
396     "xml": "<outcome value='Other'>\n",
397     "comments": "",
398     "outputs": 1,
399     "x": 2265.759078979492,
400     "y": 593.4286904335022,
401     "z": "f24fb736.66a428",
402     "wires": [
403       [
404         "869d355f.ff5a28"
405       ]
406     ]
407   },
408   {
409     "id": "29af8103.34f60e",
410     "type": "block",
411     "name": "block",
412     "xml": "<block>\n",
413     "atomic": "false",
414     "comments": "",
415     "outputs": 1,
416     "x": 2430.515251159668,
417     "y": 513.37571144104,
418     "z": "f24fb736.66a428",
419     "wires": [
420       []
421     ]
422   },
423   {
424     "id": "869d355f.ff5a28",
425     "type": "returnFailure",
426     "name": "return failure",
427     "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 connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
428     "comments": "",
429     "x": 2441.666893005371,
430     "y": 592.0000896453857,
431     "z": "f24fb736.66a428",
432     "wires": []
433   },
434   {
435     "id": "4c9dfad4.b5cb94",
436     "type": "call",
437     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
438     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
439     "comments": "",
440     "outputs": 1,
441     "x": 929.303050994873,
442     "y": 664.4936046600342,
443     "z": "f24fb736.66a428",
444     "wires": [
445       []
446     ]
447   },
448   {
449     "id": "525ecaee.ee9b24",
450     "type": "block",
451     "name": "block: atomic",
452     "xml": "<block atomic=\"true\">\n",
453     "atomic": "false",
454     "comments": "",
455     "outputs": 1,
456     "x": 623.3091506958008,
457     "y": 665.4999752044678,
458     "z": "f24fb736.66a428",
459     "wires": [
460       [
461         "4c9dfad4.b5cb94"
462       ]
463     ]
464   },
465   {
466     "id": "f0374b61.7fdcc8",
467     "type": "comment",
468     "name": "GET parent-service-data from mdsal to check existence of other End point",
469     "info": "",
470     "comments": "",
471     "x": 811.00048828125,
472     "y": 710.5317525863647,
473     "z": "f24fb736.66a428",
474     "wires": []
475   },
476   {
477     "id": "ee77ccab.555f2",
478     "type": "for",
479     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
480     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
481     "comments": "",
482     "outputs": 1,
483     "x": 1702.1851959228516,
484     "y": 863.0042300224304,
485     "z": "f24fb736.66a428",
486     "wires": [
487       [
488         "1d8e18c9.612a97"
489       ]
490     ]
491   },
492   {
493     "id": "41e3aa85.858d54",
494     "type": "switchNode",
495     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
496     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 786.1842193603516,
500     "y": 970.7182664871216,
501     "z": "f24fb736.66a428",
502     "wires": [
503       [
504         "227fe562.bef93a",
505         "30f6347f.71f27c",
506         "8d3aa09e.93736"
507       ]
508     ]
509   },
510   {
511     "id": "227fe562.bef93a",
512     "type": "other",
513     "name": "other",
514     "xml": "<outcome value='Other'>\n",
515     "comments": "",
516     "outputs": 1,
517     "x": 1114.3272399902344,
518     "y": 1043.5755405426025,
519     "z": "f24fb736.66a428",
520     "wires": [
521       [
522         "70131877.497ee8"
523       ]
524     ]
525   },
526   {
527     "id": "d8325992.1c7e08",
528     "type": "block",
529     "name": "block : atomic",
530     "xml": "<block atomic=\"true\">",
531     "atomic": "true",
532     "outputs": 1,
533     "x": 1298.454502105713,
534     "y": 902.7015495300293,
535     "z": "f24fb736.66a428",
536     "wires": [
537       [
538         "ee77ccab.555f2",
539         "7fdc18ff.582858"
540       ]
541     ]
542   },
543   {
544     "id": "1d8e18c9.612a97",
545     "type": "switchNode",
546     "name": "switch allotted-resource-id",
547     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
548     "comments": "",
549     "outputs": 1,
550     "x": 2142.2965240478516,
551     "y": 860.0040321350098,
552     "z": "f24fb736.66a428",
553     "wires": [
554       [
555         "d475cadd.1a2f78",
556         "4ec4a51f.47decc"
557       ]
558     ]
559   },
560   {
561     "id": "d475cadd.1a2f78",
562     "type": "outcomeTrue",
563     "name": "true",
564     "xml": "<outcome value='true'>\n",
565     "comments": "",
566     "outputs": 1,
567     "x": 2315.1067390441895,
568     "y": 831.4686470031738,
569     "z": "f24fb736.66a428",
570     "wires": [
571       [
572         "4ae70fe8.b24e9"
573       ]
574     ]
575   },
576   {
577     "id": "7b37e59c.23ec7c",
578     "type": "block",
579     "name": "block : atomic",
580     "xml": "<block atomic=\"true\">",
581     "atomic": "true",
582     "outputs": 1,
583     "x": 2463.8672103881836,
584     "y": 888.3257341384888,
585     "z": "f24fb736.66a428",
586     "wires": [
587       [
588         "102e4d37.8fb7c3"
589       ]
590     ]
591   },
592   {
593     "id": "102e4d37.8fb7c3",
594     "type": "set",
595     "name": "set tmp.pidx and ptx.consumed-ar",
596     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
597     "comments": "",
598     "x": 2698.724636077881,
599     "y": 886.8972663879395,
600     "z": "f24fb736.66a428",
601     "wires": []
602   },
603   {
604     "id": "82ecf3e0.5c52b",
605     "type": "comment",
606     "name": "Check existence of other AR in parent service data",
607     "info": "Check if other allotted resource is available.",
608     "comments": "",
609     "x": 733.9626579284668,
610     "y": 875.8929615020752,
611     "z": "f24fb736.66a428",
612     "wires": []
613   },
614   {
615     "id": "30f6347f.71f27c",
616     "type": "other",
617     "name": "outcome 1",
618     "xml": "<outcome value='1'>\n",
619     "comments": "",
620     "outputs": 1,
621     "x": 1128.9797096252441,
622     "y": 982.6772241592407,
623     "z": "f24fb736.66a428",
624     "wires": [
625       [
626         "2cd6df64.b8473"
627       ]
628     ]
629   },
630   {
631     "id": "70131877.497ee8",
632     "type": "returnFailure",
633     "name": "return failure",
634     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: End points not available\" />\n    \n",
635     "comments": "",
636     "x": 1273.9795875549316,
637     "y": 1042.67746925354,
638     "z": "f24fb736.66a428",
639     "wires": []
640   },
641   {
642     "id": "8d3aa09e.93736",
643     "type": "other",
644     "name": "outcome 2",
645     "xml": "<outcome value='2'>\n",
646     "comments": "",
647     "outputs": 1,
648     "x": 1123.9795227050781,
649     "y": 903.6772499084473,
650     "z": "f24fb736.66a428",
651     "wires": [
652       [
653         "d8325992.1c7e08"
654       ]
655     ]
656   },
657   {
658     "id": "4ae70fe8.b24e9",
659     "type": "block",
660     "name": "block",
661     "xml": "<block>\n",
662     "atomic": "false",
663     "comments": "",
664     "outputs": 1,
665     "x": 2473.0909538269043,
666     "y": 830.6773900985718,
667     "z": "f24fb736.66a428",
668     "wires": [
669       []
670     ]
671   },
672   {
673     "id": "4ec4a51f.47decc",
674     "type": "outcomeTrue",
675     "name": "false",
676     "xml": "<outcome value='false'>\n",
677     "comments": "",
678     "outputs": 1,
679     "x": 2322.0905952453613,
680     "y": 887.6772499084473,
681     "z": "f24fb736.66a428",
682     "wires": [
683       [
684         "7b37e59c.23ec7c"
685       ]
686     ]
687   },
688   {
689     "id": "7fdc18ff.582858",
690     "type": "switchNode",
691     "name": "switch tmp.found-in-ar",
692     "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
693     "comments": "",
694     "outputs": 1,
695     "x": 1510.9794998168945,
696     "y": 956.4550676345825,
697     "z": "f24fb736.66a428",
698     "wires": [
699       [
700         "92b2633f.8d761"
701       ]
702     ]
703   },
704   {
705     "id": "92b2633f.8d761",
706     "type": "outcomeTrue",
707     "name": "true",
708     "xml": "<outcome value='true'>\n",
709     "comments": "",
710     "outputs": 1,
711     "x": 1681.97953414917,
712     "y": 957.5662889480591,
713     "z": "f24fb736.66a428",
714     "wires": [
715       [
716         "c3df20e.333b9e"
717       ]
718     ]
719   },
720   {
721     "id": "c3df20e.333b9e",
722     "type": "block",
723     "name": "block : atomic",
724     "xml": "<block atomic=\"true\">",
725     "atomic": "true",
726     "outputs": 1,
727     "x": 1830.9796295166016,
728     "y": 957.5662879943848,
729     "z": "f24fb736.66a428",
730     "wires": [
731       [
732         "8c502b5e.ba0e48",
733         "b7c302f0.0eaa4"
734       ]
735     ]
736   },
737   {
738     "id": "642168d6.c96a08",
739     "type": "success",
740     "name": "success",
741     "xml": "<outcome value='success'>\n",
742     "comments": "",
743     "outputs": 1,
744     "x": 2577.097454071045,
745     "y": 973.7951421737671,
746     "z": "f24fb736.66a428",
747     "wires": [
748       [
749         "28182687.5e2d2a"
750       ]
751     ]
752   },
753   {
754     "id": "d6797517.070b08",
755     "type": "other",
756     "name": "other",
757     "xml": "<outcome value='Other'>\n",
758     "comments": "",
759     "outputs": 1,
760     "x": 2568.9492568969727,
761     "y": 1008.8612270355225,
762     "z": "f24fb736.66a428",
763     "wires": [
764       [
765         "863cf5ba.41a538"
766       ]
767     ]
768   },
769   {
770     "id": "5a7b91f3.92074",
771     "type": "switchNode",
772     "name": "switch mdsal-psd.service-data.networks_length",
773     "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
774     "comments": "",
775     "outputs": 1,
776     "x": 1574.313003540039,
777     "y": 1057.899908065796,
778     "z": "f24fb736.66a428",
779     "wires": [
780       [
781         "5c7b0dd2.1db974",
782         "decd8771.495088"
783       ]
784     ]
785   },
786   {
787     "id": "decd8771.495088",
788     "type": "other",
789     "name": "outcome 1",
790     "xml": "<outcome value='1'>\n",
791     "comments": "",
792     "outputs": 1,
793     "x": 1838.3128509521484,
794     "y": 1037.7886543273926,
795     "z": "f24fb736.66a428",
796     "wires": [
797       [
798         "26e27dfe.c23ed2"
799       ]
800     ]
801   },
802   {
803     "id": "5c7b0dd2.1db974",
804     "type": "other",
805     "name": "other",
806     "xml": "<outcome value='Other'>\n",
807     "comments": "",
808     "outputs": 1,
809     "x": 1828.3129119873047,
810     "y": 1085.788625717163,
811     "z": "f24fb736.66a428",
812     "wires": [
813       [
814         "2701bab7.b74336"
815       ]
816     ]
817   },
818   {
819     "id": "2701bab7.b74336",
820     "type": "returnFailure",
821     "name": "return failure",
822     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n    \n",
823     "comments": "",
824     "x": 1966.9652557373047,
825     "y": 1087.890386581421,
826     "z": "f24fb736.66a428",
827     "wires": []
828   },
829   {
830     "id": "3f964f3.96aa1b",
831     "type": "set",
832     "name": "set tmp.network.",
833     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
834     "comments": "",
835     "x": 2199.757709503174,
836     "y": 1038.788824081421,
837     "z": "f24fb736.66a428",
838     "wires": []
839   },
840   {
841     "id": "2cd6df64.b8473",
842     "type": "block",
843     "name": "block : atomic",
844     "xml": "<block atomic=\"true\">",
845     "atomic": "true",
846     "outputs": 1,
847     "x": 1296.4240188598633,
848     "y": 981.7884912490845,
849     "z": "f24fb736.66a428",
850     "wires": [
851       [
852         "5a7b91f3.92074"
853       ]
854     ]
855   },
856   {
857     "id": "26e27dfe.c23ed2",
858     "type": "block",
859     "name": "block : atomic",
860     "xml": "<block atomic=\"true\">",
861     "atomic": "true",
862     "outputs": 1,
863     "x": 1997.0906219482422,
864     "y": 1040.7884883880615,
865     "z": "f24fb736.66a428",
866     "wires": [
867       [
868         "3f964f3.96aa1b",
869         "d34f3159.b7d95"
870       ]
871     ]
872   },
873   {
874     "id": "d34f3159.b7d95",
875     "type": "for",
876     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
877     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
878     "comments": "",
879     "outputs": 1,
880     "x": 2360.090660095215,
881     "y": 1086.7886428833008,
882     "z": "f24fb736.66a428",
883     "wires": [
884       [
885         "6c6f677c.4a6ae8"
886       ]
887     ]
888   },
889   {
890     "id": "6c6f677c.4a6ae8",
891     "type": "block",
892     "name": "block",
893     "xml": "<block>\n",
894     "atomic": "false",
895     "comments": "",
896     "outputs": 1,
897     "x": 2406.646728515625,
898     "y": 1317.7884521484375,
899     "z": "f24fb736.66a428",
900     "wires": [
901       [
902         "5a5ff171.f67b5",
903         "5ac44b36.e6ed64",
904         "477598ab.94c4f8",
905         "bf3fd182.60613",
906         "ee0ac40b.7c8918",
907         "334ef95a.804996",
908         "6b4b64b0.8aa49c",
909         "f2f619ae.81dc88",
910         "7f22248e.623acc",
911         "1977cf51.112051"
912       ]
913     ]
914   },
915   {
916     "id": "5a5ff171.f67b5",
917     "type": "switchNode",
918     "name": "switch access-node-id",
919     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
920     "comments": "",
921     "outputs": 1,
922     "x": 2683.1569442749023,
923     "y": 1159.7991995811462,
924     "z": "f24fb736.66a428",
925     "wires": [
926       [
927         "83c25cc5.35c9d"
928       ]
929     ]
930   },
931   {
932     "id": "83c25cc5.35c9d",
933     "type": "outcomeTrue",
934     "name": "true",
935     "xml": "<outcome value='true'>\n",
936     "comments": "",
937     "outputs": 1,
938     "x": 2872.1565704345703,
939     "y": 1161.7990641593933,
940     "z": "f24fb736.66a428",
941     "wires": [
942       [
943         "80bf2f28.f9eae"
944       ]
945     ]
946   },
947   {
948     "id": "80bf2f28.f9eae",
949     "type": "set",
950     "name": "set tmp.found-in-network tmp.ep-available",
951     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
952     "comments": "",
953     "x": 3125.1567459106445,
954     "y": 1161.3991103172302,
955     "z": "f24fb736.66a428",
956     "wires": []
957   },
958   {
959     "id": "5ac44b36.e6ed64",
960     "type": "returnSuccess",
961     "name": "return success",
962     "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",
963     "comments": "",
964     "x": 2657.146396636963,
965     "y": 1533.7884907722473,
966     "z": "f24fb736.66a428",
967     "wires": []
968   },
969   {
970     "id": "b3a2976e.016ed8",
971     "type": "switchNode",
972     "name": "switch tmp.ep-available",
973     "xml": "<switch test='`$tmp.ep-available`'>\n",
974     "comments": "",
975     "outputs": 1,
976     "x": 649.3128204345703,
977     "y": 1166.232801437378,
978     "z": "f24fb736.66a428",
979     "wires": [
980       [
981         "d67d36b.8c807c8",
982         "d4dded0c.3defe"
983       ]
984     ]
985   },
986   {
987     "id": "d4dded0c.3defe",
988     "type": "outcomeTrue",
989     "name": "true",
990     "xml": "<outcome value='true'>\n",
991     "comments": "",
992     "outputs": 1,
993     "x": 867.9795398712158,
994     "y": 1215.5661582946777,
995     "z": "f24fb736.66a428",
996     "wires": [
997       [
998         "dac36818.3ade18"
999       ]
1000     ]
1001   },
1002   {
1003     "id": "d67d36b.8c807c8",
1004     "type": "outcomeTrue",
1005     "name": "false",
1006     "xml": "<outcome value='false'>\n",
1007     "comments": "",
1008     "outputs": 1,
1009     "x": 872.8683414459229,
1010     "y": 1124.566219329834,
1011     "z": "f24fb736.66a428",
1012     "wires": [
1013       [
1014         "fea8c889.837c28"
1015       ]
1016     ]
1017   },
1018   {
1019     "id": "fea8c889.837c28",
1020     "type": "block",
1021     "name": "block",
1022     "xml": "<block>\n",
1023     "atomic": "false",
1024     "comments": "",
1025     "outputs": 1,
1026     "x": 1019.8683376312256,
1027     "y": 1126.4550323486328,
1028     "z": "f24fb736.66a428",
1029     "wires": [
1030       []
1031     ]
1032   },
1033   {
1034     "id": "dac36818.3ade18",
1035     "type": "block",
1036     "name": "block : atomic",
1037     "xml": "<block atomic=\"true\">",
1038     "atomic": "true",
1039     "outputs": 1,
1040     "x": 1038.090627670288,
1041     "y": 1213.5661163330078,
1042     "z": "f24fb736.66a428",
1043     "wires": [
1044       [
1045         "47a53791.ce00e8",
1046         "49abb372.8700ac",
1047         "73f1353a.31fe0c"
1048       ]
1049     ]
1050   },
1051   {
1052     "id": "47a53791.ce00e8",
1053     "type": "switchNode",
1054     "name": "switch tmp.found-in-ar",
1055     "xml": "<switch test='`$tmp.found-in-ar`'>\n",
1056     "comments": "",
1057     "outputs": 1,
1058     "x": 1264.2016410827637,
1059     "y": 1180.5661163330078,
1060     "z": "f24fb736.66a428",
1061     "wires": [
1062       [
1063         "f3f2f58d.f1fde8",
1064         "73ae144b.6c716c"
1065       ]
1066     ]
1067   },
1068   {
1069     "id": "f3f2f58d.f1fde8",
1070     "type": "outcomeTrue",
1071     "name": "true",
1072     "xml": "<outcome value='true'>\n",
1073     "comments": "",
1074     "outputs": 1,
1075     "x": 1459.6460876464844,
1076     "y": 1158.566177368164,
1077     "z": "f24fb736.66a428",
1078     "wires": [
1079       [
1080         "a49cc189.c10f7"
1081       ]
1082     ]
1083   },
1084   {
1085     "id": "73ae144b.6c716c",
1086     "type": "outcomeTrue",
1087     "name": "false",
1088     "xml": "<outcome value='false'>\n",
1089     "comments": "",
1090     "outputs": 1,
1091     "x": 1456.64599609375,
1092     "y": 1206.566162109375,
1093     "z": "f24fb736.66a428",
1094     "wires": [
1095       [
1096         "5c6b8964.10acc8"
1097       ]
1098     ]
1099   },
1100   {
1101     "id": "a49cc189.c10f7",
1102     "type": "block",
1103     "name": "block : atomic",
1104     "xml": "<block atomic=\"true\">",
1105     "atomic": "true",
1106     "outputs": 1,
1107     "x": 1647.2017517089844,
1108     "y": 1155.566177368164,
1109     "z": "f24fb736.66a428",
1110     "wires": [
1111       [
1112         "50540586.cfd78c"
1113       ]
1114     ]
1115   },
1116   {
1117     "id": "5c6b8964.10acc8",
1118     "type": "block",
1119     "name": "block : atomic",
1120     "xml": "<block atomic=\"true\">",
1121     "atomic": "true",
1122     "outputs": 1,
1123     "x": 1644.20166015625,
1124     "y": 1205.566162109375,
1125     "z": "f24fb736.66a428",
1126     "wires": [
1127       [
1128         "7849a3ee.c57b4c"
1129       ]
1130     ]
1131   },
1132   {
1133     "id": "b9bd1802.9893c8",
1134     "type": "comment",
1135     "name": "GET connection-attachment-ar to store AR data from mdsal",
1136     "info": "",
1137     "comments": "",
1138     "x": 2156.4728355407715,
1139     "y": 442.50394773483276,
1140     "z": "f24fb736.66a428",
1141     "wires": []
1142   },
1143   {
1144     "id": "811f13c4.a802b",
1145     "type": "comment",
1146     "name": "Set source end point",
1147     "info": "",
1148     "comments": "",
1149     "x": 645.9727325439453,
1150     "y": 531.2539677619934,
1151     "z": "f24fb736.66a428",
1152     "wires": []
1153   },
1154   {
1155     "id": "ab2f4625.6243a8",
1156     "type": "set",
1157     "name": "set tmp.ar.parent-service-instance-id",
1158     "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
1159     "comments": "",
1160     "x": 696.9688262939453,
1161     "y": 740.0000905990601,
1162     "z": "f24fb736.66a428",
1163     "wires": []
1164   },
1165   {
1166     "id": "e3a34e44.03f86",
1167     "type": "success",
1168     "name": "success",
1169     "xml": "<outcome value='success'>\n",
1170     "comments": "",
1171     "outputs": 1,
1172     "x": 1056.968978881836,
1173     "y": 811.0000772476196,
1174     "z": "f24fb736.66a428",
1175     "wires": [
1176       [
1177         "1cfd4bb9.99d9a4"
1178       ]
1179     ]
1180   },
1181   {
1182     "id": "8447b050.f664b",
1183     "type": "other",
1184     "name": "other",
1185     "xml": "<outcome value='Other'>\n",
1186     "comments": "",
1187     "outputs": 1,
1188     "x": 1048.8207817077637,
1189     "y": 846.066162109375,
1190     "z": "f24fb736.66a428",
1191     "wires": [
1192       [
1193         "7bd6123e.8e599c"
1194       ]
1195     ]
1196   },
1197   {
1198     "id": "7bd6123e.8e599c",
1199     "type": "returnFailure",
1200     "name": "return failure",
1201     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Parent service data not available\" />\n    \n",
1202     "comments": "",
1203     "x": 1194.9695625305176,
1204     "y": 845.3335733413696,
1205     "z": "f24fb736.66a428",
1206     "wires": []
1207   },
1208   {
1209     "id": "1cfd4bb9.99d9a4",
1210     "type": "block",
1211     "name": "block",
1212     "xml": "<block>\n",
1213     "atomic": "false",
1214     "comments": "",
1215     "outputs": 1,
1216     "x": 1187.9690742492676,
1217     "y": 811.0001382827759,
1218     "z": "f24fb736.66a428",
1219     "wires": [
1220       []
1221     ]
1222   },
1223   {
1224     "id": "863cf5ba.41a538",
1225     "type": "returnFailure",
1226     "name": "return failure",
1227     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN provided attachment resource not found\" />\n    \n",
1228     "comments": "",
1229     "x": 2718.969306945801,
1230     "y": 1009.00026512146,
1231     "z": "f24fb736.66a428",
1232     "wires": []
1233   },
1234   {
1235     "id": "28182687.5e2d2a",
1236     "type": "block",
1237     "name": "block",
1238     "xml": "<block>\n",
1239     "atomic": "false",
1240     "comments": "",
1241     "outputs": 1,
1242     "x": 2703.9694290161133,
1243     "y": 976.0002498626709,
1244     "z": "f24fb736.66a428",
1245     "wires": [
1246       []
1247     ]
1248   },
1249   {
1250     "id": "b09745d8.bb7668",
1251     "type": "set",
1252     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1253     "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
1254     "comments": "",
1255     "x": 782.9687652587891,
1256     "y": 913.0000648498535,
1257     "z": "f24fb736.66a428",
1258     "wires": []
1259   },
1260   {
1261     "id": "53f5b769.1d9ac8",
1262     "type": "comment",
1263     "name": "If other EP exists set destination end point",
1264     "info": "Check if other allotted resource is available.",
1265     "comments": "",
1266     "x": 699.9687652587891,
1267     "y": 1091.0000133514404,
1268     "z": "f24fb736.66a428",
1269     "wires": []
1270   },
1271   {
1272     "id": "39192112.9a7a9e",
1273     "type": "block",
1274     "name": "block",
1275     "xml": "<block>\n",
1276     "atomic": "false",
1277     "comments": "",
1278     "outputs": 1,
1279     "x": 1439.9688873291016,
1280     "y": 1418.0002946853638,
1281     "z": "f24fb736.66a428",
1282     "wires": [
1283       [
1284         "29497381.2907dc",
1285         "a8454134.72dfa",
1286         "b437b233.85dc6",
1287         "d5da4e92.fd9d5",
1288         "527cda61.4c5444",
1289         "21b345b.f16dcba",
1290         "847549d0.8fada8",
1291         "46d04af2.172014"
1292       ]
1293     ]
1294   },
1295   {
1296     "id": "29497381.2907dc",
1297     "type": "switchNode",
1298     "name": "switch access-node-id",
1299     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
1300     "comments": "",
1301     "outputs": 1,
1302     "x": 1682.4791889190674,
1303     "y": 1288.010691165924,
1304     "z": "f24fb736.66a428",
1305     "wires": [
1306       [
1307         "b53954e3.75f548"
1308       ]
1309     ]
1310   },
1311   {
1312     "id": "a8454134.72dfa",
1313     "type": "returnSuccess",
1314     "name": "return success",
1315     "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",
1316     "comments": "",
1317     "x": 1655.4691410064697,
1318     "y": 1593.0006546974182,
1319     "z": "f24fb736.66a428",
1320     "wires": []
1321   },
1322   {
1323     "id": "b437b233.85dc6",
1324     "type": "switchNode",
1325     "name": "switch access-ltp-id",
1326     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
1327     "comments": "",
1328     "outputs": 1,
1329     "x": 1673.9690189361572,
1330     "y": 1331.7782225608826,
1331     "z": "f24fb736.66a428",
1332     "wires": [
1333       [
1334         "4beb5c8f.437a34"
1335       ]
1336     ]
1337   },
1338   {
1339     "id": "d5da4e92.fd9d5",
1340     "type": "switchNode",
1341     "name": "switch clientSignal",
1342     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
1343     "comments": "",
1344     "outputs": 1,
1345     "x": 1667.9690570831299,
1346     "y": 1377.778269290924,
1347     "z": "f24fb736.66a428",
1348     "wires": [
1349       [
1350         "a652bfee.a4a86"
1351       ]
1352     ]
1353   },
1354   {
1355     "id": "527cda61.4c5444",
1356     "type": "switchNode",
1357     "name": "switch cVLAN",
1358     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
1359     "comments": "",
1360     "outputs": 1,
1361     "x": 1651.9585590362549,
1362     "y": 1416.767771244049,
1363     "z": "f24fb736.66a428",
1364     "wires": [
1365       [
1366         "b6d9ed74.687c9"
1367       ]
1368     ]
1369   },
1370   {
1371     "id": "b53954e3.75f548",
1372     "type": "outcomeTrue",
1373     "name": "true",
1374     "xml": "<outcome value='true'>\n",
1375     "comments": "",
1376     "outputs": 1,
1377     "x": 1860.1911029815674,
1378     "y": 1288.6670632362366,
1379     "z": "f24fb736.66a428",
1380     "wires": [
1381       [
1382         "b7855c9c.e078"
1383       ]
1384     ]
1385   },
1386   {
1387     "id": "b7855c9c.e078",
1388     "type": "set",
1389     "name": "set dst-access-node-id",
1390     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
1391     "comments": "",
1392     "x": 2035.1911029815674,
1393     "y": 1288.267038345337,
1394     "z": "f24fb736.66a428",
1395     "wires": []
1396   },
1397   {
1398     "id": "4beb5c8f.437a34",
1399     "type": "outcomeTrue",
1400     "name": "true",
1401     "xml": "<outcome value='true'>\n",
1402     "comments": "",
1403     "outputs": 1,
1404     "x": 1855.6809711456299,
1405     "y": 1331.434519290924,
1406     "z": "f24fb736.66a428",
1407     "wires": [
1408       [
1409         "17f7ba24.7fa566"
1410       ]
1411     ]
1412   },
1413   {
1414     "id": "a652bfee.a4a86",
1415     "type": "outcomeTrue",
1416     "name": "true",
1417     "xml": "<outcome value='true'>\n",
1418     "comments": "",
1419     "outputs": 1,
1420     "x": 1855.6809711456299,
1421     "y": 1377.434519290924,
1422     "z": "f24fb736.66a428",
1423     "wires": [
1424       [
1425         "b4e0c929.110668"
1426       ]
1427     ]
1428   },
1429   {
1430     "id": "b6d9ed74.687c9",
1431     "type": "outcomeTrue",
1432     "name": "true",
1433     "xml": "<outcome value='true'>\n",
1434     "comments": "",
1435     "outputs": 1,
1436     "x": 1855.6704730987549,
1437     "y": 1416.4241433143616,
1438     "z": "f24fb736.66a428",
1439     "wires": [
1440       [
1441         "90d8491c.861238"
1442       ]
1443     ]
1444   },
1445   {
1446     "id": "49abb372.8700ac",
1447     "type": "for",
1448     "name": "for idx..tmp.ep.parameters[]",
1449     "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
1450     "comments": "",
1451     "outputs": 1,
1452     "x": 1292.96875,
1453     "y": 1306,
1454     "z": "f24fb736.66a428",
1455     "wires": [
1456       [
1457         "39192112.9a7a9e"
1458       ]
1459     ]
1460   },
1461   {
1462     "id": "50540586.cfd78c",
1463     "type": "set",
1464     "name": "set tmp.ep.parameters",
1465     "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
1466     "comments": "",
1467     "x": 1858.9688053131104,
1468     "y": 1155.0000743865967,
1469     "z": "f24fb736.66a428",
1470     "wires": []
1471   },
1472   {
1473     "id": "7849a3ee.c57b4c",
1474     "type": "set",
1475     "name": "set tmp.ep.parameters",
1476     "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
1477     "comments": "",
1478     "x": 1855.968713760376,
1479     "y": 1201.0000591278076,
1480     "z": "f24fb736.66a428",
1481     "wires": []
1482   },
1483   {
1484     "id": "17f7ba24.7fa566",
1485     "type": "set",
1486     "name": "set dst-access-node-id",
1487     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
1488     "comments": "",
1489     "x": 2032.9689350128174,
1490     "y": 1331.0003151893616,
1491     "z": "f24fb736.66a428",
1492     "wires": []
1493   },
1494   {
1495     "id": "b4e0c929.110668",
1496     "type": "set",
1497     "name": "set dst-clientSignal",
1498     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
1499     "comments": "",
1500     "x": 2026.9689350128174,
1501     "y": 1375.0003151893616,
1502     "z": "f24fb736.66a428",
1503     "wires": []
1504   },
1505   {
1506     "id": "90d8491c.861238",
1507     "type": "set",
1508     "name": "set dst-cVLAN",
1509     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
1510     "comments": "",
1511     "x": 2017.9689350128174,
1512     "y": 1414.0003151893616,
1513     "z": "f24fb736.66a428",
1514     "wires": []
1515   },
1516   {
1517     "id": "7a6bd4c0.0a23ac",
1518     "type": "comment",
1519     "name": "Get controller info and send request",
1520     "info": "",
1521     "comments": "",
1522     "x": 1899.968807220459,
1523     "y": 1885.000153541565,
1524     "z": "f24fb736.66a428",
1525     "wires": []
1526   },
1527   {
1528     "id": "e5ca51fb.cb5be",
1529     "type": "execute",
1530     "name": "execute RestApiCallNode Create ethernet Service",
1531     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1532     "comments": "",
1533     "outputs": 1,
1534     "x": 1963.9693450927734,
1535     "y": 2159.001121520996,
1536     "z": "f24fb736.66a428",
1537     "wires": [
1538       [
1539         "4fd581be.ae7c5",
1540         "cba0e7bf.640378"
1541       ]
1542     ]
1543   },
1544   {
1545     "id": "4fd581be.ae7c5",
1546     "type": "success",
1547     "name": "success",
1548     "xml": "<outcome value='success'>\n",
1549     "comments": "",
1550     "outputs": 1,
1551     "x": 2229.9690704345703,
1552     "y": 2188.001244544983,
1553     "z": "f24fb736.66a428",
1554     "wires": [
1555       [
1556         "9a1df066.c1be9"
1557       ]
1558     ]
1559   },
1560   {
1561     "id": "9a1df066.c1be9",
1562     "type": "block",
1563     "name": "block : atomic",
1564     "xml": "<block atomic=\"true\">",
1565     "atomic": "true",
1566     "comments": "",
1567     "outputs": 1,
1568     "x": 2377.9690704345703,
1569     "y": 2186.0011224746704,
1570     "z": "f24fb736.66a428",
1571     "wires": [
1572       []
1573     ]
1574   },
1575   {
1576     "id": "434af439.625b6c",
1577     "type": "returnFailure",
1578     "name": "return failure",
1579     "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 executing Create vpn rest api\" />\n",
1580     "comments": "",
1581     "x": 2359.9691009521484,
1582     "y": 2133.0011825561523,
1583     "z": "f24fb736.66a428",
1584     "wires": []
1585   },
1586   {
1587     "id": "cba0e7bf.640378",
1588     "type": "failure",
1589     "name": "failure",
1590     "xml": "<outcome value='failure'>\n",
1591     "comments": "",
1592     "outputs": 1,
1593     "x": 2220.969009399414,
1594     "y": 2133.0011825561523,
1595     "z": "f24fb736.66a428",
1596     "wires": [
1597       [
1598         "434af439.625b6c"
1599       ]
1600     ]
1601   },
1602   {
1603     "id": "1a8278df.ac4137",
1604     "type": "failure",
1605     "name": "failure",
1606     "xml": "<outcome value='failure'>\n",
1607     "comments": "",
1608     "outputs": 1,
1609     "x": 871.7311744689941,
1610     "y": 2108.9537086486816,
1611     "z": "f24fb736.66a428",
1612     "wires": [
1613       [
1614         "c4aa74e4.35ca78"
1615       ]
1616     ]
1617   },
1618   {
1619     "id": "c4aa74e4.35ca78",
1620     "type": "returnFailure",
1621     "name": "return failure",
1622     "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",
1623     "comments": "",
1624     "x": 1038.2549953460693,
1625     "y": 2135.5727157592773,
1626     "z": "f24fb736.66a428",
1627     "wires": []
1628   },
1629   {
1630     "id": "33c28cf6.2b21a4",
1631     "type": "failure",
1632     "name": "not-found",
1633     "xml": "<outcome value='not-found'>\n",
1634     "comments": "",
1635     "outputs": 1,
1636     "x": 873.8264026641846,
1637     "y": 2156.715551376343,
1638     "z": "f24fb736.66a428",
1639     "wires": [
1640       [
1641         "c4aa74e4.35ca78"
1642       ]
1643     ]
1644   },
1645   {
1646     "id": "cb1a048d.e95fc8",
1647     "type": "comment",
1648     "name": "Save Resource to AAI",
1649     "info": "",
1650     "comments": "",
1651     "x": 645.7788181304932,
1652     "y": 2097.3028717041016,
1653     "z": "f24fb736.66a428",
1654     "wires": []
1655   },
1656   {
1657     "id": "c4803883.47c5a8",
1658     "type": "set",
1659     "name": "set output to api handler",
1660     "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
1661     "comments": "",
1662     "x": 660.5465145111084,
1663     "y": 2018.8283529281616,
1664     "z": "f24fb736.66a428",
1665     "wires": []
1666   },
1667   {
1668     "id": "c4ade364.dff4",
1669     "type": "returnSuccess",
1670     "name": "return success",
1671     "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",
1672     "comments": "",
1673     "x": 620.9596862792969,
1674     "y": 2204.4441413879395,
1675     "z": "f24fb736.66a428",
1676     "wires": []
1677   },
1678   {
1679     "id": "21b8bdc2.b30a32",
1680     "type": "execute",
1681     "name": "execute RestApiCallNode - PUT AR by id",
1682     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.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",
1683     "comments": "",
1684     "outputs": 1,
1685     "x": 713.2785968780518,
1686     "y": 1943.4692058563232,
1687     "z": "f24fb736.66a428",
1688     "wires": [
1689       [
1690         "72334169.43788",
1691         "91c81d87.0f2e3",
1692         "4377487a.aa9b58"
1693       ]
1694     ]
1695   },
1696   {
1697     "id": "72334169.43788",
1698     "type": "not-found",
1699     "name": "not-found",
1700     "xml": "<outcome value='not-found'>\n",
1701     "comments": "",
1702     "outputs": 1,
1703     "x": 967.9200191497803,
1704     "y": 1987.8006000518799,
1705     "z": "f24fb736.66a428",
1706     "wires": [
1707       [
1708         "3aa37f14.b2a12"
1709       ]
1710     ]
1711   },
1712   {
1713     "id": "91c81d87.0f2e3",
1714     "type": "failure",
1715     "name": "failure",
1716     "xml": "<outcome value='failure'>\n",
1717     "comments": "",
1718     "outputs": 1,
1719     "x": 969.9200420379639,
1720     "y": 1946.3005641922355,
1721     "z": "f24fb736.66a428",
1722     "wires": [
1723       [
1724         "3aa37f14.b2a12"
1725       ]
1726     ]
1727   },
1728   {
1729     "id": "4377487a.aa9b58",
1730     "type": "success",
1731     "name": "success",
1732     "xml": "<outcome value='success'>\n",
1733     "comments": "",
1734     "outputs": 1,
1735     "x": 973.6701259613037,
1736     "y": 1897.6577167510986,
1737     "z": "f24fb736.66a428",
1738     "wires": [
1739       [
1740         "ce3cc849.21f268"
1741       ]
1742     ]
1743   },
1744   {
1745     "id": "3aa37f14.b2a12",
1746     "type": "returnFailure",
1747     "name": "return failure",
1748     "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 connection-attachment-allotted-resource\" />\n",
1749     "comments": "",
1750     "x": 1128.67014503479,
1751     "y": 1966.050630569458,
1752     "z": "f24fb736.66a428",
1753     "wires": []
1754   },
1755   {
1756     "id": "ce3cc849.21f268",
1757     "type": "block",
1758     "name": "block",
1759     "xml": "<block>\n",
1760     "atomic": "false",
1761     "comments": "",
1762     "outputs": 1,
1763     "x": 1101.3260707855225,
1764     "y": 1899.8498849868774,
1765     "z": "f24fb736.66a428",
1766     "wires": [
1767       []
1768     ]
1769   },
1770   {
1771     "id": "33c05db5.bb8532",
1772     "type": "set",
1773     "name": "set ar-data",
1774     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
1775     "comments": "",
1776     "x": 615.4922122955322,
1777     "y": 1777.8501069545746,
1778     "z": "f24fb736.66a428",
1779     "wires": []
1780   },
1781   {
1782     "id": "3d236d8e.1a1ed2",
1783     "type": "execute",
1784     "name": "execute getTime",
1785     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1786     "comments": "",
1787     "outputs": 1,
1788     "x": 632.77805519104,
1789     "y": 1850.4697046279907,
1790     "z": "f24fb736.66a428",
1791     "wires": [
1792       []
1793     ]
1794   },
1795   {
1796     "id": "9dd9851c.cc5e08",
1797     "type": "set",
1798     "name": "set allotted-resource-oper-status",
1799     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
1800     "comments": "",
1801     "x": 682.7651348114014,
1802     "y": 1887.4207849502563,
1803     "z": "f24fb736.66a428",
1804     "wires": []
1805   },
1806   {
1807     "id": "dde46f65.1623c",
1808     "type": "set",
1809     "name": "set model-data",
1810     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
1811     "comments": "",
1812     "x": 629.3337535858154,
1813     "y": 1817.024757385254,
1814     "z": "f24fb736.66a428",
1815     "wires": []
1816   },
1817   {
1818     "id": "c0243700.483a78",
1819     "type": "comment",
1820     "name": "Prepare data for allotted-resource addition to MDSAL",
1821     "info": "This will add to allotted-resource which is present inside service.",
1822     "comments": "",
1823     "x": 742.66721534729,
1824     "y": 1738.0247094631195,
1825     "z": "f24fb736.66a428",
1826     "wires": []
1827   },
1828   {
1829     "id": "b128777a.bf8ad8",
1830     "type": "comment",
1831     "name": "Add to allotted-resources in mdsal",
1832     "info": "",
1833     "comments": "",
1834     "x": 684.2470417022705,
1835     "y": 1705.4380111694336,
1836     "z": "f24fb736.66a428",
1837     "wires": []
1838   },
1839   {
1840     "id": "ad2575da.f719b8",
1841     "type": "update",
1842     "name": "update AAI allotted-resource",
1843     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.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=\"`$connection-attachment-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=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n",
1844     "comments": "",
1845     "outputs": 1,
1846     "x": 672.2230968475342,
1847     "y": 2134.7550144195557,
1848     "z": "f24fb736.66a428",
1849     "wires": [
1850       [
1851         "1a8278df.ac4137",
1852         "33c28cf6.2b21a4"
1853       ]
1854     ]
1855   },
1856   {
1857     "id": "73456eef.45eac",
1858     "type": "execute",
1859     "name": "execute RestApiCallNode getPath from OOF",
1860     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1861     "comments": "",
1862     "outputs": 1,
1863     "x": 1480.973056793213,
1864     "y": 1697.2546663284302,
1865     "z": "f24fb736.66a428",
1866     "wires": [
1867       [
1868         "473a6700.6236e8",
1869         "5286278b.3b3cd8"
1870       ]
1871     ]
1872   },
1873   {
1874     "id": "473a6700.6236e8",
1875     "type": "success",
1876     "name": "success",
1877     "xml": "<outcome value='success'>\n",
1878     "comments": "",
1879     "outputs": 1,
1880     "x": 1720.9731979370117,
1881     "y": 1721.254635810852,
1882     "z": "f24fb736.66a428",
1883     "wires": [
1884       [
1885         "cafce3b5.74fb5"
1886       ]
1887     ]
1888   },
1889   {
1890     "id": "dc79f611.cf4238",
1891     "type": "returnFailure",
1892     "name": "return failure",
1893     "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 executing OOF api\" />\n",
1894     "comments": "",
1895     "x": 1859.973232269287,
1896     "y": 1670.2547273635864,
1897     "z": "f24fb736.66a428",
1898     "wires": []
1899   },
1900   {
1901     "id": "5286278b.3b3cd8",
1902     "type": "failure",
1903     "name": "failure",
1904     "xml": "<outcome value='failure'>\n",
1905     "comments": "",
1906     "outputs": 1,
1907     "x": 1719.9729843139648,
1908     "y": 1670.254726409912,
1909     "z": "f24fb736.66a428",
1910     "wires": [
1911       [
1912         "dc79f611.cf4238"
1913       ]
1914     ]
1915   },
1916   {
1917     "id": "deb094f6.e597f8",
1918     "type": "comment",
1919     "name": "Get VPNs from OOF",
1920     "info": "",
1921     "comments": "",
1922     "x": 1466.976978302002,
1923     "y": 1664.2586660385132,
1924     "z": "f24fb736.66a428",
1925     "wires": []
1926   },
1927   {
1928     "id": "da1582e5.d9e86",
1929     "type": "for",
1930     "name": "for vidx..oof.vpns_length[]",
1931     "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
1932     "comments": "",
1933     "outputs": 1,
1934     "x": 1420.972900390625,
1935     "y": 1779.50439453125,
1936     "z": "f24fb736.66a428",
1937     "wires": [
1938       [
1939         "b2ef8ded.b479a"
1940       ]
1941     ]
1942   },
1943   {
1944     "id": "c9df49cc.0e8008",
1945     "type": "comment",
1946     "name": "Loop through VPN and configure them",
1947     "info": "",
1948     "comments": "",
1949     "x": 1466.9733505249023,
1950     "y": 1914.0047721862793,
1951     "z": "f24fb736.66a428",
1952     "wires": []
1953   },
1954   {
1955     "id": "477598ab.94c4f8",
1956     "type": "switchNode",
1957     "name": "switch name",
1958     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n                \n",
1959     "comments": "",
1960     "outputs": 1,
1961     "x": 2660.757080078125,
1962     "y": 1251.121826171875,
1963     "z": "f24fb736.66a428",
1964     "wires": [
1965       [
1966         "7c0be7f6.9e8c58"
1967       ]
1968     ]
1969   },
1970   {
1971     "id": "7c0be7f6.9e8c58",
1972     "type": "outcomeTrue",
1973     "name": "true",
1974     "xml": "<outcome value='true'>\n",
1975     "comments": "",
1976     "outputs": 1,
1977     "x": 2849.757049560547,
1978     "y": 1251.121811389923,
1979     "z": "f24fb736.66a428",
1980     "wires": [
1981       [
1982         "1cf5a70.cc26659"
1983       ]
1984     ]
1985   },
1986   {
1987     "id": "1cf5a70.cc26659",
1988     "type": "set",
1989     "name": "set etht-svc-name & bandwidth-profile-name",
1990     "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
1991     "comments": "",
1992     "x": 3090.75736618042,
1993     "y": 1250.7218661308289,
1994     "z": "f24fb736.66a428",
1995     "wires": []
1996   },
1997   {
1998     "id": "bf3fd182.60613",
1999     "type": "switchNode",
2000     "name": "switch description",
2001     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
2002     "comments": "",
2003     "outputs": 1,
2004     "x": 2673.5969581604004,
2005     "y": 1286.1219210624695,
2006     "z": "f24fb736.66a428",
2007     "wires": [
2008       [
2009         "f2fb468e.d467f8"
2010       ]
2011     ]
2012   },
2013   {
2014     "id": "f2fb468e.d467f8",
2015     "type": "outcomeTrue",
2016     "name": "true",
2017     "xml": "<outcome value='true'>\n",
2018     "comments": "",
2019     "outputs": 1,
2020     "x": 2848.597023010254,
2021     "y": 1288.1219067573547,
2022     "z": "f24fb736.66a428",
2023     "wires": [
2024       [
2025         "e7ce8468.64c938"
2026       ]
2027     ]
2028   },
2029   {
2030     "id": "e7ce8468.64c938",
2031     "type": "set",
2032     "name": "set etht-svc-descr",
2033     "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2034     "comments": "",
2035     "x": 3004.9303398132324,
2036     "y": 1285.5829815864563,
2037     "z": "f24fb736.66a428",
2038     "wires": []
2039   },
2040   {
2041     "id": "ee0ac40b.7c8918",
2042     "type": "switchNode",
2043     "name": "switch tenantId",
2044     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
2045     "comments": "",
2046     "outputs": 1,
2047     "x": 2668.979221343994,
2048     "y": 1319.4553112983704,
2049     "z": "f24fb736.66a428",
2050     "wires": [
2051       [
2052         "db11a89d.57ead8"
2053       ]
2054     ]
2055   },
2056   {
2057     "id": "db11a89d.57ead8",
2058     "type": "outcomeTrue",
2059     "name": "true",
2060     "xml": "<outcome value='true'>\n",
2061     "comments": "",
2062     "outputs": 1,
2063     "x": 2846.9792251586914,
2064     "y": 1323.4551892280579,
2065     "z": "f24fb736.66a428",
2066     "wires": [
2067       [
2068         "a28b1daa.bce21"
2069       ]
2070     ]
2071   },
2072   {
2073     "id": "a28b1daa.bce21",
2074     "type": "set",
2075     "name": "set tenantId",
2076     "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2077     "comments": "",
2078     "x": 2984.9794120788574,
2079     "y": 1320.0551648139954,
2080     "z": "f24fb736.66a428",
2081     "wires": []
2082   },
2083   {
2084     "id": "6b4b64b0.8aa49c",
2085     "type": "switchNode",
2086     "name": "switch cir",
2087     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
2088     "comments": "",
2089     "outputs": 1,
2090     "x": 2651.818820953369,
2091     "y": 1392.4552664756775,
2092     "z": "f24fb736.66a428",
2093     "wires": [
2094       [
2095         "779ba6d5.68a5b8"
2096       ]
2097     ]
2098   },
2099   {
2100     "id": "779ba6d5.68a5b8",
2101     "type": "outcomeTrue",
2102     "name": "true",
2103     "xml": "<outcome value='true'>\n",
2104     "comments": "",
2105     "outputs": 1,
2106     "x": 2846.8188858032227,
2107     "y": 1393.4552664756775,
2108     "z": "f24fb736.66a428",
2109     "wires": [
2110       [
2111         "51c8d37d.57c57c"
2112       ]
2113     ]
2114   },
2115   {
2116     "id": "51c8d37d.57c57c",
2117     "type": "set",
2118     "name": "set cir",
2119     "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2120     "comments": "",
2121     "x": 2971.15238571167,
2122     "y": 1391.916341304779,
2123     "z": "f24fb736.66a428",
2124     "wires": []
2125   },
2126   {
2127     "id": "334ef95a.804996",
2128     "type": "switchNode",
2129     "name": "switch vpnType",
2130     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
2131     "comments": "",
2132     "outputs": 1,
2133     "x": 2666.127109527588,
2134     "y": 1355.232976436615,
2135     "z": "f24fb736.66a428",
2136     "wires": [
2137       [
2138         "edf65e2e.17eef"
2139       ]
2140     ]
2141   },
2142   {
2143     "id": "edf65e2e.17eef",
2144     "type": "outcomeTrue",
2145     "name": "true",
2146     "xml": "<outcome value='true'>\n",
2147     "comments": "",
2148     "outputs": 1,
2149     "x": 2848.127296447754,
2150     "y": 1358.232961177826,
2151     "z": "f24fb736.66a428",
2152     "wires": [
2153       [
2154         "3a58a10e.af006e"
2155       ]
2156     ]
2157   },
2158   {
2159     "id": "3a58a10e.af006e",
2160     "type": "set",
2161     "name": "set vpnType",
2162     "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2163     "comments": "",
2164     "x": 2984.461040496826,
2165     "y": 1354.6942028999329,
2166     "z": "f24fb736.66a428",
2167     "wires": []
2168   },
2169   {
2170     "id": "f2f619ae.81dc88",
2171     "type": "switchNode",
2172     "name": "switch eir",
2173     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
2174     "comments": "",
2175     "outputs": 1,
2176     "x": 2647.1091651916504,
2177     "y": 1426.1531739234924,
2178     "z": "f24fb736.66a428",
2179     "wires": [
2180       [
2181         "290775a.582758a"
2182       ]
2183     ]
2184   },
2185   {
2186     "id": "290775a.582758a",
2187     "type": "outcomeTrue",
2188     "name": "true",
2189     "xml": "<outcome value='true'>\n",
2190     "comments": "",
2191     "outputs": 1,
2192     "x": 2847.1094131469727,
2193     "y": 1429.1531128883362,
2194     "z": "f24fb736.66a428",
2195     "wires": [
2196       [
2197         "be16065f.3cc068"
2198       ]
2199     ]
2200   },
2201   {
2202     "id": "be16065f.3cc068",
2203     "type": "set",
2204     "name": "set eir",
2205     "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2206     "comments": "",
2207     "x": 2970.4430351257324,
2208     "y": 1428.6141724586487,
2209     "z": "f24fb736.66a428",
2210     "wires": []
2211   },
2212   {
2213     "id": "7f22248e.623acc",
2214     "type": "switchNode",
2215     "name": "switch colorAware",
2216     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
2217     "comments": "",
2218     "outputs": 1,
2219     "x": 2672.109775543213,
2220     "y": 1460.1530528068542,
2221     "z": "f24fb736.66a428",
2222     "wires": [
2223       [
2224         "60b638c9.9f5cf8"
2225       ]
2226     ]
2227   },
2228   {
2229     "id": "60b638c9.9f5cf8",
2230     "type": "outcomeTrue",
2231     "name": "true",
2232     "xml": "<outcome value='true'>\n",
2233     "comments": "",
2234     "outputs": 1,
2235     "x": 2843.1095962524414,
2236     "y": 1466.1529912948608,
2237     "z": "f24fb736.66a428",
2238     "wires": [
2239       [
2240         "6283050a.9a352c"
2241       ]
2242     ]
2243   },
2244   {
2245     "id": "6283050a.9a352c",
2246     "type": "set",
2247     "name": "set colorAware",
2248     "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2249     "comments": "",
2250     "x": 2991.44291305542,
2251     "y": 1466.6142039299011,
2252     "z": "f24fb736.66a428",
2253     "wires": []
2254   },
2255   {
2256     "id": "1977cf51.112051",
2257     "type": "switchNode",
2258     "name": "switch couplingFlag",
2259     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
2260     "comments": "",
2261     "outputs": 1,
2262     "x": 2674.1097145080566,
2263     "y": 1496.1531147956848,
2264     "z": "f24fb736.66a428",
2265     "wires": [
2266       [
2267         "95d93fbe.f7437"
2268       ]
2269     ]
2270   },
2271   {
2272     "id": "95d93fbe.f7437",
2273     "type": "outcomeTrue",
2274     "name": "true",
2275     "xml": "<outcome value='true'>\n",
2276     "comments": "",
2277     "outputs": 1,
2278     "x": 2846.1095962524414,
2279     "y": 1505.1530842781067,
2280     "z": "f24fb736.66a428",
2281     "wires": [
2282       [
2283         "ceecc29f.0a56b"
2284       ]
2285     ]
2286   },
2287   {
2288     "id": "ceecc29f.0a56b",
2289     "type": "set",
2290     "name": "set couplingFlag",
2291     "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
2292     "comments": "",
2293     "x": 2999.44291305542,
2294     "y": 1505.6142048835754,
2295     "z": "f24fb736.66a428",
2296     "wires": []
2297   },
2298   {
2299     "id": "b4b830f7.2edfb",
2300     "type": "comment",
2301     "name": "Check if other EP exists in SOTNConnectionResource",
2302     "info": "",
2303     "comments": "",
2304     "x": 2805.312744140625,
2305     "y": 1114.7884521484375,
2306     "z": "f24fb736.66a428",
2307     "wires": []
2308   },
2309   {
2310     "id": "85af2b8.2c027d8",
2311     "type": "comment",
2312     "name": "Get other global parameters from network",
2313     "info": "",
2314     "comments": "",
2315     "x": 2741.3125,
2316     "y": 1200.7884521484375,
2317     "z": "f24fb736.66a428",
2318     "wires": []
2319   },
2320   {
2321     "id": "21b345b.f16dcba",
2322     "type": "switchNode",
2323     "name": "switch access-provider-id",
2324     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
2325     "comments": "",
2326     "outputs": 1,
2327     "x": 1689.5348529815674,
2328     "y": 1462.2329812049866,
2329     "z": "f24fb736.66a428",
2330     "wires": [
2331       [
2332         "88d75ee0.36aab"
2333       ]
2334     ]
2335   },
2336   {
2337     "id": "88d75ee0.36aab",
2338     "type": "outcomeTrue",
2339     "name": "true",
2340     "xml": "<outcome value='true'>\n",
2341     "comments": "",
2342     "outputs": 1,
2343     "x": 1876.5348529815674,
2344     "y": 1458.2329812049866,
2345     "z": "f24fb736.66a428",
2346     "wires": [
2347       [
2348         "144324cd.dbe03b"
2349       ]
2350     ]
2351   },
2352   {
2353     "id": "144324cd.dbe03b",
2354     "type": "set",
2355     "name": "set access-provider-id",
2356     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2357     "comments": "",
2358     "x": 2044.5348529815674,
2359     "y": 1458.8329873085022,
2360     "z": "f24fb736.66a428",
2361     "wires": []
2362   },
2363   {
2364     "id": "847549d0.8fada8",
2365     "type": "switchNode",
2366     "name": "switch access-client-id",
2367     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
2368     "comments": "",
2369     "outputs": 1,
2370     "x": 1680.5348682403564,
2371     "y": 1505.2434296607971,
2372     "z": "f24fb736.66a428",
2373     "wires": [
2374       [
2375         "429ac662.d36c08"
2376       ]
2377     ]
2378   },
2379   {
2380     "id": "429ac662.d36c08",
2381     "type": "outcomeTrue",
2382     "name": "true",
2383     "xml": "<outcome value='true'>\n",
2384     "comments": "",
2385     "outputs": 1,
2386     "x": 1867.5348682403564,
2387     "y": 1501.2434296607971,
2388     "z": "f24fb736.66a428",
2389     "wires": [
2390       [
2391         "fdfea883.43ef38"
2392       ]
2393     ]
2394   },
2395   {
2396     "id": "fdfea883.43ef38",
2397     "type": "set",
2398     "name": "set access-client-id",
2399     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2400     "comments": "",
2401     "x": 2035.5348682403564,
2402     "y": 1501.8434357643127,
2403     "z": "f24fb736.66a428",
2404     "wires": []
2405   },
2406   {
2407     "id": "46d04af2.172014",
2408     "type": "switchNode",
2409     "name": "switch access-topology-id",
2410     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
2411     "comments": "",
2412     "outputs": 1,
2413     "x": 1693.534812927246,
2414     "y": 1547.2434606552124,
2415     "z": "f24fb736.66a428",
2416     "wires": [
2417       [
2418         "f9888c9d.14fbf"
2419       ]
2420     ]
2421   },
2422   {
2423     "id": "f9888c9d.14fbf",
2424     "type": "outcomeTrue",
2425     "name": "true",
2426     "xml": "<outcome value='true'>\n",
2427     "comments": "",
2428     "outputs": 1,
2429     "x": 1880.534812927246,
2430     "y": 1543.2434606552124,
2431     "z": "f24fb736.66a428",
2432     "wires": [
2433       [
2434         "9db1bbe8.d24ee8"
2435       ]
2436     ]
2437   },
2438   {
2439     "id": "9db1bbe8.d24ee8",
2440     "type": "set",
2441     "name": "set access-topology-id",
2442     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2443     "comments": "",
2444     "x": 2048.534812927246,
2445     "y": 1543.843466758728,
2446     "z": "f24fb736.66a428",
2447     "wires": []
2448   },
2449   {
2450     "id": "b2ef8ded.b479a",
2451     "type": "block",
2452     "name": "block : atomic",
2453     "xml": "<block atomic=\"true\">",
2454     "atomic": "true",
2455     "outputs": 1,
2456     "x": 1644.090217590332,
2457     "y": 1816.3444538116455,
2458     "z": "f24fb736.66a428",
2459     "wires": [
2460       [
2461         "ca8a96be.c9e6a8",
2462         "f4e8e4f3.f6e418",
2463         "dea701ef.7abc9",
2464         "644c2300.fecafc",
2465         "8bddc111.2e08f",
2466         "981ad4ae.e983a8",
2467         "55066de5.c71104",
2468         "3af624e0.31f91c",
2469         "e5ca51fb.cb5be",
2470         "2e8e574c.c64e68",
2471         "b731c6a4.c3a218"
2472       ]
2473     ]
2474   },
2475   {
2476     "id": "9f0b7f15.8c307",
2477     "type": "set",
2478     "name": "set controller data",
2479     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
2480     "comments": "",
2481     "x": 2285.534881591797,
2482     "y": 1880.6776461601257,
2483     "z": "f24fb736.66a428",
2484     "wires": []
2485   },
2486   {
2487     "id": "3af624e0.31f91c",
2488     "type": "get-resource",
2489     "name": "get-resource esr-thirdparty-sdnc",
2490     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
2491     "comments": "",
2492     "outputs": 1,
2493     "x": 1902.0347900390625,
2494     "y": 1917.6775856018066,
2495     "z": "f24fb736.66a428",
2496     "wires": [
2497       [
2498         "72570e2d.a62fe",
2499         "c43ec6a3.683488",
2500         "fb06874f.97c548"
2501       ]
2502     ]
2503   },
2504   {
2505     "id": "72570e2d.a62fe",
2506     "type": "success",
2507     "name": "success",
2508     "xml": "<outcome value='success'>\n",
2509     "comments": "",
2510     "outputs": 1,
2511     "x": 2122.034725189209,
2512     "y": 1881.6775546073914,
2513     "z": "f24fb736.66a428",
2514     "wires": [
2515       [
2516         "9f0b7f15.8c307"
2517       ]
2518     ]
2519   },
2520   {
2521     "id": "c43ec6a3.683488",
2522     "type": "not-found",
2523     "name": "not-found",
2524     "xml": "<outcome value='not-found'>\n",
2525     "comments": "",
2526     "outputs": 1,
2527     "x": 2131.525665283203,
2528     "y": 1922.2515606880188,
2529     "z": "f24fb736.66a428",
2530     "wires": [
2531       [
2532         "c36ea2d9.d18c4"
2533       ]
2534     ]
2535   },
2536   {
2537     "id": "fb06874f.97c548",
2538     "type": "other",
2539     "name": "other",
2540     "xml": "<outcome value='Other'>\n",
2541     "comments": "",
2542     "outputs": 1,
2543     "x": 2126.858642578125,
2544     "y": 1958.5848736763,
2545     "z": "f24fb736.66a428",
2546     "wires": [
2547       [
2548         "668b481.e36d4b8"
2549       ]
2550     ]
2551   },
2552   {
2553     "id": "c36ea2d9.d18c4",
2554     "type": "returnFailure",
2555     "name": "return failure",
2556     "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
2557     "comments": "",
2558     "x": 2278.0970153808594,
2559     "y": 1918.5373873710632,
2560     "z": "f24fb736.66a428",
2561     "wires": []
2562   },
2563   {
2564     "id": "668b481.e36d4b8",
2565     "type": "returnFailure",
2566     "name": "return failure",
2567     "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
2568     "comments": "",
2569     "x": 2281.6312866210938,
2570     "y": 1960.0240216255188,
2571     "z": "f24fb736.66a428",
2572     "wires": []
2573   },
2574   {
2575     "id": "55066de5.c71104",
2576     "type": "get-resource",
2577     "name": "get-resource pnf",
2578     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
2579     "comments": "",
2580     "outputs": 1,
2581     "x": 1847.534683227539,
2582     "y": 1826.6772294044495,
2583     "z": "f24fb736.66a428",
2584     "wires": [
2585       [
2586         "84c5aa59.ee67d8",
2587         "41b15be2.0ba8d4",
2588         "f1b5d69a.0d7998"
2589       ]
2590     ]
2591   },
2592   {
2593     "id": "84c5aa59.ee67d8",
2594     "type": "success",
2595     "name": "success",
2596     "xml": "<outcome value='success'>\n",
2597     "comments": "",
2598     "outputs": 1,
2599     "x": 2029.5347290039062,
2600     "y": 1771.677339553833,
2601     "z": "f24fb736.66a428",
2602     "wires": [
2603       [
2604         "7e1d241.12440dc"
2605       ]
2606     ]
2607   },
2608   {
2609     "id": "41b15be2.0ba8d4",
2610     "type": "not-found",
2611     "name": "not-found",
2612     "xml": "<outcome value='not-found'>\n",
2613     "comments": "",
2614     "outputs": 1,
2615     "x": 2030.0256309509277,
2616     "y": 1809.2514362335205,
2617     "z": "f24fb736.66a428",
2618     "wires": [
2619       [
2620         "e55b495c.733518"
2621       ]
2622     ]
2623   },
2624   {
2625     "id": "f1b5d69a.0d7998",
2626     "type": "other",
2627     "name": "other",
2628     "xml": "<outcome value='Other'>\n",
2629     "comments": "",
2630     "outputs": 1,
2631     "x": 2021.358642578125,
2632     "y": 1842.5848112106323,
2633     "z": "f24fb736.66a428",
2634     "wires": [
2635       [
2636         "4d6a36cc.899768"
2637       ]
2638     ]
2639   },
2640   {
2641     "id": "e55b495c.733518",
2642     "type": "returnFailure",
2643     "name": "return failure",
2644     "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
2645     "comments": "",
2646     "x": 2177.597255706787,
2647     "y": 1808.5373249053955,
2648     "z": "f24fb736.66a428",
2649     "wires": []
2650   },
2651   {
2652     "id": "4d6a36cc.899768",
2653     "type": "returnFailure",
2654     "name": "return failure",
2655     "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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
2656     "comments": "",
2657     "x": 2175.1312866210938,
2658     "y": 1842.023959159851,
2659     "z": "f24fb736.66a428",
2660     "wires": []
2661   },
2662   {
2663     "id": "7e1d241.12440dc",
2664     "type": "set",
2665     "name": "set tmp.thirdparty-sdnc-id",
2666     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
2667     "comments": "",
2668     "x": 2214.5347290039062,
2669     "y": 1770.6774616241455,
2670     "z": "f24fb736.66a428",
2671     "wires": []
2672   },
2673   {
2674     "id": "9df363c3.42e7",
2675     "type": "comment",
2676     "name": "get domain controller information",
2677     "info": "",
2678     "comments": "",
2679     "x": 1898.0385971069336,
2680     "y": 1793.6811847686768,
2681     "z": "f24fb736.66a428",
2682     "wires": []
2683   },
2684   {
2685     "id": "2e8e574c.c64e68",
2686     "type": "set",
2687     "name": "set oof.vpn",
2688     "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
2689     "comments": "",
2690     "x": 1859.534683227539,
2691     "y": 1747.7883129119873,
2692     "z": "f24fb736.66a428",
2693     "wires": []
2694   },
2695   {
2696     "id": "f4e8e4f3.f6e418",
2697     "type": "save",
2698     "name": "save VPN resource in AAI",
2699     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
2700     "comments": "",
2701     "outputs": 1,
2702     "x": 1874.0001602172852,
2703     "y": 2324.7506742477417,
2704     "z": "f24fb736.66a428",
2705     "wires": [
2706       []
2707     ]
2708   },
2709   {
2710     "id": "dea701ef.7abc9",
2711     "type": "set",
2712     "name": "set tmp.vpnName",
2713     "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`\" />",
2714     "comments": "",
2715     "x": 1850.5001602172852,
2716     "y": 2277.250370979309,
2717     "z": "f24fb736.66a428",
2718     "wires": []
2719   },
2720   {
2721     "id": "644c2300.fecafc",
2722     "type": "save",
2723     "name": "save connectivity relationship in AAI",
2724     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
2725     "comments": "",
2726     "outputs": 1,
2727     "x": 1909.0001602172852,
2728     "y": 2369.7504301071167,
2729     "z": "f24fb736.66a428",
2730     "wires": [
2731       []
2732     ]
2733   },
2734   {
2735     "id": "ce418ee5.81a4e",
2736     "type": "comment",
2737     "name": "save vpn and its relation to AAI",
2738     "info": "",
2739     "comments": "",
2740     "x": 1892.000358581543,
2741     "y": 2238.7506399154663,
2742     "z": "f24fb736.66a428",
2743     "wires": []
2744   },
2745   {
2746     "id": "ca8a96be.c9e6a8",
2747     "type": "set",
2748     "name": "set src-ltpId dst-ltpId",
2749     "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
2750     "comments": "",
2751     "x": 1861.0001907348633,
2752     "y": 2409.7505502700806,
2753     "z": "f24fb736.66a428",
2754     "wires": []
2755   },
2756   {
2757     "id": "8bddc111.2e08f",
2758     "type": "save",
2759     "name": "save srcLTP relationship in AAI",
2760     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
2761     "comments": "",
2762     "outputs": 1,
2763     "x": 1895.0004425048828,
2764     "y": 2449.500759124756,
2765     "z": "f24fb736.66a428",
2766     "wires": [
2767       []
2768     ]
2769   },
2770   {
2771     "id": "981ad4ae.e983a8",
2772     "type": "save",
2773     "name": "save dstLTP relationship in AAI",
2774     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
2775     "comments": "",
2776     "outputs": 1,
2777     "x": 1893.0002746582031,
2778     "y": 2495.2505979537964,
2779     "z": "f24fb736.66a428",
2780     "wires": [
2781       []
2782     ]
2783   },
2784   {
2785     "id": "b13bf095.cdea1",
2786     "type": "execute",
2787     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
2788     "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",
2789     "comments": "",
2790     "outputs": 1,
2791     "x": 839.0039367675781,
2792     "y": 600.0039119720459,
2793     "z": "f24fb736.66a428",
2794     "wires": [
2795       [
2796         "fb3f3db1.2e857",
2797         "549a2a73.774b74"
2798       ]
2799     ]
2800   },
2801   {
2802     "id": "dcca5b8a.14d818",
2803     "type": "execute",
2804     "name": "execute RestApiCallNode - get-resource parent service data",
2805     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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-psd\" />\n\n",
2806     "comments": "",
2807     "outputs": 1,
2808     "x": 766.0040893554688,
2809     "y": 827.004075050354,
2810     "z": "f24fb736.66a428",
2811     "wires": [
2812       [
2813         "e3a34e44.03f86",
2814         "8447b050.f664b"
2815       ]
2816     ]
2817   },
2818   {
2819     "id": "5d5e7f8f.d3d28",
2820     "type": "execute",
2821     "name": "get parent-service-data url",
2822     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
2823     "comments": "",
2824     "outputs": 1,
2825     "x": 666.0039978027344,
2826     "y": 790.0039081573486,
2827     "z": "f24fb736.66a428",
2828     "wires": [
2829       []
2830     ]
2831   },
2832   {
2833     "id": "8c502b5e.ba0e48",
2834     "type": "execute",
2835     "name": "generate tmp.ar-other-url-connection",
2836     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-other-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n    \n\n",
2837     "comments": "",
2838     "outputs": 1,
2839     "x": 2080.0003509521484,
2840     "y": 946.3334693908691,
2841     "z": "f24fb736.66a428",
2842     "wires": [
2843       []
2844     ]
2845   },
2846   {
2847     "id": "b7c302f0.0eaa4",
2848     "type": "execute",
2849     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
2850     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\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-other-ar\" />\n\n",
2851     "comments": "",
2852     "outputs": 1,
2853     "x": 2217.000991821289,
2854     "y": 988.8333339691162,
2855     "z": "f24fb736.66a428",
2856     "wires": [
2857       [
2858         "642168d6.c96a08",
2859         "d6797517.070b08"
2860       ]
2861     ]
2862   },
2863   {
2864     "id": "cafce3b5.74fb5",
2865     "type": "block",
2866     "name": "block",
2867     "xml": "<block>\n",
2868     "atomic": "false",
2869     "comments": "",
2870     "outputs": 1,
2871     "x": 1842.0002708435059,
2872     "y": 1712.0001192092896,
2873     "z": "f24fb736.66a428",
2874     "wires": [
2875       []
2876     ]
2877   },
2878   {
2879     "id": "73f1353a.31fe0c",
2880     "type": "block",
2881     "name": "block : atomic",
2882     "xml": "<block atomic=\"true\">",
2883     "atomic": "true",
2884     "outputs": 1,
2885     "x": 1218.9688835144043,
2886     "y": 1737.0003032684326,
2887     "z": "f24fb736.66a428",
2888     "wires": [
2889       [
2890         "73456eef.45eac",
2891         "da1582e5.d9e86"
2892       ]
2893     ]
2894   },
2895   {
2896     "id": "bd2b5022.a474e",
2897     "type": "outcome",
2898     "name": "outcome PendingDelete",
2899     "xml": "<outcome value='PendingDelete'>\n",
2900     "comments": "",
2901     "outputs": 1,
2902     "x": 2293.0313415527344,
2903     "y": 552.0312976837158,
2904     "z": "f24fb736.66a428",
2905     "wires": [
2906       [
2907         "44575632.3edd28"
2908       ]
2909     ]
2910   },
2911   {
2912     "id": "44575632.3edd28",
2913     "type": "block",
2914     "name": "block",
2915     "xml": "<block>\n",
2916     "atomic": "false",
2917     "comments": "",
2918     "outputs": 1,
2919     "x": 2477.031352996826,
2920     "y": 548.0312976837158,
2921     "z": "f24fb736.66a428",
2922     "wires": [
2923       []
2924     ]
2925   },
2926   {
2927     "id": "b731c6a4.c3a218",
2928     "type": "execute",
2929     "name": "execute RestApiCallNode Get token",
2930     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
2931     "comments": "",
2932     "outputs": 1,
2933     "x": 1922.5039367675781,
2934     "y": 2044.003927230835,
2935     "z": "f24fb736.66a428",
2936     "wires": [
2937       [
2938         "ce234ab1.289298",
2939         "b6c8858.bd95c78"
2940       ]
2941     ]
2942   },
2943   {
2944     "id": "ce234ab1.289298",
2945     "type": "success",
2946     "name": "success",
2947     "xml": "<outcome value='success'>\n",
2948     "comments": "",
2949     "outputs": 1,
2950     "x": 2157.503936767578,
2951     "y": 2022.003927230835,
2952     "z": "f24fb736.66a428",
2953     "wires": [
2954       [
2955         "98d09cc3.1216f"
2956       ]
2957     ]
2958   },
2959   {
2960     "id": "b6c8858.bd95c78",
2961     "type": "failure",
2962     "name": "failure",
2963     "xml": "<outcome value='failure'>\n",
2964     "comments": "",
2965     "outputs": 1,
2966     "x": 2149.753936767578,
2967     "y": 2075.646810531616,
2968     "z": "f24fb736.66a428",
2969     "wires": [
2970       [
2971         "82c72a3.d7e47d8"
2972       ]
2973     ]
2974   },
2975   {
2976     "id": "82c72a3.d7e47d8",
2977     "type": "returnFailure",
2978     "name": "return failure",
2979     "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 executing get token rest api\" />\n",
2980     "comments": "",
2981     "x": 2302.503936767578,
2982     "y": 2075.3968715667725,
2983     "z": "f24fb736.66a428",
2984     "wires": []
2985   },
2986   {
2987     "id": "98d09cc3.1216f",
2988     "type": "set",
2989     "name": "set token-id",
2990     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
2991     "comments": "",
2992     "x": 2311.503936767578,
2993     "y": 2023.003927230835,
2994     "z": "f24fb736.66a428",
2995     "wires": []
2996   }
2997 ]