6005d810cf14a8e28f7fb84924628dc5033db228
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
1 [\r
2     {\r
3         "id": "7a5b2247.76a96c",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 115,\r
8         "y": 61,\r
9         "z": "9b26c8a0.a64c1",\r
10         "wires": [\r
11             [\r
12                 "8f393b9e.9e17b"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "8f393b9e.9e17b",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
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}'>",\r
24         "outputs": 1,\r
25         "x": 246.2856903076172,\r
26         "y": 110.23810863494873,\r
27         "z": "9b26c8a0.a64c1",\r
28         "wires": [\r
29             [\r
30                 "eff67602.0d4e4"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "eff67602.0d4e4",\r
36         "type": "method",\r
37         "name": "method sotn-vf-operation-uni-activate",\r
38         "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 249.42861938476562,\r
42         "y": 195.00003242492676,\r
43         "z": "9b26c8a0.a64c1",\r
44         "wires": [\r
45             [\r
46                 "c03d71cc.6719d8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "b1251334.94c658",\r
52         "type": "switchNode",\r
53         "name": "switch vf-modules.vf-module_length",\r
54         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 721.9959564208984,\r
58         "y": 375.99998915195465,\r
59         "z": "9b26c8a0.a64c1",\r
60         "wires": [\r
61             [\r
62                 "2185890c.41cf5e",\r
63                 "7887ee8e.f7ad9",\r
64                 "bf0b3d3b.de1c1"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "c03d71cc.6719d8",\r
70         "type": "block",\r
71         "name": "block : atomic",\r
72         "xml": "<block atomic=\"true\">",\r
73         "atomic": "true",\r
74         "outputs": 1,\r
75         "x": 340.6626205444336,\r
76         "y": 480.66670763492584,\r
77         "z": "9b26c8a0.a64c1",\r
78         "wires": [\r
79             [\r
80                 "b1251334.94c658",\r
81                 "e40d5cd3.6df488",\r
82                 "77bef901.3c81f",\r
83                 "f1780b76.81d518",\r
84                 "5733466d.dcbb88",\r
85                 "6d51d616.88647",\r
86                 "aab160b4.f76088",\r
87                 "48dc3a93.b23a44",\r
88                 "672fc75a.1e91b"\r
89             ]\r
90         ]\r
91     },\r
92     {\r
93         "id": "77bef901.3c81f",\r
94         "type": "for",\r
95         "name": "for each vnf",\r
96         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
97         "comments": "",\r
98         "outputs": 1,\r
99         "x": 687.0273170471191,\r
100         "y": 246.269144654274,\r
101         "z": "9b26c8a0.a64c1",\r
102         "wires": [\r
103             [\r
104                 "c9d21017.2aa0b8"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "e40d5cd3.6df488",\r
110         "type": "switchNode",\r
111         "name": "switch vnf_length",\r
112         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
113         "comments": "",\r
114         "outputs": 1,\r
115         "x": 691.9959716796875,\r
116         "y": 185.00001394748688,\r
117         "z": "9b26c8a0.a64c1",\r
118         "wires": [\r
119             [\r
120                 "eb024dbb.2172c"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "eb024dbb.2172c",\r
126         "type": "outcome",\r
127         "name": "NULL",\r
128         "xml": "<outcome value=''>\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 871.9959526062012,\r
132         "y": 184.0000034570694,\r
133         "z": "9b26c8a0.a64c1",\r
134         "wires": [\r
135             [\r
136                 "9467f8cc.185d38"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "9467f8cc.185d38",\r
142         "type": "returnFailure",\r
143         "name": "return failure",\r
144         "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
145         "comments": "",\r
146         "x": 1021.4246788024902,\r
147         "y": 185.14292109012604,\r
148         "z": "9b26c8a0.a64c1",\r
149         "wires": []\r
150     },\r
151     {\r
152         "id": "c9d21017.2aa0b8",\r
153         "type": "switchNode",\r
154         "name": "switch this vnf-id == input vnf-id",\r
155         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
156         "comments": "",\r
157         "outputs": 1,\r
158         "x": 909.9959678649902,\r
159         "y": 247.00000965595245,\r
160         "z": "9b26c8a0.a64c1",\r
161         "wires": [\r
162             [\r
163                 "5eb86cb5.aa0e34"\r
164             ]\r
165         ]\r
166     },\r
167     {\r
168         "id": "5eb86cb5.aa0e34",\r
169         "type": "outcomeTrue",\r
170         "name": "true",\r
171         "xml": "<outcome value='true'>\n",\r
172         "comments": "",\r
173         "outputs": 1,\r
174         "x": 1124.9959526062012,\r
175         "y": 245.0000034570694,\r
176         "z": "9b26c8a0.a64c1",\r
177         "wires": [\r
178             [\r
179                 "eb010427.42f398"\r
180             ]\r
181         ]\r
182     },\r
183     {\r
184         "id": "8fe487a9.faab98",\r
185         "type": "set",\r
186         "name": "set vnf-index",\r
187         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
188         "comments": "",\r
189         "x": 1465.9959716796875,\r
190         "y": 213,\r
191         "z": "9b26c8a0.a64c1",\r
192         "wires": []\r
193     },\r
194     {\r
195         "id": "7887ee8e.f7ad9",\r
196         "type": "outcome",\r
197         "name": "NULL",\r
198         "xml": "<outcome value=''>\n",\r
199         "comments": "",\r
200         "outputs": 1,\r
201         "x": 981.9959716796875,\r
202         "y": 400,\r
203         "z": "9b26c8a0.a64c1",\r
204         "wires": [\r
205             [\r
206                 "6182e795.96a958"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "2185890c.41cf5e",\r
212         "type": "outcome",\r
213         "name": "0",\r
214         "xml": "<outcome value='0'>\n",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 978.9959716796875,\r
218         "y": 328,\r
219         "z": "9b26c8a0.a64c1",\r
220         "wires": [\r
221             [\r
222                 "6182e795.96a958"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "6182e795.96a958",\r
228         "type": "returnFailure",\r
229         "name": "return failure",\r
230         "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
231         "comments": "",\r
232         "x": 1150.9959716796875,\r
233         "y": 362,\r
234         "z": "9b26c8a0.a64c1",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "bf0b3d3b.de1c1",\r
239         "type": "other",\r
240         "name": "other",\r
241         "xml": "<outcome value='Other'>\n",\r
242         "comments": "",\r
243         "outputs": 1,\r
244         "x": 943.9959487915039,\r
245         "y": 470.9999986886978,\r
246         "z": "9b26c8a0.a64c1",\r
247         "wires": [\r
248             [\r
249                 "f14d9e8b.d52ee8"\r
250             ]\r
251         ]\r
252     },\r
253     {\r
254         "id": "13dbecad.5f9583",\r
255         "type": "set",\r
256         "name": "set vf-module_length",\r
257         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
258         "comments": "",\r
259         "x": 1297.995964050293,\r
260         "y": 469.0000126361847,\r
261         "z": "9b26c8a0.a64c1",\r
262         "wires": []\r
263     },\r
264     {\r
265         "id": "f14d9e8b.d52ee8",\r
266         "type": "block",\r
267         "name": "block : atomic",\r
268         "xml": "<block atomic=\"true\">",\r
269         "atomic": "true",\r
270         "outputs": 1,\r
271         "x": 1104.995994567871,\r
272         "y": 467.99999010562897,\r
273         "z": "9b26c8a0.a64c1",\r
274         "wires": [\r
275             [\r
276                 "13dbecad.5f9583",\r
277                 "76e7a061.215fe"\r
278             ]\r
279         ]\r
280     },\r
281     {\r
282         "id": "76e7a061.215fe",\r
283         "type": "for",\r
284         "name": "for each existing vf-index",\r
285         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
286         "comments": "",\r
287         "outputs": 1,\r
288         "x": 1316.9959335327148,\r
289         "y": 521.9999891519547,\r
290         "z": "9b26c8a0.a64c1",\r
291         "wires": [\r
292             [\r
293                 "4d4229cc.870928"\r
294             ]\r
295         ]\r
296     },\r
297     {\r
298         "id": "4d4229cc.870928",\r
299         "type": "switchNode",\r
300         "name": "switch vf-module-id found",\r
301         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
302         "comments": "",\r
303         "outputs": 1,\r
304         "x": 1559.995948791504,\r
305         "y": 516.9999986886978,\r
306         "z": "9b26c8a0.a64c1",\r
307         "wires": [\r
308             [\r
309                 "235f500c.adb2d8"\r
310             ]\r
311         ]\r
312     },\r
313     {\r
314         "id": "235f500c.adb2d8",\r
315         "type": "outcomeTrue",\r
316         "name": "true",\r
317         "xml": "<outcome value='true'>\n",\r
318         "comments": "",\r
319         "outputs": 1,\r
320         "x": 1757.9959774017334,\r
321         "y": 504.00000536441803,\r
322         "z": "9b26c8a0.a64c1",\r
323         "wires": [\r
324             [\r
325                 "b98c0673.7d62f8"\r
326             ]\r
327         ]\r
328     },\r
329     {\r
330         "id": "b98c0673.7d62f8",\r
331         "type": "block",\r
332         "name": "block : atomic",\r
333         "xml": "<block atomic=\"true\">",\r
334         "atomic": "true",\r
335         "outputs": 1,\r
336         "x": 1909.995948791504,\r
337         "y": 505.9999986886978,\r
338         "z": "9b26c8a0.a64c1",\r
339         "wires": [\r
340             [\r
341                 "9c359698.db3d68",\r
342                 "1962516c.e21167"\r
343             ]\r
344         ]\r
345     },\r
346     {\r
347         "id": "9c359698.db3d68",\r
348         "type": "set",\r
349         "name": "set tmp.vidx and ctx.vnf-data",\r
350         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
351         "comments": "",\r
352         "x": 2137.996063232422,\r
353         "y": 448.0000025033951,\r
354         "z": "9b26c8a0.a64c1",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "1962516c.e21167",\r
359         "type": "set",\r
360         "name": "set vf-module-request-input.",\r
361         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
362         "comments": "",\r
363         "x": 2141.996063232422,\r
364         "y": 502.0000025033951,\r
365         "z": "9b26c8a0.a64c1",\r
366         "wires": []\r
367     },\r
368     {\r
369         "id": "f1780b76.81d518",\r
370         "type": "returnSuccess",\r
371         "name": "return success",\r
372         "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",\r
373         "comments": "",\r
374         "x": 615.9961547851562,\r
375         "y": 1675.501220703125,\r
376         "z": "9b26c8a0.a64c1",\r
377         "wires": []\r
378     },\r
379     {\r
380         "id": "29a9aeb.30d1952",\r
381         "type": "call",\r
382         "name": "call sotn-get-vf-module-uni-param",\r
383         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",\r
384         "comments": "",\r
385         "outputs": 1,\r
386         "x": 2172.45108795166,\r
387         "y": 553.0104948282242,\r
388         "z": "9b26c8a0.a64c1",\r
389         "wires": [\r
390             []\r
391         ]\r
392     },\r
393     {\r
394         "id": "5733466d.dcbb88",\r
395         "type": "execute",\r
396         "name": "execute Properties",\r
397         "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",\r
398         "comments": "",\r
399         "outputs": 1,\r
400         "x": 701.9959564208984,\r
401         "y": 315.5039049386978,\r
402         "z": "9b26c8a0.a64c1",\r
403         "wires": [\r
404             []\r
405         ]\r
406     },\r
407     {\r
408         "id": "eb010427.42f398",\r
409         "type": "block",\r
410         "name": "block : atomic",\r
411         "xml": "<block atomic=\"true\">",\r
412         "atomic": "true",\r
413         "outputs": 1,\r
414         "x": 1288,\r
415         "y": 255,\r
416         "z": "9b26c8a0.a64c1",\r
417         "wires": [\r
418             [\r
419                 "8fe487a9.faab98",\r
420                 "c2b0533e.d5b1d"\r
421             ]\r
422         ]\r
423     },\r
424     {\r
425         "id": "c2b0533e.d5b1d",\r
426         "type": "set",\r
427         "name": "set tmp.vnf-id",\r
428         "xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",\r
429         "comments": "",\r
430         "x": 1473,\r
431         "y": 270,\r
432         "z": "9b26c8a0.a64c1",\r
433         "wires": []\r
434     },\r
435     {\r
436         "id": "48dc3a93.b23a44",\r
437         "type": "get-resource",\r
438         "name": "get-resource generic-vnf",\r
439         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n<!--AND depth = '0'\"-->\n\n",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 594,\r
443         "y": 534,\r
444         "z": "9b26c8a0.a64c1",\r
445         "wires": [\r
446             [\r
447                 "28391a2c.3321fe"\r
448             ]\r
449         ]\r
450     },\r
451     {\r
452         "id": "6a811cc0.b174ac",\r
453         "type": "block",\r
454         "name": "block",\r
455         "xml": "<block>\n",\r
456         "atomic": "false",\r
457         "comments": "",\r
458         "outputs": 1,\r
459         "x": 824,\r
460         "y": 582,\r
461         "z": "9b26c8a0.a64c1",\r
462         "wires": [\r
463             [\r
464                 "1afc6101.b3a3ff",\r
465                 "6ac23f85.2f3a38"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "6ac23f85.2f3a38",\r
471         "type": "for",\r
472         "name": "for each relationship in gen-vnf",\r
473         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 1036,\r
477         "y": 585,\r
478         "z": "9b26c8a0.a64c1",\r
479         "wires": [\r
480             [\r
481                 "5e0bc542.fea784"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "5e0bc542.fea784",\r
487         "type": "switchNode",\r
488         "name": "switch related-to",\r
489         "xml": "<switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 1262,\r
493         "y": 589,\r
494         "z": "9b26c8a0.a64c1",\r
495         "wires": [\r
496             [\r
497                 "ad3f5adb.0bf5b8"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "ad3f5adb.0bf5b8",\r
503         "type": "outcome",\r
504         "name": "uni",\r
505         "xml": "<outcome value='uni'>\n",\r
506         "comments": "",\r
507         "outputs": 1,\r
508         "x": 1451.285888671875,\r
509         "y": 597.82177734375,\r
510         "z": "9b26c8a0.a64c1",\r
511         "wires": [\r
512             [\r
513                 "4a0655ab.fa2fa4"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "4a0655ab.fa2fa4",\r
519         "type": "block",\r
520         "name": "block : atomic",\r
521         "xml": "<block atomic=\"true\">",\r
522         "atomic": "true",\r
523         "outputs": 1,\r
524         "x": 1626.117431640625,\r
525         "y": 600.3402709960938,\r
526         "z": "9b26c8a0.a64c1",\r
527         "wires": [\r
528             [\r
529                 "8a87ece8.73f728"\r
530             ]\r
531         ]\r
532     },\r
533     {\r
534         "id": "2cd069f4.1bd85e",\r
535         "type": "set",\r
536         "name": "set tmp.unis.uni[].tpId",\r
537         "xml": "<set>\n<!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />-->\n\n<parameter name='tmp.tp-id' value=\"`$tmp.aai.uni.tp-id`\" />\n",\r
538         "comments": "",\r
539         "x": 2557.117431640625,\r
540         "y": 641.3402709960938,\r
541         "z": "9b26c8a0.a64c1",\r
542         "wires": []\r
543     },\r
544     {\r
545         "id": "1afc6101.b3a3ff",\r
546         "type": "switchNode",\r
547         "name": "switch number of unis  less than two",\r
548         "xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",\r
549         "comments": "",\r
550         "outputs": 1,\r
551         "x": 1011,\r
552         "y": 749,\r
553         "z": "9b26c8a0.a64c1",\r
554         "wires": [\r
555             [\r
556                 "3398154f.dabcca"\r
557             ]\r
558         ]\r
559     },\r
560     {\r
561         "id": "f0dacaa2.3f6d9",\r
562         "type": "returnSuccess",\r
563         "name": "return success",\r
564         "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\n",\r
565         "comments": "",\r
566         "x": 1419,\r
567         "y": 751,\r
568         "z": "9b26c8a0.a64c1",\r
569         "wires": []\r
570     },\r
571     {\r
572         "id": "3398154f.dabcca",\r
573         "type": "outcomeTrue",\r
574         "name": "true",\r
575         "xml": "<outcome value='true'>\n",\r
576         "comments": "",\r
577         "outputs": 1,\r
578         "x": 1227,\r
579         "y": 750,\r
580         "z": "9b26c8a0.a64c1",\r
581         "wires": [\r
582             [\r
583                 "f0dacaa2.3f6d9"\r
584             ]\r
585         ]\r
586     },\r
587     {\r
588         "id": "e85654b4.901fd",\r
589         "type": "execute",\r
590         "name": "execute split tp-id to get pnf-name",\r
591         "xml": "<!--<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >-->\n<!--<parameter name=\"original_string\" value='`tmp.unis.uni[$vidx].tp-id`'/>-->\n<!--<parameter name=\"regex\" value=\"nodeId\"/>-->\n<!--<parameter name=\"tmp.unis.uni[$vidx].pnf-name\" value=\"\"/>-->\n\n<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`tmp.aai.uni.tp-id`'/>\n<parameter name=\"regex\" value=\"nodeId\"/>\n<parameter name=\"tmp.aai.uni.pnf-name\" value=\"\"/>",\r
592         "comments": "",\r
593         "outputs": 1,\r
594         "x": 2596,\r
595         "y": 716,\r
596         "z": "9b26c8a0.a64c1",\r
597         "wires": [\r
598             [\r
599                 "fb92d303.a6d858",\r
600                 "3b07d667.72d91a"\r
601             ]\r
602         ]\r
603     },\r
604     {\r
605         "id": "3b07d667.72d91a",\r
606         "type": "failure",\r
607         "name": "success",\r
608         "xml": "<outcome value='success'>\n",\r
609         "comments": "",\r
610         "outputs": 1,\r
611         "x": 2819,\r
612         "y": 671,\r
613         "z": "9b26c8a0.a64c1",\r
614         "wires": [\r
615             [\r
616                 "9111f685.17b2e8"\r
617             ]\r
618         ]\r
619     },\r
620     {\r
621         "id": "fb92d303.a6d858",\r
622         "type": "failure",\r
623         "name": "failure",\r
624         "xml": "<outcome value='failure'>\n",\r
625         "comments": "",\r
626         "outputs": 1,\r
627         "x": 2821,\r
628         "y": 735,\r
629         "z": "9b26c8a0.a64c1",\r
630         "wires": [\r
631             [\r
632                 "1432f6d2.d75751"\r
633             ]\r
634         ]\r
635     },\r
636     {\r
637         "id": "9111f685.17b2e8",\r
638         "type": "set",\r
639         "name": "set ipAddress prefixLength",\r
640         "xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",\r
641         "comments": "",\r
642         "x": 3041,\r
643         "y": 673,\r
644         "z": "9b26c8a0.a64c1",\r
645         "wires": []\r
646     },\r
647     {\r
648         "id": "1432f6d2.d75751",\r
649         "type": "returnFailure",\r
650         "name": "return failure",\r
651         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
652         "comments": "",\r
653         "x": 2980,\r
654         "y": 754,\r
655         "z": "9b26c8a0.a64c1",\r
656         "wires": []\r
657     },\r
658     {\r
659         "id": "596112fe.dbc0a4",\r
660         "type": "get-resource",\r
661         "name": "get-resource pnf",\r
662         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\t\tresource=\"generic-vnf\" -->\n<!--\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\n<!--\t\tAND depth = '0'\"-->\n<!--        pfx='tmp.aai.generic-vnf' local-only='false' >-->",\r
663         "comments": "",\r
664         "outputs": 1,\r
665         "x": 2526,\r
666         "y": 853,\r
667         "z": "9b26c8a0.a64c1",\r
668         "wires": [\r
669             [\r
670                 "51c3744a.753414"\r
671             ]\r
672         ]\r
673     },\r
674     {\r
675         "id": "796d1bdc.d65e9c",\r
676         "type": "block",\r
677         "name": "block",\r
678         "xml": "<block>",\r
679         "atomic": "false",\r
680         "comments": "",\r
681         "outputs": 1,\r
682         "x": 2885.88232421875,\r
683         "y": 861.6556396484375,\r
684         "z": "9b26c8a0.a64c1",\r
685         "wires": [\r
686             [\r
687                 "9e81136f.40f158",\r
688                 "3a607f75.56a9d"\r
689             ]\r
690         ]\r
691     },\r
692     {\r
693         "id": "9e81136f.40f158",\r
694         "type": "set",\r
695         "name": "set node-id",\r
696         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",\r
697         "comments": "",\r
698         "x": 3065,\r
699         "y": 815,\r
700         "z": "9b26c8a0.a64c1",\r
701         "wires": []\r
702     },\r
703     {\r
704         "id": "3a607f75.56a9d",\r
705         "type": "for",\r
706         "name": "for each relationship in pnf",\r
707         "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",\r
708         "comments": "",\r
709         "outputs": 1,\r
710         "x": 3077.882568359375,\r
711         "y": 901.6597290039062,\r
712         "z": "9b26c8a0.a64c1",\r
713         "wires": [\r
714             [\r
715                 "709c4d83.a869b4"\r
716             ]\r
717         ]\r
718     },\r
719     {\r
720         "id": "709c4d83.a869b4",\r
721         "type": "switchNode",\r
722         "name": "switch related-to",\r
723         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
724         "comments": "",\r
725         "outputs": 1,\r
726         "x": 3303.882568359375,\r
727         "y": 901.6597290039062,\r
728         "z": "9b26c8a0.a64c1",\r
729         "wires": [\r
730             [\r
731                 "8cbba6bb.ad862",\r
732                 "dd673476.c308f"\r
733             ]\r
734         ]\r
735     },\r
736     {\r
737         "id": "dd673476.c308f",\r
738         "type": "outcome",\r
739         "name": "network-resource",\r
740         "xml": "<outcome value='network-resource'>\n",\r
741         "comments": "",\r
742         "outputs": 1,\r
743         "x": 3513,\r
744         "y": 971,\r
745         "z": "9b26c8a0.a64c1",\r
746         "wires": [\r
747             [\r
748                 "2c8cb3cb.28eeec"\r
749             ]\r
750         ]\r
751     },\r
752     {\r
753         "id": "2c8cb3cb.28eeec",\r
754         "type": "block",\r
755         "name": "block : atomic",\r
756         "xml": "<block atomic=\"true\">",\r
757         "atomic": "true",\r
758         "outputs": 1,\r
759         "x": 3726,\r
760         "y": 972,\r
761         "z": "9b26c8a0.a64c1",\r
762         "wires": [\r
763             [\r
764                 "8af5221c.7c91b",\r
765                 "47206fa6.e312e"\r
766             ]\r
767         ]\r
768     },\r
769     {\r
770         "id": "8af5221c.7c91b",\r
771         "type": "set",\r
772         "name": "set network-id",\r
773         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].network-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
774         "comments": "",\r
775         "x": 3961,\r
776         "y": 902,\r
777         "z": "9b26c8a0.a64c1",\r
778         "wires": []\r
779     },\r
780     {\r
781         "id": "47206fa6.e312e",\r
782         "type": "get-resource",\r
783         "name": "get-resource network-resource",\r
784         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\n\t\tAND depth = '0'\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",\r
785         "comments": "",\r
786         "outputs": 1,\r
787         "x": 3969,\r
788         "y": 983,\r
789         "z": "9b26c8a0.a64c1",\r
790         "wires": [\r
791             [\r
792                 "4ad04544.d0fad4"\r
793             ]\r
794         ]\r
795     },\r
796     {\r
797         "id": "4ad04544.d0fad4",\r
798         "type": "success",\r
799         "name": "success",\r
800         "xml": "<outcome value='success'>\n",\r
801         "comments": "",\r
802         "outputs": 1,\r
803         "x": 4201.5,\r
804         "y": 979,\r
805         "z": "9b26c8a0.a64c1",\r
806         "wires": [\r
807             [\r
808                 "d8cca786.0614f8"\r
809             ]\r
810         ]\r
811     },\r
812     {\r
813         "id": "d8cca786.0614f8",\r
814         "type": "set",\r
815         "name": "set network-id, topo-id, client-id, etc",\r
816         "xml": "<set>\n<parameter name=\"`$tmp.unis.uni[$vidx].network-id`\" value=\"`$tmp.aai.network-resource.network-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].provider-id`\" value=\"`$tmp.aai.network-resource.provider-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].client-id`\" value=\"`$tmp.aai.network-resource.client-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].te-topo-id`\" value=\"`$tmp.aai.network-resource.te-topo-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].network-type`\" value=\"`$tmp.aai.network-resource.network-type`\" />\n\n\n",\r
817         "comments": "",\r
818         "x": 4470,\r
819         "y": 978,\r
820         "z": "9b26c8a0.a64c1",\r
821         "wires": []\r
822     },\r
823     {\r
824         "id": "aab160b4.f76088",\r
825         "type": "call",\r
826         "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
827         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
828         "comments": "",\r
829         "outputs": 1,\r
830         "x": 800,\r
831         "y": 896,\r
832         "z": "9b26c8a0.a64c1",\r
833         "wires": [\r
834             []\r
835         ]\r
836     },\r
837     {\r
838         "id": "8cbba6bb.ad862",\r
839         "type": "outcome",\r
840         "name": "thirdparty-controller",\r
841         "xml": "<outcome value='thirdparty-controller'>\n",\r
842         "comments": "",\r
843         "outputs": 1,\r
844         "x": 3540,\r
845         "y": 836,\r
846         "z": "9b26c8a0.a64c1",\r
847         "wires": [\r
848             [\r
849                 "8b43ac76.263cd"\r
850             ]\r
851         ]\r
852     },\r
853     {\r
854         "id": "8b43ac76.263cd",\r
855         "type": "block",\r
856         "name": "block : atomic",\r
857         "xml": "<block atomic=\"true\">",\r
858         "atomic": "true",\r
859         "outputs": 1,\r
860         "x": 3753,\r
861         "y": 837,\r
862         "z": "9b26c8a0.a64c1",\r
863         "wires": [\r
864             [\r
865                 "9b5d5673.27be38"\r
866             ]\r
867         ]\r
868     },\r
869     {\r
870         "id": "9b5d5673.27be38",\r
871         "type": "set",\r
872         "name": "set thirdparty-sdnc-id",\r
873         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
874         "comments": "",\r
875         "x": 3980,\r
876         "y": 836,\r
877         "z": "9b26c8a0.a64c1",\r
878         "wires": []\r
879     },\r
880     {\r
881         "id": "4ddb604c.658b08",\r
882         "type": "comment",\r
883         "name": "when we reach here, we have 2 UNIs, so do ACTN operations",\r
884         "info": "",\r
885         "comments": "",\r
886         "x": 813,\r
887         "y": 842,\r
888         "z": "9b26c8a0.a64c1",\r
889         "wires": []\r
890     },\r
891     {\r
892         "id": "6d51d616.88647",\r
893         "type": "for",\r
894         "name": "for vidx..unis.uni_length[]",\r
895         "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",\r
896         "comments": "",\r
897         "outputs": 1,\r
898         "x": 666,\r
899         "y": 1088,\r
900         "z": "9b26c8a0.a64c1",\r
901         "wires": [\r
902             [\r
903                 "8a72c5de.69f39"\r
904             ]\r
905         ]\r
906     },\r
907     {\r
908         "id": "f7756434.d014e",\r
909         "type": "set",\r
910         "name": "set oof.vpn",\r
911         "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",\r
912         "comments": "",\r
913         "x": 1096.0272216796875,\r
914         "y": 946.040771484375,\r
915         "z": "9b26c8a0.a64c1",\r
916         "wires": []\r
917     },\r
918     {\r
919         "id": "8e5c8d32.64abe8",\r
920         "type": "set",\r
921         "name": "set controller data",\r
922         "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\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
923         "comments": "",\r
924         "x": 1572.0272216796875,\r
925         "y": 1140.0407409667969,\r
926         "z": "9b26c8a0.a64c1",\r
927         "wires": []\r
928     },\r
929     {\r
930         "id": "58b223b2.226b5c",\r
931         "type": "success",\r
932         "name": "success",\r
933         "xml": "<outcome value='success'>\n",\r
934         "comments": "",\r
935         "outputs": 1,\r
936         "x": 1402.0272216796875,\r
937         "y": 1140.0407409667969,\r
938         "z": "9b26c8a0.a64c1",\r
939         "wires": [\r
940             [\r
941                 "8e5c8d32.64abe8"\r
942             ]\r
943         ]\r
944     },\r
945     {\r
946         "id": "74cd1f0b.113038",\r
947         "type": "not-found",\r
948         "name": "not-found",\r
949         "xml": "<outcome value='not-found'>\n",\r
950         "comments": "",\r
951         "outputs": 1,\r
952         "x": 1406.0272216796875,\r
953         "y": 1180.0407409667969,\r
954         "z": "9b26c8a0.a64c1",\r
955         "wires": [\r
956             [\r
957                 "50f33a59.7393a4"\r
958             ]\r
959         ]\r
960     },\r
961     {\r
962         "id": "4f39f2a5.5bd5fc",\r
963         "type": "other",\r
964         "name": "other",\r
965         "xml": "<outcome value='Other'>\n",\r
966         "comments": "",\r
967         "outputs": 1,\r
968         "x": 1398.0272216796875,\r
969         "y": 1220.0407409667969,\r
970         "z": "9b26c8a0.a64c1",\r
971         "wires": [\r
972             [\r
973                 "4b579e44.4ec6b"\r
974             ]\r
975         ]\r
976     },\r
977     {\r
978         "id": "50f33a59.7393a4",\r
979         "type": "returnFailure",\r
980         "name": "return failure",\r
981         "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",\r
982         "comments": "",\r
983         "x": 1556.0272216796875,\r
984         "y": 1180.0407409667969,\r
985         "z": "9b26c8a0.a64c1",\r
986         "wires": []\r
987     },\r
988     {\r
989         "id": "4b579e44.4ec6b",\r
990         "type": "returnFailure",\r
991         "name": "return failure",\r
992         "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",\r
993         "comments": "",\r
994         "x": 1556.0272216796875,\r
995         "y": 1220.0407409667969,\r
996         "z": "9b26c8a0.a64c1",\r
997         "wires": []\r
998     },\r
999     {\r
1000         "id": "66a971fa.46a568",\r
1001         "type": "success",\r
1002         "name": "success",\r
1003         "xml": "<outcome value='success'>\n",\r
1004         "comments": "",\r
1005         "outputs": 1,\r
1006         "x": 1402.0272216796875,\r
1007         "y": 1260.0407409667969,\r
1008         "z": "9b26c8a0.a64c1",\r
1009         "wires": [\r
1010             [\r
1011                 "9aeb59cf.e4f488"\r
1012             ]\r
1013         ]\r
1014     },\r
1015     {\r
1016         "id": "3bf26416.4deddc",\r
1017         "type": "failure",\r
1018         "name": "failure",\r
1019         "xml": "<outcome value='failure'>\n",\r
1020         "comments": "",\r
1021         "outputs": 1,\r
1022         "x": 1398.0272216796875,\r
1023         "y": 1300.0407409667969,\r
1024         "z": "9b26c8a0.a64c1",\r
1025         "wires": [\r
1026             [\r
1027                 "e227ce38.6755d"\r
1028             ]\r
1029         ]\r
1030     },\r
1031     {\r
1032         "id": "e227ce38.6755d",\r
1033         "type": "returnFailure",\r
1034         "name": "return failure",\r
1035         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",\r
1036         "comments": "",\r
1037         "x": 1556.0272216796875,\r
1038         "y": 1300.0407409667969,\r
1039         "z": "9b26c8a0.a64c1",\r
1040         "wires": []\r
1041     },\r
1042     {\r
1043         "id": "9aeb59cf.e4f488",\r
1044         "type": "set",\r
1045         "name": "set token-id",\r
1046         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
1047         "comments": "",\r
1048         "x": 1552.5272216796875,\r
1049         "y": 1260.0407409667969,\r
1050         "z": "9b26c8a0.a64c1",\r
1051         "wires": []\r
1052     },\r
1053     {\r
1054         "id": "ac6d44a1.0c401",\r
1055         "type": "comment",\r
1056         "name": "Get controller info and send request",\r
1057         "info": "",\r
1058         "comments": "",\r
1059         "x": 1164.0272216796875,\r
1060         "y": 1140.0407409667969,\r
1061         "z": "9b26c8a0.a64c1",\r
1062         "wires": []\r
1063     },\r
1064     {\r
1065         "id": "a9643f3f.4f04b",\r
1066         "type": "get-resource",\r
1067         "name": "get-resource esr-thirdparty-sdnc",\r
1068         "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 = $prop.sdncRestApi.thirdpartySdnc.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
1069         "comments": "",\r
1070         "outputs": 1,\r
1071         "x": 1156.0272216796875,\r
1072         "y": 1180.0407409667969,\r
1073         "z": "9b26c8a0.a64c1",\r
1074         "wires": [\r
1075             [\r
1076                 "58b223b2.226b5c",\r
1077                 "74cd1f0b.113038",\r
1078                 "4f39f2a5.5bd5fc"\r
1079             ]\r
1080         ]\r
1081     },\r
1082     {\r
1083         "id": "c6d53bc.53f5bc8",\r
1084         "type": "execute",\r
1085         "name": "execute RestApiCallNode Get token",\r
1086         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
1087         "comments": "",\r
1088         "outputs": 1,\r
1089         "x": 1168.5272216796875,\r
1090         "y": 1280.0407409667969,\r
1091         "z": "9b26c8a0.a64c1",\r
1092         "wires": [\r
1093             [\r
1094                 "66a971fa.46a568",\r
1095                 "3bf26416.4deddc"\r
1096             ]\r
1097         ]\r
1098     },\r
1099     {\r
1100         "id": "787bd09.8ff59b",\r
1101         "type": "comment",\r
1102         "name": "call domain controller to  create underlay OTN tunnel",\r
1103         "info": "",\r
1104         "comments": "",\r
1105         "x": 1217.5272216796875,\r
1106         "y": 1365.49560546875,\r
1107         "z": "9b26c8a0.a64c1",\r
1108         "wires": []\r
1109     },\r
1110     {\r
1111         "id": "ee991e0.ab6b36",\r
1112         "type": "call",\r
1113         "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",\r
1114         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",\r
1115         "comments": "",\r
1116         "outputs": 1,\r
1117         "x": 1237.5272216796875,\r
1118         "y": 1409.49560546875,\r
1119         "z": "9b26c8a0.a64c1",\r
1120         "wires": [\r
1121             []\r
1122         ]\r
1123     },\r
1124     {\r
1125         "id": "8a72c5de.69f39",\r
1126         "type": "block",\r
1127         "name": "block : atomic",\r
1128         "xml": "<block atomic=\"true\">",\r
1129         "atomic": "true",\r
1130         "outputs": 1,\r
1131         "x": 819.5272216796875,\r
1132         "y": 1420.0407409667969,\r
1133         "z": "9b26c8a0.a64c1",\r
1134         "wires": [\r
1135             [\r
1136                 "124c6957.e07dc7",\r
1137                 "f7756434.d014e",\r
1138                 "a9643f3f.4f04b",\r
1139                 "ae925256.a68df",\r
1140                 "ee991e0.ab6b36"\r
1141             ]\r
1142         ]\r
1143     },\r
1144     {\r
1145         "id": "ab7e4ea9.e8e178",\r
1146         "type": "comment",\r
1147         "name": "Loop through UNIs and configure domain controllers",\r
1148         "info": "",\r
1149         "comments": "",\r
1150         "x": 754.5003662109375,\r
1151         "y": 1228.5003662109375,\r
1152         "z": "9b26c8a0.a64c1",\r
1153         "wires": []\r
1154     },\r
1155     {\r
1156         "id": "124c6957.e07dc7",\r
1157         "type": "set",\r
1158         "name": "set sotn_value",\r
1159         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
1160         "comments": "",\r
1161         "x": 1083.52734375,\r
1162         "y": 1488.040771484375,\r
1163         "z": "9b26c8a0.a64c1",\r
1164         "wires": []\r
1165     },\r
1166     {\r
1167         "id": "3ce3b19a.7c10c6",\r
1168         "type": "set",\r
1169         "name": "set attachment_param",\r
1170         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",\r
1171         "comments": "",\r
1172         "x": 1108.02734375,\r
1173         "y": 1528.040771484375,\r
1174         "z": "9b26c8a0.a64c1",\r
1175         "wires": []\r
1176     },\r
1177     {\r
1178         "id": "d661efba.3fa238",\r
1179         "type": "switchNode",\r
1180         "name": "switch prop.sdncRestApi.token_id",\r
1181         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
1182         "comments": "",\r
1183         "outputs": 1,\r
1184         "x": 1143.52734375,\r
1185         "y": 1568.040771484375,\r
1186         "z": "9b26c8a0.a64c1",\r
1187         "wires": [\r
1188             [\r
1189                 "f63083b5.0624b",\r
1190                 "fbf2273e.fbe678"\r
1191             ]\r
1192         ]\r
1193     },\r
1194     {\r
1195         "id": "678c3911.078e2",\r
1196         "type": "execute",\r
1197         "name": "execute RestconfApiCallNode Create ethernet Service with token",\r
1198         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\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='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1199         "comments": "",\r
1200         "outputs": 1,\r
1201         "x": 1660.52734375,\r
1202         "y": 1588.040771484375,\r
1203         "z": "9b26c8a0.a64c1",\r
1204         "wires": [\r
1205             [\r
1206                 "72a042fd.6a9e5c",\r
1207                 "4ae2509c.7d19b8"\r
1208             ]\r
1209         ]\r
1210     },\r
1211     {\r
1212         "id": "72a042fd.6a9e5c",\r
1213         "type": "success",\r
1214         "name": "success",\r
1215         "xml": "<outcome value='success'>\n",\r
1216         "comments": "",\r
1217         "outputs": 1,\r
1218         "x": 2004.02734375,\r
1219         "y": 1588.040771484375,\r
1220         "z": "9b26c8a0.a64c1",\r
1221         "wires": [\r
1222             [\r
1223                 "743fa383.cc94fc"\r
1224             ]\r
1225         ]\r
1226     },\r
1227     {\r
1228         "id": "743fa383.cc94fc",\r
1229         "type": "block",\r
1230         "name": "block : atomic",\r
1231         "xml": "<block atomic=\"true\">",\r
1232         "atomic": "true",\r
1233         "comments": "",\r
1234         "outputs": 1,\r
1235         "x": 2161.52734375,\r
1236         "y": 1588.040771484375,\r
1237         "z": "9b26c8a0.a64c1",\r
1238         "wires": [\r
1239             []\r
1240         ]\r
1241     },\r
1242     {\r
1243         "id": "7e01ab8f.069484",\r
1244         "type": "returnFailure",\r
1245         "name": "return failure",\r
1246         "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",\r
1247         "comments": "",\r
1248         "x": 2158.02734375,\r
1249         "y": 1548.040771484375,\r
1250         "z": "9b26c8a0.a64c1",\r
1251         "wires": []\r
1252     },\r
1253     {\r
1254         "id": "4ae2509c.7d19b8",\r
1255         "type": "failure",\r
1256         "name": "failure",\r
1257         "xml": "<outcome value='failure'>\n",\r
1258         "comments": "",\r
1259         "outputs": 1,\r
1260         "x": 2000.02734375,\r
1261         "y": 1548.040771484375,\r
1262         "z": "9b26c8a0.a64c1",\r
1263         "wires": [\r
1264             [\r
1265                 "7e01ab8f.069484"\r
1266             ]\r
1267         ]\r
1268     },\r
1269     {\r
1270         "id": "f63083b5.0624b",\r
1271         "type": "other",\r
1272         "name": "Null",\r
1273         "xml": "<outcome value=''>\n",\r
1274         "comments": "",\r
1275         "outputs": 1,\r
1276         "x": 1356.3711738586426,\r
1277         "y": 1548.162670135498,\r
1278         "z": "9b26c8a0.a64c1",\r
1279         "wires": [\r
1280             [\r
1281                 "42cb8b06.e7daec"\r
1282             ]\r
1283         ]\r
1284     },\r
1285     {\r
1286         "id": "fbf2273e.fbe678",\r
1287         "type": "other",\r
1288         "name": "other",\r
1289         "xml": "<outcome value='Other'>\n",\r
1290         "comments": "",\r
1291         "outputs": 1,\r
1292         "x": 1360.02734375,\r
1293         "y": 1588.040771484375,\r
1294         "z": "9b26c8a0.a64c1",\r
1295         "wires": [\r
1296             [\r
1297                 "678c3911.078e2"\r
1298             ]\r
1299         ]\r
1300     },\r
1301     {\r
1302         "id": "42cb8b06.e7daec",\r
1303         "type": "execute",\r
1304         "name": "execute RestconfApiCallNode Create ethernet Service without token",\r
1305         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\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='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
1306         "comments": "",\r
1307         "outputs": 1,\r
1308         "x": 1670.52734375,\r
1309         "y": 1548.040771484375,\r
1310         "z": "9b26c8a0.a64c1",\r
1311         "wires": [\r
1312             [\r
1313                 "4ae2509c.7d19b8",\r
1314                 "72a042fd.6a9e5c"\r
1315             ]\r
1316         ]\r
1317     },\r
1318     {\r
1319         "id": "28391a2c.3321fe",\r
1320         "type": "success",\r
1321         "name": "success",\r
1322         "xml": "<outcome value='success'>\n",\r
1323         "comments": "",\r
1324         "outputs": 1,\r
1325         "x": 725,\r
1326         "y": 663,\r
1327         "z": "9b26c8a0.a64c1",\r
1328         "wires": [\r
1329             [\r
1330                 "6a811cc0.b174ac"\r
1331             ]\r
1332         ]\r
1333     },\r
1334     {\r
1335         "id": "51c3744a.753414",\r
1336         "type": "failure",\r
1337         "name": "success",\r
1338         "xml": "<outcome value='success'>\n",\r
1339         "comments": "",\r
1340         "outputs": 1,\r
1341         "x": 2709,\r
1342         "y": 860,\r
1343         "z": "9b26c8a0.a64c1",\r
1344         "wires": [\r
1345             [\r
1346                 "796d1bdc.d65e9c"\r
1347             ]\r
1348         ]\r
1349     },\r
1350     {\r
1351         "id": "672fc75a.1e91b",\r
1352         "type": "set",\r
1353         "name": "set tmp.unis.uni[].tpId",\r
1354         "xml": "<set>\n<parameter name='tmp.unis.uni[0].id' value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />\n<parameter name='tmp.unis.uni[0].tp-id' value=\"networkId-providerId-5555-clientId-6666-topologyId-11-nodeId-0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].access-provider-id' value=\"`$domain-A.provider-id`\" />\n<parameter name='tmp.unis.uni[0].access-client-id' value=\"`$domain-A.client-id`\" />\n<parameter name='tmp.unis.uni[0].access-topology-id' value=\"`$domain-A.topology-id`\" />\n<parameter name='tmp.unis.uni[0].access-node-id' value=\"0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].src-access-ltp-id' value=\"1234\" />\n<parameter name='tmp.unis.uni[0].dst-access-ltp-id' value=\"5678\" />\n<parameter name='tmp.unis.uni[0].network-id' value=\"domain2-providerId-5555-clientId-6666-topologyId-11\" />\n\n\n<parameter name='tmp.unis.uni[1].id' value=\"5642e9dd-496c-4ef6-be97-5caf4e9beec9\" />\n<parameter name='tmp.unis.uni[1].tp-id' value=\"networkId-domain2-providerId-5555-clientId-6666-topologyId-11-nodeId-0.191.0.4\" />\n<parameter name='tmp.unis.uni[1].access-provider-id' value=\"`$domain-B.provider-id`\" />\n<parameter name='tmp.unis.uni[1].access-client-id' value=\"`$domain-B.client-id`\" />\n<parameter name='tmp.unis.uni[1].access-topology-id' value=\"`$domain-B.topology-id`\" />\n<parameter name='tmp.unis.uni[1].access-node-id' value=\"0.190.0.3\" />\n<parameter name='tmp.unis.uni[1].src-access-ltp-id' value=\"9123\" />\n<parameter name='tmp.unis.uni[1].dst-access-ltp-id' value=\"4567\" />\n<parameter name='tmp.unis.uni[1].network-id' value=\"domain2-providerId-5555-clientId-6666-topologyId-11\" />\n\n\n<parameter name='tmp.unis.uni_length' value=\"2\" />\n\n",\r
1355         "comments": "",\r
1356         "x": 655,\r
1357         "y": 1015,\r
1358         "z": "9b26c8a0.a64c1",\r
1359         "wires": []\r
1360     },\r
1361     {\r
1362         "id": "ae925256.a68df",\r
1363         "type": "get-resource",\r
1364         "name": "get network-resource",\r
1365         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"network-resource.network-id = $oof.vpn.network-id\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n\n\n\n",\r
1366         "comments": "",\r
1367         "outputs": 1,\r
1368         "x": 1128,\r
1369         "y": 1024,\r
1370         "z": "9b26c8a0.a64c1",\r
1371         "wires": [\r
1372             [\r
1373                 "23c084ce.22a7f4",\r
1374                 "d2d56dd3.d8df6",\r
1375                 "28e7be58.d60b6a"\r
1376             ]\r
1377         ]\r
1378     },\r
1379     {\r
1380         "id": "23c084ce.22a7f4",\r
1381         "type": "success",\r
1382         "name": "success",\r
1383         "xml": "<outcome value='success'>\n",\r
1384         "comments": "",\r
1385         "outputs": 1,\r
1386         "x": 1323.5001220703125,\r
1387         "y": 981,\r
1388         "z": "9b26c8a0.a64c1",\r
1389         "wires": [\r
1390             [\r
1391                 "16ae77fe.3db2f"\r
1392             ]\r
1393         ]\r
1394     },\r
1395     {\r
1396         "id": "d2d56dd3.d8df6",\r
1397         "type": "not-found",\r
1398         "name": "not-found",\r
1399         "xml": "<outcome value='not-found'>\n",\r
1400         "comments": "",\r
1401         "outputs": 1,\r
1402         "x": 1315.5001220703125,\r
1403         "y": 1036,\r
1404         "z": "9b26c8a0.a64c1",\r
1405         "wires": [\r
1406             [\r
1407                 "8f6658aa.e556f8"\r
1408             ]\r
1409         ]\r
1410     },\r
1411     {\r
1412         "id": "28e7be58.d60b6a",\r
1413         "type": "other",\r
1414         "name": "other",\r
1415         "xml": "<outcome value='Other'>\n",\r
1416         "comments": "",\r
1417         "outputs": 1,\r
1418         "x": 1320.5001220703125,\r
1419         "y": 1093,\r
1420         "z": "9b26c8a0.a64c1",\r
1421         "wires": [\r
1422             [\r
1423                 "5bc0d431.a1baf4"\r
1424             ]\r
1425         ]\r
1426     },\r
1427     {\r
1428         "id": "5bc0d431.a1baf4",\r
1429         "type": "returnFailure",\r
1430         "name": "return failure",\r
1431         "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",\r
1432         "comments": "",\r
1433         "x": 1472.5001220703125,\r
1434         "y": 1094,\r
1435         "z": "9b26c8a0.a64c1",\r
1436         "wires": []\r
1437     },\r
1438     {\r
1439         "id": "8f6658aa.e556f8",\r
1440         "type": "returnFailure",\r
1441         "name": "return failure",\r
1442         "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",\r
1443         "comments": "",\r
1444         "x": 1483.5001220703125,\r
1445         "y": 1039,\r
1446         "z": "9b26c8a0.a64c1",\r
1447         "wires": []\r
1448     },\r
1449     {\r
1450         "id": "16ae77fe.3db2f",\r
1451         "type": "block",\r
1452         "name": "block",\r
1453         "xml": "<block>\n",\r
1454         "atomic": "false",\r
1455         "comments": "",\r
1456         "outputs": 1,\r
1457         "x": 1467.8824462890625,\r
1458         "y": 978.6556701660156,\r
1459         "z": "9b26c8a0.a64c1",\r
1460         "wires": [\r
1461             [\r
1462                 "1facb6e4.b004d9"\r
1463             ]\r
1464         ]\r
1465     },\r
1466     {\r
1467         "id": "1facb6e4.b004d9",\r
1468         "type": "for",\r
1469         "name": "for each relationship",\r
1470         "xml": "<for index='ridx' start='0' end='`$tmp.aai.network-resource.relationship-list.relationship_length`' >\n",\r
1471         "comments": "",\r
1472         "outputs": 1,\r
1473         "x": 1682.8826904296875,\r
1474         "y": 978.6597290039062,\r
1475         "z": "9b26c8a0.a64c1",\r
1476         "wires": [\r
1477             [\r
1478                 "a5fdb89.17d6dc8"\r
1479             ]\r
1480         ]\r
1481     },\r
1482     {\r
1483         "id": "a5fdb89.17d6dc8",\r
1484         "type": "switchNode",\r
1485         "name": "switch related-to",\r
1486         "xml": "<switch test='`$tmp.aai.network-resource.relationship-list.relationship[$ridx].related-to`'>\n",\r
1487         "comments": "",\r
1488         "outputs": 1,\r
1489         "x": 1908.8826904296875,\r
1490         "y": 978.6597290039062,\r
1491         "z": "9b26c8a0.a64c1",\r
1492         "wires": [\r
1493             [\r
1494                 "d4a46397.2bb99"\r
1495             ]\r
1496         ]\r
1497     },\r
1498     {\r
1499         "id": "d4a46397.2bb99",\r
1500         "type": "outcome",\r
1501         "name": "esr-thirdparty-sdnc",\r
1502         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
1503         "comments": "",\r
1504         "outputs": 1,\r
1505         "x": 2115.0001220703125,\r
1506         "y": 977,\r
1507         "z": "9b26c8a0.a64c1",\r
1508         "wires": [\r
1509             [\r
1510                 "d4ec153c.0cdc78"\r
1511             ]\r
1512         ]\r
1513     },\r
1514     {\r
1515         "id": "d4ec153c.0cdc78",\r
1516         "type": "set",\r
1517         "name": "set prop.sdncRestApi.thirdpartySdnc.id",\r
1518         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.id' value=\"`$tmp.aai.network-resource.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",\r
1519         "comments": "",\r
1520         "x": 2133,\r
1521         "y": 1056,\r
1522         "z": "9b26c8a0.a64c1",\r
1523         "wires": []\r
1524     },\r
1525     {\r
1526         "id": "8a87ece8.73f728",\r
1527         "type": "get-resource",\r
1528         "name": "get-resource uni",\r
1529         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"uni\" \n\t\tkey=\"uni.id = $tmp.aai.generic-vnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value\"\n        pfx='tmp.aai.uni' local-only='false' >\n\n",\r
1530         "comments": "",\r
1531         "outputs": 1,\r
1532         "x": 1802,\r
1533         "y": 689,\r
1534         "z": "9b26c8a0.a64c1",\r
1535         "wires": [\r
1536             [\r
1537                 "af655688.304b78"\r
1538             ]\r
1539         ]\r
1540     },\r
1541     {\r
1542         "id": "af655688.304b78",\r
1543         "type": "success",\r
1544         "name": "success",\r
1545         "xml": "<outcome value='success'>\n",\r
1546         "comments": "",\r
1547         "outputs": 1,\r
1548         "x": 1974,\r
1549         "y": 689,\r
1550         "z": "9b26c8a0.a64c1",\r
1551         "wires": [\r
1552             [\r
1553                 "91d7b892.85ea"\r
1554             ]\r
1555         ]\r
1556     },\r
1557     {\r
1558         "id": "bc6860a4.74042",\r
1559         "type": "set",\r
1560         "name": "set tmp.unis.uni[]",\r
1561         "xml": "<set>\n<!--<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />-->\n\n<parameter name='`tmp.unis.uni[$vidx].`' value=\"`$tmp.aai.uni.`\" />\n",\r
1562         "comments": "",\r
1563         "x": 2299,\r
1564         "y": 645,\r
1565         "z": "9b26c8a0.a64c1",\r
1566         "wires": []\r
1567     },\r
1568     {\r
1569         "id": "91d7b892.85ea",\r
1570         "type": "block",\r
1571         "name": "block",\r
1572         "xml": "<block>",\r
1573         "atomic": "false",\r
1574         "comments": "",\r
1575         "outputs": 1,\r
1576         "x": 2115,\r
1577         "y": 691,\r
1578         "z": "9b26c8a0.a64c1",\r
1579         "wires": [\r
1580             [\r
1581                 "bc6860a4.74042",\r
1582                 "e85654b4.901fd",\r
1583                 "596112fe.dbc0a4"\r
1584             ]\r
1585         ]\r
1586     }\r
1587 ]