Generic resource API DG catch up
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "a77629b2.29acf8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 104.03125,
8     "y": 31.999999523162842,
9     "z": "205403e9.560efc",
10     "wires": [
11       [
12         "2a935009.ef91b"
13       ]
14     ]
15   },
16   {
17     "id": "2a935009.ef91b",
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": 316.03125381469727,
26     "y": 104.00001668930054,
27     "z": "205403e9.560efc",
28     "wires": [
29       [
30         "394d3966.f7a306"
31       ]
32     ]
33   },
34   {
35     "id": "394d3966.f7a306",
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": 304.0313720703125,
42     "y": 191.99999952316284,
43     "z": "205403e9.560efc",
44     "wires": [
45       [
46         "3355788a.12aa08"
47       ]
48     ]
49   },
50   {
51     "id": "3355788a.12aa08",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 320.0313720703125,
59     "y": 747.000244140625,
60     "z": "205403e9.560efc",
61     "wires": [
62       [
63         "3df84881.f08dd8",
64         "d2f1b91d.444978",
65         "e6d1c52b.520cc8",
66         "1587558f.923b5a",
67         "606696e.6cc0f68",
68         "6558b5c9.5b8bec",
69         "d1e1bdb5.615f1",
70         "c7d4c837.69f1a8",
71         "f3e22a0c.d8db48",
72         "cb89d188.f33cc",
73         "3bc10ee7.beb432",
74         "bef55f2e.ad6b3",
75         "36004db7.4505d2",
76         "d7f464d6.9ac5f8",
77         "a66d68ee.9308e8",
78         "9ab0f309.357b6",
79         "f9e2a4f.0cf5858",
80         "6afb5fe5.f951c",
81         "7b232ea8.d345"
82       ]
83     ]
84   },
85   {
86     "id": "3df84881.f08dd8",
87     "type": "set",
88     "name": "set tmp.ar.allotted-resource-id,etc",
89     "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",
90     "comments": "",
91     "x": 717.0248107910156,
92     "y": 145.99348640441895,
93     "z": "205403e9.560efc",
94     "wires": [
95       
96     ]
97   },
98   {
99     "id": "66bc483f.e63618",
100     "type": "comment",
101     "name": "set tmp ar-id to fetch resource from MDSAL",
102     "info": "",
103     "comments": "",
104     "x": 745.9851226806641,
105     "y": 110.02528238296509,
106     "z": "205403e9.560efc",
107     "wires": [
108       
109     ]
110   },
111   {
112     "id": "d2f1b91d.444978",
113     "type": "set",
114     "name": "set tmp.ar.self-link",
115     "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",
116     "comments": "",
117     "x": 671.0247497558594,
118     "y": 238.99349164962769,
119     "z": "205403e9.560efc",
120     "wires": [
121       
122     ]
123   },
124   {
125     "id": "c7d4c837.69f1a8",
126     "type": "execute",
127     "name": "execute Properties",
128     "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",
129     "comments": "",
130     "outputs": 1,
131     "x": 677.2866401672363,
132     "y": 326.66022062301636,
133     "z": "205403e9.560efc",
134     "wires": [
135       [
136         
137       ]
138     ]
139   },
140   {
141     "id": "e6d1c52b.520cc8",
142     "type": "execute",
143     "name": "generate allotted-resource url",
144     "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",
145     "comments": "",
146     "outputs": 1,
147     "x": 709.2866668701172,
148     "y": 414.6602020263672,
149     "z": "205403e9.560efc",
150     "wires": [
151       [
152         
153       ]
154     ]
155   },
156   {
157     "id": "1587558f.923b5a",
158     "type": "get-resource",
159     "name": "get-resource connection-attachment-allotted-resource",
160     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id/' pfx='mdsal-ar' >\n",
161     "comments": "",
162     "outputs": 1,
163     "x": 780.0247650146484,
164     "y": 504.7712607383728,
165     "z": "205403e9.560efc",
166     "wires": [
167       [
168         "9d21fc06.56c9b",
169         "b5f5dd22.5d92a"
170       ]
171     ]
172   },
173   {
174     "id": "4c5a1d8d.682774",
175     "type": "comment",
176     "name": "GET connection-attachment-allotted-resource from mdsal",
177     "info": "",
178     "comments": "",
179     "x": 786.8395614624023,
180     "y": 476.53857946395874,
181     "z": "205403e9.560efc",
182     "wires": [
183       
184     ]
185   },
186   {
187     "id": "6cf9a5a4.2b253c",
188     "type": "comment",
189     "name": "Used for setting output to API Handler",
190     "info": "",
191     "comments": "",
192     "x": 725.0247802734375,
193     "y": 205.99350118637085,
194     "z": "205403e9.560efc",
195     "wires": [
196       
197     ]
198   },
199   {
200     "id": "15f9c1a1.7257ee",
201     "type": "comment",
202     "name": "Obtain different URL, template location etc",
203     "info": "For saving resource information to MDSAL & for AAI",
204     "comments": "",
205     "x": 743.0247459411621,
206     "y": 291.88238191604614,
207     "z": "205403e9.560efc",
208     "wires": [
209       
210     ]
211   },
212   {
213     "id": "b17883ed.6bb59",
214     "type": "comment",
215     "name": "Used to Get AR by id to MDSAL, same as self-link",
216     "info": "",
217     "comments": "",
218     "x": 769.0247650146484,
219     "y": 378.88234090805054,
220     "z": "205403e9.560efc",
221     "wires": [
222       
223     ]
224   },
225   {
226     "id": "9d21fc06.56c9b",
227     "type": "success",
228     "name": "success",
229     "xml": "<outcome value='success'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1079.6979675292969,
233     "y": 489.9999918937683,
234     "z": "205403e9.560efc",
235     "wires": [
236       [
237         "a51a2d9d.383d"
238       ]
239     ]
240   },
241   {
242     "id": "a51a2d9d.383d",
243     "type": "block",
244     "name": "block: atomic",
245     "xml": "<block atomic=\"true\">\n",
246     "atomic": "false",
247     "comments": "",
248     "outputs": 1,
249     "x": 1248.6979713439941,
250     "y": 488.4998927116394,
251     "z": "205403e9.560efc",
252     "wires": [
253       [
254         "1edb162f.f7047a"
255       ]
256     ]
257   },
258   {
259     "id": "1edb162f.f7047a",
260     "type": "switchNode",
261     "name": "switch cr length",
262     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
263     "comments": "",
264     "outputs": 1,
265     "x": 1459.5552139282227,
266     "y": 488.1190218925476,
267     "z": "205403e9.560efc",
268     "wires": [
269       [
270         "2c727498.5563ec",
271         "cc396d19.c6009"
272       ]
273     ]
274   },
275   {
276     "id": "2c727498.5563ec",
277     "type": "other",
278     "name": "outcome 1",
279     "xml": "<outcome value='1'>\n",
280     "comments": "",
281     "outputs": 1,
282     "x": 1648.8885192871094,
283     "y": 488.1189799308777,
284     "z": "205403e9.560efc",
285     "wires": [
286       [
287         "94f9a14a.aa9d1"
288       ]
289     ]
290   },
291   {
292     "id": "94f9a14a.aa9d1",
293     "type": "block",
294     "name": "block: atomic",
295     "xml": "<block atomic='true'>\n",
296     "atomic": "false",
297     "comments": "",
298     "outputs": 1,
299     "x": 1833.4124088287354,
300     "y": 485.0238137245178,
301     "z": "205403e9.560efc",
302     "wires": [
303       [
304         "ccbbcb55.91af38",
305         "ca13a843.2cf298",
306         "b1755c5c.5e7d2"
307       ]
308     ]
309   },
310   {
311     "id": "151fea4f.a51286",
312     "type": "returnFailure",
313     "name": "return failure",
314     "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 resource not found\" />\n    \n",
315     "comments": "",
316     "x": 1792.5502090454102,
317     "y": 566.0660452842712,
318     "z": "205403e9.560efc",
319     "wires": [
320       
321     ]
322   },
323   {
324     "id": "b5f5dd22.5d92a",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1071.5497703552246,
331     "y": 525.0660767555237,
332     "z": "205403e9.560efc",
333     "wires": [
334       [
335         "318eef9c.54777"
336       ]
337     ]
338   },
339   {
340     "id": "318eef9c.54777",
341     "type": "block",
342     "name": "block: atomic",
343     "xml": "<block atomic=\"true\">\n",
344     "atomic": "false",
345     "comments": "",
346     "outputs": 1,
347     "x": 1251.5497207641602,
348     "y": 525.7326273918152,
349     "z": "205403e9.560efc",
350     "wires": [
351       [
352         "151fea4f.a51286"
353       ]
354     ]
355   },
356   {
357     "id": "cc396d19.c6009",
358     "type": "other",
359     "name": "other",
360     "xml": "<outcome value='Other'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1637.2164726257324,
364     "y": 525.3993401527405,
365     "z": "205403e9.560efc",
366     "wires": [
367       [
368         "151fea4f.a51286"
369       ]
370     ]
371   },
372   {
373     "id": "ccbbcb55.91af38",
374     "type": "set",
375     "name": "set connection-attachment-ar from get",
376     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
377     "comments": "",
378     "x": 2201.4758911132812,
379     "y": 454.0000534057617,
380     "z": "205403e9.560efc",
381     "wires": [
382       
383     ]
384   },
385   {
386     "id": "b1755c5c.5e7d2",
387     "type": "set",
388     "name": "set oper-status",
389     "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",
390     "comments": "",
391     "x": 2135.4759216308594,
392     "y": 527.4285559654236,
393     "z": "205403e9.560efc",
394     "wires": [
395       
396     ]
397   },
398   {
399     "id": "ca13a843.2cf298",
400     "type": "switchNode",
401     "name": "switch order-status",
402     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 2145.475700378418,
406     "y": 492.9999899864197,
407     "z": "205403e9.560efc",
408     "wires": [
409       [
410         "c5c8df87.d7496",
411         "96fbbcc4.3796a"
412       ]
413     ]
414   },
415   {
416     "id": "c5c8df87.d7496",
417     "type": "outcome",
418     "name": "outcome Created",
419     "xml": "<outcome value='Created'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 2381.075782775879,
423     "y": 487.00002098083496,
424     "z": "205403e9.560efc",
425     "wires": [
426       [
427         "88f78e4e.b4f9"
428       ]
429     ]
430   },
431   {
432     "id": "96fbbcc4.3796a",
433     "type": "outcome",
434     "name": "outcome Other",
435     "xml": "<outcome value='Other'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 2374.7902221679688,
439     "y": 526.4286289215088,
440     "z": "205403e9.560efc",
441     "wires": [
442       [
443         "935468c0.294618"
444       ]
445     ]
446   },
447   {
448     "id": "88f78e4e.b4f9",
449     "type": "block",
450     "name": "block",
451     "xml": "<block>\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 2595.546298980713,
456     "y": 488.37565517425537,
457     "z": "205403e9.560efc",
458     "wires": [
459       [
460         
461       ]
462     ]
463   },
464   {
465     "id": "935468c0.294618",
466     "type": "returnFailure",
467     "name": "return failure",
468     "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",
469     "comments": "",
470     "x": 2614.6980018615723,
471     "y": 529.0000190734863,
472     "z": "205403e9.560efc",
473     "wires": [
474       
475     ]
476   },
477   {
478     "id": "cd666072.c4472",
479     "type": "call",
480     "name": "call GENERIC-RESOURCE-API:sotn-get-request-input-param",
481     "xml": "<call module='GENERIC-RESOURCE-API' rpc='connection-attachment-get-request-input-param' mode='sync' >\n",
482     "comments": "",
483     "outputs": 1,
484     "x": 967.3342895507812,
485     "y": 594.4935550689697,
486     "z": "205403e9.560efc",
487     "wires": [
488       [
489         
490       ]
491     ]
492   },
493   {
494     "id": "f3e22a0c.d8db48",
495     "type": "block",
496     "name": "block: atomic",
497     "xml": "<block atomic=\"true\">\n",
498     "atomic": "false",
499     "comments": "",
500     "outputs": 1,
501     "x": 649.3403663635254,
502     "y": 594.4998416900635,
503     "z": "205403e9.560efc",
504     "wires": [
505       [
506         "cd666072.c4472"
507       ]
508     ]
509   },
510   {
511     "id": "606696e.6cc0f68",
512     "type": "get-resource",
513     "name": "get-resource parent-service-data",
514     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id/service-data' pfx='mdsal-psd' >\n",
515     "comments": "",
516     "outputs": 1,
517     "x": 714.0316772460938,
518     "y": 736.5316162109375,
519     "z": "205403e9.560efc",
520     "wires": [
521       [
522         "f37fbd01.3a27c",
523         "a7659493.fc2068"
524       ]
525     ]
526   },
527   {
528     "id": "3f9c5fc2.bcfea",
529     "type": "comment",
530     "name": "GET parent-service-data from mdsal to check existence of other End point",
531     "info": "",
532     "comments": "",
533     "x": 834.0316162109375,
534     "y": 665.5315551757812,
535     "z": "205403e9.560efc",
536     "wires": [
537       
538     ]
539   },
540   {
541     "id": "a4aef874.7e7e88",
542     "type": "for",
543     "name": "for pidx..mdsal-psd.provided-allotted-resources.provided-allotted-resource[]",
544     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`' >\n",
545     "comments": "",
546     "outputs": 1,
547     "x": 1723.2160968780518,
548     "y": 904.0041084289551,
549     "z": "205403e9.560efc",
550     "wires": [
551       [
552         "c0e3f5d5.ead6e8"
553       ]
554     ]
555   },
556   {
557     "id": "6558b5c9.5b8bec",
558     "type": "switchNode",
559     "name": "switch mdsal-psd.provided-allotted-resources_length",
560     "xml": "<switch test='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`'>\n",
561     "comments": "",
562     "outputs": 1,
563     "x": 780.2154541015625,
564     "y": 880.7180786132812,
565     "z": "205403e9.560efc",
566     "wires": [
567       [
568         "c8d5ad22.c170b",
569         "7c868dde.220b24",
570         "5e4728c1.e810e8"
571       ]
572     ]
573   },
574   {
575     "id": "c8d5ad22.c170b",
576     "type": "other",
577     "name": "other",
578     "xml": "<outcome value='Other'>\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 1112.3582763671875,
582     "y": 1157.5755004882812,
583     "z": "205403e9.560efc",
584     "wires": [
585       [
586         "bad30438.d05408"
587       ]
588     ]
589   },
590   {
591     "id": "3a4d0461.4005dc",
592     "type": "block",
593     "name": "block : atomic",
594     "xml": "<block atomic=\"true\">",
595     "atomic": "true",
596     "outputs": 1,
597     "x": 1306.4856853485107,
598     "y": 898.7015209197998,
599     "z": "205403e9.560efc",
600     "wires": [
601       [
602         "a4aef874.7e7e88",
603         "e5572f4b.0166d"
604       ]
605     ]
606   },
607   {
608     "id": "c0e3f5d5.ead6e8",
609     "type": "switchNode",
610     "name": "switch allotted-resource-id",
611     "xml": "<switch test=\"`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
612     "comments": "",
613     "outputs": 1,
614     "x": 2158.3274974823,
615     "y": 904.0040054321289,
616     "z": "205403e9.560efc",
617     "wires": [
618       [
619         "ac0df227.58a1c",
620         "39a3c95.9a56f36"
621       ]
622     ]
623   },
624   {
625     "id": "ac0df227.58a1c",
626     "type": "outcomeTrue",
627     "name": "true",
628     "xml": "<outcome value='true'>\n",
629     "comments": "",
630     "outputs": 1,
631     "x": 2367.1377239227295,
632     "y": 876.4684953689575,
633     "z": "205403e9.560efc",
634     "wires": [
635       [
636         "22a29502.ccff9a"
637       ]
638     ]
639   },
640   {
641     "id": "64186f05.4be35",
642     "type": "block",
643     "name": "block : atomic",
644     "xml": "<block atomic=\"true\">",
645     "atomic": "true",
646     "outputs": 1,
647     "x": 2546.8984203338623,
648     "y": 940.3256740570068,
649     "z": "205403e9.560efc",
650     "wires": [
651       [
652         "482d5120.f30ca",
653         "a13cbdb.502bd4"
654       ]
655     ]
656   },
657   {
658     "id": "482d5120.f30ca",
659     "type": "set",
660     "name": "set tmp.pidx and ptx.consumed-ar",
661     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
662     "comments": "",
663     "x": 2803.755926132202,
664     "y": 914.8971881866455,
665     "z": "205403e9.560efc",
666     "wires": [
667       
668     ]
669   },
670   {
671     "id": "a13cbdb.502bd4",
672     "type": "break",
673     "name": "break",
674     "xml": "<break>\n",
675     "comments": "",
676     "x": 2714.6166439056396,
677     "y": 961.6532039642334,
678     "z": "205403e9.560efc",
679     "wires": [
680       
681     ]
682   },
683   {
684     "id": "f72ddcab.98ba7",
685     "type": "comment",
686     "name": "Check existence of other AR in parent service data",
687     "info": "Check if other allotted resource is available.",
688     "comments": "",
689     "x": 769.993896484375,
690     "y": 814.8928833007812,
691     "z": "205403e9.560efc",
692     "wires": [
693       
694     ]
695   },
696   {
697     "id": "7c868dde.220b24",
698     "type": "other",
699     "name": "outcome 1",
700     "xml": "<outcome value='1'>\n",
701     "comments": "",
702     "outputs": 1,
703     "x": 1124.0107231140137,
704     "y": 1028.6772651672363,
705     "z": "205403e9.560efc",
706     "wires": [
707       [
708         "4884d527.f966cc"
709       ]
710     ]
711   },
712   {
713     "id": "bad30438.d05408",
714     "type": "returnFailure",
715     "name": "return failure",
716     "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 resource not found\" />\n    \n",
717     "comments": "",
718     "x": 1285.0106201171875,
719     "y": 1156.6772422790527,
720     "z": "205403e9.560efc",
721     "wires": [
722       
723     ]
724   },
725   {
726     "id": "5e4728c1.e810e8",
727     "type": "other",
728     "name": "outcome 2",
729     "xml": "<outcome value='2'>\n",
730     "comments": "",
731     "outputs": 1,
732     "x": 1132.010705947876,
733     "y": 899.6772212982178,
734     "z": "205403e9.560efc",
735     "wires": [
736       [
737         "3a4d0461.4005dc"
738       ]
739     ]
740   },
741   {
742     "id": "22a29502.ccff9a",
743     "type": "block",
744     "name": "block",
745     "xml": "<block>\n",
746     "atomic": "false",
747     "comments": "",
748     "outputs": 1,
749     "x": 2525.1219387054443,
750     "y": 875.6772384643555,
751     "z": "205403e9.560efc",
752     "wires": [
753       [
754         
755       ]
756     ]
757   },
758   {
759     "id": "39a3c95.9a56f36",
760     "type": "outcomeTrue",
761     "name": "false",
762     "xml": "<outcome value='false'>\n",
763     "comments": "",
764     "outputs": 1,
765     "x": 2366.1219387054443,
766     "y": 938.6772384643555,
767     "z": "205403e9.560efc",
768     "wires": [
769       [
770         "64186f05.4be35"
771       ]
772     ]
773   },
774   {
775     "id": "e5572f4b.0166d",
776     "type": "switchNode",
777     "name": "switch tmp.found-in-ar",
778     "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
779     "comments": "",
780     "outputs": 1,
781     "x": 1553.0106105804443,
782     "y": 975.4549942016602,
783     "z": "205403e9.560efc",
784     "wires": [
785       [
786         "23e2fd66.fcd7c2"
787       ]
788     ]
789   },
790   {
791     "id": "23e2fd66.fcd7c2",
792     "type": "outcomeTrue",
793     "name": "true",
794     "xml": "<outcome value='true'>\n",
795     "comments": "",
796     "outputs": 1,
797     "x": 1776.0106563568115,
798     "y": 974.5661640167236,
799     "z": "205403e9.560efc",
800     "wires": [
801       [
802         "8fa1eba4.3c67f8"
803       ]
804     ]
805   },
806   {
807     "id": "8fa1eba4.3c67f8",
808     "type": "block",
809     "name": "block : atomic",
810     "xml": "<block atomic=\"true\">",
811     "atomic": "true",
812     "outputs": 1,
813     "x": 1966.0106868743896,
814     "y": 974.5662136077881,
815     "z": "205403e9.560efc",
816     "wires": [
817       [
818         "5c438258.2817dc"
819       ]
820     ]
821   },
822   {
823     "id": "5c438258.2817dc",
824     "type": "get-resource",
825     "name": "get-resource provided-ar.allotted-resource",
826     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$tmp.provided-ar.allotted-resource-id/' pfx='mdsal-other-ar' >",
827     "comments": "",
828     "outputs": 1,
829     "x": 2271.4550399780273,
830     "y": 1026.5662593841553,
831     "z": "205403e9.560efc",
832     "wires": [
833       [
834         "75e596c5.28a268",
835         "3fc2682f.986b78"
836       ]
837     ]
838   },
839   {
840     "id": "75e596c5.28a268",
841     "type": "success",
842     "name": "success",
843     "xml": "<outcome value='success'>\n",
844     "comments": "",
845     "outputs": 1,
846     "x": 2571.128242492676,
847     "y": 1011.7949905395508,
848     "z": "205403e9.560efc",
849     "wires": [
850       [
851         "2d352ea7.0e12c2"
852       ]
853     ]
854   },
855   {
856     "id": "3fc2682f.986b78",
857     "type": "other",
858     "name": "other",
859     "xml": "<outcome value='Other'>\n",
860     "comments": "",
861     "outputs": 1,
862     "x": 2562.9800453186035,
863     "y": 1046.8610754013062,
864     "z": "205403e9.560efc",
865     "wires": [
866       [
867         "1ccb7b0b.274855"
868       ]
869     ]
870   },
871   {
872     "id": "abb4ba72.e83978",
873     "type": "switchNode",
874     "name": "switch mdsal-psd.networks_length",
875     "xml": "<switch test='`$mdsal-psd.networks.network_length`'>\n",
876     "comments": "",
877     "outputs": 1,
878     "x": 1550.3441162109375,
879     "y": 1127.8997802734375,
880     "z": "205403e9.560efc",
881     "wires": [
882       [
883         "7abae666.d51f58",
884         "f199acdb.1cc56"
885       ]
886     ]
887   },
888   {
889     "id": "f199acdb.1cc56",
890     "type": "other",
891     "name": "outcome 1",
892     "xml": "<outcome value='1'>\n",
893     "comments": "",
894     "outputs": 1,
895     "x": 1829.343994140625,
896     "y": 1137.78857421875,
897     "z": "205403e9.560efc",
898     "wires": [
899       [
900         "362dc46c.af4b8c"
901       ]
902     ]
903   },
904   {
905     "id": "7abae666.d51f58",
906     "type": "other",
907     "name": "other",
908     "xml": "<outcome value='Other'>\n",
909     "comments": "",
910     "outputs": 1,
911     "x": 1823.3441162109375,
912     "y": 1197.78857421875,
913     "z": "205403e9.560efc",
914     "wires": [
915       [
916         "7c1c105.99f43f"
917       ]
918     ]
919   },
920   {
921     "id": "7c1c105.99f43f",
922     "type": "returnFailure",
923     "name": "return failure",
924     "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",
925     "comments": "",
926     "x": 1979.9964599609375,
927     "y": 1198.890380859375,
928     "z": "205403e9.560efc",
929     "wires": [
930       
931     ]
932   },
933   {
934     "id": "df5ebca6.dc1ea",
935     "type": "set",
936     "name": "set tmp.network.",
937     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.networks.network[0].`' />\n",
938     "comments": "",
939     "x": 2276.7888259887695,
940     "y": 1121.7887411117554,
941     "z": "205403e9.560efc",
942     "wires": [
943       
944     ]
945   },
946   {
947     "id": "4884d527.f966cc",
948     "type": "block",
949     "name": "block : atomic",
950     "xml": "<block atomic=\"true\">",
951     "atomic": "true",
952     "outputs": 1,
953     "x": 1296.455078125,
954     "y": 1029.7885131835938,
955     "z": "205403e9.560efc",
956     "wires": [
957       [
958         "abb4ba72.e83978"
959       ]
960     ]
961   },
962   {
963     "id": "362dc46c.af4b8c",
964     "type": "block",
965     "name": "block : atomic",
966     "xml": "<block atomic=\"true\">",
967     "atomic": "true",
968     "outputs": 1,
969     "x": 2021.1217041015625,
970     "y": 1140.7884521484375,
971     "z": "205403e9.560efc",
972     "wires": [
973       [
974         "df5ebca6.dc1ea",
975         "37668a8f.d84a36"
976       ]
977     ]
978   },
979   {
980     "id": "37668a8f.d84a36",
981     "type": "for",
982     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
983     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
984     "comments": "",
985     "outputs": 1,
986     "x": 2438.1218338012695,
987     "y": 1188.7885284423828,
988     "z": "205403e9.560efc",
989     "wires": [
990       [
991         "8d783898.486c38"
992       ]
993     ]
994   },
995   {
996     "id": "8d783898.486c38",
997     "type": "block",
998     "name": "block",
999     "xml": "<block>\n",
1000     "atomic": "false",
1001     "comments": "",
1002     "outputs": 1,
1003     "x": 2809.67724609375,
1004     "y": 1221.7884521484375,
1005     "z": "205403e9.560efc",
1006     "wires": [
1007       [
1008         "f4f7612.08260a",
1009         "4421135d.084d2c",
1010         "5f144f0e.31549",
1011         "37e78cdf.278a44",
1012         "ed440eb3.36c94",
1013         "f75e941b.01edb8",
1014         "5523625.526319c",
1015         "882c3718.7bb828",
1016         "dae6d839.a75e08",
1017         "bc77042c.0ab858"
1018       ]
1019     ]
1020   },
1021   {
1022     "id": "f4f7612.08260a",
1023     "type": "switchNode",
1024     "name": "switch access-node-id",
1025     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
1026     "comments": "",
1027     "outputs": 1,
1028     "x": 3015.1881942749023,
1029     "y": 1069.7990770339966,
1030     "z": "205403e9.560efc",
1031     "wires": [
1032       [
1033         "5989197c.f6f7f8"
1034       ]
1035     ]
1036   },
1037   {
1038     "id": "5989197c.f6f7f8",
1039     "type": "outcomeTrue",
1040     "name": "true",
1041     "xml": "<outcome value='true'>\n",
1042     "comments": "",
1043     "outputs": 1,
1044     "x": 3204.1878204345703,
1045     "y": 1071.7989416122437,
1046     "z": "205403e9.560efc",
1047     "wires": [
1048       [
1049         "b51d0ed2.6b0e5"
1050       ]
1051     ]
1052   },
1053   {
1054     "id": "b51d0ed2.6b0e5",
1055     "type": "set",
1056     "name": "set tmp.found-in-network tmp.ep-available",
1057     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
1058     "comments": "",
1059     "x": 3457.1879959106445,
1060     "y": 1071.3989877700806,
1061     "z": "205403e9.560efc",
1062     "wires": [
1063       
1064     ]
1065   },
1066   {
1067     "id": "4421135d.084d2c",
1068     "type": "returnSuccess",
1069     "name": "return success",
1070     "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",
1071     "comments": "",
1072     "x": 2996.1772994995117,
1073     "y": 1526.7884120941162,
1074     "z": "205403e9.560efc",
1075     "wires": [
1076       
1077     ]
1078   },
1079   {
1080     "id": "d1e1bdb5.615f1",
1081     "type": "switchNode",
1082     "name": "switch tmp.ep-available",
1083     "xml": "<switch test='`$tmp.ep-available`'>\n",
1084     "comments": "",
1085     "outputs": 1,
1086     "x": 706.3440551757812,
1087     "y": 1292.2327880859375,
1088     "z": "205403e9.560efc",
1089     "wires": [
1090       [
1091         "32c06766.90eaa8",
1092         "3e428e4a.b1f8b2"
1093       ]
1094     ]
1095   },
1096   {
1097     "id": "3e428e4a.b1f8b2",
1098     "type": "outcomeTrue",
1099     "name": "true",
1100     "xml": "<outcome value='true'>\n",
1101     "comments": "",
1102     "outputs": 1,
1103     "x": 925.0107746124268,
1104     "y": 1341.5661449432373,
1105     "z": "205403e9.560efc",
1106     "wires": [
1107       [
1108         "5db74705.3b89f8"
1109       ]
1110     ]
1111   },
1112   {
1113     "id": "32c06766.90eaa8",
1114     "type": "outcomeTrue",
1115     "name": "false",
1116     "xml": "<outcome value='false'>\n",
1117     "comments": "",
1118     "outputs": 1,
1119     "x": 929.8995761871338,
1120     "y": 1250.5662059783936,
1121     "z": "205403e9.560efc",
1122     "wires": [
1123       [
1124         "64e7831f.72ebbc"
1125       ]
1126     ]
1127   },
1128   {
1129     "id": "64e7831f.72ebbc",
1130     "type": "block",
1131     "name": "block",
1132     "xml": "<block>\n",
1133     "atomic": "false",
1134     "comments": "",
1135     "outputs": 1,
1136     "x": 1076.8995723724365,
1137     "y": 1252.4550189971924,
1138     "z": "205403e9.560efc",
1139     "wires": [
1140       [
1141         
1142       ]
1143     ]
1144   },
1145   {
1146     "id": "5db74705.3b89f8",
1147     "type": "block",
1148     "name": "block : atomic",
1149     "xml": "<block atomic=\"true\">",
1150     "atomic": "true",
1151     "outputs": 1,
1152     "x": 1095.121862411499,
1153     "y": 1339.5661029815674,
1154     "z": "205403e9.560efc",
1155     "wires": [
1156       [
1157         "3c2f6627.61512a",
1158         "380c3c36.553114",
1159         "42f94a2e.999604"
1160       ]
1161     ]
1162   },
1163   {
1164     "id": "3c2f6627.61512a",
1165     "type": "switchNode",
1166     "name": "switch tmp.found-in-ar",
1167     "xml": "<switch test='`$tmp.found-in-ar`'>\n",
1168     "comments": "",
1169     "outputs": 1,
1170     "x": 1325.23291015625,
1171     "y": 1274.566162109375,
1172     "z": "205403e9.560efc",
1173     "wires": [
1174       [
1175         "d79615f7.087d78",
1176         "1c319701.787ef9"
1177       ]
1178     ]
1179   },
1180   {
1181     "id": "d79615f7.087d78",
1182     "type": "outcomeTrue",
1183     "name": "true",
1184     "xml": "<outcome value='true'>\n",
1185     "comments": "",
1186     "outputs": 1,
1187     "x": 1545.677282333374,
1188     "y": 1260.5661029815674,
1189     "z": "205403e9.560efc",
1190     "wires": [
1191       [
1192         "ba9cd8cc.15f248"
1193       ]
1194     ]
1195   },
1196   {
1197     "id": "1c319701.787ef9",
1198     "type": "outcomeTrue",
1199     "name": "false",
1200     "xml": "<outcome value='false'>\n",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 1546.67724609375,
1204     "y": 1306.566162109375,
1205     "z": "205403e9.560efc",
1206     "wires": [
1207       [
1208         "719bb92a.4ee018"
1209       ]
1210     ]
1211   },
1212   {
1213     "id": "ba9cd8cc.15f248",
1214     "type": "block",
1215     "name": "block : atomic",
1216     "xml": "<block atomic=\"true\">",
1217     "atomic": "true",
1218     "outputs": 1,
1219     "x": 1733.232946395874,
1220     "y": 1257.5661029815674,
1221     "z": "205403e9.560efc",
1222     "wires": [
1223       [
1224         "a6fc819d.1ebca"
1225       ]
1226     ]
1227   },
1228   {
1229     "id": "719bb92a.4ee018",
1230     "type": "block",
1231     "name": "block : atomic",
1232     "xml": "<block atomic=\"true\">",
1233     "atomic": "true",
1234     "outputs": 1,
1235     "x": 1734.23291015625,
1236     "y": 1305.566162109375,
1237     "z": "205403e9.560efc",
1238     "wires": [
1239       [
1240         "815fbac.230c748"
1241       ]
1242     ]
1243   },
1244   {
1245     "id": "25783fac.20762",
1246     "type": "comment",
1247     "name": "GET connection-attachment-ar to store AR data from mdsal",
1248     "info": "",
1249     "comments": "",
1250     "x": 2265.5040397644043,
1251     "y": 416.5039129257202,
1252     "z": "205403e9.560efc",
1253     "wires": [
1254       
1255     ]
1256   },
1257   {
1258     "id": "b02bb1b6.e7f4b",
1259     "type": "comment",
1260     "name": "Set source end point",
1261     "info": "",
1262     "comments": "",
1263     "x": 671.0039176940918,
1264     "y": 562.2539224624634,
1265     "z": "205403e9.560efc",
1266     "wires": [
1267       
1268     ]
1269   },
1270   {
1271     "id": "cb89d188.f33cc",
1272     "type": "set",
1273     "name": "set tmp.ar.parent-service-instance-id",
1274     "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",
1275     "comments": "",
1276     "x": 725,
1277     "y": 701,
1278     "z": "205403e9.560efc",
1279     "wires": [
1280       
1281     ]
1282   },
1283   {
1284     "id": "f37fbd01.3a27c",
1285     "type": "success",
1286     "name": "success",
1287     "xml": "<outcome value='success'>\n",
1288     "comments": "",
1289     "outputs": 1,
1290     "x": 961,
1291     "y": 729,
1292     "z": "205403e9.560efc",
1293     "wires": [
1294       [
1295         "204f751a.862bca"
1296       ]
1297     ]
1298   },
1299   {
1300     "id": "a7659493.fc2068",
1301     "type": "other",
1302     "name": "other",
1303     "xml": "<outcome value='Other'>\n",
1304     "comments": "",
1305     "outputs": 1,
1306     "x": 952.8518028259277,
1307     "y": 764.0660848617554,
1308     "z": "205403e9.560efc",
1309     "wires": [
1310       [
1311         "7b61e92b.2f9e78"
1312       ]
1313     ]
1314   },
1315   {
1316     "id": "7b61e92b.2f9e78",
1317     "type": "returnFailure",
1318     "name": "return failure",
1319     "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 resource not found\" />\n    \n",
1320     "comments": "",
1321     "x": 1128.00048828125,
1322     "y": 760.3334350585938,
1323     "z": "205403e9.560efc",
1324     "wires": [
1325       
1326     ]
1327   },
1328   {
1329     "id": "204f751a.862bca",
1330     "type": "block",
1331     "name": "block",
1332     "xml": "<block>\n",
1333     "atomic": "false",
1334     "comments": "",
1335     "outputs": 1,
1336     "x": 1112,
1337     "y": 727,
1338     "z": "205403e9.560efc",
1339     "wires": [
1340       [
1341         
1342       ]
1343     ]
1344   },
1345   {
1346     "id": "1ccb7b0b.274855",
1347     "type": "returnFailure",
1348     "name": "return failure",
1349     "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",
1350     "comments": "",
1351     "x": 2732.9999256134033,
1352     "y": 1048.0000953674316,
1353     "z": "205403e9.560efc",
1354     "wires": [
1355       
1356     ]
1357   },
1358   {
1359     "id": "2d352ea7.0e12c2",
1360     "type": "block",
1361     "name": "block",
1362     "xml": "<block>\n",
1363     "atomic": "false",
1364     "comments": "",
1365     "outputs": 1,
1366     "x": 2716.9999256134033,
1367     "y": 1009.0000953674316,
1368     "z": "205403e9.560efc",
1369     "wires": [
1370       [
1371         
1372       ]
1373     ]
1374   },
1375   {
1376     "id": "3bc10ee7.beb432",
1377     "type": "set",
1378     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1379     "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' />",
1380     "comments": "",
1381     "x": 817,
1382     "y": 846,
1383     "z": "205403e9.560efc",
1384     "wires": [
1385       
1386     ]
1387   },
1388   {
1389     "id": "c79a6189.fcf2c",
1390     "type": "comment",
1391     "name": "If other EP exists set destination end point",
1392     "info": "Check if other allotted resource is available.",
1393     "comments": "",
1394     "x": 757,
1395     "y": 1217,
1396     "z": "205403e9.560efc",
1397     "wires": [
1398       
1399     ]
1400   },
1401   {
1402     "id": "bac44858.bd4fb8",
1403     "type": "block",
1404     "name": "block",
1405     "xml": "<block>\n",
1406     "atomic": "false",
1407     "comments": "",
1408     "outputs": 1,
1409     "x": 1524,
1410     "y": 1423,
1411     "z": "205403e9.560efc",
1412     "wires": [
1413       [
1414         "43736465.ded50c",
1415         "1f0536d6.03d209",
1416         "1c6c8b83.e7b554",
1417         "804dff2.f416",
1418         "faab91d9.9baa6",
1419         "40922023.6161",
1420         "cce7fa52.3ac5b8",
1421         "afdc2a42.250d98"
1422       ]
1423     ]
1424   },
1425   {
1426     "id": "43736465.ded50c",
1427     "type": "switchNode",
1428     "name": "switch access-node-id",
1429     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
1430     "comments": "",
1431     "outputs": 1,
1432     "x": 1760.51025390625,
1433     "y": 1356.0103759765625,
1434     "z": "205403e9.560efc",
1435     "wires": [
1436       [
1437         "327e9777.bfc4d8"
1438       ]
1439     ]
1440   },
1441   {
1442     "id": "1f0536d6.03d209",
1443     "type": "returnSuccess",
1444     "name": "return success",
1445     "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",
1446     "comments": "",
1447     "x": 1733.5002059936523,
1448     "y": 1661.0003395080566,
1449     "z": "205403e9.560efc",
1450     "wires": [
1451       
1452     ]
1453   },
1454   {
1455     "id": "1c6c8b83.e7b554",
1456     "type": "switchNode",
1457     "name": "switch access-ltp-id",
1458     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
1459     "comments": "",
1460     "outputs": 1,
1461     "x": 1752.0000839233398,
1462     "y": 1399.777907371521,
1463     "z": "205403e9.560efc",
1464     "wires": [
1465       [
1466         "a140ea29.0beb08"
1467       ]
1468     ]
1469   },
1470   {
1471     "id": "804dff2.f416",
1472     "type": "switchNode",
1473     "name": "switch clientSignal",
1474     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
1475     "comments": "",
1476     "outputs": 1,
1477     "x": 1746.0001220703125,
1478     "y": 1445.7779541015625,
1479     "z": "205403e9.560efc",
1480     "wires": [
1481       [
1482         "ce02a989.0990f8"
1483       ]
1484     ]
1485   },
1486   {
1487     "id": "faab91d9.9baa6",
1488     "type": "switchNode",
1489     "name": "switch cVLAN",
1490     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
1491     "comments": "",
1492     "outputs": 1,
1493     "x": 1729.9896240234375,
1494     "y": 1484.7674560546875,
1495     "z": "205403e9.560efc",
1496     "wires": [
1497       [
1498         "f26df0a2.edf49"
1499       ]
1500     ]
1501   },
1502   {
1503     "id": "327e9777.bfc4d8",
1504     "type": "outcomeTrue",
1505     "name": "true",
1506     "xml": "<outcome value='true'>\n",
1507     "comments": "",
1508     "outputs": 1,
1509     "x": 1938.22216796875,
1510     "y": 1356.666748046875,
1511     "z": "205403e9.560efc",
1512     "wires": [
1513       [
1514         "ded3a3b2.bb6de"
1515       ]
1516     ]
1517   },
1518   {
1519     "id": "ded3a3b2.bb6de",
1520     "type": "set",
1521     "name": "set dst-access-node-id",
1522     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
1523     "comments": "",
1524     "x": 2111.22216796875,
1525     "y": 1356.2667236328125,
1526     "z": "205403e9.560efc",
1527     "wires": [
1528       
1529     ]
1530   },
1531   {
1532     "id": "a140ea29.0beb08",
1533     "type": "outcomeTrue",
1534     "name": "true",
1535     "xml": "<outcome value='true'>\n",
1536     "comments": "",
1537     "outputs": 1,
1538     "x": 1933.7120361328125,
1539     "y": 1399.4342041015625,
1540     "z": "205403e9.560efc",
1541     "wires": [
1542       [
1543         "d26fb8e0.ff59f8"
1544       ]
1545     ]
1546   },
1547   {
1548     "id": "ce02a989.0990f8",
1549     "type": "outcomeTrue",
1550     "name": "true",
1551     "xml": "<outcome value='true'>\n",
1552     "comments": "",
1553     "outputs": 1,
1554     "x": 1933.7120361328125,
1555     "y": 1445.4342041015625,
1556     "z": "205403e9.560efc",
1557     "wires": [
1558       [
1559         "ee911b75.034b28"
1560       ]
1561     ]
1562   },
1563   {
1564     "id": "f26df0a2.edf49",
1565     "type": "outcomeTrue",
1566     "name": "true",
1567     "xml": "<outcome value='true'>\n",
1568     "comments": "",
1569     "outputs": 1,
1570     "x": 1933.7015380859375,
1571     "y": 1484.423828125,
1572     "z": "205403e9.560efc",
1573     "wires": [
1574       [
1575         "16f5641b.4b39fc"
1576       ]
1577     ]
1578   },
1579   {
1580     "id": "380c3c36.553114",
1581     "type": "for",
1582     "name": "for idx..tmp.ep.parameters[]",
1583     "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`' >",
1584     "comments": "",
1585     "outputs": 1,
1586     "x": 1342,
1587     "y": 1356,
1588     "z": "205403e9.560efc",
1589     "wires": [
1590       [
1591         "bac44858.bd4fb8"
1592       ]
1593     ]
1594   },
1595   {
1596     "id": "a6fc819d.1ebca",
1597     "type": "set",
1598     "name": "set tmp.ep.parameters",
1599     "xml": "<set>\n<parameter name='tmp.ep.parameters' value='`$mdsal-other-ar.allotted-resource-data.connection-attachment-topology.connection-attachment-parameters`' />",
1600     "comments": "",
1601     "x": 1945,
1602     "y": 1257,
1603     "z": "205403e9.560efc",
1604     "wires": [
1605       
1606     ]
1607   },
1608   {
1609     "id": "815fbac.230c748",
1610     "type": "set",
1611     "name": "set tmp.ep.parameters",
1612     "xml": "<set>\n<parameter name='tmp.ep.parameters' value='`$tmp.network.network-data.network-request-input.network-input-parameters`' />\n",
1613     "comments": "",
1614     "x": 1945.999963760376,
1615     "y": 1301.0000591278076,
1616     "z": "205403e9.560efc",
1617     "wires": [
1618       
1619     ]
1620   },
1621   {
1622     "id": "d26fb8e0.ff59f8",
1623     "type": "set",
1624     "name": "set dst-access-node-id",
1625     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
1626     "comments": "",
1627     "x": 2111,
1628     "y": 1399,
1629     "z": "205403e9.560efc",
1630     "wires": [
1631       
1632     ]
1633   },
1634   {
1635     "id": "ee911b75.034b28",
1636     "type": "set",
1637     "name": "set dst-clientSignal",
1638     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
1639     "comments": "",
1640     "x": 2105,
1641     "y": 1443,
1642     "z": "205403e9.560efc",
1643     "wires": [
1644       
1645     ]
1646   },
1647   {
1648     "id": "16f5641b.4b39fc",
1649     "type": "set",
1650     "name": "set dst-cVLAN",
1651     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
1652     "comments": "",
1653     "x": 2096,
1654     "y": 1482,
1655     "z": "205403e9.560efc",
1656     "wires": [
1657       
1658     ]
1659   },
1660   {
1661     "id": "42f94a2e.999604",
1662     "type": "block",
1663     "name": "block : atomic",
1664     "xml": "<block atomic=\"true\">",
1665     "atomic": "true",
1666     "outputs": 1,
1667     "x": 736,
1668     "y": 1584,
1669     "z": "205403e9.560efc",
1670     "wires": [
1671       [
1672         "cb687dc5.52b2d",
1673         "4ed51df6.e8ec54"
1674       ]
1675     ]
1676   },
1677   {
1678     "id": "164aff86.323ed",
1679     "type": "comment",
1680     "name": "Get controller info and send request",
1681     "info": "",
1682     "comments": "",
1683     "x": 686,
1684     "y": 1546,
1685     "z": "205403e9.560efc",
1686     "wires": [
1687       
1688     ]
1689   },
1690   {
1691     "id": "9edea41a.d68a58",
1692     "type": "execute",
1693     "name": "execute RestApiCallNode Create ethernet Service",
1694     "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.openecomp.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`\" />",
1695     "comments": "",
1696     "outputs": 1,
1697     "x": 1379.0000305175781,
1698     "y": 2062.0007610321045,
1699     "z": "205403e9.560efc",
1700     "wires": [
1701       [
1702         "616e1655.379198",
1703         "b0089735.e037f8"
1704       ]
1705     ]
1706   },
1707   {
1708     "id": "616e1655.379198",
1709     "type": "success",
1710     "name": "success",
1711     "xml": "<outcome value='success'>\n",
1712     "comments": "",
1713     "outputs": 1,
1714     "x": 1666.0000228881836,
1715     "y": 2083.0007104873657,
1716     "z": "205403e9.560efc",
1717     "wires": [
1718       [
1719         "96c14b60.8835b8"
1720       ]
1721     ]
1722   },
1723   {
1724     "id": "96c14b60.8835b8",
1725     "type": "block",
1726     "name": "block : atomic",
1727     "xml": "<block atomic=\"true\">",
1728     "atomic": "true",
1729     "comments": "",
1730     "outputs": 1,
1731     "x": 1835.9999618530273,
1732     "y": 2086.0007104873657,
1733     "z": "205403e9.560efc",
1734     "wires": [
1735       [
1736         
1737       ]
1738     ]
1739   },
1740   {
1741     "id": "a39478d4.ff01e8",
1742     "type": "returnFailure",
1743     "name": "return failure",
1744     "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",
1745     "comments": "",
1746     "x": 1836.0000839233398,
1747     "y": 2042.0007104873657,
1748     "z": "205403e9.560efc",
1749     "wires": [
1750       
1751     ]
1752   },
1753   {
1754     "id": "b0089735.e037f8",
1755     "type": "failure",
1756     "name": "failure",
1757     "xml": "<outcome value='failure'>\n",
1758     "comments": "",
1759     "outputs": 1,
1760     "x": 1668.9999618530273,
1761     "y": 2042.0007104873657,
1762     "z": "205403e9.560efc",
1763     "wires": [
1764       [
1765         "a39478d4.ff01e8"
1766       ]
1767     ]
1768   },
1769   {
1770     "id": "ed031fec.cf219",
1771     "type": "failure",
1772     "name": "failure",
1773     "xml": "<outcome value='failure'>\n",
1774     "comments": "",
1775     "outputs": 1,
1776     "x": 1018.7622451782227,
1777     "y": 2481.953144431114,
1778     "z": "205403e9.560efc",
1779     "wires": [
1780       [
1781         "2bd27313.7e4a0c"
1782       ]
1783     ]
1784   },
1785   {
1786     "id": "2bd27313.7e4a0c",
1787     "type": "returnFailure",
1788     "name": "return failure",
1789     "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",
1790     "comments": "",
1791     "x": 1185.2861251831055,
1792     "y": 2493.572215437889,
1793     "z": "205403e9.560efc",
1794     "wires": [
1795       
1796     ]
1797   },
1798   {
1799     "id": "581d8c50.26f904",
1800     "type": "failure",
1801     "name": "not-found",
1802     "xml": "<outcome value='not-found'>\n",
1803     "comments": "",
1804     "outputs": 1,
1805     "x": 1025.8575325012207,
1806     "y": 2514.715112090111,
1807     "z": "205403e9.560efc",
1808     "wires": [
1809       [
1810         "2bd27313.7e4a0c"
1811       ]
1812     ]
1813   },
1814   {
1815     "id": "9aeb74dd.a24a08",
1816     "type": "comment",
1817     "name": "Save Resource to AAI",
1818     "info": "",
1819     "comments": "",
1820     "x": 737.8099594116211,
1821     "y": 2464.302532672882,
1822     "z": "205403e9.560efc",
1823     "wires": [
1824       
1825     ]
1826   },
1827   {
1828     "id": "9158a090.142c2",
1829     "type": "comment",
1830     "name": "TODO: Rework after confirmation from AAI",
1831     "info": "",
1832     "comments": "",
1833     "x": 1038.1688690185547,
1834     "y": 2441.873571395874,
1835     "z": "205403e9.560efc",
1836     "wires": [
1837       
1838     ]
1839   },
1840   {
1841     "id": "f9e2a4f.0cf5858",
1842     "type": "set",
1843     "name": "set output to api handler",
1844     "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",
1845     "comments": "",
1846     "x": 752.5776557922363,
1847     "y": 2385.828013896942,
1848     "z": "205403e9.560efc",
1849     "wires": [
1850       
1851     ]
1852   },
1853   {
1854     "id": "6afb5fe5.f951c",
1855     "type": "returnSuccess",
1856     "name": "return success",
1857     "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",
1858     "comments": "",
1859     "x": 720.9907379150391,
1860     "y": 2546.443766117096,
1861     "z": "205403e9.560efc",
1862     "wires": [
1863       
1864     ]
1865   },
1866   {
1867     "id": "9ab0f309.357b6",
1868     "type": "execute",
1869     "name": "execute RestApiCallNode - PUT AR by id",
1870     "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",
1871     "comments": "",
1872     "outputs": 1,
1873     "x": 802.309757232666,
1874     "y": 2293.4687876701355,
1875     "z": "205403e9.560efc",
1876     "wires": [
1877       [
1878         "cf614e80.0a4b3",
1879         "6d53da86.669ad4",
1880         "131ccd05.2f3143"
1881       ]
1882     ]
1883   },
1884   {
1885     "id": "cf614e80.0a4b3",
1886     "type": "not-found",
1887     "name": "not-found",
1888     "xml": "<outcome value='not-found'>\n",
1889     "comments": "",
1890     "outputs": 1,
1891     "x": 1070.9511337280273,
1892     "y": 2344.8001994118094,
1893     "z": "205403e9.560efc",
1894     "wires": [
1895       [
1896         "ef1dfc84.71501"
1897       ]
1898     ]
1899   },
1900   {
1901     "id": "6d53da86.669ad4",
1902     "type": "failure",
1903     "name": "failure",
1904     "xml": "<outcome value='failure'>\n",
1905     "comments": "",
1906     "outputs": 1,
1907     "x": 1061.9511833190918,
1908     "y": 2313.300225161016,
1909     "z": "205403e9.560efc",
1910     "wires": [
1911       [
1912         "ef1dfc84.71501"
1913       ]
1914     ]
1915   },
1916   {
1917     "id": "131ccd05.2f3143",
1918     "type": "success",
1919     "name": "success",
1920     "xml": "<outcome value='success'>\n",
1921     "comments": "",
1922     "outputs": 1,
1923     "x": 1065.7012214660645,
1924     "y": 2283.6573300361633,
1925     "z": "205403e9.560efc",
1926     "wires": [
1927       [
1928         "e18bb85.a259b48"
1929       ]
1930     ]
1931   },
1932   {
1933     "id": "ef1dfc84.71501",
1934     "type": "returnFailure",
1935     "name": "return failure",
1936     "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",
1937     "comments": "",
1938     "x": 1231.7012214660645,
1939     "y": 2314.050249002874,
1940     "z": "205403e9.560efc",
1941     "wires": [
1942       
1943     ]
1944   },
1945   {
1946     "id": "e18bb85.a259b48",
1947     "type": "block",
1948     "name": "block",
1949     "xml": "<block>\n",
1950     "atomic": "false",
1951     "comments": "",
1952     "outputs": 1,
1953     "x": 1207.3571891784668,
1954     "y": 2279.8494992256165,
1955     "z": "205403e9.560efc",
1956     "wires": [
1957       [
1958         
1959       ]
1960     ]
1961   },
1962   {
1963     "id": "bef55f2e.ad6b3",
1964     "type": "set",
1965     "name": "set ar-data",
1966     "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.` \" />",
1967     "comments": "",
1968     "x": 707.5233535766602,
1969     "y": 2144.849767923355,
1970     "z": "205403e9.560efc",
1971     "wires": [
1972       
1973     ]
1974   },
1975   {
1976     "id": "d7f464d6.9ac5f8",
1977     "type": "execute",
1978     "name": "execute getTime",
1979     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1980     "comments": "",
1981     "outputs": 1,
1982     "x": 724.809196472168,
1983     "y": 2217.4693655967712,
1984     "z": "205403e9.560efc",
1985     "wires": [
1986       [
1987         
1988       ]
1989     ]
1990   },
1991   {
1992     "id": "a66d68ee.9308e8",
1993     "type": "set",
1994     "name": "set allotted-resource-oper-status",
1995     "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",
1996     "comments": "",
1997     "x": 774.7962760925293,
1998     "y": 2254.420445919037,
1999     "z": "205403e9.560efc",
2000     "wires": [
2001       
2002     ]
2003   },
2004   {
2005     "id": "36004db7.4505d2",
2006     "type": "set",
2007     "name": "set model-data",
2008     "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.` \" />",
2009     "comments": "",
2010     "x": 721.3648948669434,
2011     "y": 2184.0244183540344,
2012     "z": "205403e9.560efc",
2013     "wires": [
2014       
2015     ]
2016   },
2017   {
2018     "id": "8c652fd0.4d9e2",
2019     "type": "comment",
2020     "name": "Prepare data for allotted-resource addition to MDSAL",
2021     "info": "This will add to allotted-resource which is present inside service.",
2022     "comments": "",
2023     "x": 834.698356628418,
2024     "y": 2105.0243704319,
2025     "z": "205403e9.560efc",
2026     "wires": [
2027       
2028     ]
2029   },
2030   {
2031     "id": "69186aa2.60ef84",
2032     "type": "comment",
2033     "name": "Add to allotted-resources in mdsal",
2034     "info": "",
2035     "comments": "",
2036     "x": 776.2781829833984,
2037     "y": 2072.437672138214,
2038     "z": "205403e9.560efc",
2039     "wires": [
2040       
2041     ]
2042   },
2043   {
2044     "id": "7b232ea8.d345",
2045     "type": "update",
2046     "name": "update AAI allotted-resource",
2047     "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.allotted-resource-information.parent-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",
2048     "comments": "",
2049     "outputs": 1,
2050     "x": 764.2542381286621,
2051     "y": 2501.754675388336,
2052     "z": "205403e9.560efc",
2053     "wires": [
2054       [
2055         "ed031fec.cf219",
2056         "581d8c50.26f904"
2057       ]
2058     ]
2059   },
2060   {
2061     "id": "cb687dc5.52b2d",
2062     "type": "execute",
2063     "name": "execute RestApiCallNode getPath from OOF",
2064     "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.openecomp.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`\" />",
2065     "comments": "",
2066     "outputs": 1,
2067     "x": 1043.0040130615234,
2068     "y": 1572.2544918060303,
2069     "z": "205403e9.560efc",
2070     "wires": [
2071       [
2072         "e275a7ba.f6ec08",
2073         "ec20f395.66c91"
2074       ]
2075     ]
2076   },
2077   {
2078     "id": "e275a7ba.f6ec08",
2079     "type": "success",
2080     "name": "success",
2081     "xml": "<outcome value='success'>\n",
2082     "comments": "",
2083     "outputs": 1,
2084     "x": 1350.0039558410645,
2085     "y": 1593.2543387413025,
2086     "z": "205403e9.560efc",
2087     "wires": [
2088       [
2089         "d000e963.b327a8"
2090       ]
2091     ]
2092   },
2093   {
2094     "id": "d000e963.b327a8",
2095     "type": "block",
2096     "name": "block : atomic",
2097     "xml": "<block atomic=\"true\">",
2098     "atomic": "true",
2099     "comments": "",
2100     "outputs": 1,
2101     "x": 1520.0038948059082,
2102     "y": 1596.2543387413025,
2103     "z": "205403e9.560efc",
2104     "wires": [
2105       [
2106         
2107       ]
2108     ]
2109   },
2110   {
2111     "id": "773ede9b.4ecb",
2112     "type": "returnFailure",
2113     "name": "return failure",
2114     "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",
2115     "comments": "",
2116     "x": 1520.0040168762207,
2117     "y": 1552.2543387413025,
2118     "z": "205403e9.560efc",
2119     "wires": [
2120       
2121     ]
2122   },
2123   {
2124     "id": "ec20f395.66c91",
2125     "type": "failure",
2126     "name": "failure",
2127     "xml": "<outcome value='failure'>\n",
2128     "comments": "",
2129     "outputs": 1,
2130     "x": 1353.0038948059082,
2131     "y": 1552.2543387413025,
2132     "z": "205403e9.560efc",
2133     "wires": [
2134       [
2135         "773ede9b.4ecb"
2136       ]
2137     ]
2138   },
2139   {
2140     "id": "461ac2a4.5bdfec",
2141     "type": "comment",
2142     "name": "Get VPNs from OOF",
2143     "info": "",
2144     "comments": "",
2145     "x": 963.0079040527344,
2146     "y": 1535.2584590911865,
2147     "z": "205403e9.560efc",
2148     "wires": [
2149       
2150     ]
2151   },
2152   {
2153     "id": "4ed51df6.e8ec54",
2154     "type": "for",
2155     "name": "for vidx..oof.vpns_length[]",
2156     "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
2157     "comments": "",
2158     "outputs": 1,
2159     "x": 994.0039024353027,
2160     "y": 1656.5040574073792,
2161     "z": "205403e9.560efc",
2162     "wires": [
2163       [
2164         "fa8596fd.dc6fb8"
2165       ]
2166     ]
2167   },
2168   {
2169     "id": "9e6cff97.3e047",
2170     "type": "comment",
2171     "name": "Loop through VPN and configure them",
2172     "info": "",
2173     "comments": "",
2174     "x": 1016.004020690918,
2175     "y": 1620.0043177604675,
2176     "z": "205403e9.560efc",
2177     "wires": [
2178       
2179     ]
2180   },
2181   {
2182     "id": "5f144f0e.31549",
2183     "type": "switchNode",
2184     "name": "switch name",
2185     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
2186     "comments": "",
2187     "outputs": 1,
2188     "x": 2994.7882919311523,
2189     "y": 1167.1217517852783,
2190     "z": "205403e9.560efc",
2191     "wires": [
2192       [
2193         "36d080c6.aaac9"
2194       ]
2195     ]
2196   },
2197   {
2198     "id": "36d080c6.aaac9",
2199     "type": "outcomeTrue",
2200     "name": "true",
2201     "xml": "<outcome value='true'>\n",
2202     "comments": "",
2203     "outputs": 1,
2204     "x": 3181.788299560547,
2205     "y": 1161.1216888427734,
2206     "z": "205403e9.560efc",
2207     "wires": [
2208       [
2209         "dd94e80d.e79a58"
2210       ]
2211     ]
2212   },
2213   {
2214     "id": "dd94e80d.e79a58",
2215     "type": "set",
2216     "name": "set etht-svc-name & bandwidth-profile-name",
2217     "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n<parameter name='prop.global.sotn.bandwidth-profile-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2218     "comments": "",
2219     "x": 3443.788589477539,
2220     "y": 1147.721715927124,
2221     "z": "205403e9.560efc",
2222     "wires": [
2223       
2224     ]
2225   },
2226   {
2227     "id": "37e78cdf.278a44",
2228     "type": "switchNode",
2229     "name": "switch description",
2230     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'description'`\">\n",
2231     "comments": "",
2232     "outputs": 1,
2233     "x": 3005.627960205078,
2234     "y": 1205.1216869354248,
2235     "z": "205403e9.560efc",
2236     "wires": [
2237       [
2238         "87cfc59c.1be938"
2239       ]
2240     ]
2241   },
2242   {
2243     "id": "87cfc59c.1be938",
2244     "type": "outcomeTrue",
2245     "name": "true",
2246     "xml": "<outcome value='true'>\n",
2247     "comments": "",
2248     "outputs": 1,
2249     "x": 3175.627960205078,
2250     "y": 1201.1216869354248,
2251     "z": "205403e9.560efc",
2252     "wires": [
2253       [
2254         "af30cb49.aad268"
2255       ]
2256     ]
2257   },
2258   {
2259     "id": "af30cb49.aad268",
2260     "type": "set",
2261     "name": "set etht-svc-descr",
2262     "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2263     "comments": "",
2264     "x": 3362.961400985718,
2265     "y": 1199.5828437805176,
2266     "z": "205403e9.560efc",
2267     "wires": [
2268       
2269     ]
2270   },
2271   {
2272     "id": "ed440eb3.36c94",
2273     "type": "switchNode",
2274     "name": "switch tenantId",
2275     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'tenantId'`\">\n",
2276     "comments": "",
2277     "outputs": 1,
2278     "x": 2991.010353088379,
2279     "y": 1251.455090522766,
2280     "z": "205403e9.560efc",
2281     "wires": [
2282       [
2283         "824d6eab.2a9f8"
2284       ]
2285     ]
2286   },
2287   {
2288     "id": "824d6eab.2a9f8",
2289     "type": "outcomeTrue",
2290     "name": "true",
2291     "xml": "<outcome value='true'>\n",
2292     "comments": "",
2293     "outputs": 1,
2294     "x": 3183.010341644287,
2295     "y": 1244.4550142288208,
2296     "z": "205403e9.560efc",
2297     "wires": [
2298       [
2299         "58ea9e80.950b3"
2300       ]
2301     ]
2302   },
2303   {
2304     "id": "58ea9e80.950b3",
2305     "type": "set",
2306     "name": "set tenantId",
2307     "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2308     "comments": "",
2309     "x": 3351.010341644287,
2310     "y": 1245.0550203323364,
2311     "z": "205403e9.560efc",
2312     "wires": [
2313       
2314     ]
2315   },
2316   {
2317     "id": "5523625.526319c",
2318     "type": "switchNode",
2319     "name": "switch CIR",
2320     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'CIR'`\">\n",
2321     "comments": "",
2322     "outputs": 1,
2323     "x": 2977.849998474121,
2324     "y": 1338.455072402954,
2325     "z": "205403e9.560efc",
2326     "wires": [
2327       [
2328         "6cc5147d.9f838c"
2329       ]
2330     ]
2331   },
2332   {
2333     "id": "6cc5147d.9f838c",
2334     "type": "outcomeTrue",
2335     "name": "true",
2336     "xml": "<outcome value='true'>\n",
2337     "comments": "",
2338     "outputs": 1,
2339     "x": 3185.850067138672,
2340     "y": 1334.4550857543945,
2341     "z": "205403e9.560efc",
2342     "wires": [
2343       [
2344         "5119c20c.53e31c"
2345       ]
2346     ]
2347   },
2348   {
2349     "id": "5119c20c.53e31c",
2350     "type": "set",
2351     "name": "set cir",
2352     "xml": "<set>\n<parameter name='prop.sotn.cir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2353     "comments": "",
2354     "x": 3335.1833877563477,
2355     "y": 1332.9162330627441,
2356     "z": "205403e9.560efc",
2357     "wires": [
2358       
2359     ]
2360   },
2361   {
2362     "id": "f75e941b.01edb8",
2363     "type": "switchNode",
2364     "name": "switch vpnType",
2365     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'vpnType'`\">\n",
2366     "comments": "",
2367     "outputs": 1,
2368     "x": 2997.1584701538086,
2369     "y": 1292.2327914237976,
2370     "z": "205403e9.560efc",
2371     "wires": [
2372       [
2373         "94f8c651.7d4c68"
2374       ]
2375     ]
2376   },
2377   {
2378     "id": "94f8c651.7d4c68",
2379     "type": "outcomeTrue",
2380     "name": "true",
2381     "xml": "<outcome value='true'>\n",
2382     "comments": "",
2383     "outputs": 1,
2384     "x": 3184.1584701538086,
2385     "y": 1288.2327914237976,
2386     "z": "205403e9.560efc",
2387     "wires": [
2388       [
2389         "a2401fbd.0e5a6"
2390       ]
2391     ]
2392   },
2393   {
2394     "id": "a2401fbd.0e5a6",
2395     "type": "set",
2396     "name": "set vpnType",
2397     "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2398     "comments": "",
2399     "x": 3353.49210357666,
2400     "y": 1285.693956375122,
2401     "z": "205403e9.560efc",
2402     "wires": [
2403       
2404     ]
2405   },
2406   {
2407     "id": "882c3718.7bb828",
2408     "type": "switchNode",
2409     "name": "switch EIR",
2410     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'EIR'`\">\n",
2411     "comments": "",
2412     "outputs": 1,
2413     "x": 2979.140449523926,
2414     "y": 1381.1529388427734,
2415     "z": "205403e9.560efc",
2416     "wires": [
2417       [
2418         "6a090cfc.b29bc4"
2419       ]
2420     ]
2421   },
2422   {
2423     "id": "6a090cfc.b29bc4",
2424     "type": "outcomeTrue",
2425     "name": "true",
2426     "xml": "<outcome value='true'>\n",
2427     "comments": "",
2428     "outputs": 1,
2429     "x": 3181.140411376953,
2430     "y": 1376.152958869934,
2431     "z": "205403e9.560efc",
2432     "wires": [
2433       [
2434         "7cfdc8c0.796128"
2435       ]
2436     ]
2437   },
2438   {
2439     "id": "7cfdc8c0.796128",
2440     "type": "set",
2441     "name": "set eir",
2442     "xml": "<set>\n<parameter name='prop.global.sotn.eir' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2443     "comments": "",
2444     "x": 3337.4739151000977,
2445     "y": 1375.614094734192,
2446     "z": "205403e9.560efc",
2447     "wires": [
2448       
2449     ]
2450   },
2451   {
2452     "id": "dae6d839.a75e08",
2453     "type": "switchNode",
2454     "name": "switch color-aware",
2455     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'color-aware'`\">\n",
2456     "comments": "",
2457     "outputs": 1,
2458     "x": 3006.1407203674316,
2459     "y": 1435.152904510498,
2460     "z": "205403e9.560efc",
2461     "wires": [
2462       [
2463         "1c170ed.c3c73f1"
2464       ]
2465     ]
2466   },
2467   {
2468     "id": "1c170ed.c3c73f1",
2469     "type": "outcomeTrue",
2470     "name": "true",
2471     "xml": "<outcome value='true'>\n",
2472     "comments": "",
2473     "outputs": 1,
2474     "x": 3184.140724182129,
2475     "y": 1429.1528968811035,
2476     "z": "205403e9.560efc",
2477     "wires": [
2478       [
2479         "aafef618.cfb6d8"
2480       ]
2481     ]
2482   },
2483   {
2484     "id": "aafef618.cfb6d8",
2485     "type": "set",
2486     "name": "set colorAware",
2487     "xml": "<set>\n<parameter name='prop.global.sotn.colorAware' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2488     "comments": "",
2489     "x": 3365.4741020202637,
2490     "y": 1428.614055633545,
2491     "z": "205403e9.560efc",
2492     "wires": [
2493       
2494     ]
2495   },
2496   {
2497     "id": "bc77042c.0ab858",
2498     "type": "switchNode",
2499     "name": "switch coupling-flag",
2500     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].name == 'coupling-flag'`\">\n",
2501     "comments": "",
2502     "outputs": 1,
2503     "x": 3006.140727996826,
2504     "y": 1481.1529293060303,
2505     "z": "205403e9.560efc",
2506     "wires": [
2507       [
2508         "9c20abd0.a9e0c8"
2509       ]
2510     ]
2511   },
2512   {
2513     "id": "9c20abd0.a9e0c8",
2514     "type": "outcomeTrue",
2515     "name": "true",
2516     "xml": "<outcome value='true'>\n",
2517     "comments": "",
2518     "outputs": 1,
2519     "x": 3184.1407203674316,
2520     "y": 1473.1528978347778,
2521     "z": "205403e9.560efc",
2522     "wires": [
2523       [
2524         "28950acd.c17166"
2525       ]
2526     ]
2527   },
2528   {
2529     "id": "28950acd.c17166",
2530     "type": "set",
2531     "name": "set couplingFlag",
2532     "xml": "<set>\n<parameter name='prop.global.sotn.couplingFlag' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
2533     "comments": "",
2534     "x": 3369.4741020202637,
2535     "y": 1473.6140804290771,
2536     "z": "205403e9.560efc",
2537     "wires": [
2538       
2539     ]
2540   },
2541   {
2542     "id": "dddada55.283bb8",
2543     "type": "comment",
2544     "name": "Check if other EP exists in SOTNConnectionResource",
2545     "info": "",
2546     "comments": "",
2547     "x": 3109.3440551757812,
2548     "y": 1034.7883319854736,
2549     "z": "205403e9.560efc",
2550     "wires": [
2551       
2552     ]
2553   },
2554   {
2555     "id": "e2fb1fc.98e08e",
2556     "type": "comment",
2557     "name": "Get other global parameters from network",
2558     "info": "",
2559     "comments": "",
2560     "x": 3080.3438568115234,
2561     "y": 1126.7882843017578,
2562     "z": "205403e9.560efc",
2563     "wires": [
2564       
2565     ]
2566   },
2567   {
2568     "id": "40922023.6161",
2569     "type": "switchNode",
2570     "name": "switch access-provider-id",
2571     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
2572     "comments": "",
2573     "outputs": 1,
2574     "x": 1767.56591796875,
2575     "y": 1530.232666015625,
2576     "z": "205403e9.560efc",
2577     "wires": [
2578       [
2579         "dcc5b1ab.d080a"
2580       ]
2581     ]
2582   },
2583   {
2584     "id": "dcc5b1ab.d080a",
2585     "type": "outcomeTrue",
2586     "name": "true",
2587     "xml": "<outcome value='true'>\n",
2588     "comments": "",
2589     "outputs": 1,
2590     "x": 1954.56591796875,
2591     "y": 1526.232666015625,
2592     "z": "205403e9.560efc",
2593     "wires": [
2594       [
2595         "61749b73.8eae04"
2596       ]
2597     ]
2598   },
2599   {
2600     "id": "61749b73.8eae04",
2601     "type": "set",
2602     "name": "set access-provider-id",
2603     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2604     "comments": "",
2605     "x": 2122.56591796875,
2606     "y": 1526.8326721191406,
2607     "z": "205403e9.560efc",
2608     "wires": [
2609       
2610     ]
2611   },
2612   {
2613     "id": "cce7fa52.3ac5b8",
2614     "type": "switchNode",
2615     "name": "switch access-client-id",
2616     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
2617     "comments": "",
2618     "outputs": 1,
2619     "x": 1758.565933227539,
2620     "y": 1573.2431144714355,
2621     "z": "205403e9.560efc",
2622     "wires": [
2623       [
2624         "17cba761.8a69d9"
2625       ]
2626     ]
2627   },
2628   {
2629     "id": "17cba761.8a69d9",
2630     "type": "outcomeTrue",
2631     "name": "true",
2632     "xml": "<outcome value='true'>\n",
2633     "comments": "",
2634     "outputs": 1,
2635     "x": 1945.565933227539,
2636     "y": 1569.2431144714355,
2637     "z": "205403e9.560efc",
2638     "wires": [
2639       [
2640         "e72fdf36.f1b28"
2641       ]
2642     ]
2643   },
2644   {
2645     "id": "e72fdf36.f1b28",
2646     "type": "set",
2647     "name": "set access-client-id",
2648     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2649     "comments": "",
2650     "x": 2113.565933227539,
2651     "y": 1569.8431205749512,
2652     "z": "205403e9.560efc",
2653     "wires": [
2654       
2655     ]
2656   },
2657   {
2658     "id": "afdc2a42.250d98",
2659     "type": "switchNode",
2660     "name": "switch access-topology-id",
2661     "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
2662     "comments": "",
2663     "outputs": 1,
2664     "x": 1771.5658779144287,
2665     "y": 1615.2431454658508,
2666     "z": "205403e9.560efc",
2667     "wires": [
2668       [
2669         "d336b3c.0b7875"
2670       ]
2671     ]
2672   },
2673   {
2674     "id": "d336b3c.0b7875",
2675     "type": "outcomeTrue",
2676     "name": "true",
2677     "xml": "<outcome value='true'>\n",
2678     "comments": "",
2679     "outputs": 1,
2680     "x": 1958.5658779144287,
2681     "y": 1611.2431454658508,
2682     "z": "205403e9.560efc",
2683     "wires": [
2684       [
2685         "85508473.900a98"
2686       ]
2687     ]
2688   },
2689   {
2690     "id": "85508473.900a98",
2691     "type": "set",
2692     "name": "set access-topology-id",
2693     "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
2694     "comments": "",
2695     "x": 2126.5658779144287,
2696     "y": 1611.8431515693665,
2697     "z": "205403e9.560efc",
2698     "wires": [
2699       
2700     ]
2701   },
2702   {
2703     "id": "fa8596fd.dc6fb8",
2704     "type": "block",
2705     "name": "block : atomic",
2706     "xml": "<block atomic=\"true\">",
2707     "atomic": "true",
2708     "outputs": 1,
2709     "x": 1066.1213836669922,
2710     "y": 1742.3442287445068,
2711     "z": "205403e9.560efc",
2712     "wires": [
2713       [
2714         "9edea41a.d68a58",
2715         "abb09171.f6ee",
2716         "abc114d6.41e528",
2717         "9b39618e.ffe5f"
2718       ]
2719     ]
2720   },
2721   {
2722     "id": "521aa066.c8761",
2723     "type": "set",
2724     "name": "set controller data",
2725     "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",
2726     "comments": "",
2727     "x": 1764.56591796875,
2728     "y": 1896.6771240234375,
2729     "z": "205403e9.560efc",
2730     "wires": [
2731       
2732     ]
2733   },
2734   {
2735     "id": "abb09171.f6ee",
2736     "type": "get-resource",
2737     "name": "get-resource esr-thirdparty-sdnc",
2738     "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",
2739     "comments": "",
2740     "outputs": 1,
2741     "x": 1328.0658569335938,
2742     "y": 1955.6771240234375,
2743     "z": "205403e9.560efc",
2744     "wires": [
2745       [
2746         "b2bcb2cd.da9e",
2747         "d1f1ad90.96011",
2748         "bed51f39.f008"
2749       ]
2750     ]
2751   },
2752   {
2753     "id": "b2bcb2cd.da9e",
2754     "type": "success",
2755     "name": "success",
2756     "xml": "<outcome value='success'>\n",
2757     "comments": "",
2758     "outputs": 1,
2759     "x": 1567.0658569335938,
2760     "y": 1908.6771240234375,
2761     "z": "205403e9.560efc",
2762     "wires": [
2763       [
2764         "521aa066.c8761"
2765       ]
2766     ]
2767   },
2768   {
2769     "id": "d1f1ad90.96011",
2770     "type": "not-found",
2771     "name": "not-found",
2772     "xml": "<outcome value='not-found'>\n",
2773     "comments": "",
2774     "outputs": 1,
2775     "x": 1570.5568237304688,
2776     "y": 1956.2511596679688,
2777     "z": "205403e9.560efc",
2778     "wires": [
2779       [
2780         "d02c15ce.c1c438"
2781       ]
2782     ]
2783   },
2784   {
2785     "id": "bed51f39.f008",
2786     "type": "other",
2787     "name": "other",
2788     "xml": "<outcome value='Other'>\n",
2789     "comments": "",
2790     "outputs": 1,
2791     "x": 1565.8898315429688,
2792     "y": 1997.58447265625,
2793     "z": "205403e9.560efc",
2794     "wires": [
2795       [
2796         "1dfb5bf0.cbb2c4"
2797       ]
2798     ]
2799   },
2800   {
2801     "id": "d02c15ce.c1c438",
2802     "type": "returnFailure",
2803     "name": "return failure",
2804     "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",
2805     "comments": "",
2806     "x": 1747.1282348632812,
2807     "y": 1944.5368957519531,
2808     "z": "205403e9.560efc",
2809     "wires": [
2810       
2811     ]
2812   },
2813   {
2814     "id": "1dfb5bf0.cbb2c4",
2815     "type": "returnFailure",
2816     "name": "return failure",
2817     "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",
2818     "comments": "",
2819     "x": 1753.6623878479004,
2820     "y": 1993.0236654281616,
2821     "z": "205403e9.560efc",
2822     "wires": [
2823       
2824     ]
2825   },
2826   {
2827     "id": "abc114d6.41e528",
2828     "type": "get-resource",
2829     "name": "get-resource pnf",
2830     "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 AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
2831     "comments": "",
2832     "outputs": 1,
2833     "x": 1274.56591796875,
2834     "y": 1768.6771240234375,
2835     "z": "205403e9.560efc",
2836     "wires": [
2837       [
2838         "e5c7f4bb.a977b8",
2839         "c9ac24e7.49a298",
2840         "89a637ca.249d28"
2841       ]
2842     ]
2843   },
2844   {
2845     "id": "e5c7f4bb.a977b8",
2846     "type": "success",
2847     "name": "success",
2848     "xml": "<outcome value='success'>\n",
2849     "comments": "",
2850     "outputs": 1,
2851     "x": 1621.5658569335938,
2852     "y": 1772.6771545410156,
2853     "z": "205403e9.560efc",
2854     "wires": [
2855       [
2856         "9bb25e1d.4626"
2857       ]
2858     ]
2859   },
2860   {
2861     "id": "c9ac24e7.49a298",
2862     "type": "not-found",
2863     "name": "not-found",
2864     "xml": "<outcome value='not-found'>\n",
2865     "comments": "",
2866     "outputs": 1,
2867     "x": 1625.0568237304688,
2868     "y": 1820.2511901855469,
2869     "z": "205403e9.560efc",
2870     "wires": [
2871       [
2872         "700f50e2.2becf"
2873       ]
2874     ]
2875   },
2876   {
2877     "id": "89a637ca.249d28",
2878     "type": "other",
2879     "name": "other",
2880     "xml": "<outcome value='Other'>\n",
2881     "comments": "",
2882     "outputs": 1,
2883     "x": 1620.3898315429688,
2884     "y": 1861.5845031738281,
2885     "z": "205403e9.560efc",
2886     "wires": [
2887       [
2888         "634a1d02.90e474"
2889       ]
2890     ]
2891   },
2892   {
2893     "id": "700f50e2.2becf",
2894     "type": "returnFailure",
2895     "name": "return failure",
2896     "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",
2897     "comments": "",
2898     "x": 1801.6282348632812,
2899     "y": 1808.5369262695312,
2900     "z": "205403e9.560efc",
2901     "wires": [
2902       
2903     ]
2904   },
2905   {
2906     "id": "634a1d02.90e474",
2907     "type": "returnFailure",
2908     "name": "return failure",
2909     "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",
2910     "comments": "",
2911     "x": 1808.1623878479004,
2912     "y": 1857.0236959457397,
2913     "z": "205403e9.560efc",
2914     "wires": [
2915       
2916     ]
2917   },
2918   {
2919     "id": "9bb25e1d.4626",
2920     "type": "set",
2921     "name": "set tmp.thirdparty-sdnc-id",
2922     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
2923     "comments": "",
2924     "x": 1825.5658569335938,
2925     "y": 1759.6771545410156,
2926     "z": "205403e9.560efc",
2927     "wires": [
2928       
2929     ]
2930   },
2931   {
2932     "id": "f371e386.134de",
2933     "type": "comment",
2934     "name": "get domain controller information",
2935     "info": "",
2936     "comments": "",
2937     "x": 1319.0697860717773,
2938     "y": 1734.6810216903687,
2939     "z": "205403e9.560efc",
2940     "wires": [
2941       
2942     ]
2943   },
2944   {
2945     "id": "9b39618e.ffe5f",
2946     "type": "set",
2947     "name": "set oof.vpn",
2948     "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
2949     "comments": "",
2950     "x": 1256.5658874511719,
2951     "y": 1695.7881488800049,
2952     "z": "205403e9.560efc",
2953     "wires": [
2954       
2955     ]
2956   },
2957   {
2958     "id": "ab06a549.912008",
2959     "type": "comment",
2960     "name": "TODO: Add VPN resource and its relation with SOTN Connectivity resource",
2961     "info": "",
2962     "comments": "",
2963     "x": 1452.0103912353516,
2964     "y": 2134.6769676208496,
2965     "z": "205403e9.560efc",
2966     "wires": [
2967       
2968     ]
2969   }
2970 ]