NNI-based Service creation DG bug fixes (uni, l2vpn, and underlay resources).
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn_nni / GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
1 [\r
2     {\r
3         "id": "7a5b2247.76a96c",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 115,\r
8         "y": 61,\r
9         "z": "9b26c8a0.a64c1",\r
10         "wires": [\r
11             [\r
12                 "8f393b9e.9e17b"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "8f393b9e.9e17b",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 246.2856903076172,\r
26         "y": 110.23810863494873,\r
27         "z": "9b26c8a0.a64c1",\r
28         "wires": [\r
29             [\r
30                 "eff67602.0d4e4"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "eff67602.0d4e4",\r
36         "type": "method",\r
37         "name": "method sotn-vf-operation-uni-activate",\r
38         "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 249.42861938476562,\r
42         "y": 195.00003242492676,\r
43         "z": "9b26c8a0.a64c1",\r
44         "wires": [\r
45             [\r
46                 "c03d71cc.6719d8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "b1251334.94c658",\r
52         "type": "switchNode",\r
53         "name": "switch vf-modules.vf-module_length",\r
54         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
55         "comments": "",\r
56         "outputs": 1,\r
57         "x": 721.9959564208984,\r
58         "y": 375.99998915195465,\r
59         "z": "9b26c8a0.a64c1",\r
60         "wires": [\r
61             [\r
62                 "2185890c.41cf5e",\r
63                 "7887ee8e.f7ad9",\r
64                 "bf0b3d3b.de1c1"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "c03d71cc.6719d8",\r
70         "type": "block",\r
71         "name": "block : atomic",\r
72         "xml": "<block atomic=\"true\">",\r
73         "atomic": "true",\r
74         "outputs": 1,\r
75         "x": 340.6626205444336,\r
76         "y": 480.66670763492584,\r
77         "z": "9b26c8a0.a64c1",\r
78         "wires": [\r
79             [\r
80                 "b1251334.94c658",\r
81                 "e40d5cd3.6df488",\r
82                 "77bef901.3c81f",\r
83                 "f1780b76.81d518",\r
84                 "5733466d.dcbb88",\r
85                 "6d51d616.88647",\r
86                 "aab160b4.f76088",\r
87                 "48dc3a93.b23a44",\r
88                 "672fc75a.1e91b"\r
89             ]\r
90         ]\r
91     },\r
92     {\r
93         "id": "77bef901.3c81f",\r
94         "type": "for",\r
95         "name": "for each vnf",\r
96         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
97         "comments": "",\r
98         "outputs": 1,\r
99         "x": 687.0273170471191,\r
100         "y": 246.269144654274,\r
101         "z": "9b26c8a0.a64c1",\r
102         "wires": [\r
103             [\r
104                 "c9d21017.2aa0b8"\r
105             ]\r
106         ]\r
107     },\r
108     {\r
109         "id": "e40d5cd3.6df488",\r
110         "type": "switchNode",\r
111         "name": "switch vnf_length",\r
112         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
113         "comments": "",\r
114         "outputs": 1,\r
115         "x": 691.9959716796875,\r
116         "y": 185.00001394748688,\r
117         "z": "9b26c8a0.a64c1",\r
118         "wires": [\r
119             [\r
120                 "eb024dbb.2172c"\r
121             ]\r
122         ]\r
123     },\r
124     {\r
125         "id": "eb024dbb.2172c",\r
126         "type": "outcome",\r
127         "name": "NULL",\r
128         "xml": "<outcome value=''>\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 871.9959526062012,\r
132         "y": 184.0000034570694,\r
133         "z": "9b26c8a0.a64c1",\r
134         "wires": [\r
135             [\r
136                 "9467f8cc.185d38"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "9467f8cc.185d38",\r
142         "type": "returnFailure",\r
143         "name": "return failure",\r
144         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
145         "comments": "",\r
146         "x": 1021.4246788024902,\r
147         "y": 185.14292109012604,\r
148         "z": "9b26c8a0.a64c1",\r
149         "wires": []\r
150     },\r
151     {\r
152         "id": "c9d21017.2aa0b8",\r
153         "type": "switchNode",\r
154         "name": "switch this vnf-id == input vnf-id",\r
155         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
156         "comments": "",\r
157         "outputs": 1,\r
158         "x": 909.9959678649902,\r
159         "y": 247.00000965595245,\r
160         "z": "9b26c8a0.a64c1",\r
161         "wires": [\r
162             [\r
163                 "5eb86cb5.aa0e34"\r
164             ]\r
165         ]\r
166     },\r
167     {\r
168         "id": "5eb86cb5.aa0e34",\r
169         "type": "outcomeTrue",\r
170         "name": "true",\r
171         "xml": "<outcome value='true'>\n",\r
172         "comments": "",\r
173         "outputs": 1,\r
174         "x": 1124.9959526062012,\r
175         "y": 245.0000034570694,\r
176         "z": "9b26c8a0.a64c1",\r
177         "wires": [\r
178             [\r
179                 "eb010427.42f398"\r
180             ]\r
181         ]\r
182     },\r
183     {\r
184         "id": "8fe487a9.faab98",\r
185         "type": "set",\r
186         "name": "set vnf-index",\r
187         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
188         "comments": "",\r
189         "x": 1465.9959716796875,\r
190         "y": 213,\r
191         "z": "9b26c8a0.a64c1",\r
192         "wires": []\r
193     },\r
194     {\r
195         "id": "7887ee8e.f7ad9",\r
196         "type": "outcome",\r
197         "name": "NULL",\r
198         "xml": "<outcome value=''>\n",\r
199         "comments": "",\r
200         "outputs": 1,\r
201         "x": 981.9959716796875,\r
202         "y": 400,\r
203         "z": "9b26c8a0.a64c1",\r
204         "wires": [\r
205             [\r
206                 "6182e795.96a958"\r
207             ]\r
208         ]\r
209     },\r
210     {\r
211         "id": "2185890c.41cf5e",\r
212         "type": "outcome",\r
213         "name": "0",\r
214         "xml": "<outcome value='0'>\n",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 978.9959716796875,\r
218         "y": 328,\r
219         "z": "9b26c8a0.a64c1",\r
220         "wires": [\r
221             [\r
222                 "6182e795.96a958"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "6182e795.96a958",\r
228         "type": "returnFailure",\r
229         "name": "return failure",\r
230         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
231         "comments": "",\r
232         "x": 1150.9959716796875,\r
233         "y": 362,\r
234         "z": "9b26c8a0.a64c1",\r
235         "wires": []\r
236     },\r
237     {\r
238         "id": "bf0b3d3b.de1c1",\r
239         "type": "other",\r
240         "name": "other",\r
241         "xml": "<outcome value='Other'>\n",\r
242         "comments": "",\r
243         "outputs": 1,\r
244         "x": 943.9959487915039,\r
245         "y": 470.9999986886978,\r
246         "z": "9b26c8a0.a64c1",\r
247         "wires": [\r
248             [\r
249                 "f14d9e8b.d52ee8"\r
250             ]\r
251         ]\r
252     },\r
253     {\r
254         "id": "13dbecad.5f9583",\r
255         "type": "set",\r
256         "name": "set vf-module_length",\r
257         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
258         "comments": "",\r
259         "x": 1297.995964050293,\r
260         "y": 469.0000126361847,\r
261         "z": "9b26c8a0.a64c1",\r
262         "wires": []\r
263     },\r
264     {\r
265         "id": "f14d9e8b.d52ee8",\r
266         "type": "block",\r
267         "name": "block : atomic",\r
268         "xml": "<block atomic=\"true\">",\r
269         "atomic": "true",\r
270         "outputs": 1,\r
271         "x": 1104.995994567871,\r
272         "y": 467.99999010562897,\r
273         "z": "9b26c8a0.a64c1",\r
274         "wires": [\r
275             [\r
276                 "13dbecad.5f9583",\r
277                 "76e7a061.215fe"\r
278             ]\r
279         ]\r
280     },\r
281     {\r
282         "id": "76e7a061.215fe",\r
283         "type": "for",\r
284         "name": "for each existing vf-index",\r
285         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
286         "comments": "",\r
287         "outputs": 1,\r
288         "x": 1316.9959335327148,\r
289         "y": 521.9999891519547,\r
290         "z": "9b26c8a0.a64c1",\r
291         "wires": [\r
292             [\r
293                 "4d4229cc.870928"\r
294             ]\r
295         ]\r
296     },\r
297     {\r
298         "id": "4d4229cc.870928",\r
299         "type": "switchNode",\r
300         "name": "switch vf-module-id found",\r
301         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
302         "comments": "",\r
303         "outputs": 1,\r
304         "x": 1559.995948791504,\r
305         "y": 516.9999986886978,\r
306         "z": "9b26c8a0.a64c1",\r
307         "wires": [\r
308             [\r
309                 "235f500c.adb2d8"\r
310             ]\r
311         ]\r
312     },\r
313     {\r
314         "id": "235f500c.adb2d8",\r
315         "type": "outcomeTrue",\r
316         "name": "true",\r
317         "xml": "<outcome value='true'>\n",\r
318         "comments": "",\r
319         "outputs": 1,\r
320         "x": 1757.9959774017334,\r
321         "y": 504.00000536441803,\r
322         "z": "9b26c8a0.a64c1",\r
323         "wires": [\r
324             [\r
325                 "b98c0673.7d62f8"\r
326             ]\r
327         ]\r
328     },\r
329     {\r
330         "id": "b98c0673.7d62f8",\r
331         "type": "block",\r
332         "name": "block : atomic",\r
333         "xml": "<block atomic=\"true\">",\r
334         "atomic": "true",\r
335         "outputs": 1,\r
336         "x": 1909.995948791504,\r
337         "y": 505.9999986886978,\r
338         "z": "9b26c8a0.a64c1",\r
339         "wires": [\r
340             [\r
341                 "9c359698.db3d68",\r
342                 "1962516c.e21167"\r
343             ]\r
344         ]\r
345     },\r
346     {\r
347         "id": "9c359698.db3d68",\r
348         "type": "set",\r
349         "name": "set tmp.vidx and ctx.vnf-data",\r
350         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
351         "comments": "",\r
352         "x": 2137.996063232422,\r
353         "y": 448.0000025033951,\r
354         "z": "9b26c8a0.a64c1",\r
355         "wires": []\r
356     },\r
357     {\r
358         "id": "1962516c.e21167",\r
359         "type": "set",\r
360         "name": "set vf-module-request-input.",\r
361         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
362         "comments": "",\r
363         "x": 2141.996063232422,\r
364         "y": 502.0000025033951,\r
365         "z": "9b26c8a0.a64c1",\r
366         "wires": []\r
367     },\r
368     {\r
369         "id": "f1780b76.81d518",\r
370         "type": "returnSuccess",\r
371         "name": "return success",\r
372         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
373         "comments": "",\r
374         "x": 615.9961547851562,\r
375         "y": 1675.501220703125,\r
376         "z": "9b26c8a0.a64c1",\r
377         "wires": []\r
378     },\r
379     {\r
380         "id": "29a9aeb.30d1952",\r
381         "type": "call",\r
382         "name": "call sotn-get-vf-module-uni-param",\r
383         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",\r
384         "comments": "",\r
385         "outputs": 1,\r
386         "x": 2172.45108795166,\r
387         "y": 553.0104948282242,\r
388         "z": "9b26c8a0.a64c1",\r
389         "wires": [\r
390             []\r
391         ]\r
392     },\r
393     {\r
394         "id": "5733466d.dcbb88",\r
395         "type": "execute",\r
396         "name": "execute Properties",\r
397         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
398         "comments": "",\r
399         "outputs": 1,\r
400         "x": 701.9959564208984,\r
401         "y": 315.5039049386978,\r
402         "z": "9b26c8a0.a64c1",\r
403         "wires": [\r
404             []\r
405         ]\r
406     },\r
407     {\r
408         "id": "eb010427.42f398",\r
409         "type": "block",\r
410         "name": "block : atomic",\r
411         "xml": "<block atomic=\"true\">",\r
412         "atomic": "true",\r
413         "outputs": 1,\r
414         "x": 1288,\r
415         "y": 255,\r
416         "z": "9b26c8a0.a64c1",\r
417         "wires": [\r
418             [\r
419                 "8fe487a9.faab98",\r
420                 "c2b0533e.d5b1d"\r
421             ]\r
422         ]\r
423     },\r
424     {\r
425         "id": "c2b0533e.d5b1d",\r
426         "type": "set",\r
427         "name": "set tmp.vnf-id",\r
428         "xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",\r
429         "comments": "",\r
430         "x": 1473,\r
431         "y": 270,\r
432         "z": "9b26c8a0.a64c1",\r
433         "wires": []\r
434     },\r
435     {\r
436         "id": "48dc3a93.b23a44",\r
437         "type": "get-resource",\r
438         "name": "get-resource generic-vnf",\r
439         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id\"\n        pfx='tmp.aai.generic-vnf' local-only='false' >\n\n<!--AND depth = '0'\"-->\n\n",\r
440         "comments": "",\r
441         "outputs": 1,\r
442         "x": 594,\r
443         "y": 534,\r
444         "z": "9b26c8a0.a64c1",\r
445         "wires": [\r
446             [\r
447                 "28391a2c.3321fe"\r
448             ]\r
449         ]\r
450     },\r
451     {\r
452         "id": "6a811cc0.b174ac",\r
453         "type": "block",\r
454         "name": "block",\r
455         "xml": "<block>\n",\r
456         "atomic": "false",\r
457         "comments": "",\r
458         "outputs": 1,\r
459         "x": 824,\r
460         "y": 582,\r
461         "z": "9b26c8a0.a64c1",\r
462         "wires": [\r
463             [\r
464                 "1afc6101.b3a3ff",\r
465                 "6ac23f85.2f3a38"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "6ac23f85.2f3a38",\r
471         "type": "for",\r
472         "name": "for each relationship in gen-vnf",\r
473         "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 1036,\r
477         "y": 585,\r
478         "z": "9b26c8a0.a64c1",\r
479         "wires": [\r
480             [\r
481                 "5e0bc542.fea784"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "5e0bc542.fea784",\r
487         "type": "switchNode",\r
488         "name": "switch related-to",\r
489         "xml": "<switch test='`$tmp.aai.generic-vnf.relationship-list.relationship[$vidx].related-to`'>\n",\r
490         "comments": "",\r
491         "outputs": 1,\r
492         "x": 1262,\r
493         "y": 589,\r
494         "z": "9b26c8a0.a64c1",\r
495         "wires": [\r
496             [\r
497                 "ad3f5adb.0bf5b8"\r
498             ]\r
499         ]\r
500     },\r
501     {\r
502         "id": "ad3f5adb.0bf5b8",\r
503         "type": "outcome",\r
504         "name": "uni",\r
505         "xml": "<outcome value='uni'>\n",\r
506         "comments": "",\r
507         "outputs": 1,\r
508         "x": 1451.285888671875,\r
509         "y": 597.82177734375,\r
510         "z": "9b26c8a0.a64c1",\r
511         "wires": [\r
512             [\r
513                 "4a0655ab.fa2fa4"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "4a0655ab.fa2fa4",\r
519         "type": "block",\r
520         "name": "block : atomic",\r
521         "xml": "<block atomic=\"true\">",\r
522         "atomic": "true",\r
523         "outputs": 1,\r
524         "x": 1626.117431640625,\r
525         "y": 600.3402709960938,\r
526         "z": "9b26c8a0.a64c1",\r
527         "wires": [\r
528             [\r
529                 "2cd069f4.1bd85e",\r
530                 "e85654b4.901fd",\r
531                 "596112fe.dbc0a4"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "2cd069f4.1bd85e",\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<parameter name='tmp.tpId' value=\"`$tmp.aai.uni.tpId`\" />\n",\r
540         "comments": "",\r
541         "x": 1843.117431640625,\r
542         "y": 598.3402709960938,\r
543         "z": "9b26c8a0.a64c1",\r
544         "wires": []\r
545     },\r
546     {\r
547         "id": "1afc6101.b3a3ff",\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": 1011,\r
554         "y": 749,\r
555         "z": "9b26c8a0.a64c1",\r
556         "wires": [\r
557             [\r
558                 "3398154f.dabcca"\r
559             ]\r
560         ]\r
561     },\r
562     {\r
563         "id": "f0dacaa2.3f6d9",\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": 1419,\r
569         "y": 751,\r
570         "z": "9b26c8a0.a64c1",\r
571         "wires": []\r
572     },\r
573     {\r
574         "id": "3398154f.dabcca",\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": 1227,\r
581         "y": 750,\r
582         "z": "9b26c8a0.a64c1",\r
583         "wires": [\r
584             [\r
585                 "f0dacaa2.3f6d9"\r
586             ]\r
587         ]\r
588     },\r
589     {\r
590         "id": "e85654b4.901fd",\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": 1882,\r
597         "y": 673,\r
598         "z": "9b26c8a0.a64c1",\r
599         "wires": [\r
600             [\r
601                 "fb92d303.a6d858",\r
602                 "3b07d667.72d91a"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "3b07d667.72d91a",\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": 2105,\r
614         "y": 628,\r
615         "z": "9b26c8a0.a64c1",\r
616         "wires": [\r
617             [\r
618                 "9111f685.17b2e8"\r
619             ]\r
620         ]\r
621     },\r
622     {\r
623         "id": "fb92d303.a6d858",\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": 2107,\r
630         "y": 692,\r
631         "z": "9b26c8a0.a64c1",\r
632         "wires": [\r
633             [\r
634                 "1432f6d2.d75751"\r
635             ]\r
636         ]\r
637     },\r
638     {\r
639         "id": "9111f685.17b2e8",\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": 2327,\r
645         "y": 630,\r
646         "z": "9b26c8a0.a64c1",\r
647         "wires": []\r
648     },\r
649     {\r
650         "id": "1432f6d2.d75751",\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": 2266,\r
656         "y": 711,\r
657         "z": "9b26c8a0.a64c1",\r
658         "wires": []\r
659     },\r
660     {\r
661         "id": "596112fe.dbc0a4",\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": 1812,\r
668         "y": 810,\r
669         "z": "9b26c8a0.a64c1",\r
670         "wires": [\r
671             [\r
672                 "51c3744a.753414"\r
673             ]\r
674         ]\r
675     },\r
676     {\r
677         "id": "796d1bdc.d65e9c",\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": 2171.88232421875,\r
685         "y": 818.6556396484375,\r
686         "z": "9b26c8a0.a64c1",\r
687         "wires": [\r
688             [\r
689                 "9e81136f.40f158",\r
690                 "3a607f75.56a9d"\r
691             ]\r
692         ]\r
693     },\r
694     {\r
695         "id": "9e81136f.40f158",\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": 2351,\r
701         "y": 772,\r
702         "z": "9b26c8a0.a64c1",\r
703         "wires": []\r
704     },\r
705     {\r
706         "id": "3a607f75.56a9d",\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": 2363.882568359375,\r
713         "y": 858.6597290039062,\r
714         "z": "9b26c8a0.a64c1",\r
715         "wires": [\r
716             [\r
717                 "709c4d83.a869b4"\r
718             ]\r
719         ]\r
720     },\r
721     {\r
722         "id": "709c4d83.a869b4",\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": 2589.882568359375,\r
729         "y": 858.6597290039062,\r
730         "z": "9b26c8a0.a64c1",\r
731         "wires": [\r
732             [\r
733                 "8cbba6bb.ad862",\r
734                 "dd673476.c308f"\r
735             ]\r
736         ]\r
737     },\r
738     {\r
739         "id": "dd673476.c308f",\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": 2788,\r
746         "y": 971,\r
747         "z": "9b26c8a0.a64c1",\r
748         "wires": [\r
749             [\r
750                 "2c8cb3cb.28eeec"\r
751             ]\r
752         ]\r
753     },\r
754     {\r
755         "id": "2c8cb3cb.28eeec",\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": 3001,\r
762         "y": 972,\r
763         "z": "9b26c8a0.a64c1",\r
764         "wires": [\r
765             [\r
766                 "8af5221c.7c91b",\r
767                 "47206fa6.e312e"\r
768             ]\r
769         ]\r
770     },\r
771     {\r
772         "id": "8af5221c.7c91b",\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": 3236,\r
778         "y": 902,\r
779         "z": "9b26c8a0.a64c1",\r
780         "wires": []\r
781     },\r
782     {\r
783         "id": "47206fa6.e312e",\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": 3244,\r
790         "y": 983,\r
791         "z": "9b26c8a0.a64c1",\r
792         "wires": [\r
793             [\r
794                 "4ad04544.d0fad4"\r
795             ]\r
796         ]\r
797     },\r
798     {\r
799         "id": "4ad04544.d0fad4",\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": 3476.5,\r
806         "y": 979,\r
807         "z": "9b26c8a0.a64c1",\r
808         "wires": [\r
809             [\r
810                 "d8cca786.0614f8"\r
811             ]\r
812         ]\r
813     },\r
814     {\r
815         "id": "d8cca786.0614f8",\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": 3745,\r
821         "y": 978,\r
822         "z": "9b26c8a0.a64c1",\r
823         "wires": []\r
824     },\r
825     {\r
826         "id": "aab160b4.f76088",\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": 800,\r
833         "y": 896,\r
834         "z": "9b26c8a0.a64c1",\r
835         "wires": [\r
836             []\r
837         ]\r
838     },\r
839     {\r
840         "id": "8cbba6bb.ad862",\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": 2815,\r
847         "y": 836,\r
848         "z": "9b26c8a0.a64c1",\r
849         "wires": [\r
850             [\r
851                 "8b43ac76.263cd"\r
852             ]\r
853         ]\r
854     },\r
855     {\r
856         "id": "8b43ac76.263cd",\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": 3028,\r
863         "y": 837,\r
864         "z": "9b26c8a0.a64c1",\r
865         "wires": [\r
866             [\r
867                 "9b5d5673.27be38"\r
868             ]\r
869         ]\r
870     },\r
871     {\r
872         "id": "9b5d5673.27be38",\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": 3255,\r
878         "y": 836,\r
879         "z": "9b26c8a0.a64c1",\r
880         "wires": []\r
881     },\r
882     {\r
883         "id": "4ddb604c.658b08",\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": 813,\r
889         "y": 842,\r
890         "z": "9b26c8a0.a64c1",\r
891         "wires": []\r
892     },\r
893     {\r
894         "id": "6d51d616.88647",\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": 666,\r
901         "y": 1088,\r
902         "z": "9b26c8a0.a64c1",\r
903         "wires": [\r
904             [\r
905                 "8a72c5de.69f39"\r
906             ]\r
907         ]\r
908     },\r
909     {\r
910         "id": "f7756434.d014e",\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": 1092.0272216796875,\r
916         "y": 1027.040771484375,\r
917         "z": "9b26c8a0.a64c1",\r
918         "wires": []\r
919     },\r
920     {\r
921         "id": "8e5c8d32.64abe8",\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\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\n<!--<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />-->\n<!--<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />-->\n<!--<parameter name=\"format\" value=\"json\"/>-->\n<!--<parameter name=\"httpMethod\" value=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\n<!--<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>-->\n<!--<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>-->\n<!--<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>-->\n<!--<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>-->\n",\r
925         "comments": "",\r
926         "x": 1572.0272216796875,\r
927         "y": 1140.0407409667969,\r
928         "z": "9b26c8a0.a64c1",\r
929         "wires": []\r
930     },\r
931     {\r
932         "id": "58b223b2.226b5c",\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": 1402.0272216796875,\r
939         "y": 1140.0407409667969,\r
940         "z": "9b26c8a0.a64c1",\r
941         "wires": [\r
942             [\r
943                 "8e5c8d32.64abe8"\r
944             ]\r
945         ]\r
946     },\r
947     {\r
948         "id": "74cd1f0b.113038",\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": 1406.0272216796875,\r
955         "y": 1180.0407409667969,\r
956         "z": "9b26c8a0.a64c1",\r
957         "wires": [\r
958             [\r
959                 "50f33a59.7393a4"\r
960             ]\r
961         ]\r
962     },\r
963     {\r
964         "id": "4f39f2a5.5bd5fc",\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": 1398.0272216796875,\r
971         "y": 1220.0407409667969,\r
972         "z": "9b26c8a0.a64c1",\r
973         "wires": [\r
974             [\r
975                 "4b579e44.4ec6b"\r
976             ]\r
977         ]\r
978     },\r
979     {\r
980         "id": "50f33a59.7393a4",\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": 1556.0272216796875,\r
986         "y": 1180.0407409667969,\r
987         "z": "9b26c8a0.a64c1",\r
988         "wires": []\r
989     },\r
990     {\r
991         "id": "4b579e44.4ec6b",\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": 1556.0272216796875,\r
997         "y": 1220.0407409667969,\r
998         "z": "9b26c8a0.a64c1",\r
999         "wires": []\r
1000     },\r
1001     {\r
1002         "id": "66a971fa.46a568",\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": 1402.0272216796875,\r
1009         "y": 1260.0407409667969,\r
1010         "z": "9b26c8a0.a64c1",\r
1011         "wires": [\r
1012             [\r
1013                 "9aeb59cf.e4f488"\r
1014             ]\r
1015         ]\r
1016     },\r
1017     {\r
1018         "id": "3bf26416.4deddc",\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": 1398.0272216796875,\r
1025         "y": 1300.0407409667969,\r
1026         "z": "9b26c8a0.a64c1",\r
1027         "wires": [\r
1028             [\r
1029                 "e227ce38.6755d"\r
1030             ]\r
1031         ]\r
1032     },\r
1033     {\r
1034         "id": "e227ce38.6755d",\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": 1556.0272216796875,\r
1040         "y": 1300.0407409667969,\r
1041         "z": "9b26c8a0.a64c1",\r
1042         "wires": []\r
1043     },\r
1044     {\r
1045         "id": "9aeb59cf.e4f488",\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": 1552.5272216796875,\r
1051         "y": 1260.0407409667969,\r
1052         "z": "9b26c8a0.a64c1",\r
1053         "wires": []\r
1054     },\r
1055     {\r
1056         "id": "ac6d44a1.0c401",\r
1057         "type": "comment",\r
1058         "name": "Get controller info and send request",\r
1059         "info": "",\r
1060         "comments": "",\r
1061         "x": 1164.0272216796875,\r
1062         "y": 1140.0407409667969,\r
1063         "z": "9b26c8a0.a64c1",\r
1064         "wires": []\r
1065     },\r
1066     {\r
1067         "id": "a9643f3f.4f04b",\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": 1156.0272216796875,\r
1074         "y": 1180.0407409667969,\r
1075         "z": "9b26c8a0.a64c1",\r
1076         "wires": [\r
1077             [\r
1078                 "58b223b2.226b5c",\r
1079                 "74cd1f0b.113038",\r
1080                 "4f39f2a5.5bd5fc"\r
1081             ]\r
1082         ]\r
1083     },\r
1084     {\r
1085         "id": "c6d53bc.53f5bc8",\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": 1168.5272216796875,\r
1092         "y": 1280.0407409667969,\r
1093         "z": "9b26c8a0.a64c1",\r
1094         "wires": [\r
1095             [\r
1096                 "66a971fa.46a568",\r
1097                 "3bf26416.4deddc"\r
1098             ]\r
1099         ]\r
1100     },\r
1101     {\r
1102         "id": "787bd09.8ff59b",\r
1103         "type": "comment",\r
1104         "name": "call domain controller to  create underlay OTN tunnel",\r
1105         "info": "",\r
1106         "comments": "",\r
1107         "x": 1217.5272216796875,\r
1108         "y": 1365.49560546875,\r
1109         "z": "9b26c8a0.a64c1",\r
1110         "wires": []\r
1111     },\r
1112     {\r
1113         "id": "ee991e0.ab6b36",\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": 1237.5272216796875,\r
1120         "y": 1409.49560546875,\r
1121         "z": "9b26c8a0.a64c1",\r
1122         "wires": [\r
1123             []\r
1124         ]\r
1125     },\r
1126     {\r
1127         "id": "8a72c5de.69f39",\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": 819.5272216796875,\r
1134         "y": 1420.0407409667969,\r
1135         "z": "9b26c8a0.a64c1",\r
1136         "wires": [\r
1137             [\r
1138                 "124c6957.e07dc7",\r
1139                 "3ce3b19a.7c10c6",\r
1140                 "d661efba.3fa238",\r
1141                 "ee991e0.ab6b36",\r
1142                 "f7756434.d014e"\r
1143             ]\r
1144         ]\r
1145     },\r
1146     {\r
1147         "id": "ab7e4ea9.e8e178",\r
1148         "type": "comment",\r
1149         "name": "Loop through UNIs and configure domain controllers",\r
1150         "info": "",\r
1151         "comments": "",\r
1152         "x": 754.5003662109375,\r
1153         "y": 1228.5003662109375,\r
1154         "z": "9b26c8a0.a64c1",\r
1155         "wires": []\r
1156     },\r
1157     {\r
1158         "id": "124c6957.e07dc7",\r
1159         "type": "set",\r
1160         "name": "set sotn_value",\r
1161         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",\r
1162         "comments": "",\r
1163         "x": 1083.52734375,\r
1164         "y": 1488.040771484375,\r
1165         "z": "9b26c8a0.a64c1",\r
1166         "wires": []\r
1167     },\r
1168     {\r
1169         "id": "3ce3b19a.7c10c6",\r
1170         "type": "set",\r
1171         "name": "set attachment_param",\r
1172         "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",\r
1173         "comments": "",\r
1174         "x": 1108.02734375,\r
1175         "y": 1528.040771484375,\r
1176         "z": "9b26c8a0.a64c1",\r
1177         "wires": []\r
1178     },\r
1179     {\r
1180         "id": "d661efba.3fa238",\r
1181         "type": "switchNode",\r
1182         "name": "switch prop.sdncRestApi.token_id",\r
1183         "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
1184         "comments": "",\r
1185         "outputs": 1,\r
1186         "x": 1143.52734375,\r
1187         "y": 1568.040771484375,\r
1188         "z": "9b26c8a0.a64c1",\r
1189         "wires": [\r
1190             [\r
1191                 "f63083b5.0624b",\r
1192                 "fbf2273e.fbe678"\r
1193             ]\r
1194         ]\r
1195     },\r
1196     {\r
1197         "id": "678c3911.078e2",\r
1198         "type": "execute",\r
1199         "name": "execute RestconfApiCallNode Create ethernet Service with token",\r
1200         "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
1201         "comments": "",\r
1202         "outputs": 1,\r
1203         "x": 1660.52734375,\r
1204         "y": 1588.040771484375,\r
1205         "z": "9b26c8a0.a64c1",\r
1206         "wires": [\r
1207             [\r
1208                 "72a042fd.6a9e5c",\r
1209                 "4ae2509c.7d19b8"\r
1210             ]\r
1211         ]\r
1212     },\r
1213     {\r
1214         "id": "72a042fd.6a9e5c",\r
1215         "type": "success",\r
1216         "name": "success",\r
1217         "xml": "<outcome value='success'>\n",\r
1218         "comments": "",\r
1219         "outputs": 1,\r
1220         "x": 2004.02734375,\r
1221         "y": 1588.040771484375,\r
1222         "z": "9b26c8a0.a64c1",\r
1223         "wires": [\r
1224             [\r
1225                 "743fa383.cc94fc"\r
1226             ]\r
1227         ]\r
1228     },\r
1229     {\r
1230         "id": "743fa383.cc94fc",\r
1231         "type": "block",\r
1232         "name": "block : atomic",\r
1233         "xml": "<block atomic=\"true\">",\r
1234         "atomic": "true",\r
1235         "comments": "",\r
1236         "outputs": 1,\r
1237         "x": 2161.52734375,\r
1238         "y": 1588.040771484375,\r
1239         "z": "9b26c8a0.a64c1",\r
1240         "wires": [\r
1241             []\r
1242         ]\r
1243     },\r
1244     {\r
1245         "id": "7e01ab8f.069484",\r
1246         "type": "returnFailure",\r
1247         "name": "return failure",\r
1248         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
1249         "comments": "",\r
1250         "x": 2158.02734375,\r
1251         "y": 1548.040771484375,\r
1252         "z": "9b26c8a0.a64c1",\r
1253         "wires": []\r
1254     },\r
1255     {\r
1256         "id": "4ae2509c.7d19b8",\r
1257         "type": "failure",\r
1258         "name": "failure",\r
1259         "xml": "<outcome value='failure'>\n",\r
1260         "comments": "",\r
1261         "outputs": 1,\r
1262         "x": 2000.02734375,\r
1263         "y": 1548.040771484375,\r
1264         "z": "9b26c8a0.a64c1",\r
1265         "wires": [\r
1266             [\r
1267                 "7e01ab8f.069484"\r
1268             ]\r
1269         ]\r
1270     },\r
1271     {\r
1272         "id": "f63083b5.0624b",\r
1273         "type": "other",\r
1274         "name": "Null",\r
1275         "xml": "<outcome value=''>\n",\r
1276         "comments": "",\r
1277         "outputs": 1,\r
1278         "x": 1356.3711738586426,\r
1279         "y": 1548.162670135498,\r
1280         "z": "9b26c8a0.a64c1",\r
1281         "wires": [\r
1282             [\r
1283                 "42cb8b06.e7daec"\r
1284             ]\r
1285         ]\r
1286     },\r
1287     {\r
1288         "id": "fbf2273e.fbe678",\r
1289         "type": "other",\r
1290         "name": "other",\r
1291         "xml": "<outcome value='Other'>\n",\r
1292         "comments": "",\r
1293         "outputs": 1,\r
1294         "x": 1360.02734375,\r
1295         "y": 1588.040771484375,\r
1296         "z": "9b26c8a0.a64c1",\r
1297         "wires": [\r
1298             [\r
1299                 "678c3911.078e2"\r
1300             ]\r
1301         ]\r
1302     },\r
1303     {\r
1304         "id": "42cb8b06.e7daec",\r
1305         "type": "execute",\r
1306         "name": "execute RestconfApiCallNode Create ethernet Service without token",\r
1307         "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
1308         "comments": "",\r
1309         "outputs": 1,\r
1310         "x": 1670.52734375,\r
1311         "y": 1548.040771484375,\r
1312         "z": "9b26c8a0.a64c1",\r
1313         "wires": [\r
1314             [\r
1315                 "4ae2509c.7d19b8",\r
1316                 "72a042fd.6a9e5c"\r
1317             ]\r
1318         ]\r
1319     },\r
1320     {\r
1321         "id": "28391a2c.3321fe",\r
1322         "type": "success",\r
1323         "name": "success",\r
1324         "xml": "<outcome value='success'>\n",\r
1325         "comments": "",\r
1326         "outputs": 1,\r
1327         "x": 725,\r
1328         "y": 663,\r
1329         "z": "9b26c8a0.a64c1",\r
1330         "wires": [\r
1331             [\r
1332                 "6a811cc0.b174ac"\r
1333             ]\r
1334         ]\r
1335     },\r
1336     {\r
1337         "id": "51c3744a.753414",\r
1338         "type": "failure",\r
1339         "name": "success",\r
1340         "xml": "<outcome value='success'>\n",\r
1341         "comments": "",\r
1342         "outputs": 1,\r
1343         "x": 1995,\r
1344         "y": 817,\r
1345         "z": "9b26c8a0.a64c1",\r
1346         "wires": [\r
1347             [\r
1348                 "796d1bdc.d65e9c"\r
1349             ]\r
1350         ]\r
1351     },\r
1352     {\r
1353         "id": "672fc75a.1e91b",\r
1354         "type": "set",\r
1355         "name": "set tmp.unis.uni[].tpId",\r
1356         "xml": "<set>\n<parameter name='tmp.unis.uni[0].id' value=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\" />\n<parameter name='tmp.unis.uni[0].tp-id' value=\"networkId-providerId-5555-clientId-6666-topologyId-11-nodeId-0.190.0.1\" />\n<parameter name='tmp.unis.uni[0].access-provider-id' value=\"`$domain-A.provider-id`\" />\n<parameter name='tmp.unis.uni[0].access-client-id' value=\"`$domain-A.client-id`\" />\n<parameter name='tmp.unis.uni[0].access-topology-id' value=\"`$domain-A.topology-id`\" />\n<parameter name='tmp.unis.uni[0].access-node-id' value=\"\" />\n<parameter name='tmp.unis.uni[0].src-access-ltp-id' value=\"\" />\n<parameter name='tmp.unis.uni[0].dst-access-ltp-id' value=\"\" />\n\n<parameter name='tmp.unis.uni[1].id' value=\"5642e9dd-496c-4ef6-be97-5caf4e9beec9\" />\n<parameter name='tmp.unis.uni[1].tp-id' value=\"networkId-domain2-providerId-5555-clientId-6666-topologyId-11-nodeId-0.191.0.4\" />\n<parameter name='tmp.unis.uni[1].access-provider-id' value=\"`$domain-B.provider-id`\" />\n<parameter name='tmp.unis.uni[1].access-client-id' value=\"`$domain-B.client-id`\" />\n<parameter name='tmp.unis.uni[1].access-topology-id' value=\"`$domain-B.topology-id`\" />\n<parameter name='tmp.unis.uni[1].access-node-id' value=\"\" />\n<parameter name='tmp.unis.uni[1].src-access-ltp-id' value=\"\" />\n<parameter name='tmp.unis.uni[1].dst-access-ltp-id' value=\"\" />\n\n<parameter name='tmp.unis.uni_length' value=\"2\" />\n\n",\r
1357         "comments": "",\r
1358         "x": 655,\r
1359         "y": 1015,\r
1360         "z": "9b26c8a0.a64c1",\r
1361         "wires": []\r
1362     }\r
1363 ]