891b0ab17c30acf17a6b2b7e77df9a8fbaa79193
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json
1 [\r
2     {\r
3         "id": "66573054.d6959",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 230,\r
8         "y": 62,\r
9         "z": "4fb14ce0.40eb24",\r
10         "wires": [\r
11             [\r
12                 "88fd1149.f833f"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "88fd1149.f833f",\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": 514.2856903076172,\r
26         "y": 123.23810863494873,\r
27         "z": "4fb14ce0.40eb24",\r
28         "wires": [\r
29             [\r
30                 "4c164ab.c48bfb4"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "4c164ab.c48bfb4",\r
36         "type": "method",\r
37         "name": "method cll-vnf-topology-operation-cll-F1",\r
38         "xml": "<method rpc='cll-vnf-topology-operation-cll-F1' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 430.4285888671875,\r
42         "y": 201.00003051757812,\r
43         "z": "4fb14ce0.40eb24",\r
44         "wires": [\r
45             [\r
46                 "e2c1e393.f72a2"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "e2c1e393.f72a2",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 164.238037109375,\r
58         "y": 704.6666870117188,\r
59         "z": "4fb14ce0.40eb24",\r
60         "wires": [\r
61             [\r
62                 "35872244.0dadfe",\r
63                 "76353aba.1a1834",\r
64                 "1a3db60a.42601a",\r
65                 "cde65043.1c4f8",\r
66                 "5f4f339e.018654",\r
67                 "6f21b0a4.c1ba8",\r
68                 "19956ea.f245091"\r
69             ]\r
70         ]\r
71     },\r
72     {\r
73         "id": "35872244.0dadfe",\r
74         "type": "set",\r
75         "name": "set query_param",\r
76         "xml": "<set>\n<parameter name='prop.ethsrvType' value='`$network-route-A`' />\n\n",\r
77         "comments": "",\r
78         "x": 437,\r
79         "y": 659,\r
80         "z": "4fb14ce0.40eb24",\r
81         "wires": []\r
82     },\r
83     {\r
84         "id": "76353aba.1a1834",\r
85         "type": "call",\r
86         "name": "call GENERIC-RESOURCE-API:tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof",\r
87         "xml": "<call module='GENERIC-RESOURCE-API' rpc='tsli-vnf-topology-operation-get-otn-tunnel-path-from-oof' mode='sync' >\n\n",\r
88         "comments": "",\r
89         "outputs": 1,\r
90         "x": 658,\r
91         "y": 727,\r
92         "z": "4fb14ce0.40eb24",\r
93         "wires": [\r
94             []\r
95         ]\r
96     },\r
97     {\r
98         "id": "1a3db60a.42601a",\r
99         "type": "execute",\r
100         "name": "execute printContext",\r
101         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n    <parameter name=\"filename\" value=\"`$filenamemm`\" />\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 448,\r
105         "y": 773,\r
106         "z": "4fb14ce0.40eb24",\r
107         "wires": [\r
108             []\r
109         ]\r
110     },\r
111     {\r
112         "id": "19956ea.f245091",\r
113         "type": "call",\r
114         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-find-maximum-used-tpn",\r
115         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-find-maximum-used-tpn' mode='sync' >\n\n",\r
116         "comments": "",\r
117         "outputs": 1,\r
118         "x": 641,\r
119         "y": 837,\r
120         "z": "4fb14ce0.40eb24",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "cde65043.1c4f8",\r
127         "type": "for",\r
128         "name": "for vidx..tmp.otninfo_length[]",\r
129         "xml": "<for index='otnidx' start='0' end='`$tmp.otninfo_length`' >",\r
130         "comments": "",\r
131         "outputs": 1,\r
132         "x": 468,\r
133         "y": 993,\r
134         "z": "4fb14ce0.40eb24",\r
135         "wires": [\r
136             [\r
137                 "53111f1b.5dbab"\r
138             ]\r
139         ]\r
140     },\r
141     {\r
142         "id": "53111f1b.5dbab",\r
143         "type": "block",\r
144         "name": "block : atomic",\r
145         "xml": "<block atomic='true'>",\r
146         "atomic": "true",\r
147         "comments": "",\r
148         "outputs": 1,\r
149         "x": 737,\r
150         "y": 993,\r
151         "z": "4fb14ce0.40eb24",\r
152         "wires": [\r
153             [\r
154                 "78857b79.cfe234",\r
155                 "b3432980.49ee6",\r
156                 "233e999f.144d9e",\r
157                 "7a85fbed.abf844",\r
158                 "715b7a53.d039d4",\r
159                 "13d7f319.f10ffd",\r
160                 "fe43d4e7.2e266",\r
161                 "9673bbc9.e232d8",\r
162                 "8c1ff0ec.d0238",\r
163                 "84f3d24d.36c17"\r
164             ]\r
165         ]\r
166     },\r
167     {\r
168         "id": "78857b79.cfe234",\r
169         "type": "execute",\r
170         "name": "execute UUID generator for vpn-binding $otnidx",\r
171         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-binding-otnidx-uuid\"/>\n",\r
172         "comments": "",\r
173         "outputs": 1,\r
174         "x": 1630,\r
175         "y": 807,\r
176         "z": "4fb14ce0.40eb24",\r
177         "wires": [\r
178             []\r
179         ]\r
180     },\r
181     {\r
182         "id": "b3432980.49ee6",\r
183         "type": "switchNode",\r
184         "name": "switch dstPort == NULL",\r
185         "xml": "<switch test=\"`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id == ''`\">\n\n",\r
186         "comments": "",\r
187         "outputs": 1,\r
188         "x": 1344,\r
189         "y": 897,\r
190         "z": "4fb14ce0.40eb24",\r
191         "wires": [\r
192             [\r
193                 "fb6a4667.5dee4",\r
194                 "8968ad13.112c48"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "fb6a4667.5dee4",\r
200         "type": "outcomeTrue",\r
201         "name": "true",\r
202         "xml": "<outcome value='true'>\n",\r
203         "comments": "",\r
204         "outputs": 1,\r
205         "x": 1710,\r
206         "y": 858,\r
207         "z": "4fb14ce0.40eb24",\r
208         "wires": [\r
209             [\r
210                 "38cd80d0.a81b08"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "8968ad13.112c48",\r
216         "type": "outcomeFalse",\r
217         "name": "false",\r
218         "xml": "<outcome value='false'>\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 1711,\r
222         "y": 904,\r
223         "z": "4fb14ce0.40eb24",\r
224         "wires": [\r
225             [\r
226                 "12ac055c.676cf3"\r
227             ]\r
228         ]\r
229     },\r
230     {\r
231         "id": "38cd80d0.a81b08",\r
232         "type": "set",\r
233         "name": "set access-provider-id and client-id",\r
234         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n",\r
235         "comments": "",\r
236         "x": 1924,\r
237         "y": 857,\r
238         "z": "4fb14ce0.40eb24",\r
239         "wires": []\r
240     },\r
241     {\r
242         "id": "12ac055c.676cf3",\r
243         "type": "set",\r
244         "name": "set access-provider-id and client-id",\r
245         "xml": "<set>\n<parameter name='tmp.access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />\n<parameter name='tmp.access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />\n<parameter name='tmp.access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />\n<parameter name='tmp.srcdstpnf-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />\n",\r
246         "comments": "",\r
247         "x": 1922,\r
248         "y": 902,\r
249         "z": "4fb14ce0.40eb24",\r
250         "wires": []\r
251     },\r
252     {\r
253         "id": "233e999f.144d9e",\r
254         "type": "set",\r
255         "name": "set srcdstpnf-name",\r
256         "xml": "<set>\n<parameter name='tmp.srcdstpnf-name' value=\"`'networkId-providerId-' + \n                                             $tmp.access-provider-id + '-clientId-' +\n                                             $tmp.access-client-id + '-topologyId-' + \n                                             $tmp.access-topology-id + '-nodeId-' + \n                                             $tmp.srcdstpnf-id`\" />\n\n",\r
257         "comments": "",\r
258         "x": 1520,\r
259         "y": 971,\r
260         "z": "4fb14ce0.40eb24",\r
261         "wires": []\r
262     },\r
263     {\r
264         "id": "7a85fbed.abf844",\r
265         "type": "get-resource",\r
266         "name": "get-resource tmp.srcdstpnf-name",\r
267         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.srcdstpnf-name\"\n        pfx='tmp.aai.srcdst-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
268         "comments": "",\r
269         "outputs": 1,\r
270         "x": 1564,\r
271         "y": 1019,\r
272         "z": "4fb14ce0.40eb24",\r
273         "wires": [\r
274             [\r
275                 "85cf2b2f.efe2d8",\r
276                 "40c18c0.1c43574",\r
277                 "e3b12e57.7afb78"\r
278             ]\r
279         ]\r
280     },\r
281     {\r
282         "id": "85cf2b2f.efe2d8",\r
283         "type": "success",\r
284         "name": "success",\r
285         "xml": "<outcome value='success'>\n",\r
286         "comments": "",\r
287         "outputs": 1,\r
288         "x": 1776.5,\r
289         "y": 966,\r
290         "z": "4fb14ce0.40eb24",\r
291         "wires": [\r
292             [\r
293                 "7b23fddb.009994"\r
294             ]\r
295         ]\r
296     },\r
297     {\r
298         "id": "40c18c0.1c43574",\r
299         "type": "not-found",\r
300         "name": "not-found",\r
301         "xml": "<outcome value='not-found'>\n",\r
302         "comments": "",\r
303         "outputs": 1,\r
304         "x": 1788.5,\r
305         "y": 1016,\r
306         "z": "4fb14ce0.40eb24",\r
307         "wires": [\r
308             [\r
309                 "317c3552.8ea652"\r
310             ]\r
311         ]\r
312     },\r
313     {\r
314         "id": "e3b12e57.7afb78",\r
315         "type": "other",\r
316         "name": "other",\r
317         "xml": "<outcome value='Other'>\n",\r
318         "comments": "",\r
319         "outputs": 1,\r
320         "x": 1779.5,\r
321         "y": 1071,\r
322         "z": "4fb14ce0.40eb24",\r
323         "wires": [\r
324             [\r
325                 "c0e357e5.8168d8"\r
326             ]\r
327         ]\r
328     },\r
329     {\r
330         "id": "c0e357e5.8168d8",\r
331         "type": "returnFailure",\r
332         "name": "return failure",\r
333         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
334         "comments": "",\r
335         "x": 1924.5,\r
336         "y": 1070,\r
337         "z": "4fb14ce0.40eb24",\r
338         "wires": []\r
339     },\r
340     {\r
341         "id": "317c3552.8ea652",\r
342         "type": "returnFailure",\r
343         "name": "return failure",\r
344         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
345         "comments": "",\r
346         "x": 1935.5,\r
347         "y": 1013,\r
348         "z": "4fb14ce0.40eb24",\r
349         "wires": []\r
350     },\r
351     {\r
352         "id": "7b23fddb.009994",\r
353         "type": "block",\r
354         "name": "block",\r
355         "xml": "<block>\n",\r
356         "atomic": "false",\r
357         "comments": "",\r
358         "outputs": 1,\r
359         "x": 1901.8824462890625,\r
360         "y": 959.6556701660156,\r
361         "z": "4fb14ce0.40eb24",\r
362         "wires": [\r
363             [\r
364                 "f3d54fb4.5c0a1"\r
365             ]\r
366         ]\r
367     },\r
368     {\r
369         "id": "f3d54fb4.5c0a1",\r
370         "type": "for",\r
371         "name": "for each relationship",\r
372         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.srcdst-pnf.relationship-list.relationship_length`' >\n",\r
373         "comments": "",\r
374         "outputs": 1,\r
375         "x": 2063,\r
376         "y": 974,\r
377         "z": "4fb14ce0.40eb24",\r
378         "wires": [\r
379             [\r
380                 "763118b6.61e2b8"\r
381             ]\r
382         ]\r
383     },\r
384     {\r
385         "id": "763118b6.61e2b8",\r
386         "type": "switchNode",\r
387         "name": "switch related-to",\r
388         "xml": "<switch test='`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 2258,\r
392         "y": 974,\r
393         "z": "4fb14ce0.40eb24",\r
394         "wires": [\r
395             [\r
396                 "45a9ec7c.a92c4c"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "6fd0244b.f38ce4",\r
402         "type": "block",\r
403         "name": "block : atomic",\r
404         "xml": "<block atomic=\"true\">",\r
405         "atomic": "true",\r
406         "outputs": 1,\r
407         "x": 2638,\r
408         "y": 970,\r
409         "z": "4fb14ce0.40eb24",\r
410         "wires": [\r
411             [\r
412                 "e527c2f.df2fcc",\r
413                 "56d60802.89ee28"\r
414             ]\r
415         ]\r
416     },\r
417     {\r
418         "id": "56d60802.89ee28",\r
419         "type": "execute",\r
420         "name": "get esr-thirdparty-sdnc",\r
421         "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 = $tmp.domainG.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domainG.esr-thirdparty-sdnc' local-only='false' >",\r
422         "comments": "",\r
423         "outputs": 1,\r
424         "x": 2846,\r
425         "y": 977,\r
426         "z": "4fb14ce0.40eb24",\r
427         "wires": [\r
428             [\r
429                 "b854345d.faf84",\r
430                 "437ea2b.b00f35c",\r
431                 "fed3318a.a11e3"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "e527c2f.df2fcc",\r
437         "type": "set",\r
438         "name": "set esr-thirdparty-sdnc domainG id",\r
439         "xml": "<set>\n<parameter name='tmp.domainG.esr-thirdparty-id' value=\"`$tmp.aai.srcdst-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
440         "comments": "",\r
441         "x": 2876,\r
442         "y": 925,\r
443         "z": "4fb14ce0.40eb24",\r
444         "wires": []\r
445     },\r
446     {\r
447         "id": "b854345d.faf84",\r
448         "type": "success",\r
449         "name": "success",\r
450         "xml": "<outcome value='success'>\n",\r
451         "comments": "",\r
452         "outputs": 1,\r
453         "x": 3056,\r
454         "y": 968,\r
455         "z": "4fb14ce0.40eb24",\r
456         "wires": [\r
457             [\r
458                 "918d39ea.cf7f2"\r
459             ]\r
460         ]\r
461     },\r
462     {\r
463         "id": "437ea2b.b00f35c",\r
464         "type": "not-found",\r
465         "name": "not-found",\r
466         "xml": "<outcome value='not-found'>\n",\r
467         "comments": "",\r
468         "outputs": 1,\r
469         "x": 3048,\r
470         "y": 1023,\r
471         "z": "4fb14ce0.40eb24",\r
472         "wires": [\r
473             [\r
474                 "1afabba1.4179cc"\r
475             ]\r
476         ]\r
477     },\r
478     {\r
479         "id": "fed3318a.a11e3",\r
480         "type": "other",\r
481         "name": "other",\r
482         "xml": "<outcome value='Other'>\n",\r
483         "comments": "",\r
484         "outputs": 1,\r
485         "x": 3053,\r
486         "y": 1080,\r
487         "z": "4fb14ce0.40eb24",\r
488         "wires": [\r
489             [\r
490                 "e095e0e5.375ba"\r
491             ]\r
492         ]\r
493     },\r
494     {\r
495         "id": "e095e0e5.375ba",\r
496         "type": "returnFailure",\r
497         "name": "return failure",\r
498         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
499         "comments": "",\r
500         "x": 3205,\r
501         "y": 1081,\r
502         "z": "4fb14ce0.40eb24",\r
503         "wires": []\r
504     },\r
505     {\r
506         "id": "1afabba1.4179cc",\r
507         "type": "returnFailure",\r
508         "name": "return failure",\r
509         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
510         "comments": "",\r
511         "x": 3216,\r
512         "y": 1026,\r
513         "z": "4fb14ce0.40eb24",\r
514         "wires": []\r
515     },\r
516     {\r
517         "id": "918d39ea.cf7f2",\r
518         "type": "block",\r
519         "name": "block",\r
520         "xml": "<block>\n",\r
521         "atomic": "false",\r
522         "comments": "",\r
523         "outputs": 1,\r
524         "x": 3200.38232421875,\r
525         "y": 965.6556701660156,\r
526         "z": "4fb14ce0.40eb24",\r
527         "wires": [\r
528             [\r
529                 "47a021ef.066c88"\r
530             ]\r
531         ]\r
532     },\r
533     {\r
534         "id": "45a9ec7c.a92c4c",\r
535         "type": "outcome",\r
536         "name": "esr-thirdparty-sdnc",\r
537         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
538         "comments": "",\r
539         "outputs": 1,\r
540         "x": 2461,\r
541         "y": 978,\r
542         "z": "4fb14ce0.40eb24",\r
543         "wires": [\r
544             [\r
545                 "6fd0244b.f38ce4"\r
546             ]\r
547         ]\r
548     },\r
549     {\r
550         "id": "47a021ef.066c88",\r
551         "type": "set",\r
552         "name": "set controller domainA data",\r
553         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.url' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.user' value=\"`$tmp.aai.domainG.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domainG.password' value=\"`$tmp.aai.domainG.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
554         "comments": "",\r
555         "x": 3415,\r
556         "y": 962,\r
557         "z": "4fb14ce0.40eb24",\r
558         "wires": []\r
559     },\r
560     {\r
561         "id": "715b7a53.d039d4",\r
562         "type": "switchNode",\r
563         "name": "switch dmnsidx == 0 (domainA)",\r
564         "xml": "<switch test='`$otnidx == 0`'>\n",\r
565         "comments": "",\r
566         "outputs": 1,\r
567         "x": 1534,\r
568         "y": 1188,\r
569         "z": "4fb14ce0.40eb24",\r
570         "wires": [\r
571             [\r
572                 "f53c2621.eb9438",\r
573                 "1c719c21.ec9b04"\r
574             ]\r
575         ]\r
576     },\r
577     {\r
578         "id": "f53c2621.eb9438",\r
579         "type": "outcomeTrue",\r
580         "name": "true",\r
581         "xml": "<outcome value='true'>\n",\r
582         "comments": "",\r
583         "outputs": 1,\r
584         "x": 1735,\r
585         "y": 1186,\r
586         "z": "4fb14ce0.40eb24",\r
587         "wires": [\r
588             [\r
589                 "39a7b2e1.a50fbe"\r
590             ]\r
591         ]\r
592     },\r
593     {\r
594         "id": "b0d2a923.51103",\r
595         "type": "set",\r
596         "name": "set pce-src-node",\r
597         "xml": "<set>\n<parameter name='tmp.pce-src-node' value='`$tmp.srcdstpnf-name`' />",\r
598         "comments": "",\r
599         "x": 2016,\r
600         "y": 1136,\r
601         "z": "4fb14ce0.40eb24",\r
602         "wires": []\r
603     },\r
604     {\r
605         "id": "c9652673.c83de8",\r
606         "type": "switchNode",\r
607         "name": "switch dmnsidx == last (domainB)",\r
608         "xml": "<switch test='`$otnidx == $tmp.otninfo_length - 1`'>\n",\r
609         "comments": "",\r
610         "outputs": 1,\r
611         "x": 1952,\r
612         "y": 1237,\r
613         "z": "4fb14ce0.40eb24",\r
614         "wires": [\r
615             [\r
616                 "ab876b76.0d0a8",\r
617                 "2a964a93.a3cb96"\r
618             ]\r
619         ]\r
620     },\r
621     {\r
622         "id": "ab876b76.0d0a8",\r
623         "type": "outcomeTrue",\r
624         "name": "true",\r
625         "xml": "<outcome value='true'>\n",\r
626         "comments": "",\r
627         "outputs": 1,\r
628         "x": 2182,\r
629         "y": 1233,\r
630         "z": "4fb14ce0.40eb24",\r
631         "wires": [\r
632             [\r
633                 "62dd94dd.71b75c"\r
634             ]\r
635         ]\r
636     },\r
637     {\r
638         "id": "1c719c21.ec9b04",\r
639         "type": "outcomeFalse",\r
640         "name": "false",\r
641         "xml": "<outcome value='false'>\n",\r
642         "comments": "",\r
643         "outputs": 1,\r
644         "x": 1735,\r
645         "y": 1235,\r
646         "z": "4fb14ce0.40eb24",\r
647         "wires": [\r
648             [\r
649                 "c9652673.c83de8"\r
650             ]\r
651         ]\r
652     },\r
653     {\r
654         "id": "2a964a93.a3cb96",\r
655         "type": "outcomeFalse",\r
656         "name": "false",\r
657         "xml": "<outcome value='false'>\n",\r
658         "comments": "",\r
659         "outputs": 1,\r
660         "x": 2183,\r
661         "y": 1279,\r
662         "z": "4fb14ce0.40eb24",\r
663         "wires": [\r
664             [\r
665                 "1f38645a.fd2454"\r
666             ]\r
667         ]\r
668     },\r
669     {\r
670         "id": "1f38645a.fd2454",\r
671         "type": "set",\r
672         "name": "set attachment_param domain G",\r
673         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
674         "comments": "",\r
675         "x": 2397,\r
676         "y": 1279,\r
677         "z": "4fb14ce0.40eb24",\r
678         "wires": []\r
679     },\r
680     {\r
681         "id": "ada84f30.11bba8",\r
682         "type": "set",\r
683         "name": "set attachment_param domain A",\r
684         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />",\r
685         "comments": "",\r
686         "x": 2071,\r
687         "y": 1183,\r
688         "z": "4fb14ce0.40eb24",\r
689         "wires": []\r
690     },\r
691     {\r
692         "id": "39a7b2e1.a50fbe",\r
693         "type": "block",\r
694         "name": "block",\r
695         "xml": "<block>\n",\r
696         "atomic": "false",\r
697         "comments": "",\r
698         "outputs": 1,\r
699         "x": 1859,\r
700         "y": 1177,\r
701         "z": "4fb14ce0.40eb24",\r
702         "wires": [\r
703             [\r
704                 "ada84f30.11bba8"\r
705             ]\r
706         ]\r
707     },\r
708     {\r
709         "id": "62dd94dd.71b75c",\r
710         "type": "block",\r
711         "name": "block",\r
712         "xml": "<block>\n",\r
713         "atomic": "false",\r
714         "comments": "",\r
715         "outputs": 1,\r
716         "x": 2315,\r
717         "y": 1209,\r
718         "z": "4fb14ce0.40eb24",\r
719         "wires": [\r
720             [\r
721                 "c86a8489.80e7c"\r
722             ]\r
723         ]\r
724     },\r
725     {\r
726         "id": "dce0c80a.efad",\r
727         "type": "set",\r
728         "name": "set pce-src-node",\r
729         "xml": "<set>\n<parameter name='tmp.pce-dst-node' value='`$tmp.srcdstpnf-name`' />",\r
730         "comments": "",\r
731         "x": 2471,\r
732         "y": 1225,\r
733         "z": "4fb14ce0.40eb24",\r
734         "wires": []\r
735     },\r
736     {\r
737         "id": "c86a8489.80e7c",\r
738         "type": "set",\r
739         "name": "set attachment_param domain B",\r
740         "xml": "<set>\n<parameter name='tmp.domainG-src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />\n<parameter name='tmp.domainG-dst-access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />",\r
741         "comments": "",\r
742         "x": 2519,\r
743         "y": 1177,\r
744         "z": "4fb14ce0.40eb24",\r
745         "wires": []\r
746     },\r
747     {\r
748         "id": "6f21b0a4.c1ba8",\r
749         "type": "set",\r
750         "name": "unset parameters",\r
751         "xml": "<set>\n<parameter name='domain-A.tunnel-tp-id' value='' />\n<parameter name='domain-A.node-id' value='' />\n<parameter name='domain-A.network-id' value=\"\" />\n<parameter name='domain-A.provider-id' value=\"\" />\n<parameter name='domain-A.client-id' value=\"\" />\n<parameter name='domain-A.te-topo-id' value=\"\" />\n<parameter name='domain-A.network-type' value=\"\" />\n<parameter name='domain-A.ltpId' value=\"\" />\n<parameter name='tmp.domain-A.network-id' value=\"\" />\n<parameter name='tmp.domain-A.ttp-id' value=\"\" />\n<parameter name='network-route-A' value=\"\" />\n<!--<parameter name='domain-A.' value=\"\" />-->\n\n<parameter name='request-id' value='' />\n<parameter name='otn-source-node' value='' />\n<parameter name='otn-dest-node' value='' />\n<parameter name='bw-odu' value=\"\" />\n<parameter name='src-ttp-id' value='' />\n<parameter name='dst-ttp-id' value='' />\n\n<parameter name='domain-B.tunnel-tp-id' value='' />\n<parameter name='domain-B.node-id' value='' />\n<parameter name='domain-B.network-id' value=\"\" />\n<parameter name='domain-B.provider-id' value=\"\" />\n<parameter name='domain-B.client-id' value=\"\" />\n<parameter name='domain-B.te-topo-id' value=\"\" />\n<parameter name='domain-B.network-type' value=\"\" />\n<parameter name='domain-B.ltpId' value=\"\" />\n<parameter name='tmp.domain-B.network-id' value=\"\" />\n<parameter name='tmp.domain-B.ttp-id' value=\"\" />\n<parameter name='network-route-B' value=\"\" />\n<!--<parameter name='domain-B.' value=\"\" />-->\n\n\n\n\n\n",\r
752         "comments": "",\r
753         "x": 404,\r
754         "y": 2903,\r
755         "z": "4fb14ce0.40eb24",\r
756         "wires": []\r
757     },\r
758     {\r
759         "id": "5f4f339e.018654",\r
760         "type": "set",\r
761         "name": "set srcTtp OTN layer",\r
762         "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",\r
763         "comments": "",\r
764         "x": 445,\r
765         "y": 915,\r
766         "z": "4fb14ce0.40eb24",\r
767         "wires": []\r
768     },\r
769     {\r
770         "id": "13d7f319.f10ffd",\r
771         "type": "set",\r
772         "name": "set srcTtp+dstTtp pair",\r
773         "xml": "<set>\n<parameter name='tmp.srcTtpdstTtpPair' value=\"`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id + ',' +\n                                               $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`\" />\n\n\n",\r
774         "comments": "",\r
775         "x": 1510,\r
776         "y": 1268,\r
777         "z": "4fb14ce0.40eb24",\r
778         "wires": []\r
779     },\r
780     {\r
781         "id": "9673bbc9.e232d8",\r
782         "type": "call",\r
783         "name": "call GENERIC-RESOURCE-API:cll-vnf-topology-operation-cll-helper-find-connectivity",\r
784         "xml": "<call module='GENERIC-RESOURCE-API' rpc='cll-vnf-topology-operation-cll-helper-find-connectivity' mode='sync' >\n\n",\r
785         "comments": "",\r
786         "outputs": 1,\r
787         "x": 1703,\r
788         "y": 1365,\r
789         "z": "4fb14ce0.40eb24",\r
790         "wires": [\r
791             []\r
792         ]\r
793     },\r
794     {\r
795         "id": "fe43d4e7.2e266",\r
796         "type": "set",\r
797         "name": "set current-provider-id and current-cvlan-id",\r
798         "xml": "<set>\n<parameter name='tmp.current-provider-id' value='`$tmp.access-provider-id`' />\n<parameter name='tmp.current-cvlan-id' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n",\r
799         "comments": "",\r
800         "x": 1574,\r
801         "y": 1319,\r
802         "z": "4fb14ce0.40eb24",\r
803         "wires": []\r
804     },\r
805     {\r
806         "id": "8c1ff0ec.d0238",\r
807         "type": "switchNode",\r
808         "name": "switch found-connectivity?",\r
809         "xml": "\n<switch test=\"`$found-connectivity`\">\n\n",\r
810         "comments": "",\r
811         "outputs": 1,\r
812         "x": 1383,\r
813         "y": 1520,\r
814         "z": "4fb14ce0.40eb24",\r
815         "wires": [\r
816             [\r
817                 "43f2090.27bb178",\r
818                 "78a0670.cf2d998"\r
819             ]\r
820         ]\r
821     },\r
822     {\r
823         "id": "43f2090.27bb178",\r
824         "type": "outcomeTrue",\r
825         "name": "true",\r
826         "xml": "<outcome value='true'>\n",\r
827         "comments": "",\r
828         "outputs": 1,\r
829         "x": 1669,\r
830         "y": 2339,\r
831         "z": "4fb14ce0.40eb24",\r
832         "wires": [\r
833             [\r
834                 "c80f5b2c.e8799"\r
835             ]\r
836         ]\r
837     },\r
838     {\r
839         "id": "340621d.c4a9c5e",\r
840         "type": "comment",\r
841         "name": "call string.contains to check if the cache has srcTtpdstTtpPair",\r
842         "info": "if it had: then no new otn/vpn-binding is needed\n           ==> find the otn. ==>look into the relationships of this connectivity and find the one that has same srcTtp and dstTtp\n           ==> increase the bw\nif not, create a new vpn-binding, attach this vpn-binding into the founded connectivity, and attach it to the middle-man-conn as well.",\r
843         "comments": "",\r
844         "x": 2095,\r
845         "y": 2284,\r
846         "z": "4fb14ce0.40eb24",\r
847         "wires": []\r
848     },\r
849     {\r
850         "id": "b5382f7e.2bd898",\r
851         "type": "comment",\r
852         "name": "create a new connectivity",\r
853         "info": "(this should not be for LEAF side or ROOT side, otherwise error)\n\ncreate a new vpn-binding (done here)\ncreate a new connectivity (done below)\nadd srcTtpdstTtpPair into the cache in this connectivity\nattach the vpn-binding into the connectivity relationship\nattach this connectivity into the middle man\nattach this connectivity into the service-instance",\r
854         "comments": "",\r
855         "x": 1906,\r
856         "y": 1496,\r
857         "z": "4fb14ce0.40eb24",\r
858         "wires": []\r
859     },\r
860     {\r
861         "id": "be6ceee2.825c9",\r
862         "type": "save",\r
863         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
864         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
865         "comments": "",\r
866         "outputs": 1,\r
867         "x": 2009,\r
868         "y": 1532,\r
869         "z": "4fb14ce0.40eb24",\r
870         "wires": [\r
871             [\r
872                 "cf21392c.4841d8"\r
873             ]\r
874         ]\r
875     },\r
876     {\r
877         "id": "cf21392c.4841d8",\r
878         "type": "success",\r
879         "name": "success",\r
880         "xml": "<outcome value='success'>\n",\r
881         "comments": "",\r
882         "outputs": 1,\r
883         "x": 2297,\r
884         "y": 1533,\r
885         "z": "4fb14ce0.40eb24",\r
886         "wires": [\r
887             [\r
888                 "7f292268.acccbc"\r
889             ]\r
890         ]\r
891     },\r
892     {\r
893         "id": "7f292268.acccbc",\r
894         "type": "block",\r
895         "name": "block",\r
896         "xml": "<block>\n",\r
897         "atomic": "false",\r
898         "comments": "",\r
899         "outputs": 1,\r
900         "x": 2480.5,\r
901         "y": 1531.25390625,\r
902         "z": "4fb14ce0.40eb24",\r
903         "wires": [\r
904             []\r
905         ]\r
906     },\r
907     {\r
908         "id": "16c5a50f.2f8633",\r
909         "type": "execute",\r
910         "name": "execute string.contains srcTtpdstTtpPair",\r
911         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n<parameter name=\"source\" value='`$tmp.the-connectivity.coupling-flag`'/>\n<parameter name=\"target\" value=\"`$tmp.srcTtpdstTtpPair`\"/>\n\n",\r
912         "comments": "",\r
913         "outputs": 1,\r
914         "x": 2083,\r
915         "y": 2336,\r
916         "z": "4fb14ce0.40eb24",\r
917         "wires": [\r
918             [\r
919                 "452b77d1.b4f2a8",\r
920                 "b1806606.25c148"\r
921             ]\r
922         ]\r
923     },\r
924     {\r
925         "id": "452b77d1.b4f2a8",\r
926         "type": "outcomeFalse",\r
927         "name": "false",\r
928         "xml": "<outcome value='false'>\n",\r
929         "comments": "",\r
930         "outputs": 1,\r
931         "x": 2256,\r
932         "y": 2184,\r
933         "z": "4fb14ce0.40eb24",\r
934         "wires": [\r
935             []\r
936         ]\r
937     },\r
938     {\r
939         "id": "b1806606.25c148",\r
940         "type": "outcomeFalse",\r
941         "name": "true",\r
942         "xml": "<outcome value='true'>\n",\r
943         "comments": "",\r
944         "outputs": 1,\r
945         "x": 2288,\r
946         "y": 2443,\r
947         "z": "4fb14ce0.40eb24",\r
948         "wires": [\r
949             [\r
950                 "28b98f8a.d66ba8"\r
951             ]\r
952         ]\r
953     },\r
954     {\r
955         "id": "65dfad8a.1bcc14",\r
956         "type": "save",\r
957         "name": "save vpn-binding otnIdx resource (aka. OTN) in AAI",\r
958         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' >\n<parameter name='vpn-id' value='`$prop.vpn-binding-otnidx-uuid`' />\n<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />\n<!--<parameter name='customer-vpn-id' value='`($idx + 1) * 10`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`$newToBeUsedMaxtpn`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<parameter name='access-client-id' value='`$tmp.access-client-id`' />\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<parameter name='access-topology-id' value='`$tmp.access-topology-id`' />\n<!--<parameter name='src-access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<parameter name='src-access-node-id' value='`$tmp.domainG-src-access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`' />\n<!--<parameter name='dst-access-node-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-node-id`' />-->\n<parameter name='dst-access-node-id' value='`$tmp.domainG-dst-access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`' />\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n\n\n<parameter name='vpn-region' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.url`' />\n<parameter name='vpn-description' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.user`' />\n<parameter name='vpn-platform' value='`$prop.sdncRestApi.thirdpartySdnc.domainG.password`' />\n\n<!-- The following line is in lieu of vpn-binding.slice-id (new attribute in latest AAI) -->\n<!--<parameter name='ops-note' value='`$tmp.aai.service-instance.service-instance-id`' />-->\n<parameter name='slice-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n<parameter name='ops-note' value='`$tmp.srcTtpOtnLayer`' />\n\n",\r
959         "comments": "",\r
960         "outputs": 1,\r
961         "x": 2695,\r
962         "y": 1974,\r
963         "z": "4fb14ce0.40eb24",\r
964         "wires": [\r
965             [\r
966                 "685af2d8.b662dc"\r
967             ]\r
968         ]\r
969     },\r
970     {\r
971         "id": "685af2d8.b662dc",\r
972         "type": "success",\r
973         "name": "success",\r
974         "xml": "<outcome value='success'>\n",\r
975         "comments": "",\r
976         "outputs": 1,\r
977         "x": 2999,\r
978         "y": 1971,\r
979         "z": "4fb14ce0.40eb24",\r
980         "wires": [\r
981             [\r
982                 "edef5d31.f27bb8"\r
983             ]\r
984         ]\r
985     },\r
986     {\r
987         "id": "edef5d31.f27bb8",\r
988         "type": "block",\r
989         "name": "block",\r
990         "xml": "<block>\n",\r
991         "atomic": "false",\r
992         "comments": "",\r
993         "outputs": 1,\r
994         "x": 3149.5,\r
995         "y": 1978.25390625,\r
996         "z": "4fb14ce0.40eb24",\r
997         "wires": [\r
998             []\r
999         ]\r
1000     },\r
1001     {\r
1002         "id": "fca1e078.90281",\r
1003         "type": "execute",\r
1004         "name": "execute UUID generator for connectivity domain otnidx",\r
1005         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"uuid.connectivity-otnidx-uuid\"/>\n",\r
1006         "comments": "",\r
1007         "outputs": 1,\r
1008         "x": 1989,\r
1009         "y": 1587,\r
1010         "z": "4fb14ce0.40eb24",\r
1011         "wires": [\r
1012             []\r
1013         ]\r
1014     },\r
1015     {\r
1016         "id": "84e90fcb.be7ce",\r
1017         "type": "save",\r
1018         "name": "save connectivity resource in AAI",\r
1019         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $network-topology-operation-input.service-information.service-instance-id  + '/service-data/networks/network/'  + $prop.sotn.network-id  + '/network-data/'` \" />\n",\r
1020         "comments": "",\r
1021         "outputs": 1,\r
1022         "x": 1927,\r
1023         "y": 1637,\r
1024         "z": "4fb14ce0.40eb24",\r
1025         "wires": [\r
1026             []\r
1027         ]\r
1028     },\r
1029     {\r
1030         "id": "548a399a.3a9a1",\r
1031         "type": "save",\r
1032         "name": "save middle-man-conn relationship to connectivity-otnidx, in AAI",\r
1033         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
1034         "comments": "",\r
1035         "outputs": 1,\r
1036         "x": 2028,\r
1037         "y": 1682,\r
1038         "z": "4fb14ce0.40eb24",\r
1039         "wires": [\r
1040             []\r
1041         ]\r
1042     },\r
1043     {\r
1044         "id": "ea27a84e.a57e98",\r
1045         "type": "save",\r
1046         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1047         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1048         "comments": "",\r
1049         "outputs": 1,\r
1050         "x": 2064,\r
1051         "y": 1736,\r
1052         "z": "4fb14ce0.40eb24",\r
1053         "wires": [\r
1054             []\r
1055         ]\r
1056     },\r
1057     {\r
1058         "id": "688a1580.c26934",\r
1059         "type": "save",\r
1060         "name": "save connectivity-otnidx relationship to vpn-binding-otnidx, in AAI",\r
1061         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />",\r
1062         "comments": "",\r
1063         "outputs": 1,\r
1064         "x": 2032,\r
1065         "y": 1795,\r
1066         "z": "4fb14ce0.40eb24",\r
1067         "wires": [\r
1068             []\r
1069         ]\r
1070     },\r
1071     {\r
1072         "id": "ab8e2668.029e08",\r
1073         "type": "comment",\r
1074         "name": "find middle-man's eth-srv-name",\r
1075         "info": "",\r
1076         "comments": "",\r
1077         "x": 1490,\r
1078         "y": 1411,\r
1079         "z": "4fb14ce0.40eb24",\r
1080         "wires": []\r
1081     },\r
1082     {\r
1083         "id": "84f3d24d.36c17",\r
1084         "type": "set",\r
1085         "name": "set prop.ethernet-service-name",\r
1086         "xml": "<set>\n<parameter name='prop.ethernet-service-name' value='`$middle-man-conn.etht-svc-name`' />\n\n",\r
1087         "comments": "",\r
1088         "x": 1512,\r
1089         "y": 1455,\r
1090         "z": "4fb14ce0.40eb24",\r
1091         "wires": []\r
1092     },\r
1093     {\r
1094         "id": "ae53151f.a2887",\r
1095         "type": "save",\r
1096         "name": "save middle-man-conn relationship to tmp.the-connectivity, in AAI",\r
1097         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' \n      key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
1098         "comments": "",\r
1099         "outputs": 1,\r
1100         "x": 2719,\r
1101         "y": 2191,\r
1102         "z": "4fb14ce0.40eb24",\r
1103         "wires": [\r
1104             []\r
1105         ]\r
1106     },\r
1107     {\r
1108         "id": "4e7cd680.120818",\r
1109         "type": "save",\r
1110         "name": "save TNNSSI (transport service instance) relationship to connectivity in AAI",\r
1111         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $uuid.connectivity-otnidx-uuid`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$uuid.connectivity-otnidx-uuid`\" />\n\n\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' -->\n<!--      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--         AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type' -->\n<!--      force=\"true\" pfx=\"tmp.AnAI-data\">-->\n<!--<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $prop.sotn.network-id`\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />-->\n<!--<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.sotn.network-id`\" />-->",\r
1112         "comments": "",\r
1113         "outputs": 1,\r
1114         "x": 2750,\r
1115         "y": 2230,\r
1116         "z": "4fb14ce0.40eb24",\r
1117         "wires": [\r
1118             []\r
1119         ]\r
1120     },\r
1121     {\r
1122         "id": "ecdbcb6.a92d738",\r
1123         "type": "save",\r
1124         "name": "save tmp.the-connectivity relationship to vpn-binding-otnidx, in AAI",\r
1125         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n      key='vpn-binding.vpn-id = $prop.vpn-binding-otnidx-uuid' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $tmp.the-connectivity.connectivity-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.the-connectivity.connectivity-id`\" />",\r
1126         "comments": "",\r
1127         "outputs": 1,\r
1128         "x": 2721,\r
1129         "y": 2303,\r
1130         "z": "4fb14ce0.40eb24",\r
1131         "wires": [\r
1132             []\r
1133         ]\r
1134     },\r
1135     {\r
1136         "id": "82dff351.eb0b18",\r
1137         "type": "comment",\r
1138         "name": "update the founded connectivity to have a new coupling-flag",\r
1139         "info": "",\r
1140         "comments": "",\r
1141         "x": 2691,\r
1142         "y": 2019,\r
1143         "z": "4fb14ce0.40eb24",\r
1144         "wires": []\r
1145     },\r
1146     {\r
1147         "id": "4af074ca.bd591c",\r
1148         "type": "set",\r
1149         "name": "set newFlag",\r
1150         "xml": "<set>\n<parameter name='tmp.newFlag' value=\"`$tmp.the-connectivity.coupling-flag + '-' +\n                                               $tmp.srcTtpdstTtpPair`\" />\n\n\n",\r
1151         "comments": "",\r
1152         "x": 2577,\r
1153         "y": 2058,\r
1154         "z": "4fb14ce0.40eb24",\r
1155         "wires": []\r
1156     },\r
1157     {\r
1158         "id": "5e632476.eb799c",\r
1159         "type": "save",\r
1160         "name": "update connectivity resource in AAI",\r
1161         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.the-connectivity.connectivity-id'>\n<parameter name='connectivity-id' value='`$tmp.the-connectivity.connectivity-id`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Modified' />\n<parameter name='coupling-flag' value='`$tmp.newFlag`' />\n",\r
1162         "comments": "",\r
1163         "outputs": 1,\r
1164         "x": 2641,\r
1165         "y": 2103,\r
1166         "z": "4fb14ce0.40eb24",\r
1167         "wires": [\r
1168             []\r
1169         ]\r
1170     },\r
1171     {\r
1172         "id": "6b3b57c6.7c8f5",\r
1173         "type": "comment",\r
1174         "name": "the following two relationships should have already been there; if not => error",\r
1175         "info": "",\r
1176         "comments": "",\r
1177         "x": 2733,\r
1178         "y": 2153,\r
1179         "z": "4fb14ce0.40eb24",\r
1180         "wires": []\r
1181     },\r
1182     {\r
1183         "id": "453ea410.800c04",\r
1184         "type": "block",\r
1185         "name": "block",\r
1186         "xml": "<block>\n",\r
1187         "atomic": "false",\r
1188         "comments": "",\r
1189         "outputs": 1,\r
1190         "x": 1719,\r
1191         "y": 1520,\r
1192         "z": "4fb14ce0.40eb24",\r
1193         "wires": [\r
1194             [\r
1195                 "be6ceee2.825c9",\r
1196                 "fca1e078.90281",\r
1197                 "84e90fcb.be7ce",\r
1198                 "548a399a.3a9a1",\r
1199                 "ea27a84e.a57e98",\r
1200                 "688a1580.c26934"\r
1201             ]\r
1202         ]\r
1203     },\r
1204     {\r
1205         "id": "78a0670.cf2d998",\r
1206         "type": "outcomeFalse",\r
1207         "name": "false",\r
1208         "xml": "<outcome value='false'>\n",\r
1209         "comments": "",\r
1210         "outputs": 1,\r
1211         "x": 1581,\r
1212         "y": 1516,\r
1213         "z": "4fb14ce0.40eb24",\r
1214         "wires": [\r
1215             [\r
1216                 "453ea410.800c04"\r
1217             ]\r
1218         ]\r
1219     },\r
1220     {\r
1221         "id": "c80f5b2c.e8799",\r
1222         "type": "block",\r
1223         "name": "block : atomic",\r
1224         "xml": "<block atomic='true'>",\r
1225         "atomic": "true",\r
1226         "comments": "",\r
1227         "outputs": 1,\r
1228         "x": 2379,\r
1229         "y": 1983,\r
1230         "z": "4fb14ce0.40eb24",\r
1231         "wires": [\r
1232             [\r
1233                 "65dfad8a.1bcc14",\r
1234                 "4af074ca.bd591c",\r
1235                 "5e632476.eb799c",\r
1236                 "ecdbcb6.a92d738"\r
1237             ]\r
1238         ]\r
1239     },\r
1240     {\r
1241         "id": "f5aa86ab.3de758",\r
1242         "type": "comment",\r
1243         "name": "loop through the relationships of this founded connectivity, then",\r
1244         "info": "then find the vpn-binding that has same src ttp and dst ttp as this one",\r
1245         "comments": "",\r
1246         "x": 2384,\r
1247         "y": 2408,\r
1248         "z": "4fb14ce0.40eb24",\r
1249         "wires": []\r
1250     },\r
1251     {\r
1252         "id": "8608bc09.df0608",\r
1253         "type": "for",\r
1254         "name": "for each relationship",\r
1255         "xml": "<for silentFailure='true' index='tcridx' start='0' end='`$tmp.the-connectivity.relationship-list.relationship_length`' >\n\n",\r
1256         "comments": "",\r
1257         "outputs": 1,\r
1258         "x": 2726,\r
1259         "y": 2444,\r
1260         "z": "4fb14ce0.40eb24",\r
1261         "wires": [\r
1262             [\r
1263                 "5d08ac03.36d834"\r
1264             ]\r
1265         ]\r
1266     },\r
1267     {\r
1268         "id": "5d08ac03.36d834",\r
1269         "type": "switchNode",\r
1270         "name": "switch related-to",\r
1271         "xml": "<switch test='`$tmp.the-connectivity.relationship-list.relationship[$tcridx].related-to`'>\n",\r
1272         "comments": "",\r
1273         "outputs": 1,\r
1274         "x": 2938,\r
1275         "y": 2442,\r
1276         "z": "4fb14ce0.40eb24",\r
1277         "wires": [\r
1278             [\r
1279                 "d7fbd393.802b28"\r
1280             ]\r
1281         ]\r
1282     },\r
1283     {\r
1284         "id": "d7fbd393.802b28",\r
1285         "type": "outcome",\r
1286         "name": "vpn-binding",\r
1287         "xml": "<outcome value='vpn-binding'>\n",\r
1288         "comments": "",\r
1289         "outputs": 1,\r
1290         "x": 3122,\r
1291         "y": 2440,\r
1292         "z": "4fb14ce0.40eb24",\r
1293         "wires": [\r
1294             [\r
1295                 "7b17a25c.8a3ecc"\r
1296             ]\r
1297         ]\r
1298     },\r
1299     {\r
1300         "id": "7b17a25c.8a3ecc",\r
1301         "type": "block",\r
1302         "name": "block : atomic",\r
1303         "xml": "<block atomic=\"true\">",\r
1304         "atomic": "true",\r
1305         "outputs": 1,\r
1306         "x": 3301,\r
1307         "y": 2445,\r
1308         "z": "4fb14ce0.40eb24",\r
1309         "wires": [\r
1310             [\r
1311                 "404536aa.fd072",\r
1312                 "ebe21a38.772d1"\r
1313             ]\r
1314         ]\r
1315     },\r
1316     {\r
1317         "id": "ebe21a38.772d1",\r
1318         "type": "set",\r
1319         "name": "unset tmp.aai.vpn-binding",\r
1320         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value='' />\n",\r
1321         "comments": "",\r
1322         "x": 3518,\r
1323         "y": 2376,\r
1324         "z": "4fb14ce0.40eb24",\r
1325         "wires": []\r
1326     },\r
1327     {\r
1328         "id": "404536aa.fd072",\r
1329         "type": "save",\r
1330         "name": "get vpn-binding from aai",\r
1331         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.the-connectivity.relationship-list.relationship[$tcridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
1332         "comments": "",\r
1333         "outputs": 1,\r
1334         "x": 3511,\r
1335         "y": 2462,\r
1336         "z": "4fb14ce0.40eb24",\r
1337         "wires": [\r
1338             [\r
1339                 "82eb023b.8b6878",\r
1340                 "3917c696.d9cc82",\r
1341                 "ad895865.ea3bc8"\r
1342             ]\r
1343         ]\r
1344     },\r
1345     {\r
1346         "id": "3917c696.d9cc82",\r
1347         "type": "not-found",\r
1348         "name": "not-found",\r
1349         "xml": "<outcome value='not-found'>\n",\r
1350         "comments": "",\r
1351         "outputs": 1,\r
1352         "x": 3724.490966796875,\r
1353         "y": 2446.5740356445312,\r
1354         "z": "4fb14ce0.40eb24",\r
1355         "wires": [\r
1356             [\r
1357                 "33dd47ac.b200d"\r
1358             ]\r
1359         ]\r
1360     },\r
1361     {\r
1362         "id": "33dd47ac.b200d",\r
1363         "type": "returnFailure",\r
1364         "name": "return failure",\r
1365         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.l3vpn.pe1_id`\" />\n\n",\r
1366         "comments": "",\r
1367         "x": 3887.0625,\r
1368         "y": 2445.8597412109375,\r
1369         "z": "4fb14ce0.40eb24",\r
1370         "wires": []\r
1371     },\r
1372     {\r
1373         "id": "49f1ea3b.eabc34",\r
1374         "type": "returnFailure",\r
1375         "name": "return failure",\r
1376         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
1377         "comments": "",\r
1378         "x": 3888,\r
1379         "y": 2491,\r
1380         "z": "4fb14ce0.40eb24",\r
1381         "wires": []\r
1382     },\r
1383     {\r
1384         "id": "ad895865.ea3bc8",\r
1385         "type": "failure",\r
1386         "name": "failure",\r
1387         "xml": "<outcome value='failure'>\n",\r
1388         "comments": "",\r
1389         "outputs": 1,\r
1390         "x": 3720,\r
1391         "y": 2491,\r
1392         "z": "4fb14ce0.40eb24",\r
1393         "wires": [\r
1394             [\r
1395                 "49f1ea3b.eabc34"\r
1396             ]\r
1397         ]\r
1398     },\r
1399     {\r
1400         "id": "82eb023b.8b6878",\r
1401         "type": "success",\r
1402         "name": "success",\r
1403         "xml": "<outcome value='success'>\n",\r
1404         "comments": "",\r
1405         "outputs": 1,\r
1406         "x": 3722,\r
1407         "y": 2551,\r
1408         "z": "4fb14ce0.40eb24",\r
1409         "wires": [\r
1410             [\r
1411                 "cb43f8c5.5d2f9"\r
1412             ]\r
1413         ]\r
1414     },\r
1415     {\r
1416         "id": "cb43f8c5.5d2f9",\r
1417         "type": "block",\r
1418         "name": "block : atomic",\r
1419         "xml": "<block atomic=\"true\">",\r
1420         "atomic": "true",\r
1421         "outputs": 1,\r
1422         "x": 3891,\r
1423         "y": 2550,\r
1424         "z": "4fb14ce0.40eb24",\r
1425         "wires": [\r
1426             [\r
1427                 "b8d3290b.70429"\r
1428             ]\r
1429         ]\r
1430     },\r
1431     {\r
1432         "id": "28b98f8a.d66ba8",\r
1433         "type": "block",\r
1434         "name": "block",\r
1435         "xml": "<block>\n",\r
1436         "atomic": "false",\r
1437         "comments": "",\r
1438         "outputs": 1,\r
1439         "x": 2515,\r
1440         "y": 2442,\r
1441         "z": "4fb14ce0.40eb24",\r
1442         "wires": [\r
1443             [\r
1444                 "8608bc09.df0608",\r
1445                 "57ababe0.ec3414",\r
1446                 "52276af3.2f9a4c"\r
1447             ]\r
1448         ]\r
1449     },\r
1450     {\r
1451         "id": "b8d3290b.70429",\r
1452         "type": "switchNode",\r
1453         "name": "switch srcTtp",\r
1454         "xml": "<switch test='`$tmp.aai.vpn-binding.src-access-ltp-id == $tmp.otninfo[$otnidx].srcPort.src-tunnel-tp-id`'>\n",\r
1455         "comments": "",\r
1456         "outputs": 1,\r
1457         "x": 4090,\r
1458         "y": 2551,\r
1459         "z": "4fb14ce0.40eb24",\r
1460         "wires": [\r
1461             [\r
1462                 "4ce3e8eb.f24da8"\r
1463             ]\r
1464         ]\r
1465     },\r
1466     {\r
1467         "id": "4ce3e8eb.f24da8",\r
1468         "type": "outcomeTrue",\r
1469         "name": "true",\r
1470         "xml": "<outcome value='true'>\n",\r
1471         "comments": "",\r
1472         "outputs": 1,\r
1473         "x": 4253,\r
1474         "y": 2549,\r
1475         "z": "4fb14ce0.40eb24",\r
1476         "wires": [\r
1477             [\r
1478                 "18f785cc.cf347a"\r
1479             ]\r
1480         ]\r
1481     },\r
1482     {\r
1483         "id": "18f785cc.cf347a",\r
1484         "type": "switchNode",\r
1485         "name": "switch dstTtp",\r
1486         "xml": "<switch test='`$tmp.aai.vpn-binding.dst-access-ltp-id == $tmp.otninfo[$otnidx].dstPort.dst-tunnel-tp-id`'>\n",\r
1487         "comments": "",\r
1488         "outputs": 1,\r
1489         "x": 4434,\r
1490         "y": 2549,\r
1491         "z": "4fb14ce0.40eb24",\r
1492         "wires": [\r
1493             [\r
1494                 "988f1cd5.aa027"\r
1495             ]\r
1496         ]\r
1497     },\r
1498     {\r
1499         "id": "988f1cd5.aa027",\r
1500         "type": "outcomeTrue",\r
1501         "name": "true",\r
1502         "xml": "<outcome value='true'>\n",\r
1503         "comments": "",\r
1504         "outputs": 1,\r
1505         "x": 4597,\r
1506         "y": 2547,\r
1507         "z": "4fb14ce0.40eb24",\r
1508         "wires": [\r
1509             [\r
1510                 "9caa890d.344aa8"\r
1511             ]\r
1512         ]\r
1513     },\r
1514     {\r
1515         "id": "dd1b26b2.35eef",\r
1516         "type": "set",\r
1517         "name": "set tmp.the-vpn-binding",\r
1518         "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='`$tmp.aai.vpn-binding.`' />\n",\r
1519         "comments": "",\r
1520         "x": 4954,\r
1521         "y": 2554,\r
1522         "z": "4fb14ce0.40eb24",\r
1523         "wires": []\r
1524     },\r
1525     {\r
1526         "id": "9caa890d.344aa8",\r
1527         "type": "block",\r
1528         "name": "block",\r
1529         "xml": "<block>\n",\r
1530         "atomic": "false",\r
1531         "comments": "",\r
1532         "outputs": 1,\r
1533         "x": 4736,\r
1534         "y": 2546,\r
1535         "z": "4fb14ce0.40eb24",\r
1536         "wires": [\r
1537             [\r
1538                 "dd1b26b2.35eef",\r
1539                 "69c80295.f3b48c"\r
1540             ]\r
1541         ]\r
1542     },\r
1543     {\r
1544         "id": "69c80295.f3b48c",\r
1545         "type": "break",\r
1546         "name": "break",\r
1547         "xml": "<break>\n",\r
1548         "comments": "",\r
1549         "x": 4900,\r
1550         "y": 2598,\r
1551         "z": "4fb14ce0.40eb24",\r
1552         "wires": []\r
1553     },\r
1554     {\r
1555         "id": "57ababe0.ec3414",\r
1556         "type": "set",\r
1557         "name": "unset tmp.the-vpn-binding",\r
1558         "xml": "<set>\n<parameter name='tmp.the-vpn-binding.' value='' />\n",\r
1559         "comments": "",\r
1560         "x": 2736,\r
1561         "y": 2405,\r
1562         "z": "4fb14ce0.40eb24",\r
1563         "wires": []\r
1564     },\r
1565     {\r
1566         "id": "b81a7ea3.f58288",\r
1567         "type": "comment",\r
1568         "name": "increase the bw of the-vpn-binding and change status to modified",\r
1569         "info": "increase the bw of the-vpn-binding\nchange status to modified\n",\r
1570         "comments": "",\r
1571         "x": 2825,\r
1572         "y": 2579,\r
1573         "z": "4fb14ce0.40eb24",\r
1574         "wires": []\r
1575     },\r
1576     {\r
1577         "id": "52276af3.2f9a4c",\r
1578         "type": "save",\r
1579         "name": "update vpn-binding otnIdx resource (aka. OTN) in AAI",\r
1580         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.the-vpn-binding.vpn-id' >\n<parameter name='vpn-id' value='`$tmp.the-vpn-binding.vpn-id`' />\n<!--<parameter name='vpn-name' value='`$prop.otn-tunnel-name`' />-->\n<!--<parameter name='customer-vpn-id' value='`($maxtpn + $gfp)`' />-->\n<parameter name='customer-vpn-id' value='`($tmp.the-vpn-binding.customer-vpn-id + $gfp)`' />\n\n<parameter name='route-distinguisher' value='`$gfp`' />\n<parameter name='operational-status' value='Modified' />\n\n\n",\r
1581         "comments": "",\r
1582         "outputs": 1,\r
1583         "x": 2795,\r
1584         "y": 2639,\r
1585         "z": "4fb14ce0.40eb24",\r
1586         "wires": [\r
1587             []\r
1588         ]\r
1589     }\r
1590 ]