DG'S added for MDONS use case
[sdnc/oam.git] / platform-logic / optical-service / src / main / json / optical-service_bandwidth-update.json
1 [\r
2     {\r
3         "id": "18085ebe.2080b1",\r
4         "type": "outcome",\r
5         "name": "outcome",\r
6         "xml": "<outcome value='ODU0'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 491,\r
10         "y": 263,\r
11         "z": "ad8c454f.e636c8",\r
12         "wires": [\r
13             [\r
14                 "18152330.c91add"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "18152330.c91add",\r
20         "type": "block",\r
21         "name": "block : atomic",\r
22         "xml": "<block atomic=\"true\">\n",\r
23         "atomic": "false",\r
24         "comments": "",\r
25         "outputs": 1,\r
26         "x": 612,\r
27         "y": 162,\r
28         "z": "ad8c454f.e636c8",\r
29         "wires": [\r
30             [\r
31                 "c668a8ef.03ace8",\r
32                 "d1cff404.96b3b8"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "66893dd3.7d6d44",\r
38         "type": "switchNode",\r
39         "name": "switch",\r
40         "xml": "<switch test='`$odu-name`'>\n",\r
41         "comments": "",\r
42         "outputs": 1,\r
43         "x": 974,\r
44         "y": 344,\r
45         "z": "ad8c454f.e636c8",\r
46         "wires": [\r
47             [\r
48                 "81ac4ffe.df305"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "81ac4ffe.df305",\r
54         "type": "outcome",\r
55         "name": "outcome",\r
56         "xml": "<outcome value='ODU0'>\n",\r
57         "comments": "",\r
58         "outputs": 1,\r
59         "x": 1097,\r
60         "y": 339,\r
61         "z": "ad8c454f.e636c8",\r
62         "wires": [\r
63             [\r
64                 "3c2d54e2.97184c"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "915a7aed.6d9c68",\r
70         "type": "set",\r
71         "name": "set",\r
72         "xml": "<set>\n<parameter name='odu-name' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].odu-type`' />\n<parameter name='odu-number' value='`pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[$idx].number`' />\n",\r
73         "comments": "",\r
74         "x": 1029,\r
75         "y": 243,\r
76         "z": "ad8c454f.e636c8",\r
77         "wires": []\r
78     },\r
79     {\r
80         "id": "3133f444.5a5e1c",\r
81         "type": "set",\r
82         "name": "set",\r
83         "xml": "<set>\n<parameter name='new-odu-number' value='`0`' />\n",\r
84         "comments": "",\r
85         "x": 1371,\r
86         "y": 313,\r
87         "z": "ad8c454f.e636c8",\r
88         "wires": []\r
89     },\r
90     {\r
91         "id": "6b05b797.6dcc48",\r
92         "type": "update",\r
93         "name": "update available bandwdth'",\r
94         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='available-bandwidth'\n     key='pnf.pnf-name = $pnf-name AND\n     p-interface.interface-name = $pinterface-name AND\n     bandwidth-attribute.id = $pin.bandwidth-attributes.bandwidth-attribute[0].id AND\n     available-bandwidth.id = $pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth[0].id' \n      local-only='false'>\n<parameter name='number' value='`$new-odu-number`' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
95         "comments": "",\r
96         "outputs": 1,\r
97         "x": 1423,\r
98         "y": 372,\r
99         "z": "ad8c454f.e636c8",\r
100         "wires": [\r
101             []\r
102         ]\r
103     },\r
104     {\r
105         "id": "da084d00.a23f5",\r
106         "type": "outcome",\r
107         "name": "outcome",\r
108         "xml": "<outcome value='ODU0'>\n",\r
109         "comments": "",\r
110         "outputs": 1,\r
111         "x": 897,\r
112         "y": 187,\r
113         "z": "ad8c454f.e636c8",\r
114         "wires": [\r
115             [\r
116                 "632c39.072c73c8"\r
117             ]\r
118         ]\r
119     },\r
120     {\r
121         "id": "c668a8ef.03ace8",\r
122         "type": "switchNode",\r
123         "name": "switch",\r
124         "xml": "<switch test='`$optical-service-create-input.payload.service-rate`'>\n",\r
125         "comments": "",\r
126         "outputs": 1,\r
127         "x": 770,\r
128         "y": 187,\r
129         "z": "ad8c454f.e636c8",\r
130         "wires": [\r
131             [\r
132                 "da084d00.a23f5"\r
133             ]\r
134         ]\r
135     },\r
136     {\r
137         "id": "632c39.072c73c8",\r
138         "type": "for",\r
139         "name": "for",\r
140         "xml": "<for index='idx' start='0' end='pin.bandwidth-attributes.bandwidth-attribute[0].available-bandwidth-map.available-bandwidth_length' >\n",\r
141         "comments": "",\r
142         "outputs": 1,\r
143         "x": 781,\r
144         "y": 294,\r
145         "z": "ad8c454f.e636c8",\r
146         "wires": [\r
147             [\r
148                 "47c4c7c8.0b4c88"\r
149             ]\r
150         ]\r
151     },\r
152     {\r
153         "id": "97eda245.3bd94",\r
154         "type": "switchNode",\r
155         "name": "switch",\r
156         "xml": "<switch test='`$pin.speed-value`'>\n",\r
157         "comments": "",\r
158         "outputs": 1,\r
159         "x": 258,\r
160         "y": 277,\r
161         "z": "ad8c454f.e636c8",\r
162         "wires": [\r
163             [\r
164                 "18085ebe.2080b1",\r
165                 "6336ec43.215354",\r
166                 "4af01397.f0721c",\r
167                 "13671476.30978c",\r
168                 "8fdcca3.ccd1438"\r
169             ]\r
170         ]\r
171     },\r
172     {\r
173         "id": "6336ec43.215354",\r
174         "type": "outcome",\r
175         "name": "outcome",\r
176         "xml": "<outcome value='ODU1'>\n",\r
177         "comments": "",\r
178         "outputs": 1,\r
179         "x": 535,\r
180         "y": 377,\r
181         "z": "ad8c454f.e636c8",\r
182         "wires": [\r
183             [\r
184                 "2ac5f263.9388fe"\r
185             ]\r
186         ]\r
187     },\r
188     {\r
189         "id": "4af01397.f0721c",\r
190         "type": "outcome",\r
191         "name": "outcome",\r
192         "xml": "<outcome value='ODU2'>\n",\r
193         "comments": "",\r
194         "outputs": 1,\r
195         "x": 514,\r
196         "y": 479,\r
197         "z": "ad8c454f.e636c8",\r
198         "wires": [\r
199             [\r
200                 "4c19e4dc.f77c2c"\r
201             ]\r
202         ]\r
203     },\r
204     {\r
205         "id": "13671476.30978c",\r
206         "type": "outcome",\r
207         "name": "outcome",\r
208         "xml": "<outcome value='ODU3'>\n",\r
209         "comments": "",\r
210         "outputs": 1,\r
211         "x": 457,\r
212         "y": 578,\r
213         "z": "ad8c454f.e636c8",\r
214         "wires": [\r
215             [\r
216                 "8fbd05d3.328318"\r
217             ]\r
218         ]\r
219     },\r
220     {\r
221         "id": "8fdcca3.ccd1438",\r
222         "type": "outcome",\r
223         "name": "outcome",\r
224         "xml": "<outcome value='ODU4'>\n",\r
225         "comments": "",\r
226         "outputs": 1,\r
227         "x": 321,\r
228         "y": 705,\r
229         "z": "ad8c454f.e636c8",\r
230         "wires": [\r
231             [\r
232                 "89103495.e05898"\r
233             ]\r
234         ]\r
235     },\r
236     {\r
237         "id": "2ac5f263.9388fe",\r
238         "type": "block",\r
239         "name": "block : atomic",\r
240         "xml": "<block atomic=\"true\">\n",\r
241         "atomic": "false",\r
242         "comments": "",\r
243         "outputs": 1,\r
244         "x": 691,\r
245         "y": 378,\r
246         "z": "ad8c454f.e636c8",\r
247         "wires": [\r
248             [\r
249                 "5316c08.338af4",\r
250                 "e98e80e5.101d1"\r
251             ]\r
252         ]\r
253     },\r
254     {\r
255         "id": "4c19e4dc.f77c2c",\r
256         "type": "block",\r
257         "name": "block : atomic",\r
258         "xml": "<block atomic=\"true\">\n",\r
259         "atomic": "false",\r
260         "comments": "",\r
261         "outputs": 1,\r
262         "x": 684,\r
263         "y": 482,\r
264         "z": "ad8c454f.e636c8",\r
265         "wires": [\r
266             [\r
267                 "50c6b9ba.7e87b8",\r
268                 "5d79d201.e7950c"\r
269             ]\r
270         ]\r
271     },\r
272     {\r
273         "id": "8fbd05d3.328318",\r
274         "type": "block",\r
275         "name": "block : atomic",\r
276         "xml": "<block atomic=\"true\">\n",\r
277         "atomic": "false",\r
278         "comments": "",\r
279         "outputs": 1,\r
280         "x": 641,\r
281         "y": 576,\r
282         "z": "ad8c454f.e636c8",\r
283         "wires": [\r
284             [\r
285                 "c6c0c526.a7b418",\r
286                 "ca06e916.be11d8"\r
287             ]\r
288         ]\r
289     },\r
290     {\r
291         "id": "89103495.e05898",\r
292         "type": "block",\r
293         "name": "block : atomic",\r
294         "xml": "<block atomic=\"true\">\n",\r
295         "atomic": "false",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 478,\r
299         "y": 707,\r
300         "z": "ad8c454f.e636c8",\r
301         "wires": [\r
302             [\r
303                 "153b1907.652237",\r
304                 "b455fb41.56e658"\r
305             ]\r
306         ]\r
307     },\r
308     {\r
309         "id": "5316c08.338af4",\r
310         "type": "record",\r
311         "name": "record",\r
312         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu1 calculation\"/>\n\n\n\n\n\n",\r
313         "comments": "",\r
314         "outputs": 1,\r
315         "x": 870,\r
316         "y": 384,\r
317         "z": "ad8c454f.e636c8",\r
318         "wires": [\r
319             []\r
320         ]\r
321     },\r
322     {\r
323         "id": "50c6b9ba.7e87b8",\r
324         "type": "record",\r
325         "name": "record",\r
326         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu2 calculation\"/>\n\n\n\n\n\n",\r
327         "comments": "",\r
328         "outputs": 1,\r
329         "x": 861,\r
330         "y": 481,\r
331         "z": "ad8c454f.e636c8",\r
332         "wires": [\r
333             []\r
334         ]\r
335     },\r
336     {\r
337         "id": "c6c0c526.a7b418",\r
338         "type": "record",\r
339         "name": "record",\r
340         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu3 calculation\"/>\n\n\n\n\n\n",\r
341         "comments": "",\r
342         "outputs": 1,\r
343         "x": 807,\r
344         "y": 576,\r
345         "z": "ad8c454f.e636c8",\r
346         "wires": [\r
347             []\r
348         ]\r
349     },\r
350     {\r
351         "id": "153b1907.652237",\r
352         "type": "record",\r
353         "name": "record",\r
354         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu4 calculation\"/>\n\n\n\n\n\n",\r
355         "comments": "",\r
356         "outputs": 1,\r
357         "x": 650,\r
358         "y": 676,\r
359         "z": "ad8c454f.e636c8",\r
360         "wires": [\r
361             []\r
362         ]\r
363     },\r
364     {\r
365         "id": "d1cff404.96b3b8",\r
366         "type": "record",\r
367         "name": "record",\r
368         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside bandwidth odu0 calculation\"/>\n\n\n\n\n\n",\r
369         "comments": "",\r
370         "outputs": 1,\r
371         "x": 789,\r
372         "y": 125,\r
373         "z": "ad8c454f.e636c8",\r
374         "wires": [\r
375             []\r
376         ]\r
377     },\r
378     {\r
379         "id": "ca06e916.be11d8",\r
380         "type": "call",\r
381         "name": "call bandwidth-update-odu3",\r
382         "xml": "<call module='optical-service' rpc='bandwidth-update-odu3' mode='sync' >\n",\r
383         "comments": "",\r
384         "outputs": 1,\r
385         "x": 847,\r
386         "y": 629,\r
387         "z": "ad8c454f.e636c8",\r
388         "wires": [\r
389             []\r
390         ]\r
391     },\r
392     {\r
393         "id": "b455fb41.56e658",\r
394         "type": "call",\r
395         "name": "call bandwidth-update-odu4",\r
396         "xml": "<call module='optical-service' rpc='bandwidth-update-odu4' mode='sync' >\n",\r
397         "comments": "",\r
398         "outputs": 1,\r
399         "x": 697,\r
400         "y": 739,\r
401         "z": "ad8c454f.e636c8",\r
402         "wires": [\r
403             []\r
404         ]\r
405     },\r
406     {\r
407         "id": "e98e80e5.101d1",\r
408         "type": "call",\r
409         "name": "call bandwidth-update-odu1",\r
410         "xml": "<call module='optical-service' rpc='bandwidth-update-odu1' mode='sync' >\n",\r
411         "comments": "",\r
412         "outputs": 1,\r
413         "x": 921,\r
414         "y": 430,\r
415         "z": "ad8c454f.e636c8",\r
416         "wires": [\r
417             []\r
418         ]\r
419     },\r
420     {\r
421         "id": "5d79d201.e7950c",\r
422         "type": "call",\r
423         "name": "call bandwidth-update-odu2",\r
424         "xml": "<call module='optical-service' rpc='bandwidth-update-odu2' mode='sync' >\n",\r
425         "comments": "",\r
426         "outputs": 1,\r
427         "x": 907,\r
428         "y": 533,\r
429         "z": "ad8c454f.e636c8",\r
430         "wires": [\r
431             []\r
432         ]\r
433     },\r
434     {\r
435         "id": "24d31db6.2991f2",\r
436         "type": "dgstart",\r
437         "name": "DGSTART",\r
438         "outputs": 1,\r
439         "x": 107.5,\r
440         "y": 96,\r
441         "z": "ad8c454f.e636c8",\r
442         "wires": [\r
443             [\r
444                 "e91758dd.a9f1e8"\r
445             ]\r
446         ]\r
447     },\r
448     {\r
449         "id": "e91758dd.a9f1e8",\r
450         "type": "service-logic",\r
451         "name": "optical-service ${project.version}",\r
452         "module": "optical-service",\r
453         "version": "${project.version}",\r
454         "comments": "",\r
455         "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='optical-service' version='${project.version}'>",\r
456         "outputs": 1,\r
457         "x": 134.5,\r
458         "y": 166,\r
459         "z": "ad8c454f.e636c8",\r
460         "wires": [\r
461             [\r
462                 "9d59d2a1.9e885"\r
463             ]\r
464         ]\r
465     },\r
466     {\r
467         "id": "9d59d2a1.9e885",\r
468         "type": "method",\r
469         "name": "method bandwidth-update",\r
470         "xml": "<method rpc='bandwidth-update' mode='sync'>\n",\r
471         "comments": "",\r
472         "outputs": 1,\r
473         "x": 321.5,\r
474         "y": 59,\r
475         "z": "ad8c454f.e636c8",\r
476         "wires": [\r
477             [\r
478                 "2cba60b2.bce73"\r
479             ]\r
480         ]\r
481     },\r
482     {\r
483         "id": "2cba60b2.bce73",\r
484         "type": "block",\r
485         "name": "block : atomic",\r
486         "xml": "<block atomic=\"true\">\n",\r
487         "atomic": "false",\r
488         "comments": "",\r
489         "outputs": 1,\r
490         "x": 369,\r
491         "y": 203,\r
492         "z": "ad8c454f.e636c8",\r
493         "wires": [\r
494             [\r
495                 "97eda245.3bd94"\r
496             ]\r
497         ]\r
498     },\r
499     {\r
500         "id": "3c2d54e2.97184c",\r
501         "type": "block",\r
502         "name": "block",\r
503         "xml": "<block>\n",\r
504         "atomic": "false",\r
505         "comments": "",\r
506         "outputs": 1,\r
507         "x": 1242,\r
508         "y": 329,\r
509         "z": "ad8c454f.e636c8",\r
510         "wires": [\r
511             [\r
512                 "3133f444.5a5e1c",\r
513                 "6b05b797.6dcc48"\r
514             ]\r
515         ]\r
516     },\r
517     {\r
518         "id": "47c4c7c8.0b4c88",\r
519         "type": "block",\r
520         "name": "block",\r
521         "xml": "<block>\n",\r
522         "atomic": "false",\r
523         "comments": "",\r
524         "outputs": 1,\r
525         "x": 903,\r
526         "y": 290,\r
527         "z": "ad8c454f.e636c8",\r
528         "wires": [\r
529             [\r
530                 "915a7aed.6d9c68",\r
531                 "66893dd3.7d6d44"\r
532             ]\r
533         ]\r
534     }\r
535 ]