b8646972515f02132b99ab178c6b7e132a538d58
[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": "ea193d8f.e165e",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 112,\r
8         "y": 70,\r
9         "z": "5c3e2071.30fcf",\r
10         "wires": [\r
11             [\r
12                 "45143e5e.12cef"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "45143e5e.12cef",\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": 243.2856903076172,\r
26         "y": 119.23810863494873,\r
27         "z": "5c3e2071.30fcf",\r
28         "wires": [\r
29             [\r
30                 "22fb039d.719e1c"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "22fb039d.719e1c",\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": 246.42861938476562,\r
42         "y": 204.00003242492676,\r
43         "z": "5c3e2071.30fcf",\r
44         "wires": [\r
45             [\r
46                 "bbe79441.cda0b"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "8dca40ca.b6cbc8",\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": 718.9959564208984,\r
58         "y": 384.99998915195465,\r
59         "z": "5c3e2071.30fcf",\r
60         "wires": [\r
61             [\r
62                 "66f88853.0801a8",\r
63                 "5f34a2a5.ce0fbc",\r
64                 "37779f9b.3e84f8"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "bbe79441.cda0b",\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": 337.6626205444336,\r
76         "y": 489.66670763492584,\r
77         "z": "5c3e2071.30fcf",\r
78         "wires": [\r
79             [\r
80                 "8dca40ca.b6cbc8",\r
81                 "b28368bd.88b17",\r
82                 "91b62864.f184c8",\r
83                 "b0f3fc53.5db61",\r
84                 "b5422f78.9d3e4",\r
85                 "f2975c47.fb694",\r
86                 "aeddedc2.f06158",\r
87                 "5950f717.b81e28"\r
88             ]\r
89         ]\r
90     },\r
91     {\r
92         "id": "91b62864.f184c8",\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": 684.0273170471191,\r
99         "y": 255.269144654274,\r
100         "z": "5c3e2071.30fcf",\r
101         "wires": [\r
102             [\r
103                 "3d5e06d8.9791c2"\r
104             ]\r
105         ]\r
106     },\r
107     {\r
108         "id": "b28368bd.88b17",\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": 688.9959716796875,\r
115         "y": 194.00001394748688,\r
116         "z": "5c3e2071.30fcf",\r
117         "wires": [\r
118             [\r
119                 "746b74df.fbc48c"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "746b74df.fbc48c",\r
125         "type": "outcome",\r
126         "name": "NULL",\r
127         "xml": "<outcome value=''>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 868.9959526062012,\r
131         "y": 193.0000034570694,\r
132         "z": "5c3e2071.30fcf",\r
133         "wires": [\r
134             [\r
135                 "62ebea71.fce5b4"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "62ebea71.fce5b4",\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": 1018.4246788024902,\r
146         "y": 194.14292109012604,\r
147         "z": "5c3e2071.30fcf",\r
148         "wires": []\r
149     },\r
150     {\r
151         "id": "3d5e06d8.9791c2",\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": 906.9959678649902,\r
158         "y": 256.00000965595245,\r
159         "z": "5c3e2071.30fcf",\r
160         "wires": [\r
161             [\r
162                 "fccff52.827ec08"\r
163             ]\r
164         ]\r
165     },\r
166     {\r
167         "id": "fccff52.827ec08",\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": 1121.9959526062012,\r
174         "y": 254.0000034570694,\r
175         "z": "5c3e2071.30fcf",\r
176         "wires": [\r
177             [\r
178                 "fc0c6263.7f4b58"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "46df70e6.cbb32",\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": 1462.9959716796875,\r
189         "y": 222,\r
190         "z": "5c3e2071.30fcf",\r
191         "wires": []\r
192     },\r
193     {\r
194         "id": "5f34a2a5.ce0fbc",\r
195         "type": "outcome",\r
196         "name": "NULL",\r
197         "xml": "<outcome value=''>\n",\r
198         "comments": "",\r
199         "outputs": 1,\r
200         "x": 978.9959716796875,\r
201         "y": 409,\r
202         "z": "5c3e2071.30fcf",\r
203         "wires": [\r
204             [\r
205                 "b65ac05a.92d3b8"\r
206             ]\r
207         ]\r
208     },\r
209     {\r
210         "id": "66f88853.0801a8",\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": 975.9959716796875,\r
217         "y": 337,\r
218         "z": "5c3e2071.30fcf",\r
219         "wires": [\r
220             [\r
221                 "b65ac05a.92d3b8"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "b65ac05a.92d3b8",\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": 1147.9959716796875,\r
232         "y": 371,\r
233         "z": "5c3e2071.30fcf",\r
234         "wires": []\r
235     },\r
236     {\r
237         "id": "37779f9b.3e84f8",\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": 940.9959487915039,\r
244         "y": 479.9999986886978,\r
245         "z": "5c3e2071.30fcf",\r
246         "wires": [\r
247             [\r
248                 "8619e619.b5b6f"\r
249             ]\r
250         ]\r
251     },\r
252     {\r
253         "id": "b4807db5.ce3f18",\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": 1294.995964050293,\r
259         "y": 478.0000126361847,\r
260         "z": "5c3e2071.30fcf",\r
261         "wires": []\r
262     },\r
263     {\r
264         "id": "8619e619.b5b6f",\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": 1101.995994567871,\r
271         "y": 476.99999010562897,\r
272         "z": "5c3e2071.30fcf",\r
273         "wires": [\r
274             [\r
275                 "b4807db5.ce3f18",\r
276                 "b7112b63.fa666"\r
277             ]\r
278         ]\r
279     },\r
280     {\r
281         "id": "b7112b63.fa666",\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": 1313.9959335327148,\r
288         "y": 530.9999891519547,\r
289         "z": "5c3e2071.30fcf",\r
290         "wires": [\r
291             [\r
292                 "207d79b0.f0396e"\r
293             ]\r
294         ]\r
295     },\r
296     {\r
297         "id": "207d79b0.f0396e",\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": 1556.995948791504,\r
304         "y": 525.9999986886978,\r
305         "z": "5c3e2071.30fcf",\r
306         "wires": [\r
307             [\r
308                 "f2b976ec.55b34"\r
309             ]\r
310         ]\r
311     },\r
312     {\r
313         "id": "f2b976ec.55b34",\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": 1754.9959774017334,\r
320         "y": 513.000005364418,\r
321         "z": "5c3e2071.30fcf",\r
322         "wires": [\r
323             [\r
324                 "eab205c1.ee7e8"\r
325             ]\r
326         ]\r
327     },\r
328     {\r
329         "id": "eab205c1.ee7e8",\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": 1906.995948791504,\r
336         "y": 514.9999986886978,\r
337         "z": "5c3e2071.30fcf",\r
338         "wires": [\r
339             [\r
340                 "7cce5705.9b51",\r
341                 "b161a727.31db88",\r
342                 "8cc64f67.5de4c"\r
343             ]\r
344         ]\r
345     },\r
346     {\r
347         "id": "7cce5705.9b51",\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": 2134.996063232422,\r
353         "y": 457.0000025033951,\r
354         "z": "5c3e2071.30fcf",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "b161a727.31db88",\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": 2138.996063232422,\r
364         "y": 511.0000025033951,\r
365         "z": "5c3e2071.30fcf",\r
366         "wires": []\r
367     },\r
368     {\r
369         "id": "b0f3fc53.5db61",\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": 612.9961547851562,\r
375         "y": 1684.501220703125,\r
376         "z": "5c3e2071.30fcf",\r
377         "wires": []\r
378     },\r
379     {\r
380         "id": "8cc64f67.5de4c",\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": 2169.45108795166,\r
387         "y": 562.0104948282242,\r
388         "z": "5c3e2071.30fcf",\r
389         "wires": [\r
390             []\r
391         ]\r
392     },\r
393     {\r
394         "id": "b5422f78.9d3e4",\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": 698.9959564208984,\r
401         "y": 324.5039049386978,\r
402         "z": "5c3e2071.30fcf",\r
403         "wires": [\r
404             []\r
405         ]\r
406     },\r
407     {\r
408         "id": "fc0c6263.7f4b58",\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": 1285,\r
415         "y": 264,\r
416         "z": "5c3e2071.30fcf",\r
417         "wires": [\r
418             [\r
419                 "46df70e6.cbb32",\r
420                 "868e2384.9bd088"\r
421             ]\r
422         ]\r
423     },\r
424     {\r
425         "id": "868e2384.9bd088",\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": 1470,\r
431         "y": 279,\r
432         "z": "5c3e2071.30fcf",\r
433         "wires": []\r
434     },\r
435     {\r
436         "id": "5950f717.b81e28",\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": 591,\r
443         "y": 543,\r
444         "z": "5c3e2071.30fcf",\r
445         "wires": [\r
446             [\r
447                 "25602afb.1d9cfe"\r
448             ]\r
449         ]\r
450     },\r
451     {\r
452         "id": "8bfca5dd.ccec38",\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": 821,\r
460         "y": 591,\r
461         "z": "5c3e2071.30fcf",\r
462         "wires": [\r
463             [\r
464                 "3fb86113.9bfd2e",\r
465                 "cea6f99d.9fa3f8"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "cea6f99d.9fa3f8",\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": 1033,\r
477         "y": 594,\r
478         "z": "5c3e2071.30fcf",\r
479         "wires": [\r
480             [\r
481                 "380b3b11.1fc39c"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "380b3b11.1fc39c",\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": 1259,\r
493         "y": 598,\r
494         "z": "5c3e2071.30fcf",\r
495         "wires": [\r
496             [\r
497                 "6ce242f7.50a224"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "6ce242f7.50a224",\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": 1448.285888671875,\r
509         "y": 606.82177734375,\r
510         "z": "5c3e2071.30fcf",\r
511         "wires": [\r
512             [\r
513                 "8f0c299e.76aa68"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "8f0c299e.76aa68",\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": 1623.117431640625,\r
525         "y": 609.3402709960938,\r
526         "z": "5c3e2071.30fcf",\r
527         "wires": [\r
528             [\r
529                 "9cc6d571.b014d8",\r
530                 "8d29ebb2.4924b",\r
531                 "1b814ca6.da0c53"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "9cc6d571.b014d8",\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": 1840.117431640625,\r
542         "y": 607.3402709960938,\r
543         "z": "5c3e2071.30fcf",\r
544         "wires": []\r
545     },\r
546     {\r
547         "id": "3fb86113.9bfd2e",\r
548         "type": "switchNode",\r
549         "name": "switch number of unis  less than two",\r
550         "xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",\r
551         "comments": "",\r
552         "outputs": 1,\r
553         "x": 1008,\r
554         "y": 758,\r
555         "z": "5c3e2071.30fcf",\r
556         "wires": [\r
557             [\r
558                 "ca909120.1610f"\r
559             ]\r
560         ]\r
561     },\r
562     {\r
563         "id": "6807aab1.3361f4",\r
564         "type": "returnSuccess",\r
565         "name": "return success",\r
566         "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
567         "comments": "",\r
568         "x": 1416,\r
569         "y": 760,\r
570         "z": "5c3e2071.30fcf",\r
571         "wires": []\r
572     },\r
573     {\r
574         "id": "ca909120.1610f",\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": 1224,\r
581         "y": 759,\r
582         "z": "5c3e2071.30fcf",\r
583         "wires": [\r
584             [\r
585                 "6807aab1.3361f4"\r
586             ]\r
587         ]\r
588     },\r
589     {\r
590         "id": "8d29ebb2.4924b",\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": 1879,\r
597         "y": 682,\r
598         "z": "5c3e2071.30fcf",\r
599         "wires": [\r
600             [\r
601                 "8df25e56.70ef2",\r
602                 "5281d33f.6cf23c"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "5281d33f.6cf23c",\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": 2102,\r
614         "y": 637,\r
615         "z": "5c3e2071.30fcf",\r
616         "wires": [\r
617             [\r
618                 "98c7bac7.1f7b2"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "8df25e56.70ef2",\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": 2104,\r
630         "y": 701,\r
631         "z": "5c3e2071.30fcf",\r
632         "wires": [\r
633             [\r
634                 "538dd561.19c994"\r
635             ]\r
636         ]\r
637     },\r
638     {\r
639         "id": "98c7bac7.1f7b2",\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": 2324,\r
645         "y": 639,\r
646         "z": "5c3e2071.30fcf",\r
647         "wires": []\r
648     },\r
649     {\r
650         "id": "538dd561.19c994",\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": 2263,\r
656         "y": 720,\r
657         "z": "5c3e2071.30fcf",\r
658         "wires": []\r
659     },\r
660     {\r
661         "id": "1b814ca6.da0c53",\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'\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
665         "comments": "",\r
666         "outputs": 1,\r
667         "x": 1809,\r
668         "y": 819,\r
669         "z": "5c3e2071.30fcf",\r
670         "wires": [\r
671             [\r
672                 "a9afb163.16d81"\r
673             ]\r
674         ]\r
675     },\r
676     {\r
677         "id": "6d7469b.d065118",\r
678         "type": "block",\r
679         "name": "block",\r
680         "xml": "<block>",\r
681         "atomic": "false",\r
682         "comments": "",\r
683         "outputs": 1,\r
684         "x": 2168.88232421875,\r
685         "y": 827.6556396484375,\r
686         "z": "5c3e2071.30fcf",\r
687         "wires": [\r
688             [\r
689                 "d8ebfcdc.d7e228",\r
690                 "e363b1ad.6cf518"\r
691             ]\r
692         ]\r
693     },\r
694     {\r
695         "id": "d8ebfcdc.d7e228",\r
696         "type": "set",\r
697         "name": "set node-id",\r
698         "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",\r
699         "comments": "",\r
700         "x": 2348,\r
701         "y": 781,\r
702         "z": "5c3e2071.30fcf",\r
703         "wires": []\r
704     },\r
705     {\r
706         "id": "e363b1ad.6cf518",\r
707         "type": "for",\r
708         "name": "for each relationship in pnf",\r
709         "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",\r
710         "comments": "",\r
711         "outputs": 1,\r
712         "x": 2360.882568359375,\r
713         "y": 867.6597290039062,\r
714         "z": "5c3e2071.30fcf",\r
715         "wires": [\r
716             [\r
717                 "95c7940c.2b5948"\r
718             ]\r
719         ]\r
720     },\r
721     {\r
722         "id": "95c7940c.2b5948",\r
723         "type": "switchNode",\r
724         "name": "switch related-to",\r
725         "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
726         "comments": "",\r
727         "outputs": 1,\r
728         "x": 2586.882568359375,\r
729         "y": 867.6597290039062,\r
730         "z": "5c3e2071.30fcf",\r
731         "wires": [\r
732             [\r
733                 "a1776b53.b80d",\r
734                 "af94fb8e.80dfb8"\r
735             ]\r
736         ]\r
737     },\r
738     {\r
739         "id": "af94fb8e.80dfb8",\r
740         "type": "outcome",\r
741         "name": "network-resource",\r
742         "xml": "<outcome value='network-resource'>\n",\r
743         "comments": "",\r
744         "outputs": 1,\r
745         "x": 2785,\r
746         "y": 980,\r
747         "z": "5c3e2071.30fcf",\r
748         "wires": [\r
749             [\r
750                 "127afd4b.34da43"\r
751             ]\r
752         ]\r
753     },\r
754     {\r
755         "id": "127afd4b.34da43",\r
756         "type": "block",\r
757         "name": "block : atomic",\r
758         "xml": "<block atomic=\"true\">",\r
759         "atomic": "true",\r
760         "outputs": 1,\r
761         "x": 2998,\r
762         "y": 981,\r
763         "z": "5c3e2071.30fcf",\r
764         "wires": [\r
765             [\r
766                 "9a33ae38.4ad288",\r
767                 "b1e1b5aa.ff6b18"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "9a33ae38.4ad288",\r
773         "type": "set",\r
774         "name": "set network-id",\r
775         "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
776         "comments": "",\r
777         "x": 3233,\r
778         "y": 911,\r
779         "z": "5c3e2071.30fcf",\r
780         "wires": []\r
781     },\r
782     {\r
783         "id": "b1e1b5aa.ff6b18",\r
784         "type": "get-resource",\r
785         "name": "get-resource network-resource",\r
786         "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
787         "comments": "",\r
788         "outputs": 1,\r
789         "x": 3241,\r
790         "y": 992,\r
791         "z": "5c3e2071.30fcf",\r
792         "wires": [\r
793             [\r
794                 "7923986a.2dfdb"\r
795             ]\r
796         ]\r
797     },\r
798     {\r
799         "id": "7923986a.2dfdb",\r
800         "type": "success",\r
801         "name": "success",\r
802         "xml": "<outcome value='success'>\n",\r
803         "comments": "",\r
804         "outputs": 1,\r
805         "x": 3473.5,\r
806         "y": 988,\r
807         "z": "5c3e2071.30fcf",\r
808         "wires": [\r
809             [\r
810                 "e1de0e95.dce97"\r
811             ]\r
812         ]\r
813     },\r
814     {\r
815         "id": "e1de0e95.dce97",\r
816         "type": "set",\r
817         "name": "set network-id, topo-id, client-id, etc",\r
818         "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
819         "comments": "",\r
820         "x": 3742,\r
821         "y": 987,\r
822         "z": "5c3e2071.30fcf",\r
823         "wires": []\r
824     },\r
825     {\r
826         "id": "aeddedc2.f06158",\r
827         "type": "call",\r
828         "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",\r
829         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",\r
830         "comments": "",\r
831         "outputs": 1,\r
832         "x": 797,\r
833         "y": 905,\r
834         "z": "5c3e2071.30fcf",\r
835         "wires": [\r
836             []\r
837         ]\r
838     },\r
839     {\r
840         "id": "a1776b53.b80d",\r
841         "type": "outcome",\r
842         "name": "thirdparty-controller",\r
843         "xml": "<outcome value='thirdparty-controller'>\n",\r
844         "comments": "",\r
845         "outputs": 1,\r
846         "x": 2812,\r
847         "y": 845,\r
848         "z": "5c3e2071.30fcf",\r
849         "wires": [\r
850             [\r
851                 "4c01f776.c87b7"\r
852             ]\r
853         ]\r
854     },\r
855     {\r
856         "id": "4c01f776.c87b7",\r
857         "type": "block",\r
858         "name": "block : atomic",\r
859         "xml": "<block atomic=\"true\">",\r
860         "atomic": "true",\r
861         "outputs": 1,\r
862         "x": 3025,\r
863         "y": 846,\r
864         "z": "5c3e2071.30fcf",\r
865         "wires": [\r
866             [\r
867                 "583e9b05.f6eef4"\r
868             ]\r
869         ]\r
870     },\r
871     {\r
872         "id": "583e9b05.f6eef4",\r
873         "type": "set",\r
874         "name": "set thirdparty-sdnc-id",\r
875         "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
876         "comments": "",\r
877         "x": 3252,\r
878         "y": 845,\r
879         "z": "5c3e2071.30fcf",\r
880         "wires": []\r
881     },\r
882     {\r
883         "id": "d059a84d.8e506",\r
884         "type": "comment",\r
885         "name": "when we reach here, we have 2 UNIs, so do ACTN operations",\r
886         "info": "",\r
887         "comments": "",\r
888         "x": 810,\r
889         "y": 851,\r
890         "z": "5c3e2071.30fcf",\r
891         "wires": []\r
892     },\r
893     {\r
894         "id": "f2975c47.fb694",\r
895         "type": "for",\r
896         "name": "for vidx..unis.uni_length[]",\r
897         "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",\r
898         "comments": "",\r
899         "outputs": 1,\r
900         "x": 663,\r
901         "y": 1097,\r
902         "z": "5c3e2071.30fcf",\r
903         "wires": [\r
904             [\r
905                 "de539d0a.26596"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "3b0a5525.2ac102",\r
911         "type": "set",\r
912         "name": "set oof.vpn",\r
913         "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",\r
914         "comments": "",\r
915         "x": 1089.0272216796875,\r
916         "y": 1036.040771484375,\r
917         "z": "5c3e2071.30fcf",\r
918         "wires": []\r
919     },\r
920     {\r
921         "id": "29b92baa.41f5cc",\r
922         "type": "set",\r
923         "name": "set controller data",\r
924         "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
925         "comments": "",\r
926         "x": 1569.0272216796875,\r
927         "y": 1149.0407409667969,\r
928         "z": "5c3e2071.30fcf",\r
929         "wires": []\r
930     },\r
931     {\r
932         "id": "82572a7a.757f1",\r
933         "type": "success",\r
934         "name": "success",\r
935         "xml": "<outcome value='success'>\n",\r
936         "comments": "",\r
937         "outputs": 1,\r
938         "x": 1399.0272216796875,\r
939         "y": 1149.0407409667969,\r
940         "z": "5c3e2071.30fcf",\r
941         "wires": [\r
942             [\r
943                 "29b92baa.41f5cc"\r
944             ]\r
945         ]\r
946     },\r
947     {\r
948         "id": "7ff0b8e4.d0edd",\r
949         "type": "not-found",\r
950         "name": "not-found",\r
951         "xml": "<outcome value='not-found'>\n",\r
952         "comments": "",\r
953         "outputs": 1,\r
954         "x": 1403.0272216796875,\r
955         "y": 1189.0407409667969,\r
956         "z": "5c3e2071.30fcf",\r
957         "wires": [\r
958             [\r
959                 "d2605932.de72d8"\r
960             ]\r
961         ]\r
962     },\r
963     {\r
964         "id": "bcaaab5e.f760b",\r
965         "type": "other",\r
966         "name": "other",\r
967         "xml": "<outcome value='Other'>\n",\r
968         "comments": "",\r
969         "outputs": 1,\r
970         "x": 1395.0272216796875,\r
971         "y": 1229.0407409667969,\r
972         "z": "5c3e2071.30fcf",\r
973         "wires": [\r
974             [\r
975                 "c5af9444.32cba8"\r
976             ]\r
977         ]\r
978     },\r
979     {\r
980         "id": "d2605932.de72d8",\r
981         "type": "returnFailure",\r
982         "name": "return failure",\r
983         "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
984         "comments": "",\r
985         "x": 1553.0272216796875,\r
986         "y": 1189.0407409667969,\r
987         "z": "5c3e2071.30fcf",\r
988         "wires": []\r
989     },\r
990     {\r
991         "id": "c5af9444.32cba8",\r
992         "type": "returnFailure",\r
993         "name": "return failure",\r
994         "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
995         "comments": "",\r
996         "x": 1553.0272216796875,\r
997         "y": 1229.0407409667969,\r
998         "z": "5c3e2071.30fcf",\r
999         "wires": []\r
1000     },\r
1001     {\r
1002         "id": "dc15d354.485648",\r
1003         "type": "success",\r
1004         "name": "success",\r
1005         "xml": "<outcome value='success'>\n",\r
1006         "comments": "",\r
1007         "outputs": 1,\r
1008         "x": 1399.0272216796875,\r
1009         "y": 1269.0407409667969,\r
1010         "z": "5c3e2071.30fcf",\r
1011         "wires": [\r
1012             [\r
1013                 "189365cc.5aa2da"\r
1014             ]\r
1015         ]\r
1016     },\r
1017     {\r
1018         "id": "36cada17.d60606",\r
1019         "type": "failure",\r
1020         "name": "failure",\r
1021         "xml": "<outcome value='failure'>\n",\r
1022         "comments": "",\r
1023         "outputs": 1,\r
1024         "x": 1395.0272216796875,\r
1025         "y": 1309.0407409667969,\r
1026         "z": "5c3e2071.30fcf",\r
1027         "wires": [\r
1028             [\r
1029                 "436f764c.14ed4"\r
1030             ]\r
1031         ]\r
1032     },\r
1033     {\r
1034         "id": "436f764c.14ed4",\r
1035         "type": "returnFailure",\r
1036         "name": "return failure",\r
1037         "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
1038         "comments": "",\r
1039         "x": 1553.0272216796875,\r
1040         "y": 1309.0407409667969,\r
1041         "z": "5c3e2071.30fcf",\r
1042         "wires": []\r
1043     },\r
1044     {\r
1045         "id": "189365cc.5aa2da",\r
1046         "type": "set",\r
1047         "name": "set token-id",\r
1048         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
1049         "comments": "",\r
1050         "x": 1549.5272216796875,\r
1051         "y": 1269.0407409667969,\r
1052         "z": "5c3e2071.30fcf",\r
1053         "wires": []\r
1054     },\r
1055     {\r
1056         "id": "bce6bff8.ae1f18",\r
1057         "type": "comment",\r
1058         "name": "Get controller info and send request",\r
1059         "info": "",\r
1060         "comments": "",\r
1061         "x": 1161.0272216796875,\r
1062         "y": 1149.0407409667969,\r
1063         "z": "5c3e2071.30fcf",\r
1064         "wires": []\r
1065     },\r
1066     {\r
1067         "id": "8c2f104c.2ab35",\r
1068         "type": "get-resource",\r
1069         "name": "get-resource esr-thirdparty-sdnc",\r
1070         "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
1071         "comments": "",\r
1072         "outputs": 1,\r
1073         "x": 1153.0272216796875,\r
1074         "y": 1189.0407409667969,\r
1075         "z": "5c3e2071.30fcf",\r
1076         "wires": [\r
1077             [\r
1078                 "82572a7a.757f1",\r
1079                 "7ff0b8e4.d0edd",\r
1080                 "bcaaab5e.f760b"\r
1081             ]\r
1082         ]\r
1083     },\r
1084     {\r
1085         "id": "e9d11d4a.ea432",\r
1086         "type": "execute",\r
1087         "name": "execute RestApiCallNode Get token",\r
1088         "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
1089         "comments": "",\r
1090         "outputs": 1,\r
1091         "x": 1165.5272216796875,\r
1092         "y": 1289.0407409667969,\r
1093         "z": "5c3e2071.30fcf",\r
1094         "wires": [\r
1095             [\r
1096                 "dc15d354.485648",\r
1097                 "36cada17.d60606"\r
1098             ]\r
1099         ]\r
1100     },\r
1101     {\r
1102         "id": "81bac551.cc757",\r
1103         "type": "comment",\r
1104         "name": "call domain controller to  create underlay OTN tunnel",\r
1105         "info": "",\r
1106         "comments": "",\r
1107         "x": 1214.5272216796875,\r
1108         "y": 1374.49560546875,\r
1109         "z": "5c3e2071.30fcf",\r
1110         "wires": []\r
1111     },\r
1112     {\r
1113         "id": "f9c270fa.7abd5",\r
1114         "type": "call",\r
1115         "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",\r
1116         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",\r
1117         "comments": "",\r
1118         "outputs": 1,\r
1119         "x": 1234.5272216796875,\r
1120         "y": 1418.49560546875,\r
1121         "z": "5c3e2071.30fcf",\r
1122         "wires": [\r
1123             []\r
1124         ]\r
1125     },\r
1126     {\r
1127         "id": "de539d0a.26596",\r
1128         "type": "block",\r
1129         "name": "block : atomic",\r
1130         "xml": "<block atomic=\"true\">",\r
1131         "atomic": "true",\r
1132         "outputs": 1,\r
1133         "x": 816.5272216796875,\r
1134         "y": 1429.0407409667969,\r
1135         "z": "5c3e2071.30fcf",\r
1136         "wires": [\r
1137             [\r
1138                 "8c2f104c.2ab35",\r
1139                 "3b0a5525.2ac102",\r
1140                 "2c3edd05.477cca",\r
1141                 "543dd31e.1a6c4c",\r
1142                 "e9d11d4a.ea432",\r
1143                 "ab256b41.e2d9b8",\r
1144                 "f9c270fa.7abd5"\r
1145             ]\r
1146         ]\r
1147     },\r
1148     {\r
1149         "id": "641e0b16.a7aa44",\r
1150         "type": "comment",\r
1151         "name": "Loop through UNIs and configure domain controllers",\r
1152         "info": "",\r
1153         "comments": "",\r
1154         "x": 751.5003662109375,\r
1155         "y": 1237.5003662109375,\r
1156         "z": "5c3e2071.30fcf",\r
1157         "wires": []\r
1158     },\r
1159     {\r
1160         "id": "2c3edd05.477cca",\r
1161         "type": "set",\r
1162         "name": "set sotn_value",\r
1163         "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
1164         "comments": "",\r
1165         "x": 1080.52734375,\r
1166         "y": 1497.040771484375,\r
1167         "z": "5c3e2071.30fcf",\r
1168         "wires": []\r
1169     },\r
1170     {\r
1171         "id": "543dd31e.1a6c4c",\r
1172         "type": "set",\r
1173         "name": "set attachment_param",\r
1174         "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
1175         "comments": "",\r
1176         "x": 1105.02734375,\r
1177         "y": 1537.040771484375,\r
1178         "z": "5c3e2071.30fcf",\r
1179         "wires": []\r
1180     },\r
1181     {\r
1182         "id": "ab256b41.e2d9b8",\r
1183         "type": "switchNode",\r
1184         "name": "switch prop.sdncRestApi.token_id",\r
1185         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
1186         "comments": "",\r
1187         "outputs": 1,\r
1188         "x": 1140.52734375,\r
1189         "y": 1577.040771484375,\r
1190         "z": "5c3e2071.30fcf",\r
1191         "wires": [\r
1192             [\r
1193                 "7aea425d.d2ac8c",\r
1194                 "c6896fdc.d8f088"\r
1195             ]\r
1196         ]\r
1197     },\r
1198     {\r
1199         "id": "e7a0edea.212a28",\r
1200         "type": "execute",\r
1201         "name": "execute RestconfApiCallNode Create ethernet Service with token",\r
1202         "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
1203         "comments": "",\r
1204         "outputs": 1,\r
1205         "x": 1657.52734375,\r
1206         "y": 1597.040771484375,\r
1207         "z": "5c3e2071.30fcf",\r
1208         "wires": [\r
1209             [\r
1210                 "dc79f422.6ffec8",\r
1211                 "fce6e76c.ef0f5"\r
1212             ]\r
1213         ]\r
1214     },\r
1215     {\r
1216         "id": "dc79f422.6ffec8",\r
1217         "type": "success",\r
1218         "name": "success",\r
1219         "xml": "<outcome value='success'>\n",\r
1220         "comments": "",\r
1221         "outputs": 1,\r
1222         "x": 2001.02734375,\r
1223         "y": 1597.040771484375,\r
1224         "z": "5c3e2071.30fcf",\r
1225         "wires": [\r
1226             [\r
1227                 "e78610af.f485d"\r
1228             ]\r
1229         ]\r
1230     },\r
1231     {\r
1232         "id": "e78610af.f485d",\r
1233         "type": "block",\r
1234         "name": "block : atomic",\r
1235         "xml": "<block atomic=\"true\">",\r
1236         "atomic": "true",\r
1237         "comments": "",\r
1238         "outputs": 1,\r
1239         "x": 2158.52734375,\r
1240         "y": 1597.040771484375,\r
1241         "z": "5c3e2071.30fcf",\r
1242         "wires": [\r
1243             []\r
1244         ]\r
1245     },\r
1246     {\r
1247         "id": "3c748274.94d126",\r
1248         "type": "returnFailure",\r
1249         "name": "return failure",\r
1250         "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
1251         "comments": "",\r
1252         "x": 2155.02734375,\r
1253         "y": 1557.040771484375,\r
1254         "z": "5c3e2071.30fcf",\r
1255         "wires": []\r
1256     },\r
1257     {\r
1258         "id": "fce6e76c.ef0f5",\r
1259         "type": "failure",\r
1260         "name": "failure",\r
1261         "xml": "<outcome value='failure'>\n",\r
1262         "comments": "",\r
1263         "outputs": 1,\r
1264         "x": 1997.02734375,\r
1265         "y": 1557.040771484375,\r
1266         "z": "5c3e2071.30fcf",\r
1267         "wires": [\r
1268             [\r
1269                 "3c748274.94d126"\r
1270             ]\r
1271         ]\r
1272     },\r
1273     {\r
1274         "id": "7aea425d.d2ac8c",\r
1275         "type": "other",\r
1276         "name": "Null",\r
1277         "xml": "<outcome value=''>\n",\r
1278         "comments": "",\r
1279         "outputs": 1,\r
1280         "x": 1353.3711738586426,\r
1281         "y": 1557.162670135498,\r
1282         "z": "5c3e2071.30fcf",\r
1283         "wires": [\r
1284             [\r
1285                 "7a6c581b.b1ed5"\r
1286             ]\r
1287         ]\r
1288     },\r
1289     {\r
1290         "id": "c6896fdc.d8f088",\r
1291         "type": "other",\r
1292         "name": "other",\r
1293         "xml": "<outcome value='Other'>\n",\r
1294         "comments": "",\r
1295         "outputs": 1,\r
1296         "x": 1357.02734375,\r
1297         "y": 1597.040771484375,\r
1298         "z": "5c3e2071.30fcf",\r
1299         "wires": [\r
1300             [\r
1301                 "e7a0edea.212a28"\r
1302             ]\r
1303         ]\r
1304     },\r
1305     {\r
1306         "id": "7a6c581b.b1ed5",\r
1307         "type": "execute",\r
1308         "name": "execute RestconfApiCallNode Create ethernet Service without token",\r
1309         "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
1310         "comments": "",\r
1311         "outputs": 1,\r
1312         "x": 1667.52734375,\r
1313         "y": 1557.040771484375,\r
1314         "z": "5c3e2071.30fcf",\r
1315         "wires": [\r
1316             [\r
1317                 "fce6e76c.ef0f5",\r
1318                 "dc79f422.6ffec8"\r
1319             ]\r
1320         ]\r
1321     },\r
1322     {\r
1323         "id": "25602afb.1d9cfe",\r
1324         "type": "success",\r
1325         "name": "success",\r
1326         "xml": "<outcome value='success'>\n",\r
1327         "comments": "",\r
1328         "outputs": 1,\r
1329         "x": 722,\r
1330         "y": 672,\r
1331         "z": "5c3e2071.30fcf",\r
1332         "wires": [\r
1333             [\r
1334                 "8bfca5dd.ccec38"\r
1335             ]\r
1336         ]\r
1337     },\r
1338     {\r
1339         "id": "a9afb163.16d81",\r
1340         "type": "failure",\r
1341         "name": "success",\r
1342         "xml": "<outcome value='success'>\n",\r
1343         "comments": "",\r
1344         "outputs": 1,\r
1345         "x": 1992,\r
1346         "y": 826,\r
1347         "z": "5c3e2071.30fcf",\r
1348         "wires": [\r
1349             [\r
1350                 "6d7469b.d065118"\r
1351             ]\r
1352         ]\r
1353     }\r
1354 ]