Merge "Updates to SOTN DG"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "13403d5.5be54c3",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 112.00390625,
8     "y": 46.00390625,
9     "z": "4f77841b.f6c90c",
10     "wires": [
11       [
12         "8694bff7.45011"
13       ]
14     ]
15   },
16   {
17     "id": "8694bff7.45011",
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": 324.00391006469727,
26     "y": 118.0039234161377,
27     "z": "4f77841b.f6c90c",
28     "wires": [
29       [
30         "ce5f4d71.3c80b"
31       ]
32     ]
33   },
34   {
35     "id": "ce5f4d71.3c80b",
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": 312.0040283203125,
42     "y": 206.00390625,
43     "z": "4f77841b.f6c90c",
44     "wires": [
45       [
46         "e7e7b5c7.7cb0c8"
47       ]
48     ]
49   },
50   {
51     "id": "e7e7b5c7.7cb0c8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 328.0040283203125,
59     "y": 761.0041508674622,
60     "z": "4f77841b.f6c90c",
61     "wires": [
62       [
63         "581b91b6.06ff3",
64         "680895fb.4f588c",
65         "dc05cef1.a51f5",
66         "89ef32f1.d5d63",
67         "7184e2e7.8c461c",
68         "f440893f.3eb748",
69         "80cf693a.7220c8",
70         "cab0e236.de21f",
71         "84e0eeac.a2ba4",
72         "602ccaa6.5c1754",
73         "85ce847d.6d7528",
74         "447e9068.877d",
75         "4b7801cc.5bfc5",
76         "195a1754.387c79",
77         "17bafb78.38c045",
78         "69a30b87.057684",
79         "a26aed10.bae5b",
80         "4c5d18d9.d86fb8",
81         "bc43d14.b5aca3"
82       ]
83     ]
84   },
85   {
86     "id": "581b91b6.06ff3",
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": 724.9974670410156,
92     "y": 159.9973931312561,
93     "z": "4f77841b.f6c90c",
94     "wires": [
95       
96     ]
97   },
98   {
99     "id": "c2f92da0.ae67f",
100     "type": "comment",
101     "name": "set tmp ar-id to fetch resource from MDSAL",
102     "info": "",
103     "comments": "",
104     "x": 753.9577789306641,
105     "y": 124.02918910980225,
106     "z": "4f77841b.f6c90c",
107     "wires": [
108       
109     ]
110   },
111   {
112     "id": "680895fb.4f588c",
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": 678.9974060058594,
118     "y": 252.99739837646484,
119     "z": "4f77841b.f6c90c",
120     "wires": [
121       
122     ]
123   },
124   {
125     "id": "cab0e236.de21f",
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": 685.2592964172363,
132     "y": 340.6641273498535,
133     "z": "4f77841b.f6c90c",
134     "wires": [
135       [
136         
137       ]
138     ]
139   },
140   {
141     "id": "dc05cef1.a51f5",
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": 717.2593231201172,
148     "y": 428.66410875320435,
149     "z": "4f77841b.f6c90c",
150     "wires": [
151       [
152         
153       ]
154     ]
155   },
156   {
157     "id": "89ef32f1.d5d63",
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": 787.9974212646484,
164     "y": 518.77516746521,
165     "z": "4f77841b.f6c90c",
166     "wires": [
167       [
168         "c4c666a0.dc3b68",
169         "2a74b364.08117c"
170       ]
171     ]
172   },
173   {
174     "id": "74acb38d.a8df3c",
175     "type": "comment",
176     "name": "GET connection-attachment-allotted-resource from mdsal",
177     "info": "",
178     "comments": "",
179     "x": 794.8122177124023,
180     "y": 490.5424861907959,
181     "z": "4f77841b.f6c90c",
182     "wires": [
183       
184     ]
185   },
186   {
187     "id": "f5129fcf.6a5ca",
188     "type": "comment",
189     "name": "Used for setting output to API Handler",
190     "info": "",
191     "comments": "",
192     "x": 732.9974365234375,
193     "y": 219.997407913208,
194     "z": "4f77841b.f6c90c",
195     "wires": [
196       
197     ]
198   },
199   {
200     "id": "d590f72a.b09d08",
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": 750.9974021911621,
206     "y": 305.8862886428833,
207     "z": "4f77841b.f6c90c",
208     "wires": [
209       
210     ]
211   },
212   {
213     "id": "609f412.aec83c",
214     "type": "comment",
215     "name": "Used to Get AR by id to MDSAL, same as self-link",
216     "info": "",
217     "comments": "",
218     "x": 776.9974212646484,
219     "y": 392.8862476348877,
220     "z": "4f77841b.f6c90c",
221     "wires": [
222       
223     ]
224   },
225   {
226     "id": "c4c666a0.dc3b68",
227     "type": "success",
228     "name": "success",
229     "xml": "<outcome value='success'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1087.6706237792969,
233     "y": 504.00389862060547,
234     "z": "4f77841b.f6c90c",
235     "wires": [
236       [
237         "2a674d20.0005d2"
238       ]
239     ]
240   },
241   {
242     "id": "2a674d20.0005d2",
243     "type": "block",
244     "name": "block: atomic",
245     "xml": "<block atomic=\"true\">\n",
246     "atomic": "false",
247     "comments": "",
248     "outputs": 1,
249     "x": 1256.6706275939941,
250     "y": 502.50379943847656,
251     "z": "4f77841b.f6c90c",
252     "wires": [
253       [
254         "801d5833.48d068"
255       ]
256     ]
257   },
258   {
259     "id": "801d5833.48d068",
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": 1467.5278701782227,
266     "y": 502.12292861938477,
267     "z": "4f77841b.f6c90c",
268     "wires": [
269       [
270         "eb4c62e2.ed59e",
271         "e1cf5942.513c08"
272       ]
273     ]
274   },
275   {
276     "id": "eb4c62e2.ed59e",
277     "type": "other",
278     "name": "outcome 1",
279     "xml": "<outcome value='1'>\n",
280     "comments": "",
281     "outputs": 1,
282     "x": 1656.8611755371094,
283     "y": 502.12288665771484,
284     "z": "4f77841b.f6c90c",
285     "wires": [
286       [
287         "6ded2c0c.68e914"
288       ]
289     ]
290   },
291   {
292     "id": "6ded2c0c.68e914",
293     "type": "block",
294     "name": "block: atomic",
295     "xml": "<block atomic='true'>\n",
296     "atomic": "false",
297     "comments": "",
298     "outputs": 1,
299     "x": 1841.3850650787354,
300     "y": 499.027720451355,
301     "z": "4f77841b.f6c90c",
302     "wires": [
303       [
304         "f931a889.3afae8",
305         "bd538141.56707",
306         "57b77b8c.0f7844"
307       ]
308     ]
309   },
310   {
311     "id": "482ef87f.84eaa8",
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": 1800.5228652954102,
317     "y": 580.0699520111084,
318     "z": "4f77841b.f6c90c",
319     "wires": [
320       
321     ]
322   },
323   {
324     "id": "2a74b364.08117c",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1079.5224266052246,
331     "y": 539.0699834823608,
332     "z": "4f77841b.f6c90c",
333     "wires": [
334       [
335         "ab1859dd.20d8a8"
336       ]
337     ]
338   },
339   {
340     "id": "ab1859dd.20d8a8",
341     "type": "block",
342     "name": "block: atomic",
343     "xml": "<block atomic=\"true\">\n",
344     "atomic": "false",
345     "comments": "",
346     "outputs": 1,
347     "x": 1259.5223770141602,
348     "y": 539.7365341186523,
349     "z": "4f77841b.f6c90c",
350     "wires": [
351       [
352         "482ef87f.84eaa8"
353       ]
354     ]
355   },
356   {
357     "id": "e1cf5942.513c08",
358     "type": "other",
359     "name": "other",
360     "xml": "<outcome value='Other'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1645.1891288757324,
364     "y": 539.4032468795776,
365     "z": "4f77841b.f6c90c",
366     "wires": [
367       [
368         "482ef87f.84eaa8"
369       ]
370     ]
371   },
372   {
373     "id": "f931a889.3afae8",
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": 2209.4485473632812,
379     "y": 468.0039601325989,
380     "z": "4f77841b.f6c90c",
381     "wires": [
382       
383     ]
384   },
385   {
386     "id": "57b77b8c.0f7844",
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": 2143.4485778808594,
392     "y": 541.4324626922607,
393     "z": "4f77841b.f6c90c",
394     "wires": [
395       
396     ]
397   },
398   {
399     "id": "bd538141.56707",
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": 2153.448356628418,
406     "y": 507.00389671325684,
407     "z": "4f77841b.f6c90c",
408     "wires": [
409       [
410         "dff36ce6.7bfdb",
411         "68d26983.d39818"
412       ]
413     ]
414   },
415   {
416     "id": "dff36ce6.7bfdb",
417     "type": "outcome",
418     "name": "outcome Created",
419     "xml": "<outcome value='Created'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 2389.048439025879,
423     "y": 501.0039277076721,
424     "z": "4f77841b.f6c90c",
425     "wires": [
426       [
427         "a20d7036.b7b91"
428       ]
429     ]
430   },
431   {
432     "id": "68d26983.d39818",
433     "type": "outcome",
434     "name": "outcome Other",
435     "xml": "<outcome value='Other'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 2382.7628784179688,
439     "y": 540.432535648346,
440     "z": "4f77841b.f6c90c",
441     "wires": [
442       [
443         "95ec04c5.68c058"
444       ]
445     ]
446   },
447   {
448     "id": "a20d7036.b7b91",
449     "type": "block",
450     "name": "block",
451     "xml": "<block>\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 2603.518955230713,
456     "y": 502.37956190109253,
457     "z": "4f77841b.f6c90c",
458     "wires": [
459       [
460         
461       ]
462     ]
463   },
464   {
465     "id": "95ec04c5.68c058",
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": 2622.6706581115723,
471     "y": 543.0039258003235,
472     "z": "4f77841b.f6c90c",
473     "wires": [
474       
475     ]
476   },
477   {
478     "id": "a6cc9265.33dd9",
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": 975.3069458007812,
485     "y": 608.4974617958069,
486     "z": "4f77841b.f6c90c",
487     "wires": [
488       [
489         
490       ]
491     ]
492   },
493   {
494     "id": "84e0eeac.a2ba4",
495     "type": "block",
496     "name": "block: atomic",
497     "xml": "<block atomic=\"true\">\n",
498     "atomic": "false",
499     "comments": "",
500     "outputs": 1,
501     "x": 657.3130226135254,
502     "y": 608.5037484169006,
503     "z": "4f77841b.f6c90c",
504     "wires": [
505       [
506         "a6cc9265.33dd9"
507       ]
508     ]
509   },
510   {
511     "id": "7184e2e7.8c461c",
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": 722.0043334960938,
518     "y": 750.5355229377747,
519     "z": "4f77841b.f6c90c",
520     "wires": [
521       [
522         "1665d4d8.fb3cab",
523         "7f1aaa67.966654"
524       ]
525     ]
526   },
527   {
528     "id": "2d977877.2cdd28",
529     "type": "comment",
530     "name": "GET parent-service-data from mdsal to check existence of other End point",
531     "info": "",
532     "comments": "",
533     "x": 842.0042724609375,
534     "y": 679.5354619026184,
535     "z": "4f77841b.f6c90c",
536     "wires": [
537       
538     ]
539   },
540   {
541     "id": "413accea.8047d4",
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": 1731.1887531280518,
548     "y": 918.0080151557922,
549     "z": "4f77841b.f6c90c",
550     "wires": [
551       [
552         "bf28fd20.e4d9d"
553       ]
554     ]
555   },
556   {
557     "id": "f440893f.3eb748",
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": 788.1881103515625,
564     "y": 894.7219853401184,
565     "z": "4f77841b.f6c90c",
566     "wires": [
567       [
568         "d800a1f4.f7982",
569         "d253364d.d38c98",
570         "2dc2ac81.8fbcc4"
571       ]
572     ]
573   },
574   {
575     "id": "d800a1f4.f7982",
576     "type": "other",
577     "name": "other",
578     "xml": "<outcome value='Other'>\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 1120.3309326171875,
582     "y": 1171.5794072151184,
583     "z": "4f77841b.f6c90c",
584     "wires": [
585       [
586         "c302abb6.eb05c8"
587       ]
588     ]
589   },
590   {
591     "id": "c4d4c7bb.632948",
592     "type": "block",
593     "name": "block : atomic",
594     "xml": "<block atomic=\"true\">",
595     "atomic": "true",
596     "outputs": 1,
597     "x": 1314.4583415985107,
598     "y": 912.705427646637,
599     "z": "4f77841b.f6c90c",
600     "wires": [
601       [
602         "413accea.8047d4",
603         "ce0b3f4a.08eea"
604       ]
605     ]
606   },
607   {
608     "id": "bf28fd20.e4d9d",
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": 2166.3001537323,
615     "y": 918.0079121589661,
616     "z": "4f77841b.f6c90c",
617     "wires": [
618       [
619         "1a1bdd33.763073",
620         "f9268b46.a58948"
621       ]
622     ]
623   },
624   {
625     "id": "1a1bdd33.763073",
626     "type": "outcomeTrue",
627     "name": "true",
628     "xml": "<outcome value='true'>\n",
629     "comments": "",
630     "outputs": 1,
631     "x": 2375.1103801727295,
632     "y": 890.4724020957947,
633     "z": "4f77841b.f6c90c",
634     "wires": [
635       [
636         "c5aa7e99.1a51b"
637       ]
638     ]
639   },
640   {
641     "id": "9c7d5f29.63bbc",
642     "type": "block",
643     "name": "block : atomic",
644     "xml": "<block atomic=\"true\">",
645     "atomic": "true",
646     "outputs": 1,
647     "x": 2554.8710765838623,
648     "y": 954.329580783844,
649     "z": "4f77841b.f6c90c",
650     "wires": [
651       [
652         "dc636dab.29589",
653         "1d4567ac.71fcc8"
654       ]
655     ]
656   },
657   {
658     "id": "dc636dab.29589",
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": 2811.728582382202,
664     "y": 928.9010949134827,
665     "z": "4f77841b.f6c90c",
666     "wires": [
667       
668     ]
669   },
670   {
671     "id": "1d4567ac.71fcc8",
672     "type": "break",
673     "name": "break",
674     "xml": "<break>\n",
675     "comments": "",
676     "x": 2722.5893001556396,
677     "y": 975.6571106910706,
678     "z": "4f77841b.f6c90c",
679     "wires": [
680       
681     ]
682   },
683   {
684     "id": "b1ecb95e.fe19d8",
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": 777.966552734375,
690     "y": 828.8967900276184,
691     "z": "4f77841b.f6c90c",
692     "wires": [
693       
694     ]
695   },
696   {
697     "id": "d253364d.d38c98",
698     "type": "other",
699     "name": "outcome 1",
700     "xml": "<outcome value='1'>\n",
701     "comments": "",
702     "outputs": 1,
703     "x": 1131.9833793640137,
704     "y": 1042.6811718940735,
705     "z": "4f77841b.f6c90c",
706     "wires": [
707       [
708         "72798bd.8ed1174"
709       ]
710     ]
711   },
712   {
713     "id": "c302abb6.eb05c8",
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": 1292.9832763671875,
719     "y": 1170.68114900589,
720     "z": "4f77841b.f6c90c",
721     "wires": [
722       
723     ]
724   },
725   {
726     "id": "2dc2ac81.8fbcc4",
727     "type": "other",
728     "name": "outcome 2",
729     "xml": "<outcome value='2'>\n",
730     "comments": "",
731     "outputs": 1,
732     "x": 1139.983362197876,
733     "y": 913.6811280250549,
734     "z": "4f77841b.f6c90c",
735     "wires": [
736       [
737         "c4d4c7bb.632948"
738       ]
739     ]
740   },
741   {
742     "id": "c5aa7e99.1a51b",
743     "type": "block",
744     "name": "block",
745     "xml": "<block>\n",
746     "atomic": "false",
747     "comments": "",
748     "outputs": 1,
749     "x": 2533.0945949554443,
750     "y": 889.6811451911926,
751     "z": "4f77841b.f6c90c",
752     "wires": [
753       [
754         
755       ]
756     ]
757   },
758   {
759     "id": "f9268b46.a58948",
760     "type": "outcomeTrue",
761     "name": "false",
762     "xml": "<outcome value='false'>\n",
763     "comments": "",
764     "outputs": 1,
765     "x": 2374.0945949554443,
766     "y": 952.6811451911926,
767     "z": "4f77841b.f6c90c",
768     "wires": [
769       [
770         "9c7d5f29.63bbc"
771       ]
772     ]
773   },
774   {
775     "id": "ce0b3f4a.08eea",
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": 1560.9832668304443,
782     "y": 989.4589009284973,
783     "z": "4f77841b.f6c90c",
784     "wires": [
785       [
786         "e09e23ee.bea8f"
787       ]
788     ]
789   },
790   {
791     "id": "e09e23ee.bea8f",
792     "type": "outcomeTrue",
793     "name": "true",
794     "xml": "<outcome value='true'>\n",
795     "comments": "",
796     "outputs": 1,
797     "x": 1783.9833126068115,
798     "y": 988.5700707435608,
799     "z": "4f77841b.f6c90c",
800     "wires": [
801       [
802         "8dfd0c85.a915"
803       ]
804     ]
805   },
806   {
807     "id": "8dfd0c85.a915",
808     "type": "block",
809     "name": "block : atomic",
810     "xml": "<block atomic=\"true\">",
811     "atomic": "true",
812     "outputs": 1,
813     "x": 1973.9833431243896,
814     "y": 988.5701203346252,
815     "z": "4f77841b.f6c90c",
816     "wires": [
817       [
818         "c01e9fb3.005a4"
819       ]
820     ]
821   },
822   {
823     "id": "c01e9fb3.005a4",
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": 2279.4276962280273,
830     "y": 1040.5701661109924,
831     "z": "4f77841b.f6c90c",
832     "wires": [
833       [
834         "cdcbe6d0.564cd8",
835         "d4c31f68.30c06"
836       ]
837     ]
838   },
839   {
840     "id": "cdcbe6d0.564cd8",
841     "type": "success",
842     "name": "success",
843     "xml": "<outcome value='success'>\n",
844     "comments": "",
845     "outputs": 1,
846     "x": 2579.100898742676,
847     "y": 1025.798897266388,
848     "z": "4f77841b.f6c90c",
849     "wires": [
850       [
851         "a8542804.b5e6c8"
852       ]
853     ]
854   },
855   {
856     "id": "d4c31f68.30c06",
857     "type": "other",
858     "name": "other",
859     "xml": "<outcome value='Other'>\n",
860     "comments": "",
861     "outputs": 1,
862     "x": 2570.9527015686035,
863     "y": 1060.8649821281433,
864     "z": "4f77841b.f6c90c",
865     "wires": [
866       [
867         "7d0763b3.444adc"
868       ]
869     ]
870   },
871   {
872     "id": "4f1efc93.85dab4",
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": 1558.3167724609375,
879     "y": 1141.9036870002747,
880     "z": "4f77841b.f6c90c",
881     "wires": [
882       [
883         "6774f061.befc3",
884         "82b7323.6fb02d"
885       ]
886     ]
887   },
888   {
889     "id": "82b7323.6fb02d",
890     "type": "other",
891     "name": "outcome 1",
892     "xml": "<outcome value='1'>\n",
893     "comments": "",
894     "outputs": 1,
895     "x": 1837.316650390625,
896     "y": 1151.7924809455872,
897     "z": "4f77841b.f6c90c",
898     "wires": [
899       [
900         "90c3e5fe.809838"
901       ]
902     ]
903   },
904   {
905     "id": "6774f061.befc3",
906     "type": "other",
907     "name": "other",
908     "xml": "<outcome value='Other'>\n",
909     "comments": "",
910     "outputs": 1,
911     "x": 1831.3167724609375,
912     "y": 1211.7924809455872,
913     "z": "4f77841b.f6c90c",
914     "wires": [
915       [
916         "f2dc069d.22e408"
917       ]
918     ]
919   },
920   {
921     "id": "f2dc069d.22e408",
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": 1987.9691162109375,
927     "y": 1212.8942875862122,
928     "z": "4f77841b.f6c90c",
929     "wires": [
930       
931     ]
932   },
933   {
934     "id": "7296fdef.71a454",
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": 2284.7614822387695,
940     "y": 1135.7926478385925,
941     "z": "4f77841b.f6c90c",
942     "wires": [
943       
944     ]
945   },
946   {
947     "id": "72798bd.8ed1174",
948     "type": "block",
949     "name": "block : atomic",
950     "xml": "<block atomic=\"true\">",
951     "atomic": "true",
952     "outputs": 1,
953     "x": 1304.427734375,
954     "y": 1043.792419910431,
955     "z": "4f77841b.f6c90c",
956     "wires": [
957       [
958         "4f1efc93.85dab4"
959       ]
960     ]
961   },
962   {
963     "id": "90c3e5fe.809838",
964     "type": "block",
965     "name": "block : atomic",
966     "xml": "<block atomic=\"true\">",
967     "atomic": "true",
968     "outputs": 1,
969     "x": 2029.0943603515625,
970     "y": 1154.7923588752747,
971     "z": "4f77841b.f6c90c",
972     "wires": [
973       [
974         "7296fdef.71a454",
975         "f71acaf7.a5e418"
976       ]
977     ]
978   },
979   {
980     "id": "f71acaf7.a5e418",
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": 2446.0944900512695,
987     "y": 1202.79243516922,
988     "z": "4f77841b.f6c90c",
989     "wires": [
990       [
991         "bef42353.ac417"
992       ]
993     ]
994   },
995   {
996     "id": "bef42353.ac417",
997     "type": "block",
998     "name": "block",
999     "xml": "<block>\n",
1000     "atomic": "false",
1001     "comments": "",
1002     "outputs": 1,
1003     "x": 2817.64990234375,
1004     "y": 1235.7923588752747,
1005     "z": "4f77841b.f6c90c",
1006     "wires": [
1007       [
1008         "7c3ef39d.83f20c",
1009         "18cbc1f3.8102ae",
1010         "d4ff5a6.b2eb6a8",
1011         "42092cc3.b6ed84",
1012         "297544d9.6ec98c",
1013         "66d53edd.cdef9",
1014         "b4d50d62.6f88a",
1015         "64cab1cd.5d443",
1016         "10c9f83a.94e8c8",
1017         "17843ccd.4f45d3"
1018       ]
1019     ]
1020   },
1021   {
1022     "id": "7c3ef39d.83f20c",
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": 3023.1608505249023,
1029     "y": 1083.8029837608337,
1030     "z": "4f77841b.f6c90c",
1031     "wires": [
1032       [
1033         "19483932.311cc7"
1034       ]
1035     ]
1036   },
1037   {
1038     "id": "19483932.311cc7",
1039     "type": "outcomeTrue",
1040     "name": "true",
1041     "xml": "<outcome value='true'>\n",
1042     "comments": "",
1043     "outputs": 1,
1044     "x": 3212.1604766845703,
1045     "y": 1085.8028483390808,
1046     "z": "4f77841b.f6c90c",
1047     "wires": [
1048       [
1049         "3b79183c.e90878"
1050       ]
1051     ]
1052   },
1053   {
1054     "id": "3b79183c.e90878",
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": 3465.1606521606445,
1060     "y": 1085.4028944969177,
1061     "z": "4f77841b.f6c90c",
1062     "wires": [
1063       
1064     ]
1065   },
1066   {
1067     "id": "18cbc1f3.8102ae",
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": 3004.1499557495117,
1073     "y": 1540.7923188209534,
1074     "z": "4f77841b.f6c90c",
1075     "wires": [
1076       
1077     ]
1078   },
1079   {
1080     "id": "80cf693a.7220c8",
1081     "type": "switchNode",
1082     "name": "switch tmp.ep-available",
1083     "xml": "<switch test='`$tmp.ep-available`'>\n",
1084     "comments": "",
1085     "outputs": 1,
1086     "x": 714.3167114257812,
1087     "y": 1306.2366948127747,
1088     "z": "4f77841b.f6c90c",
1089     "wires": [
1090       [
1091         "6819776a.dd6ac8",
1092         "786155e4.c1358c"
1093       ]
1094     ]
1095   },
1096   {
1097     "id": "786155e4.c1358c",
1098     "type": "outcomeTrue",
1099     "name": "true",
1100     "xml": "<outcome value='true'>\n",
1101     "comments": "",
1102     "outputs": 1,
1103     "x": 932.9834308624268,
1104     "y": 1355.5700516700745,
1105     "z": "4f77841b.f6c90c",
1106     "wires": [
1107       [
1108         "86bbb2c8.73a38"
1109       ]
1110     ]
1111   },
1112   {
1113     "id": "6819776a.dd6ac8",
1114     "type": "outcomeTrue",
1115     "name": "false",
1116     "xml": "<outcome value='false'>\n",
1117     "comments": "",
1118     "outputs": 1,
1119     "x": 937.8722324371338,
1120     "y": 1264.5701127052307,
1121     "z": "4f77841b.f6c90c",
1122     "wires": [
1123       [
1124         "766accfd.fad464"
1125       ]
1126     ]
1127   },
1128   {
1129     "id": "766accfd.fad464",
1130     "type": "block",
1131     "name": "block",
1132     "xml": "<block>\n",
1133     "atomic": "false",
1134     "comments": "",
1135     "outputs": 1,
1136     "x": 1084.8722286224365,
1137     "y": 1266.4589257240295,
1138     "z": "4f77841b.f6c90c",
1139     "wires": [
1140       [
1141         
1142       ]
1143     ]
1144   },
1145   {
1146     "id": "86bbb2c8.73a38",
1147     "type": "block",
1148     "name": "block : atomic",
1149     "xml": "<block atomic=\"true\">",
1150     "atomic": "true",
1151     "outputs": 1,
1152     "x": 1103.094518661499,
1153     "y": 1353.5700097084045,
1154     "z": "4f77841b.f6c90c",
1155     "wires": [
1156       [
1157         "1a3bb9ea.5fc846",
1158         "bafdeb31.9bf788",
1159         "8302661e.daec38"
1160       ]
1161     ]
1162   },
1163   {
1164     "id": "1a3bb9ea.5fc846",
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": 1333.20556640625,
1171     "y": 1288.5700688362122,
1172     "z": "4f77841b.f6c90c",
1173     "wires": [
1174       [
1175         "2dbd7031.b0f13",
1176         "840dbee8.b38c3"
1177       ]
1178     ]
1179   },
1180   {
1181     "id": "2dbd7031.b0f13",
1182     "type": "outcomeTrue",
1183     "name": "true",
1184     "xml": "<outcome value='true'>\n",
1185     "comments": "",
1186     "outputs": 1,
1187     "x": 1553.649938583374,
1188     "y": 1274.5700097084045,
1189     "z": "4f77841b.f6c90c",
1190     "wires": [
1191       [
1192         "26e907a2.2afef8"
1193       ]
1194     ]
1195   },
1196   {
1197     "id": "840dbee8.b38c3",
1198     "type": "outcomeTrue",
1199     "name": "false",
1200     "xml": "<outcome value='false'>\n",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 1554.64990234375,
1204     "y": 1320.5700688362122,
1205     "z": "4f77841b.f6c90c",
1206     "wires": [
1207       [
1208         "adf3229f.c54ae"
1209       ]
1210     ]
1211   },
1212   {
1213     "id": "26e907a2.2afef8",
1214     "type": "block",
1215     "name": "block : atomic",
1216     "xml": "<block atomic=\"true\">",
1217     "atomic": "true",
1218     "outputs": 1,
1219     "x": 1741.205602645874,
1220     "y": 1271.5700097084045,
1221     "z": "4f77841b.f6c90c",
1222     "wires": [
1223       [
1224         "87392ac2.70f368"
1225       ]
1226     ]
1227   },
1228   {
1229     "id": "adf3229f.c54ae",
1230     "type": "block",
1231     "name": "block : atomic",
1232     "xml": "<block atomic=\"true\">",
1233     "atomic": "true",
1234     "outputs": 1,
1235     "x": 1742.20556640625,
1236     "y": 1319.5700688362122,
1237     "z": "4f77841b.f6c90c",
1238     "wires": [
1239       [
1240         "e8d19413.2d1f98"
1241       ]
1242     ]
1243   },
1244   {
1245     "id": "ea1f1cf0.78972",
1246     "type": "comment",
1247     "name": "GET connection-attachment-ar to store AR data from mdsal",
1248     "info": "",
1249     "comments": "",
1250     "x": 2273.4766960144043,
1251     "y": 430.5078196525574,
1252     "z": "4f77841b.f6c90c",
1253     "wires": [
1254       
1255     ]
1256   },
1257   {
1258     "id": "9aaa3746.59be18",
1259     "type": "comment",
1260     "name": "Set source end point",
1261     "info": "",
1262     "comments": "",
1263     "x": 678.9765739440918,
1264     "y": 576.2578291893005,
1265     "z": "4f77841b.f6c90c",
1266     "wires": [
1267       
1268     ]
1269   },
1270   {
1271     "id": "602ccaa6.5c1754",
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": 732.97265625,
1277     "y": 715.0039067268372,
1278     "z": "4f77841b.f6c90c",
1279     "wires": [
1280       
1281     ]
1282   },
1283   {
1284     "id": "1665d4d8.fb3cab",
1285     "type": "success",
1286     "name": "success",
1287     "xml": "<outcome value='success'>\n",
1288     "comments": "",
1289     "outputs": 1,
1290     "x": 968.97265625,
1291     "y": 743.0039067268372,
1292     "z": "4f77841b.f6c90c",
1293     "wires": [
1294       [
1295         "d2585978.579578"
1296       ]
1297     ]
1298   },
1299   {
1300     "id": "7f1aaa67.966654",
1301     "type": "other",
1302     "name": "other",
1303     "xml": "<outcome value='Other'>\n",
1304     "comments": "",
1305     "outputs": 1,
1306     "x": 960.8244590759277,
1307     "y": 778.0699915885925,
1308     "z": "4f77841b.f6c90c",
1309     "wires": [
1310       [
1311         "417b4b0.5e31db4"
1312       ]
1313     ]
1314   },
1315   {
1316     "id": "417b4b0.5e31db4",
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": 1135.97314453125,
1322     "y": 774.3373417854309,
1323     "z": "4f77841b.f6c90c",
1324     "wires": [
1325       
1326     ]
1327   },
1328   {
1329     "id": "d2585978.579578",
1330     "type": "block",
1331     "name": "block",
1332     "xml": "<block>\n",
1333     "atomic": "false",
1334     "comments": "",
1335     "outputs": 1,
1336     "x": 1119.97265625,
1337     "y": 741.0039067268372,
1338     "z": "4f77841b.f6c90c",
1339     "wires": [
1340       [
1341         
1342       ]
1343     ]
1344   },
1345   {
1346     "id": "7d0763b3.444adc",
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": 2740.9725818634033,
1352     "y": 1062.0040020942688,
1353     "z": "4f77841b.f6c90c",
1354     "wires": [
1355       
1356     ]
1357   },
1358   {
1359     "id": "a8542804.b5e6c8",
1360     "type": "block",
1361     "name": "block",
1362     "xml": "<block>\n",
1363     "atomic": "false",
1364     "comments": "",
1365     "outputs": 1,
1366     "x": 2724.9725818634033,
1367     "y": 1023.0040020942688,
1368     "z": "4f77841b.f6c90c",
1369     "wires": [
1370       [
1371         
1372       ]
1373     ]
1374   },
1375   {
1376     "id": "85ce847d.6d7528",
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": 824.97265625,
1382     "y": 860.0039067268372,
1383     "z": "4f77841b.f6c90c",
1384     "wires": [
1385       
1386     ]
1387   },
1388   {
1389     "id": "3af7f371.2bc2ac",
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": 764.97265625,
1395     "y": 1231.0039067268372,
1396     "z": "4f77841b.f6c90c",
1397     "wires": [
1398       
1399     ]
1400   },
1401   {
1402     "id": "5c493845.192678",
1403     "type": "block",
1404     "name": "block",
1405     "xml": "<block>\n",
1406     "atomic": "false",
1407     "comments": "",
1408     "outputs": 1,
1409     "x": 1531.97265625,
1410     "y": 1437.0039067268372,
1411     "z": "4f77841b.f6c90c",
1412     "wires": [
1413       [
1414         "3869f025.0085f",
1415         "6d83eb1f.c06da4",
1416         "4ef9f41a.4cbccc",
1417         "6ef50d20.7a2d94",
1418         "1ec5a1f5.39482e",
1419         "2020b84a.aa3f78",
1420         "2fc4c609.3e5f6a",
1421         "8d865fcb.ed997"
1422       ]
1423     ]
1424   },
1425   {
1426     "id": "3869f025.0085f",
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": 1768.48291015625,
1433     "y": 1370.0142827033997,
1434     "z": "4f77841b.f6c90c",
1435     "wires": [
1436       [
1437         "c5fce3c7.fd67c"
1438       ]
1439     ]
1440   },
1441   {
1442     "id": "6d83eb1f.c06da4",
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": 1741.4728622436523,
1448     "y": 1675.0042462348938,
1449     "z": "4f77841b.f6c90c",
1450     "wires": [
1451       
1452     ]
1453   },
1454   {
1455     "id": "4ef9f41a.4cbccc",
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": 1759.9727401733398,
1462     "y": 1413.7818140983582,
1463     "z": "4f77841b.f6c90c",
1464     "wires": [
1465       [
1466         "28368228.3fc38e"
1467       ]
1468     ]
1469   },
1470   {
1471     "id": "6ef50d20.7a2d94",
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": 1753.9727783203125,
1478     "y": 1459.7818608283997,
1479     "z": "4f77841b.f6c90c",
1480     "wires": [
1481       [
1482         "acc31d1c.59732"
1483       ]
1484     ]
1485   },
1486   {
1487     "id": "1ec5a1f5.39482e",
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": 1737.9622802734375,
1494     "y": 1498.7713627815247,
1495     "z": "4f77841b.f6c90c",
1496     "wires": [
1497       [
1498         "d493c625.a30ae8"
1499       ]
1500     ]
1501   },
1502   {
1503     "id": "c5fce3c7.fd67c",
1504     "type": "outcomeTrue",
1505     "name": "true",
1506     "xml": "<outcome value='true'>\n",
1507     "comments": "",
1508     "outputs": 1,
1509     "x": 1946.19482421875,
1510     "y": 1370.6706547737122,
1511     "z": "4f77841b.f6c90c",
1512     "wires": [
1513       [
1514         "11ae82e.b231c7d"
1515       ]
1516     ]
1517   },
1518   {
1519     "id": "11ae82e.b231c7d",
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": 2119.19482421875,
1525     "y": 1370.2706303596497,
1526     "z": "4f77841b.f6c90c",
1527     "wires": [
1528       
1529     ]
1530   },
1531   {
1532     "id": "28368228.3fc38e",
1533     "type": "outcomeTrue",
1534     "name": "true",
1535     "xml": "<outcome value='true'>\n",
1536     "comments": "",
1537     "outputs": 1,
1538     "x": 1941.6846923828125,
1539     "y": 1413.4381108283997,
1540     "z": "4f77841b.f6c90c",
1541     "wires": [
1542       [
1543         "304613c.5ad2cec"
1544       ]
1545     ]
1546   },
1547   {
1548     "id": "acc31d1c.59732",
1549     "type": "outcomeTrue",
1550     "name": "true",
1551     "xml": "<outcome value='true'>\n",
1552     "comments": "",
1553     "outputs": 1,
1554     "x": 1941.6846923828125,
1555     "y": 1459.4381108283997,
1556     "z": "4f77841b.f6c90c",
1557     "wires": [
1558       [
1559         "fab4a63a.f922d8"
1560       ]
1561     ]
1562   },
1563   {
1564     "id": "d493c625.a30ae8",
1565     "type": "outcomeTrue",
1566     "name": "true",
1567     "xml": "<outcome value='true'>\n",
1568     "comments": "",
1569     "outputs": 1,
1570     "x": 1941.6741943359375,
1571     "y": 1498.4277348518372,
1572     "z": "4f77841b.f6c90c",
1573     "wires": [
1574       [
1575         "2e48f16d.306a3e"
1576       ]
1577     ]
1578   },
1579   {
1580     "id": "bafdeb31.9bf788",
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": 1349.97265625,
1587     "y": 1370.0039067268372,
1588     "z": "4f77841b.f6c90c",
1589     "wires": [
1590       [
1591         "5c493845.192678"
1592       ]
1593     ]
1594   },
1595   {
1596     "id": "87392ac2.70f368",
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": 1952.97265625,
1602     "y": 1271.0039067268372,
1603     "z": "4f77841b.f6c90c",
1604     "wires": [
1605       
1606     ]
1607   },
1608   {
1609     "id": "e8d19413.2d1f98",
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": 1953.972620010376,
1615     "y": 1315.0039658546448,
1616     "z": "4f77841b.f6c90c",
1617     "wires": [
1618       
1619     ]
1620   },
1621   {
1622     "id": "304613c.5ad2cec",
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": 2118.97265625,
1628     "y": 1413.0039067268372,
1629     "z": "4f77841b.f6c90c",
1630     "wires": [
1631       
1632     ]
1633   },
1634   {
1635     "id": "fab4a63a.f922d8",
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": 2112.97265625,
1641     "y": 1457.0039067268372,
1642     "z": "4f77841b.f6c90c",
1643     "wires": [
1644       
1645     ]
1646   },
1647   {
1648     "id": "2e48f16d.306a3e",
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": 2103.97265625,
1654     "y": 1496.0039067268372,
1655     "z": "4f77841b.f6c90c",
1656     "wires": [
1657       
1658     ]
1659   },
1660   {
1661     "id": "8302661e.daec38",
1662     "type": "block",
1663     "name": "block : atomic",
1664     "xml": "<block atomic=\"true\">",
1665     "atomic": "true",
1666     "outputs": 1,
1667     "x": 743.97265625,
1668     "y": 1598.0039067268372,
1669     "z": "4f77841b.f6c90c",
1670     "wires": [
1671       [
1672         "fe3d007c.a7b3a",
1673         "d535134a.50d41"
1674       ]
1675     ]
1676   },
1677   {
1678     "id": "bec1e4c7.8b8598",
1679     "type": "comment",
1680     "name": "Get controller info and send request",
1681     "info": "",
1682     "comments": "",
1683     "x": 693.97265625,
1684     "y": 1560.0039067268372,
1685     "z": "4f77841b.f6c90c",
1686     "wires": [
1687       
1688     ]
1689   },
1690   {
1691     "id": "17954934.ffd177",
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": 1386.9726867675781,
1698     "y": 2076.0046677589417,
1699     "z": "4f77841b.f6c90c",
1700     "wires": [
1701       [
1702         "cabe4ed3.59977",
1703         "efc13d2a.c27fa"
1704       ]
1705     ]
1706   },
1707   {
1708     "id": "cabe4ed3.59977",
1709     "type": "success",
1710     "name": "success",
1711     "xml": "<outcome value='success'>\n",
1712     "comments": "",
1713     "outputs": 1,
1714     "x": 1673.9726791381836,
1715     "y": 2097.004617214203,
1716     "z": "4f77841b.f6c90c",
1717     "wires": [
1718       [
1719         "4d9476e4.ffbd08"
1720       ]
1721     ]
1722   },
1723   {
1724     "id": "4d9476e4.ffbd08",
1725     "type": "block",
1726     "name": "block : atomic",
1727     "xml": "<block atomic=\"true\">",
1728     "atomic": "true",
1729     "comments": "",
1730     "outputs": 1,
1731     "x": 1843.9726181030273,
1732     "y": 2100.004617214203,
1733     "z": "4f77841b.f6c90c",
1734     "wires": [
1735       [
1736         
1737       ]
1738     ]
1739   },
1740   {
1741     "id": "cb5d2c8f.264c6",
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": 1843.9727401733398,
1747     "y": 2056.004617214203,
1748     "z": "4f77841b.f6c90c",
1749     "wires": [
1750       
1751     ]
1752   },
1753   {
1754     "id": "efc13d2a.c27fa",
1755     "type": "failure",
1756     "name": "failure",
1757     "xml": "<outcome value='failure'>\n",
1758     "comments": "",
1759     "outputs": 1,
1760     "x": 1676.9726181030273,
1761     "y": 2056.004617214203,
1762     "z": "4f77841b.f6c90c",
1763     "wires": [
1764       [
1765         "cb5d2c8f.264c6"
1766       ]
1767     ]
1768   },
1769   {
1770     "id": "e2b1aa80.433d58",
1771     "type": "failure",
1772     "name": "failure",
1773     "xml": "<outcome value='failure'>\n",
1774     "comments": "",
1775     "outputs": 1,
1776     "x": 994.7349166870117,
1777     "y": 2668.9571779966354,
1778     "z": "4f77841b.f6c90c",
1779     "wires": [
1780       [
1781         "49e7952b.6308dc"
1782       ]
1783     ]
1784   },
1785   {
1786     "id": "49e7952b.6308dc",
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": 1161.2587966918945,
1792     "y": 2680.5762490034103,
1793     "z": "4f77841b.f6c90c",
1794     "wires": [
1795       
1796     ]
1797   },
1798   {
1799     "id": "b0220db9.73208",
1800     "type": "failure",
1801     "name": "not-found",
1802     "xml": "<outcome value='not-found'>\n",
1803     "comments": "",
1804     "outputs": 1,
1805     "x": 1001.8302040100098,
1806     "y": 2701.719145655632,
1807     "z": "4f77841b.f6c90c",
1808     "wires": [
1809       [
1810         "49e7952b.6308dc"
1811       ]
1812     ]
1813   },
1814   {
1815     "id": "8836c87e.2127d8",
1816     "type": "comment",
1817     "name": "Save Resource to AAI",
1818     "info": "",
1819     "comments": "",
1820     "x": 713.7826309204102,
1821     "y": 2651.3065662384033,
1822     "z": "4f77841b.f6c90c",
1823     "wires": [
1824       
1825     ]
1826   },
1827   {
1828     "id": "ae69a5b4.bcb4d8",
1829     "type": "comment",
1830     "name": "TODO: Rework after confirmation from AAI",
1831     "info": "",
1832     "comments": "",
1833     "x": 1014.1415405273438,
1834     "y": 2628.8776049613953,
1835     "z": "4f77841b.f6c90c",
1836     "wires": [
1837       
1838     ]
1839   },
1840   {
1841     "id": "a26aed10.bae5b",
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": 728.5503273010254,
1847     "y": 2572.8320474624634,
1848     "z": "4f77841b.f6c90c",
1849     "wires": [
1850       
1851     ]
1852   },
1853   {
1854     "id": "4c5d18d9.d86fb8",
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": 696.9634094238281,
1860     "y": 2733.447799682617,
1861     "z": "4f77841b.f6c90c",
1862     "wires": [
1863       
1864     ]
1865   },
1866   {
1867     "id": "69a30b87.057684",
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": 778.2824287414551,
1874     "y": 2480.4728212356567,
1875     "z": "4f77841b.f6c90c",
1876     "wires": [
1877       [
1878         "28d10010.8846d",
1879         "a946bcd6.894fb",
1880         "dceabbc6.4f8628"
1881       ]
1882     ]
1883   },
1884   {
1885     "id": "28d10010.8846d",
1886     "type": "not-found",
1887     "name": "not-found",
1888     "xml": "<outcome value='not-found'>\n",
1889     "comments": "",
1890     "outputs": 1,
1891     "x": 1046.9238052368164,
1892     "y": 2531.8042329773307,
1893     "z": "4f77841b.f6c90c",
1894     "wires": [
1895       [
1896         "8ae56ed5.c0311"
1897       ]
1898     ]
1899   },
1900   {
1901     "id": "a946bcd6.894fb",
1902     "type": "failure",
1903     "name": "failure",
1904     "xml": "<outcome value='failure'>\n",
1905     "comments": "",
1906     "outputs": 1,
1907     "x": 1037.9238548278809,
1908     "y": 2500.3042587265372,
1909     "z": "4f77841b.f6c90c",
1910     "wires": [
1911       [
1912         "8ae56ed5.c0311"
1913       ]
1914     ]
1915   },
1916   {
1917     "id": "dceabbc6.4f8628",
1918     "type": "success",
1919     "name": "success",
1920     "xml": "<outcome value='success'>\n",
1921     "comments": "",
1922     "outputs": 1,
1923     "x": 1041.6738929748535,
1924     "y": 2470.6613636016846,
1925     "z": "4f77841b.f6c90c",
1926     "wires": [
1927       [
1928         "fec8c7a7.259eb8"
1929       ]
1930     ]
1931   },
1932   {
1933     "id": "8ae56ed5.c0311",
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": 1207.6738929748535,
1939     "y": 2501.054282568395,
1940     "z": "4f77841b.f6c90c",
1941     "wires": [
1942       
1943     ]
1944   },
1945   {
1946     "id": "fec8c7a7.259eb8",
1947     "type": "block",
1948     "name": "block",
1949     "xml": "<block>\n",
1950     "atomic": "false",
1951     "comments": "",
1952     "outputs": 1,
1953     "x": 1183.3298606872559,
1954     "y": 2466.8535327911377,
1955     "z": "4f77841b.f6c90c",
1956     "wires": [
1957       [
1958         
1959       ]
1960     ]
1961   },
1962   {
1963     "id": "447e9068.877d",
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": 683.4960250854492,
1969     "y": 2331.8538014888763,
1970     "z": "4f77841b.f6c90c",
1971     "wires": [
1972       
1973     ]
1974   },
1975   {
1976     "id": "195a1754.387c79",
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": 700.781867980957,
1983     "y": 2404.4733991622925,
1984     "z": "4f77841b.f6c90c",
1985     "wires": [
1986       [
1987         
1988       ]
1989     ]
1990   },
1991   {
1992     "id": "17bafb78.38c045",
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": 750.7689476013184,
1998     "y": 2441.424479484558,
1999     "z": "4f77841b.f6c90c",
2000     "wires": [
2001       
2002     ]
2003   },
2004   {
2005     "id": "4b7801cc.5bfc5",
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": 697.3375663757324,
2011     "y": 2371.0284519195557,
2012     "z": "4f77841b.f6c90c",
2013     "wires": [
2014       
2015     ]
2016   },
2017   {
2018     "id": "4bbe982e.918098",
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": 810.671028137207,
2024     "y": 2292.0284039974213,
2025     "z": "4f77841b.f6c90c",
2026     "wires": [
2027       
2028     ]
2029   },
2030   {
2031     "id": "cbc69d8c.531e6",
2032     "type": "comment",
2033     "name": "Add to allotted-resources in mdsal",
2034     "info": "",
2035     "comments": "",
2036     "x": 752.2508544921875,
2037     "y": 2259.4417057037354,
2038     "z": "4f77841b.f6c90c",
2039     "wires": [
2040       
2041     ]
2042   },
2043   {
2044     "id": "bc43d14.b5aca3",
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": 740.2269096374512,
2051     "y": 2688.7587089538574,
2052     "z": "4f77841b.f6c90c",
2053     "wires": [
2054       [
2055         "e2b1aa80.433d58",
2056         "b0220db9.73208"
2057       ]
2058     ]
2059   },
2060   {
2061     "id": "fe3d007c.a7b3a",
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": 1050.9766693115234,
2068     "y": 1586.2583985328674,
2069     "z": "4f77841b.f6c90c",
2070     "wires": [
2071       [
2072         "4a299f49.a1b2",
2073         "c4483a2a.ee5b88"
2074       ]
2075     ]
2076   },
2077   {
2078     "id": "4a299f49.a1b2",
2079     "type": "success",
2080     "name": "success",
2081     "xml": "<outcome value='success'>\n",
2082     "comments": "",
2083     "outputs": 1,
2084     "x": 1357.9766120910645,
2085     "y": 1607.2582454681396,
2086     "z": "4f77841b.f6c90c",
2087     "wires": [
2088       [
2089         "5d2783a1.6d3b9c"
2090       ]
2091     ]
2092   },
2093   {
2094     "id": "5d2783a1.6d3b9c",
2095     "type": "block",
2096     "name": "block : atomic",
2097     "xml": "<block atomic=\"true\">",
2098     "atomic": "true",
2099     "comments": "",
2100     "outputs": 1,
2101     "x": 1527.9765510559082,
2102     "y": 1610.2582454681396,
2103     "z": "4f77841b.f6c90c",
2104     "wires": [
2105       [
2106         
2107       ]
2108     ]
2109   },
2110   {
2111     "id": "17a7cdf5.434e32",
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": 1527.9766731262207,
2117     "y": 1566.2582454681396,
2118     "z": "4f77841b.f6c90c",
2119     "wires": [
2120       
2121     ]
2122   },
2123   {
2124     "id": "c4483a2a.ee5b88",
2125     "type": "failure",
2126     "name": "failure",
2127     "xml": "<outcome value='failure'>\n",
2128     "comments": "",
2129     "outputs": 1,
2130     "x": 1360.9765510559082,
2131     "y": 1566.2582454681396,
2132     "z": "4f77841b.f6c90c",
2133     "wires": [
2134       [
2135         "17a7cdf5.434e32"
2136       ]
2137     ]
2138   },
2139   {
2140     "id": "f41dba91.d30b78",
2141     "type": "comment",
2142     "name": "Get VPNs from OOF",
2143     "info": "",
2144     "comments": "",
2145     "x": 970.9805603027344,
2146     "y": 1549.2623658180237,
2147     "z": "4f77841b.f6c90c",
2148     "wires": [
2149       
2150     ]
2151   },
2152   {
2153     "id": "d535134a.50d41",
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": 1001.9765586853027,
2160     "y": 1670.5079641342163,
2161     "z": "4f77841b.f6c90c",
2162     "wires": [
2163       [
2164         "1e57fa4c.c37666"
2165       ]
2166     ]
2167   },
2168   {
2169     "id": "39fad139.2c54be",
2170     "type": "comment",
2171     "name": "Loop through VPN and configure them",
2172     "info": "",
2173     "comments": "",
2174     "x": 1023.976676940918,
2175     "y": 1634.0082244873047,
2176     "z": "4f77841b.f6c90c",
2177     "wires": [
2178       
2179     ]
2180   },
2181   {
2182     "id": "d4ff5a6.b2eb6a8",
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": 3002.7609481811523,
2189     "y": 1181.1256585121155,
2190     "z": "4f77841b.f6c90c",
2191     "wires": [
2192       [
2193         "3a16beb3.77fd72"
2194       ]
2195     ]
2196   },
2197   {
2198     "id": "3a16beb3.77fd72",
2199     "type": "outcomeTrue",
2200     "name": "true",
2201     "xml": "<outcome value='true'>\n",
2202     "comments": "",
2203     "outputs": 1,
2204     "x": 3189.760955810547,
2205     "y": 1175.1255955696106,
2206     "z": "4f77841b.f6c90c",
2207     "wires": [
2208       [
2209         "16ef01df.25c11e"
2210       ]
2211     ]
2212   },
2213   {
2214     "id": "16ef01df.25c11e",
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": 3451.761245727539,
2220     "y": 1161.7256226539612,
2221     "z": "4f77841b.f6c90c",
2222     "wires": [
2223       
2224     ]
2225   },
2226   {
2227     "id": "42092cc3.b6ed84",
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": 3013.600616455078,
2234     "y": 1219.125593662262,
2235     "z": "4f77841b.f6c90c",
2236     "wires": [
2237       [
2238         "23eb9630.e037ca"
2239       ]
2240     ]
2241   },
2242   {
2243     "id": "23eb9630.e037ca",
2244     "type": "outcomeTrue",
2245     "name": "true",
2246     "xml": "<outcome value='true'>\n",
2247     "comments": "",
2248     "outputs": 1,
2249     "x": 3183.600616455078,
2250     "y": 1215.125593662262,
2251     "z": "4f77841b.f6c90c",
2252     "wires": [
2253       [
2254         "eb3f5617.6e6248"
2255       ]
2256     ]
2257   },
2258   {
2259     "id": "eb3f5617.6e6248",
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": 3370.934057235718,
2265     "y": 1213.5867505073547,
2266     "z": "4f77841b.f6c90c",
2267     "wires": [
2268       
2269     ]
2270   },
2271   {
2272     "id": "297544d9.6ec98c",
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": 2998.983009338379,
2279     "y": 1265.4589972496033,
2280     "z": "4f77841b.f6c90c",
2281     "wires": [
2282       [
2283         "dbc7c34c.cdaf7"
2284       ]
2285     ]
2286   },
2287   {
2288     "id": "dbc7c34c.cdaf7",
2289     "type": "outcomeTrue",
2290     "name": "true",
2291     "xml": "<outcome value='true'>\n",
2292     "comments": "",
2293     "outputs": 1,
2294     "x": 3190.982997894287,
2295     "y": 1258.458920955658,
2296     "z": "4f77841b.f6c90c",
2297     "wires": [
2298       [
2299         "6550e027.0b278"
2300       ]
2301     ]
2302   },
2303   {
2304     "id": "6550e027.0b278",
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": 3358.982997894287,
2310     "y": 1259.0589270591736,
2311     "z": "4f77841b.f6c90c",
2312     "wires": [
2313       
2314     ]
2315   },
2316   {
2317     "id": "b4d50d62.6f88a",
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": 2985.822654724121,
2324     "y": 1352.4589791297913,
2325     "z": "4f77841b.f6c90c",
2326     "wires": [
2327       [
2328         "451e6ff5.dd741"
2329       ]
2330     ]
2331   },
2332   {
2333     "id": "451e6ff5.dd741",
2334     "type": "outcomeTrue",
2335     "name": "true",
2336     "xml": "<outcome value='true'>\n",
2337     "comments": "",
2338     "outputs": 1,
2339     "x": 3193.822723388672,
2340     "y": 1348.4589924812317,
2341     "z": "4f77841b.f6c90c",
2342     "wires": [
2343       [
2344         "4615d379.ef895c"
2345       ]
2346     ]
2347   },
2348   {
2349     "id": "4615d379.ef895c",
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": 3343.1560440063477,
2355     "y": 1346.9201397895813,
2356     "z": "4f77841b.f6c90c",
2357     "wires": [
2358       
2359     ]
2360   },
2361   {
2362     "id": "66d53edd.cdef9",
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": 3005.1311264038086,
2369     "y": 1306.2366981506348,
2370     "z": "4f77841b.f6c90c",
2371     "wires": [
2372       [
2373         "654a7b17.6fec94"
2374       ]
2375     ]
2376   },
2377   {
2378     "id": "654a7b17.6fec94",
2379     "type": "outcomeTrue",
2380     "name": "true",
2381     "xml": "<outcome value='true'>\n",
2382     "comments": "",
2383     "outputs": 1,
2384     "x": 3192.1311264038086,
2385     "y": 1302.2366981506348,
2386     "z": "4f77841b.f6c90c",
2387     "wires": [
2388       [
2389         "2fb4b95a.7ae496"
2390       ]
2391     ]
2392   },
2393   {
2394     "id": "2fb4b95a.7ae496",
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": 3361.46475982666,
2400     "y": 1299.6978631019592,
2401     "z": "4f77841b.f6c90c",
2402     "wires": [
2403       
2404     ]
2405   },
2406   {
2407     "id": "64cab1cd.5d443",
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": 2987.113105773926,
2414     "y": 1395.1568455696106,
2415     "z": "4f77841b.f6c90c",
2416     "wires": [
2417       [
2418         "6c9f358b.4ef8ec"
2419       ]
2420     ]
2421   },
2422   {
2423     "id": "6c9f358b.4ef8ec",
2424     "type": "outcomeTrue",
2425     "name": "true",
2426     "xml": "<outcome value='true'>\n",
2427     "comments": "",
2428     "outputs": 1,
2429     "x": 3189.113067626953,
2430     "y": 1390.1568655967712,
2431     "z": "4f77841b.f6c90c",
2432     "wires": [
2433       [
2434         "e70be1bb.0faca"
2435       ]
2436     ]
2437   },
2438   {
2439     "id": "e70be1bb.0faca",
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": 3345.4465713500977,
2445     "y": 1389.618001461029,
2446     "z": "4f77841b.f6c90c",
2447     "wires": [
2448       
2449     ]
2450   },
2451   {
2452     "id": "10c9f83a.94e8c8",
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": 3014.1133766174316,
2459     "y": 1449.1568112373352,
2460     "z": "4f77841b.f6c90c",
2461     "wires": [
2462       [
2463         "1f4cc1a3.6b11ee"
2464       ]
2465     ]
2466   },
2467   {
2468     "id": "1f4cc1a3.6b11ee",
2469     "type": "outcomeTrue",
2470     "name": "true",
2471     "xml": "<outcome value='true'>\n",
2472     "comments": "",
2473     "outputs": 1,
2474     "x": 3192.113380432129,
2475     "y": 1443.1568036079407,
2476     "z": "4f77841b.f6c90c",
2477     "wires": [
2478       [
2479         "9c3700e2.9346b"
2480       ]
2481     ]
2482   },
2483   {
2484     "id": "9c3700e2.9346b",
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": 3373.4467582702637,
2490     "y": 1442.617962360382,
2491     "z": "4f77841b.f6c90c",
2492     "wires": [
2493       
2494     ]
2495   },
2496   {
2497     "id": "17843ccd.4f45d3",
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": 3014.113384246826,
2504     "y": 1495.1568360328674,
2505     "z": "4f77841b.f6c90c",
2506     "wires": [
2507       [
2508         "1a061794.0a46a8"
2509       ]
2510     ]
2511   },
2512   {
2513     "id": "1a061794.0a46a8",
2514     "type": "outcomeTrue",
2515     "name": "true",
2516     "xml": "<outcome value='true'>\n",
2517     "comments": "",
2518     "outputs": 1,
2519     "x": 3192.1133766174316,
2520     "y": 1487.156804561615,
2521     "z": "4f77841b.f6c90c",
2522     "wires": [
2523       [
2524         "17025d4a.2f4a83"
2525       ]
2526     ]
2527   },
2528   {
2529     "id": "17025d4a.2f4a83",
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": 3377.4467582702637,
2535     "y": 1487.6179871559143,
2536     "z": "4f77841b.f6c90c",
2537     "wires": [
2538       
2539     ]
2540   },
2541   {
2542     "id": "894df50e.725b18",
2543     "type": "comment",
2544     "name": "Check if other EP exists in SOTNConnectionResource",
2545     "info": "",
2546     "comments": "",
2547     "x": 3117.3167114257812,
2548     "y": 1048.7922387123108,
2549     "z": "4f77841b.f6c90c",
2550     "wires": [
2551       
2552     ]
2553   },
2554   {
2555     "id": "cac8b97a.954468",
2556     "type": "comment",
2557     "name": "Get other global parameters from network",
2558     "info": "",
2559     "comments": "",
2560     "x": 3088.3165130615234,
2561     "y": 1140.792191028595,
2562     "z": "4f77841b.f6c90c",
2563     "wires": [
2564       
2565     ]
2566   },
2567   {
2568     "id": "2020b84a.aa3f78",
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": 1775.53857421875,
2575     "y": 1544.2365727424622,
2576     "z": "4f77841b.f6c90c",
2577     "wires": [
2578       [
2579         "b2fc0056.5b557"
2580       ]
2581     ]
2582   },
2583   {
2584     "id": "b2fc0056.5b557",
2585     "type": "outcomeTrue",
2586     "name": "true",
2587     "xml": "<outcome value='true'>\n",
2588     "comments": "",
2589     "outputs": 1,
2590     "x": 1962.53857421875,
2591     "y": 1540.2365727424622,
2592     "z": "4f77841b.f6c90c",
2593     "wires": [
2594       [
2595         "d84c0472.872308"
2596       ]
2597     ]
2598   },
2599   {
2600     "id": "d84c0472.872308",
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": 2130.53857421875,
2606     "y": 1540.8365788459778,
2607     "z": "4f77841b.f6c90c",
2608     "wires": [
2609       
2610     ]
2611   },
2612   {
2613     "id": "2fc4c609.3e5f6a",
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": 1766.538589477539,
2620     "y": 1587.2470211982727,
2621     "z": "4f77841b.f6c90c",
2622     "wires": [
2623       [
2624         "d33716c2.7a5c08"
2625       ]
2626     ]
2627   },
2628   {
2629     "id": "d33716c2.7a5c08",
2630     "type": "outcomeTrue",
2631     "name": "true",
2632     "xml": "<outcome value='true'>\n",
2633     "comments": "",
2634     "outputs": 1,
2635     "x": 1953.538589477539,
2636     "y": 1583.2470211982727,
2637     "z": "4f77841b.f6c90c",
2638     "wires": [
2639       [
2640         "f4503085.70e8"
2641       ]
2642     ]
2643   },
2644   {
2645     "id": "f4503085.70e8",
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": 2121.538589477539,
2651     "y": 1583.8470273017883,
2652     "z": "4f77841b.f6c90c",
2653     "wires": [
2654       
2655     ]
2656   },
2657   {
2658     "id": "8d865fcb.ed997",
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": 1779.5385341644287,
2665     "y": 1629.247052192688,
2666     "z": "4f77841b.f6c90c",
2667     "wires": [
2668       [
2669         "2b04431a.afbcfc"
2670       ]
2671     ]
2672   },
2673   {
2674     "id": "2b04431a.afbcfc",
2675     "type": "outcomeTrue",
2676     "name": "true",
2677     "xml": "<outcome value='true'>\n",
2678     "comments": "",
2679     "outputs": 1,
2680     "x": 1966.5385341644287,
2681     "y": 1625.247052192688,
2682     "z": "4f77841b.f6c90c",
2683     "wires": [
2684       [
2685         "28052521.1d41ea"
2686       ]
2687     ]
2688   },
2689   {
2690     "id": "28052521.1d41ea",
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": 2134.5385341644287,
2696     "y": 1625.8470582962036,
2697     "z": "4f77841b.f6c90c",
2698     "wires": [
2699       
2700     ]
2701   },
2702   {
2703     "id": "1e57fa4c.c37666",
2704     "type": "block",
2705     "name": "block : atomic",
2706     "xml": "<block atomic=\"true\">",
2707     "atomic": "true",
2708     "outputs": 1,
2709     "x": 1074.0940399169922,
2710     "y": 1756.348135471344,
2711     "z": "4f77841b.f6c90c",
2712     "wires": [
2713       [
2714         "17954934.ffd177",
2715         "edff10aa.4477f",
2716         "4a7a7654.befdb8",
2717         "d70e06b2.ae06d8",
2718         "fb8e8802.2321a8",
2719         "c8bfc2b1.75cdd",
2720         "b738f9eb.4faa78",
2721         "73934aff.e9fd34",
2722         "e16ca07c.f4def",
2723         "44ac5fd1.a9ce3"
2724       ]
2725     ]
2726   },
2727   {
2728     "id": "741fad04.c0bcd4",
2729     "type": "set",
2730     "name": "set controller data",
2731     "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",
2732     "comments": "",
2733     "x": 1772.53857421875,
2734     "y": 1910.6810307502747,
2735     "z": "4f77841b.f6c90c",
2736     "wires": [
2737       
2738     ]
2739   },
2740   {
2741     "id": "edff10aa.4477f",
2742     "type": "get-resource",
2743     "name": "get-resource esr-thirdparty-sdnc",
2744     "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",
2745     "comments": "",
2746     "outputs": 1,
2747     "x": 1336.0385131835938,
2748     "y": 1969.6810307502747,
2749     "z": "4f77841b.f6c90c",
2750     "wires": [
2751       [
2752         "b6132182.e115",
2753         "b6234a23.02b418",
2754         "52c7285a.09ea48"
2755       ]
2756     ]
2757   },
2758   {
2759     "id": "b6132182.e115",
2760     "type": "success",
2761     "name": "success",
2762     "xml": "<outcome value='success'>\n",
2763     "comments": "",
2764     "outputs": 1,
2765     "x": 1575.0385131835938,
2766     "y": 1922.6810307502747,
2767     "z": "4f77841b.f6c90c",
2768     "wires": [
2769       [
2770         "741fad04.c0bcd4"
2771       ]
2772     ]
2773   },
2774   {
2775     "id": "b6234a23.02b418",
2776     "type": "not-found",
2777     "name": "not-found",
2778     "xml": "<outcome value='not-found'>\n",
2779     "comments": "",
2780     "outputs": 1,
2781     "x": 1578.5294799804688,
2782     "y": 1970.255066394806,
2783     "z": "4f77841b.f6c90c",
2784     "wires": [
2785       [
2786         "39fa3945.b568c6"
2787       ]
2788     ]
2789   },
2790   {
2791     "id": "52c7285a.09ea48",
2792     "type": "other",
2793     "name": "other",
2794     "xml": "<outcome value='Other'>\n",
2795     "comments": "",
2796     "outputs": 1,
2797     "x": 1573.8624877929688,
2798     "y": 2011.5883793830872,
2799     "z": "4f77841b.f6c90c",
2800     "wires": [
2801       [
2802         "5bc6d6e6.4253f8"
2803       ]
2804     ]
2805   },
2806   {
2807     "id": "39fa3945.b568c6",
2808     "type": "returnFailure",
2809     "name": "return failure",
2810     "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",
2811     "comments": "",
2812     "x": 1755.1008911132812,
2813     "y": 1958.5408024787903,
2814     "z": "4f77841b.f6c90c",
2815     "wires": [
2816       
2817     ]
2818   },
2819   {
2820     "id": "5bc6d6e6.4253f8",
2821     "type": "returnFailure",
2822     "name": "return failure",
2823     "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",
2824     "comments": "",
2825     "x": 1761.6350440979004,
2826     "y": 2007.0275721549988,
2827     "z": "4f77841b.f6c90c",
2828     "wires": [
2829       
2830     ]
2831   },
2832   {
2833     "id": "4a7a7654.befdb8",
2834     "type": "get-resource",
2835     "name": "get-resource pnf",
2836     "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",
2837     "comments": "",
2838     "outputs": 1,
2839     "x": 1282.53857421875,
2840     "y": 1782.6810307502747,
2841     "z": "4f77841b.f6c90c",
2842     "wires": [
2843       [
2844         "c669a474.548c18",
2845         "49f40d92.f6bd74",
2846         "a24623ca.7bac3"
2847       ]
2848     ]
2849   },
2850   {
2851     "id": "c669a474.548c18",
2852     "type": "success",
2853     "name": "success",
2854     "xml": "<outcome value='success'>\n",
2855     "comments": "",
2856     "outputs": 1,
2857     "x": 1629.5385131835938,
2858     "y": 1786.6810612678528,
2859     "z": "4f77841b.f6c90c",
2860     "wires": [
2861       [
2862         "d3849e4d.16c6c"
2863       ]
2864     ]
2865   },
2866   {
2867     "id": "49f40d92.f6bd74",
2868     "type": "not-found",
2869     "name": "not-found",
2870     "xml": "<outcome value='not-found'>\n",
2871     "comments": "",
2872     "outputs": 1,
2873     "x": 1633.0294799804688,
2874     "y": 1834.255096912384,
2875     "z": "4f77841b.f6c90c",
2876     "wires": [
2877       [
2878         "cbab0518.f00ef8"
2879       ]
2880     ]
2881   },
2882   {
2883     "id": "a24623ca.7bac3",
2884     "type": "other",
2885     "name": "other",
2886     "xml": "<outcome value='Other'>\n",
2887     "comments": "",
2888     "outputs": 1,
2889     "x": 1628.3624877929688,
2890     "y": 1875.5884099006653,
2891     "z": "4f77841b.f6c90c",
2892     "wires": [
2893       [
2894         "4095ec2a.4a6c64"
2895       ]
2896     ]
2897   },
2898   {
2899     "id": "cbab0518.f00ef8",
2900     "type": "returnFailure",
2901     "name": "return failure",
2902     "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",
2903     "comments": "",
2904     "x": 1809.6008911132812,
2905     "y": 1822.5408329963684,
2906     "z": "4f77841b.f6c90c",
2907     "wires": [
2908       
2909     ]
2910   },
2911   {
2912     "id": "4095ec2a.4a6c64",
2913     "type": "returnFailure",
2914     "name": "return failure",
2915     "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",
2916     "comments": "",
2917     "x": 1816.1350440979004,
2918     "y": 1871.027602672577,
2919     "z": "4f77841b.f6c90c",
2920     "wires": [
2921       
2922     ]
2923   },
2924   {
2925     "id": "d3849e4d.16c6c",
2926     "type": "set",
2927     "name": "set tmp.thirdparty-sdnc-id",
2928     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
2929     "comments": "",
2930     "x": 1833.5385131835938,
2931     "y": 1773.6810612678528,
2932     "z": "4f77841b.f6c90c",
2933     "wires": [
2934       
2935     ]
2936   },
2937   {
2938     "id": "b5630d7.89ad9f",
2939     "type": "comment",
2940     "name": "get domain controller information",
2941     "info": "",
2942     "comments": "",
2943     "x": 1327.0424423217773,
2944     "y": 1748.6849284172058,
2945     "z": "4f77841b.f6c90c",
2946     "wires": [
2947       
2948     ]
2949   },
2950   {
2951     "id": "d70e06b2.ae06d8",
2952     "type": "set",
2953     "name": "set oof.vpn",
2954     "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
2955     "comments": "",
2956     "x": 1264.5385437011719,
2957     "y": 1709.792055606842,
2958     "z": "4f77841b.f6c90c",
2959     "wires": [
2960       
2961     ]
2962   },
2963   {
2964     "id": "fb8e8802.2321a8",
2965     "type": "save",
2966     "name": "save VPN resource in AAI",
2967     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='cvlan-tag-entry' value='`$prop.connection-attachment.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='configuration-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />",
2968     "comments": "",
2969     "outputs": 1,
2970     "x": 1313.00390625,
2971     "y": 2214.7540521621704,
2972     "z": "4f77841b.f6c90c",
2973     "wires": [
2974       [
2975         
2976       ]
2977     ]
2978   },
2979   {
2980     "id": "c8bfc2b1.75cdd",
2981     "type": "set",
2982     "name": "set tmp.vpnName",
2983     "xml": "<set>\n<parameter name='tmp.vpnName' value='`$oof.vpn.access-node-id + '-' + $prop.global.sotn.etht-svc-name`' />",
2984     "comments": "",
2985     "x": 1288.5039520263672,
2986     "y": 2176.2539596557617,
2987     "z": "4f77841b.f6c90c",
2988     "wires": [
2989       
2990     ]
2991   },
2992   {
2993     "id": "b738f9eb.4faa78",
2994     "type": "save",
2995     "name": "save connectivity relationship in AAI",
2996     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.networks.network[0].network-id`\" />",
2997     "comments": "",
2998     "outputs": 1,
2999     "x": 1340.0039367675781,
3000     "y": 2252.7539653778076,
3001     "z": "4f77841b.f6c90c",
3002     "wires": [
3003       [
3004         
3005       ]
3006     ]
3007   },
3008   {
3009     "id": "4b44bb19.a886d4",
3010     "type": "comment",
3011     "name": "save vpn and its relation to AAI",
3012     "info": "",
3013     "comments": "",
3014     "x": 1325.0039596557617,
3015     "y": 2140.7539899349213,
3016     "z": "4f77841b.f6c90c",
3017     "wires": [
3018       
3019     ]
3020   },
3021   {
3022     "id": "e16ca07c.f4def",
3023     "type": "set",
3024     "name": "set src-ltpId dst-ltpId",
3025     "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
3026     "comments": "",
3027     "x": 1292.0039672851562,
3028     "y": 2292.754026412964,
3029     "z": "4f77841b.f6c90c",
3030     "wires": [
3031       
3032     ]
3033   },
3034   {
3035     "id": "73934aff.e9fd34",
3036     "type": "save",
3037     "name": "save srcLTP relationship in AAI",
3038     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />",
3039     "comments": "",
3040     "outputs": 1,
3041     "x": 1325.00390625,
3042     "y": 2333.50390625,
3043     "z": "4f77841b.f6c90c",
3044     "wires": [
3045       [
3046         
3047       ]
3048     ]
3049   },
3050   {
3051     "id": "44ac5fd1.a9ce3",
3052     "type": "save",
3053     "name": "save dstLTP relationship in AAI",
3054     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $tmp.vpnName \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
3055     "comments": "",
3056     "outputs": 1,
3057     "x": 1326.00390625,
3058     "y": 2372.25390625,
3059     "z": "4f77841b.f6c90c",
3060     "wires": [
3061       [
3062         
3063       ]
3064     ]
3065   }
3066 ]