DGs for SOTN NNI based service creation
[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": "fb32b655.b185b8",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 97,\r
8         "y": 26,\r
9         "z": "84e7e3f2.6b184",\r
10         "wires": [\r
11             [\r
12                 "84e0c1e1.45193"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "84e0c1e1.45193",\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": 228.2856903076172,\r
26         "y": 75.23810863494873,\r
27         "z": "84e7e3f2.6b184",\r
28         "wires": [\r
29             [\r
30                 "45da7482.2ad22c"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "45da7482.2ad22c",\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": 231.42861938476562,\r
42         "y": 160.00003242492676,\r
43         "z": "84e7e3f2.6b184",\r
44         "wires": [\r
45             [\r
46                 "edcc85d8.9d3d28"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "2c9ee1fb.c2a40e",\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": 703.9959564208984,\r
58         "y": 340.99998915195465,\r
59         "z": "84e7e3f2.6b184",\r
60         "wires": [\r
61             [\r
62                 "a85389a5.eba5b8",\r
63                 "b56c9993.d26ec8",\r
64                 "d2286cfd.202a6"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "edcc85d8.9d3d28",\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": 322.6626205444336,\r
76         "y": 445.66670763492584,\r
77         "z": "84e7e3f2.6b184",\r
78         "wires": [\r
79             [\r
80                 "2c9ee1fb.c2a40e",\r
81                 "fa8ab78.8a0bc48",\r
82                 "83723db3.8501b",\r
83                 "943ab36c.4be4",\r
84                 "56a2543.f406bac",\r
85                 "7638ccf.06d4134",\r
86                 "a53f3f0c.46a7a",\r
87                 "c42e922f.1abaa"\r
88             ]\r
89         ]\r
90     },\r
91     {\r
92         "id": "83723db3.8501b",\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": 669.0273170471191,\r
99         "y": 211.269144654274,\r
100         "z": "84e7e3f2.6b184",\r
101         "wires": [\r
102             [\r
103                 "b6860278.b7c3a"\r
104             ]\r
105         ]\r
106     },\r
107     {\r
108         "id": "fa8ab78.8a0bc48",\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": 673.9959716796875,\r
115         "y": 150.00001394748688,\r
116         "z": "84e7e3f2.6b184",\r
117         "wires": [\r
118             [\r
119                 "4d78f4ba.adcf7c"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "4d78f4ba.adcf7c",\r
125         "type": "outcome",\r
126         "name": "NULL",\r
127         "xml": "<outcome value=''>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 853.9959526062012,\r
131         "y": 149.0000034570694,\r
132         "z": "84e7e3f2.6b184",\r
133         "wires": [\r
134             [\r
135                 "83071b4.81cf8e8"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "83071b4.81cf8e8",\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": 1003.4246788024902,\r
146         "y": 150.14292109012604,\r
147         "z": "84e7e3f2.6b184",\r
148         "wires": []\r
149     },\r
150     {\r
151         "id": "b6860278.b7c3a",\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": 891.9959678649902,\r
158         "y": 212.00000965595245,\r
159         "z": "84e7e3f2.6b184",\r
160         "wires": [\r
161             [\r
162                 "a420300f.fcc77"\r
163             ]\r
164         ]\r
165     },\r
166     {\r
167         "id": "a420300f.fcc77",\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": 1106.9959526062012,\r
174         "y": 210.0000034570694,\r
175         "z": "84e7e3f2.6b184",\r
176         "wires": [\r
177             [\r
178                 "61f2940f.e1eccc"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "5ebe199d.38e1f8",\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": 1447.9959716796875,\r
189         "y": 178,\r
190         "z": "84e7e3f2.6b184",\r
191         "wires": []\r
192     },\r
193     {\r
194         "id": "b56c9993.d26ec8",\r
195         "type": "outcome",\r
196         "name": "NULL",\r
197         "xml": "<outcome value=''>\n",\r
198         "comments": "",\r
199         "outputs": 1,\r
200         "x": 963.9959716796875,\r
201         "y": 365,\r
202         "z": "84e7e3f2.6b184",\r
203         "wires": [\r
204             [\r
205                 "f74bba14.018558"\r
206             ]\r
207         ]\r
208     },\r
209     {\r
210         "id": "a85389a5.eba5b8",\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": 960.9959716796875,\r
217         "y": 293,\r
218         "z": "84e7e3f2.6b184",\r
219         "wires": [\r
220             [\r
221                 "f74bba14.018558"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "f74bba14.018558",\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": 1132.9959716796875,\r
232         "y": 327,\r
233         "z": "84e7e3f2.6b184",\r
234         "wires": []\r
235     },\r
236     {\r
237         "id": "d2286cfd.202a6",\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": 925.9959487915039,\r
244         "y": 435.9999986886978,\r
245         "z": "84e7e3f2.6b184",\r
246         "wires": [\r
247             [\r
248                 "1141c0c2.8446df"\r
249             ]\r
250         ]\r
251     },\r
252     {\r
253         "id": "bd0fe0b8.95c3d",\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": 1279.995964050293,\r
259         "y": 434.0000126361847,\r
260         "z": "84e7e3f2.6b184",\r
261         "wires": []\r
262     },\r
263     {\r
264         "id": "1141c0c2.8446df",\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": 1086.995994567871,\r
271         "y": 432.99999010562897,\r
272         "z": "84e7e3f2.6b184",\r
273         "wires": [\r
274             [\r
275                 "bd0fe0b8.95c3d",\r
276                 "7d4d8763.0f4718"\r
277             ]\r
278         ]\r
279     },\r
280     {\r
281         "id": "7d4d8763.0f4718",\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": 1298.9959335327148,\r
288         "y": 486.99998915195465,\r
289         "z": "84e7e3f2.6b184",\r
290         "wires": [\r
291             [\r
292                 "39d7ac61.94fef4"\r
293             ]\r
294         ]\r
295     },\r
296     {\r
297         "id": "39d7ac61.94fef4",\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": 1541.995948791504,\r
304         "y": 481.9999986886978,\r
305         "z": "84e7e3f2.6b184",\r
306         "wires": [\r
307             [\r
308                 "1b63e74a.2edd39"\r
309             ]\r
310         ]\r
311     },\r
312     {\r
313         "id": "1b63e74a.2edd39",\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": 1739.9959774017334,\r
320         "y": 469.00000536441803,\r
321         "z": "84e7e3f2.6b184",\r
322         "wires": [\r
323             [\r
324                 "21b15a7e.281f96"\r
325             ]\r
326         ]\r
327     },\r
328     {\r
329         "id": "21b15a7e.281f96",\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": 1891.995948791504,\r
336         "y": 470.9999986886978,\r
337         "z": "84e7e3f2.6b184",\r
338         "wires": [\r
339             [\r
340                 "bfa5b77e.850078",\r
341                 "9791123.9d23ff",\r
342                 "5999c8a4.0563c8"\r
343             ]\r
344         ]\r
345     },\r
346     {\r
347         "id": "bfa5b77e.850078",\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": 2119.996063232422,\r
353         "y": 413.0000025033951,\r
354         "z": "84e7e3f2.6b184",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "9791123.9d23ff",\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": 2123.996063232422,\r
364         "y": 467.0000025033951,\r
365         "z": "84e7e3f2.6b184",\r
366         "wires": []\r
367     },\r
368     {\r
369         "id": "943ab36c.4be4",\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": 597.9961547851562,\r
375         "y": 1640.501220703125,\r
376         "z": "84e7e3f2.6b184",\r
377         "wires": []\r
378     },\r
379     {\r
380         "id": "5999c8a4.0563c8",\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": 2154.45108795166,\r
387         "y": 518.0104948282242,\r
388         "z": "84e7e3f2.6b184",\r
389         "wires": [\r
390             []\r
391         ]\r
392     },\r
393     {\r
394         "id": "56a2543.f406bac",\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": 683.9959564208984,\r
401         "y": 280.5039049386978,\r
402         "z": "84e7e3f2.6b184",\r
403         "wires": [\r
404             []\r
405         ]\r
406     },\r
407     {\r
408         "id": "61f2940f.e1eccc",\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": 1270,\r
415         "y": 220,\r
416         "z": "84e7e3f2.6b184",\r
417         "wires": [\r
418             [\r
419                 "5ebe199d.38e1f8",\r
420                 "97c5cadc.46fd38"\r
421             ]\r
422         ]\r
423     },\r
424     {\r
425         "id": "97c5cadc.46fd38",\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": 1455,\r
431         "y": 235,\r
432         "z": "84e7e3f2.6b184",\r
433         "wires": []\r
434     },\r
435     {\r
436         "id": "7638ccf.06d4134",\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\t\tAND depth = '0'\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n\n",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 603,\r
443         "y": 552,\r
444         "z": "84e7e3f2.6b184",\r
445         "wires": [\r
446             [\r
447                 "6951bd2b.63d4e4"\r
448             ]\r
449         ]\r
450     },\r
451     {\r
452         "id": "6951bd2b.63d4e4",\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": 806,\r
460         "y": 547,\r
461         "z": "84e7e3f2.6b184",\r
462         "wires": [\r
463             [\r
464                 "c98c270d.88dcd8",\r
465                 "b05ba34b.acc5f"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "c98c270d.88dcd8",\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": 1018,\r
477         "y": 550,\r
478         "z": "84e7e3f2.6b184",\r
479         "wires": [\r
480             [\r
481                 "b3a5598e.a41448"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "b3a5598e.a41448",\r
487         "type": "switchNode",\r
488         "name": "switch related-to",\r
489         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 1244,\r
493         "y": 554,\r
494         "z": "84e7e3f2.6b184",\r
495         "wires": [\r
496             [\r
497                 "4e594d45.0e1984"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "4e594d45.0e1984",\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": 1433.285888671875,\r
509         "y": 562.82177734375,\r
510         "z": "84e7e3f2.6b184",\r
511         "wires": [\r
512             [\r
513                 "3e26d342.6174fc"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "3e26d342.6174fc",\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": 1608.117431640625,\r
525         "y": 565.3402709960938,\r
526         "z": "84e7e3f2.6b184",\r
527         "wires": [\r
528             [\r
529                 "8d7c01bb.0e5ea",\r
530                 "db36cb56.ed0998",\r
531                 "9f8707c2.df5a68"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "8d7c01bb.0e5ea",\r
537         "type": "set",\r
538         "name": "set tmp.unis.uni[].tpId",\r
539         "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",\r
540         "comments": "",\r
541         "x": 1825.117431640625,\r
542         "y": 563.3402709960938,\r
543         "z": "84e7e3f2.6b184",\r
544         "wires": []\r
545     },\r
546     {\r
547         "id": "b05ba34b.acc5f",\r
548         "type": "switchNode",\r
549         "name": "switch number of unis  < 2",\r
550         "xml": "<switch test='`$tmp.unis.uni_length < 2`' >\n",\r
551         "comments": "",\r
552         "outputs": 1,\r
553         "x": 993,\r
554         "y": 714,\r
555         "z": "84e7e3f2.6b184",\r
556         "wires": [\r
557             [\r
558                 "9ad7b18c.9e2db"\r
559             ]\r
560         ]\r
561     },\r
562     {\r
563         "id": "11a2c1f3.2f15de",\r
564         "type": "returnSuccess",\r
565         "name": "return success",\r
566         "xml": "<return status='success'>\n<parameter name='' value='' />\n",\r
567         "comments": "",\r
568         "x": 1401,\r
569         "y": 716,\r
570         "z": "84e7e3f2.6b184",\r
571         "wires": []\r
572     },\r
573     {\r
574         "id": "9ad7b18c.9e2db",\r
575         "type": "outcomeTrue",\r
576         "name": "true",\r
577         "xml": "<outcome value='true'>\n",\r
578         "comments": "",\r
579         "outputs": 1,\r
580         "x": 1209,\r
581         "y": 715,\r
582         "z": "84e7e3f2.6b184",\r
583         "wires": [\r
584             [\r
585                 "11a2c1f3.2f15de"\r
586             ]\r
587         ]\r
588     },\r
589     {\r
590         "id": "db36cb56.ed0998",\r
591         "type": "execute",\r
592         "name": "execute split tpId to get pnf-name",\r
593         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`tmp.unis.uni[$vidx].tpId`'/>\n<parameter name=\"regex\" value=\"nodeId\"/>\n<parameter name=\"tmp.unis.uni[$vidx].pnf-name\" value=\"\"/>\n",\r
594         "comments": "",\r
595         "outputs": 1,\r
596         "x": 1864,\r
597         "y": 638,\r
598         "z": "84e7e3f2.6b184",\r
599         "wires": [\r
600             [\r
601                 "51f60529.b960dc",\r
602                 "bd9180ed.9d6e6"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "bd9180ed.9d6e6",\r
608         "type": "failure",\r
609         "name": "success",\r
610         "xml": "<outcome value='success'>\n",\r
611         "comments": "",\r
612         "outputs": 1,\r
613         "x": 2087,\r
614         "y": 593,\r
615         "z": "84e7e3f2.6b184",\r
616         "wires": [\r
617             [\r
618                 "91a82817.a8c858"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "51f60529.b960dc",\r
624         "type": "failure",\r
625         "name": "failure",\r
626         "xml": "<outcome value='failure'>\n",\r
627         "comments": "",\r
628         "outputs": 1,\r
629         "x": 2089,\r
630         "y": 657,\r
631         "z": "84e7e3f2.6b184",\r
632         "wires": [\r
633             [\r
634                 "4dddc62b.304038"\r
635             ]\r
636         ]\r
637     },\r
638     {\r
639         "id": "91a82817.a8c858",\r
640         "type": "set",\r
641         "name": "set ipAddress prefixLength",\r
642         "xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",\r
643         "comments": "",\r
644         "x": 2309,\r
645         "y": 595,\r
646         "z": "84e7e3f2.6b184",\r
647         "wires": []\r
648     },\r
649     {\r
650         "id": "4dddc62b.304038",\r
651         "type": "returnFailure",\r
652         "name": "return failure",\r
653         "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
654         "comments": "",\r
655         "x": 2248,\r
656         "y": 676,\r
657         "z": "84e7e3f2.6b184",\r
658         "wires": []\r
659     },\r
660     {\r
661         "id": "9f8707c2.df5a68",\r
662         "type": "get-resource",\r
663         "name": "get-resource pnf",\r
664         "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 AND depth = '0'`\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n",\r
665         "comments": "",\r
666         "outputs": 1,\r
667         "x": 1790,\r
668         "y": 731,\r
669         "z": "84e7e3f2.6b184",\r
670         "wires": [\r
671             [\r
672                 "7f07585.a7576a8"\r
673             ]\r
674         ]\r
675     },\r
676     {\r
677         "id": "7f07585.a7576a8",\r
678         "type": "success",\r
679         "name": "success",\r
680         "xml": "<outcome value='success'>\n",\r
681         "comments": "",\r
682         "outputs": 1,\r
683         "x": 1990.5,\r
684         "y": 749,\r
685         "z": "84e7e3f2.6b184",\r
686         "wires": [\r
687             [\r
688                 "2018b1.62ea675"\r
689             ]\r
690         ]\r
691     },\r
692     {\r
693         "id": "2018b1.62ea675",\r
694         "type": "block",\r
695         "name": "block",\r
696         "xml": "<block>\n",\r
697         "atomic": "false",\r
698         "comments": "",\r
699         "outputs": 1,\r
700         "x": 2153.88232421875,\r
701         "y": 783.6556396484375,\r
702         "z": "84e7e3f2.6b184",\r
703         "wires": [\r
704             [\r
705                 "a36c84bd.45b6f8",\r
706                 "e1179ec.bdf3f6"\r
707             ]\r
708         ]\r
709     },\r
710     {\r
711         "id": "e1179ec.bdf3f6",\r
712         "type": "set",\r
713         "name": "set node-id",\r
714         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",\r
715         "comments": "",\r
716         "x": 2390,\r
717         "y": 734,\r
718         "z": "84e7e3f2.6b184",\r
719         "wires": []\r
720     },\r
721     {\r
722         "id": "a36c84bd.45b6f8",\r
723         "type": "for",\r
724         "name": "for each relationship in pnf",\r
725         "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",\r
726         "comments": "",\r
727         "outputs": 1,\r
728         "x": 2345.882568359375,\r
729         "y": 823.6597290039062,\r
730         "z": "84e7e3f2.6b184",\r
731         "wires": [\r
732             [\r
733                 "c153c531.99c278"\r
734             ]\r
735         ]\r
736     },\r
737     {\r
738         "id": "c153c531.99c278",\r
739         "type": "switchNode",\r
740         "name": "switch related-to",\r
741         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
742         "comments": "",\r
743         "outputs": 1,\r
744         "x": 2571.882568359375,\r
745         "y": 823.6597290039062,\r
746         "z": "84e7e3f2.6b184",\r
747         "wires": [\r
748             [\r
749                 "ebf22767.e2b168",\r
750                 "17f20ef3.96aa91"\r
751             ]\r
752         ]\r
753     },\r
754     {\r
755         "id": "ebf22767.e2b168",\r
756         "type": "outcome",\r
757         "name": "network-resource",\r
758         "xml": "<outcome value='network-resource'>\n",\r
759         "comments": "",\r
760         "outputs": 1,\r
761         "x": 2770,\r
762         "y": 936,\r
763         "z": "84e7e3f2.6b184",\r
764         "wires": [\r
765             [\r
766                 "15e83210.af0fbe"\r
767             ]\r
768         ]\r
769     },\r
770     {\r
771         "id": "15e83210.af0fbe",\r
772         "type": "block",\r
773         "name": "block : atomic",\r
774         "xml": "<block atomic=\"true\">",\r
775         "atomic": "true",\r
776         "outputs": 1,\r
777         "x": 2983,\r
778         "y": 937,\r
779         "z": "84e7e3f2.6b184",\r
780         "wires": [\r
781             [\r
782                 "7354a06a.e0a7c",\r
783                 "82642fbf.6f96f"\r
784             ]\r
785         ]\r
786     },\r
787     {\r
788         "id": "7354a06a.e0a7c",\r
789         "type": "set",\r
790         "name": "set network-id",\r
791         "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
792         "comments": "",\r
793         "x": 3218,\r
794         "y": 867,\r
795         "z": "84e7e3f2.6b184",\r
796         "wires": []\r
797     },\r
798     {\r
799         "id": "82642fbf.6f96f",\r
800         "type": "get-resource",\r
801         "name": "get-resource network-resource",\r
802         "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 AND depth = '0'`\"\n        pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",\r
803         "comments": "",\r
804         "outputs": 1,\r
805         "x": 3226,\r
806         "y": 948,\r
807         "z": "84e7e3f2.6b184",\r
808         "wires": [\r
809             [\r
810                 "dfffc86d.811b38"\r
811             ]\r
812         ]\r
813     },\r
814     {\r
815         "id": "dfffc86d.811b38",\r
816         "type": "success",\r
817         "name": "success",\r
818         "xml": "<outcome value='success'>\n",\r
819         "comments": "",\r
820         "outputs": 1,\r
821         "x": 3458.5,\r
822         "y": 944,\r
823         "z": "84e7e3f2.6b184",\r
824         "wires": [\r
825             [\r
826                 "c2666ab.b105298"\r
827             ]\r
828         ]\r
829     },\r
830     {\r
831         "id": "c2666ab.b105298",\r
832         "type": "set",\r
833         "name": "set network-id, topo-id, client-id, etc",\r
834         "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
835         "comments": "",\r
836         "x": 3727,\r
837         "y": 943,\r
838         "z": "84e7e3f2.6b184",\r
839         "wires": []\r
840     },\r
841     {\r
842         "id": "a53f3f0c.46a7a",\r
843         "type": "call",\r
844         "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
845         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
846         "comments": "",\r
847         "outputs": 1,\r
848         "x": 782,\r
849         "y": 861,\r
850         "z": "84e7e3f2.6b184",\r
851         "wires": [\r
852             []\r
853         ]\r
854     },\r
855     {\r
856         "id": "17f20ef3.96aa91",\r
857         "type": "outcome",\r
858         "name": "thirdparty-controller",\r
859         "xml": "<outcome value='thirdparty-controller'>\n",\r
860         "comments": "",\r
861         "outputs": 1,\r
862         "x": 2797,\r
863         "y": 801,\r
864         "z": "84e7e3f2.6b184",\r
865         "wires": [\r
866             [\r
867                 "a15f639f.76c57"\r
868             ]\r
869         ]\r
870     },\r
871     {\r
872         "id": "a15f639f.76c57",\r
873         "type": "block",\r
874         "name": "block : atomic",\r
875         "xml": "<block atomic=\"true\">",\r
876         "atomic": "true",\r
877         "outputs": 1,\r
878         "x": 3010,\r
879         "y": 802,\r
880         "z": "84e7e3f2.6b184",\r
881         "wires": [\r
882             [\r
883                 "94cd4673.029758"\r
884             ]\r
885         ]\r
886     },\r
887     {\r
888         "id": "94cd4673.029758",\r
889         "type": "set",\r
890         "name": "set thirdparty-sdnc-id",\r
891         "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
892         "comments": "",\r
893         "x": 3237,\r
894         "y": 801,\r
895         "z": "84e7e3f2.6b184",\r
896         "wires": []\r
897     },\r
898     {\r
899         "id": "5c2c3ff1.fc693",\r
900         "type": "comment",\r
901         "name": "when we reach here, we have 2 UNIs, so do ACTN operations",\r
902         "info": "",\r
903         "comments": "",\r
904         "x": 795,\r
905         "y": 807,\r
906         "z": "84e7e3f2.6b184",\r
907         "wires": []\r
908     },\r
909     {\r
910         "id": "c42e922f.1abaa",\r
911         "type": "for",\r
912         "name": "for vidx..unis.uni_length[]",\r
913         "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",\r
914         "comments": "",\r
915         "outputs": 1,\r
916         "x": 648,\r
917         "y": 1053,\r
918         "z": "84e7e3f2.6b184",\r
919         "wires": [\r
920             [\r
921                 "1cfcb3ef.b12bfc"\r
922             ]\r
923         ]\r
924     },\r
925     {\r
926         "id": "70ff03f1.58983c",\r
927         "type": "set",\r
928         "name": "set oof.vpn",\r
929         "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",\r
930         "comments": "",\r
931         "x": 1074.0272216796875,\r
932         "y": 992.040771484375,\r
933         "z": "84e7e3f2.6b184",\r
934         "wires": []\r
935     },\r
936     {\r
937         "id": "fcf606f6.efb428",\r
938         "type": "set",\r
939         "name": "set controller data",\r
940         "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",\r
941         "comments": "",\r
942         "x": 1554.0272216796875,\r
943         "y": 1105.0407409667969,\r
944         "z": "84e7e3f2.6b184",\r
945         "wires": []\r
946     },\r
947     {\r
948         "id": "18d11459.dc281c",\r
949         "type": "success",\r
950         "name": "success",\r
951         "xml": "<outcome value='success'>\n",\r
952         "comments": "",\r
953         "outputs": 1,\r
954         "x": 1384.0272216796875,\r
955         "y": 1105.0407409667969,\r
956         "z": "84e7e3f2.6b184",\r
957         "wires": [\r
958             [\r
959                 "fcf606f6.efb428"\r
960             ]\r
961         ]\r
962     },\r
963     {\r
964         "id": "71856f9f.960fe",\r
965         "type": "not-found",\r
966         "name": "not-found",\r
967         "xml": "<outcome value='not-found'>\n",\r
968         "comments": "",\r
969         "outputs": 1,\r
970         "x": 1388.0272216796875,\r
971         "y": 1145.0407409667969,\r
972         "z": "84e7e3f2.6b184",\r
973         "wires": [\r
974             [\r
975                 "48d45483.15892c"\r
976             ]\r
977         ]\r
978     },\r
979     {\r
980         "id": "f7967d43.ee995",\r
981         "type": "other",\r
982         "name": "other",\r
983         "xml": "<outcome value='Other'>\n",\r
984         "comments": "",\r
985         "outputs": 1,\r
986         "x": 1380.0272216796875,\r
987         "y": 1185.0407409667969,\r
988         "z": "84e7e3f2.6b184",\r
989         "wires": [\r
990             [\r
991                 "8a5a416f.cf1fa"\r
992             ]\r
993         ]\r
994     },\r
995     {\r
996         "id": "48d45483.15892c",\r
997         "type": "returnFailure",\r
998         "name": "return failure",\r
999         "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
1000         "comments": "",\r
1001         "x": 1538.0272216796875,\r
1002         "y": 1145.0407409667969,\r
1003         "z": "84e7e3f2.6b184",\r
1004         "wires": []\r
1005     },\r
1006     {\r
1007         "id": "8a5a416f.cf1fa",\r
1008         "type": "returnFailure",\r
1009         "name": "return failure",\r
1010         "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
1011         "comments": "",\r
1012         "x": 1538.0272216796875,\r
1013         "y": 1185.0407409667969,\r
1014         "z": "84e7e3f2.6b184",\r
1015         "wires": []\r
1016     },\r
1017     {\r
1018         "id": "96b7c9e8.a8e308",\r
1019         "type": "success",\r
1020         "name": "success",\r
1021         "xml": "<outcome value='success'>\n",\r
1022         "comments": "",\r
1023         "outputs": 1,\r
1024         "x": 1384.0272216796875,\r
1025         "y": 1225.0407409667969,\r
1026         "z": "84e7e3f2.6b184",\r
1027         "wires": [\r
1028             [\r
1029                 "f7f59d76.ec927"\r
1030             ]\r
1031         ]\r
1032     },\r
1033     {\r
1034         "id": "9f0248ba.15c698",\r
1035         "type": "failure",\r
1036         "name": "failure",\r
1037         "xml": "<outcome value='failure'>\n",\r
1038         "comments": "",\r
1039         "outputs": 1,\r
1040         "x": 1380.0272216796875,\r
1041         "y": 1265.0407409667969,\r
1042         "z": "84e7e3f2.6b184",\r
1043         "wires": [\r
1044             [\r
1045                 "66fab2ba.c9700c"\r
1046             ]\r
1047         ]\r
1048     },\r
1049     {\r
1050         "id": "66fab2ba.c9700c",\r
1051         "type": "returnFailure",\r
1052         "name": "return failure",\r
1053         "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
1054         "comments": "",\r
1055         "x": 1538.0272216796875,\r
1056         "y": 1265.0407409667969,\r
1057         "z": "84e7e3f2.6b184",\r
1058         "wires": []\r
1059     },\r
1060     {\r
1061         "id": "f7f59d76.ec927",\r
1062         "type": "set",\r
1063         "name": "set token-id",\r
1064         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
1065         "comments": "",\r
1066         "x": 1534.5272216796875,\r
1067         "y": 1225.0407409667969,\r
1068         "z": "84e7e3f2.6b184",\r
1069         "wires": []\r
1070     },\r
1071     {\r
1072         "id": "98b0b441.82bf68",\r
1073         "type": "comment",\r
1074         "name": "Get controller info and send request",\r
1075         "info": "",\r
1076         "comments": "",\r
1077         "x": 1146.0272216796875,\r
1078         "y": 1105.0407409667969,\r
1079         "z": "84e7e3f2.6b184",\r
1080         "wires": []\r
1081     },\r
1082     {\r
1083         "id": "82fd1dc6.67489",\r
1084         "type": "get-resource",\r
1085         "name": "get-resource esr-thirdparty-sdnc",\r
1086         "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 = $oof.vpn.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
1087         "comments": "",\r
1088         "outputs": 1,\r
1089         "x": 1138.0272216796875,\r
1090         "y": 1145.0407409667969,\r
1091         "z": "84e7e3f2.6b184",\r
1092         "wires": [\r
1093             [\r
1094                 "18d11459.dc281c",\r
1095                 "71856f9f.960fe",\r
1096                 "f7967d43.ee995"\r
1097             ]\r
1098         ]\r
1099     },\r
1100     {\r
1101         "id": "8222512c.b2b7f",\r
1102         "type": "execute",\r
1103         "name": "execute RestApiCallNode Get token",\r
1104         "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
1105         "comments": "",\r
1106         "outputs": 1,\r
1107         "x": 1150.5272216796875,\r
1108         "y": 1245.0407409667969,\r
1109         "z": "84e7e3f2.6b184",\r
1110         "wires": [\r
1111             [\r
1112                 "96b7c9e8.a8e308",\r
1113                 "9f0248ba.15c698"\r
1114             ]\r
1115         ]\r
1116     },\r
1117     {\r
1118         "id": "21e9ada7.141962",\r
1119         "type": "comment",\r
1120         "name": "call domain controller to  create underlay OTN tunnel",\r
1121         "info": "",\r
1122         "comments": "",\r
1123         "x": 1199.5272216796875,\r
1124         "y": 1330.49560546875,\r
1125         "z": "84e7e3f2.6b184",\r
1126         "wires": []\r
1127     },\r
1128     {\r
1129         "id": "47386aa5.9bb954",\r
1130         "type": "call",\r
1131         "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",\r
1132         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",\r
1133         "comments": "",\r
1134         "outputs": 1,\r
1135         "x": 1219.5272216796875,\r
1136         "y": 1374.49560546875,\r
1137         "z": "84e7e3f2.6b184",\r
1138         "wires": [\r
1139             []\r
1140         ]\r
1141     },\r
1142     {\r
1143         "id": "1cfcb3ef.b12bfc",\r
1144         "type": "block",\r
1145         "name": "block : atomic",\r
1146         "xml": "<block atomic=\"true\">",\r
1147         "atomic": "true",\r
1148         "outputs": 1,\r
1149         "x": 801.5272216796875,\r
1150         "y": 1385.0407409667969,\r
1151         "z": "84e7e3f2.6b184",\r
1152         "wires": [\r
1153             [\r
1154                 "82fd1dc6.67489",\r
1155                 "70ff03f1.58983c",\r
1156                 "e0cd8c60.4c6de",\r
1157                 "8b8f2197.efea1",\r
1158                 "8222512c.b2b7f",\r
1159                 "518a2698.5bffd8",\r
1160                 "47386aa5.9bb954"\r
1161             ]\r
1162         ]\r
1163     },\r
1164     {\r
1165         "id": "cbbfd612.33a888",\r
1166         "type": "comment",\r
1167         "name": "Loop through UNIs and configure domain controllers",\r
1168         "info": "",\r
1169         "comments": "",\r
1170         "x": 736.5003662109375,\r
1171         "y": 1193.5003662109375,\r
1172         "z": "84e7e3f2.6b184",\r
1173         "wires": []\r
1174     },\r
1175     {\r
1176         "id": "e0cd8c60.4c6de",\r
1177         "type": "set",\r
1178         "name": "set sotn_value",\r
1179         "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
1180         "comments": "",\r
1181         "x": 1065.52734375,\r
1182         "y": 1453.040771484375,\r
1183         "z": "84e7e3f2.6b184",\r
1184         "wires": []\r
1185     },\r
1186     {\r
1187         "id": "8b8f2197.efea1",\r
1188         "type": "set",\r
1189         "name": "set attachment_param",\r
1190         "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
1191         "comments": "",\r
1192         "x": 1090.02734375,\r
1193         "y": 1493.040771484375,\r
1194         "z": "84e7e3f2.6b184",\r
1195         "wires": []\r
1196     },\r
1197     {\r
1198         "id": "518a2698.5bffd8",\r
1199         "type": "switchNode",\r
1200         "name": "switch prop.sdncRestApi.token_id",\r
1201         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
1202         "comments": "",\r
1203         "outputs": 1,\r
1204         "x": 1125.52734375,\r
1205         "y": 1533.040771484375,\r
1206         "z": "84e7e3f2.6b184",\r
1207         "wires": [\r
1208             [\r
1209                 "7015f66c.94fd18",\r
1210                 "82d35da9.66aaf"\r
1211             ]\r
1212         ]\r
1213     },\r
1214     {\r
1215         "id": "dd59a6d0.4b0dc8",\r
1216         "type": "execute",\r
1217         "name": "execute RestconfApiCallNode Create ethernet Service with token",\r
1218         "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/sdnc/restapi/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
1219         "comments": "",\r
1220         "outputs": 1,\r
1221         "x": 1642.52734375,\r
1222         "y": 1553.040771484375,\r
1223         "z": "84e7e3f2.6b184",\r
1224         "wires": [\r
1225             [\r
1226                 "f3736e9e.60052",\r
1227                 "c00d7e66.d88b7"\r
1228             ]\r
1229         ]\r
1230     },\r
1231     {\r
1232         "id": "f3736e9e.60052",\r
1233         "type": "success",\r
1234         "name": "success",\r
1235         "xml": "<outcome value='success'>\n",\r
1236         "comments": "",\r
1237         "outputs": 1,\r
1238         "x": 1986.02734375,\r
1239         "y": 1553.040771484375,\r
1240         "z": "84e7e3f2.6b184",\r
1241         "wires": [\r
1242             [\r
1243                 "113a662f.cf308a"\r
1244             ]\r
1245         ]\r
1246     },\r
1247     {\r
1248         "id": "113a662f.cf308a",\r
1249         "type": "block",\r
1250         "name": "block : atomic",\r
1251         "xml": "<block atomic=\"true\">",\r
1252         "atomic": "true",\r
1253         "comments": "",\r
1254         "outputs": 1,\r
1255         "x": 2143.52734375,\r
1256         "y": 1553.040771484375,\r
1257         "z": "84e7e3f2.6b184",\r
1258         "wires": [\r
1259             []\r
1260         ]\r
1261     },\r
1262     {\r
1263         "id": "9be7bcfb.b7fdc",\r
1264         "type": "returnFailure",\r
1265         "name": "return failure",\r
1266         "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
1267         "comments": "",\r
1268         "x": 2140.02734375,\r
1269         "y": 1513.040771484375,\r
1270         "z": "84e7e3f2.6b184",\r
1271         "wires": []\r
1272     },\r
1273     {\r
1274         "id": "c00d7e66.d88b7",\r
1275         "type": "failure",\r
1276         "name": "failure",\r
1277         "xml": "<outcome value='failure'>\n",\r
1278         "comments": "",\r
1279         "outputs": 1,\r
1280         "x": 1982.02734375,\r
1281         "y": 1513.040771484375,\r
1282         "z": "84e7e3f2.6b184",\r
1283         "wires": [\r
1284             [\r
1285                 "9be7bcfb.b7fdc"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "7015f66c.94fd18",\r
1291         "type": "other",\r
1292         "name": "Null",\r
1293         "xml": "<outcome value=''>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 1338.3711738586426,\r
1297         "y": 1513.162670135498,\r
1298         "z": "84e7e3f2.6b184",\r
1299         "wires": [\r
1300             [\r
1301                 "d88a1a72.f911d8"\r
1302             ]\r
1303         ]\r
1304     },\r
1305     {\r
1306         "id": "82d35da9.66aaf",\r
1307         "type": "other",\r
1308         "name": "other",\r
1309         "xml": "<outcome value='Other'>\n",\r
1310         "comments": "",\r
1311         "outputs": 1,\r
1312         "x": 1342.02734375,\r
1313         "y": 1553.040771484375,\r
1314         "z": "84e7e3f2.6b184",\r
1315         "wires": [\r
1316             [\r
1317                 "dd59a6d0.4b0dc8"\r
1318             ]\r
1319         ]\r
1320     },\r
1321     {\r
1322         "id": "d88a1a72.f911d8",\r
1323         "type": "execute",\r
1324         "name": "execute RestconfApiCallNode Create ethernet Service without token",\r
1325         "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/sdnc/restapi/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
1326         "comments": "",\r
1327         "outputs": 1,\r
1328         "x": 1652.52734375,\r
1329         "y": 1513.040771484375,\r
1330         "z": "84e7e3f2.6b184",\r
1331         "wires": [\r
1332             [\r
1333                 "c00d7e66.d88b7",\r
1334                 "f3736e9e.60052"\r
1335             ]\r
1336         ]\r
1337     }\r
1338 ]