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