Merge "SDWAN Templates for RestapiCallNode"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation.json
1 [
2   {
3     "id": "61f768ce.a1c1b8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 127,
8     "y": 96.41365623474121,
9     "z": "57051de1.b81bb4",
10     "wires": [
11       [
12         "58ccea78.3d9004"
13       ]
14     ]
15   },
16   {
17     "id": "58ccea78.3d9004",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
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}'>",
24     "outputs": 1,
25     "x": 241.28570556640625,
26     "y": 136.6517677307129,
27     "z": "57051de1.b81bb4",
28     "wires": [
29       [
30         "13d4c1ee.0b3fde"
31       ]
32     ]
33   },
34   {
35     "id": "13d4c1ee.0b3fde",
36     "type": "method",
37     "name": "method vnf-topology-operation",
38     "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 193.42862701416016,
42     "y": 176.4136505126953,
43     "z": "57051de1.b81bb4",
44     "wires": [
45       [
46         "bd2b5862.92ecf8"
47       ]
48     ]
49   },
50   {
51     "id": "b240dafd.5a3558",
52     "type": "comment",
53     "name": "vnf-topology-operation",
54     "info": "",
55     "comments": "",
56     "x": 521.344856262207,
57     "y": 44,
58     "z": "57051de1.b81bb4",
59     "wires": [
60       
61     ]
62   },
63   {
64     "id": "bd2b5862.92ecf8",
65     "type": "block",
66     "name": "block : atomic",
67     "xml": "<block atomic=\"true\">",
68     "atomic": "true",
69     "outputs": 1,
70     "x": 209.59527587890625,
71     "y": 382.6786069869995,
72     "z": "57051de1.b81bb4",
73     "wires": [
74       [
75         "5967f821.700468",
76         "baed1c3a.1e989",
77         "c06aa47c.85b178"
78       ]
79     ]
80   },
81   {
82     "id": "5967f821.700468",
83     "type": "returnSuccess",
84     "name": "return success",
85     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
86     "comments": "",
87     "x": 494.95237731933594,
88     "y": 537.1282978057861,
89     "z": "57051de1.b81bb4",
90     "wires": [
91       
92     ]
93   },
94   {
95     "id": "baed1c3a.1e989",
96     "type": "switchNode",
97     "name": "switch svc-action",
98     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 504.9999465942383,
102     "y": 380.8898506164551,
103     "z": "57051de1.b81bb4",
104     "wires": [
105       [
106         "978f0c9b.1176d",
107         "62c9370e.8bad98",
108         "b577f516.b87bb8",
109         "c5263003.c4036",
110         "e9cebc1e.d2457",
111         "31b7bba9.7bea94",
112         "c33806c8.aa4d18",
113         "725fe95a.c30bf8"
114       ]
115     ]
116   },
117   {
118     "id": "978f0c9b.1176d",
119     "type": "outcome",
120     "name": "assign",
121     "xml": "<outcome value='assign'>\n",
122     "comments": "",
123     "outputs": 1,
124     "x": 873.3810729980469,
125     "y": 94.93759727478027,
126     "z": "57051de1.b81bb4",
127     "wires": [
128       [
129         "a22dae69.80ef5"
130       ]
131     ]
132   },
133   {
134     "id": "62c9370e.8bad98",
135     "type": "outcome",
136     "name": "unassign",
137     "xml": "<outcome value='unassign'>\n",
138     "comments": "",
139     "outputs": 1,
140     "x": 873.4286041259766,
141     "y": 430.1283016204834,
142     "z": "57051de1.b81bb4",
143     "wires": [
144       [
145         "463cb634.e904a8"
146       ]
147     ]
148   },
149   {
150     "id": "c5263003.c4036",
151     "type": "other",
152     "name": "other",
153     "xml": "<outcome value='Other'>\n",
154     "comments": "",
155     "outputs": 1,
156     "x": 874.7142448425293,
157     "y": 780.7469511032104,
158     "z": "57051de1.b81bb4",
159     "wires": [
160       [
161         "49dd7e11.20bc1"
162       ]
163     ]
164   },
165   {
166     "id": "49dd7e11.20bc1",
167     "type": "returnFailure",
168     "name": "return failure",
169     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
170     "comments": "",
171     "x": 1060.9046897888184,
172     "y": 780.747015953064,
173     "z": "57051de1.b81bb4",
174     "wires": [
175       
176     ]
177   },
178   {
179     "id": "c06aa47c.85b178",
180     "type": "call",
181     "name": "call GENERIC-RESOURCE-API:validate-vnf-input",
182     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 609.416633605957,
186     "y": 233.7946949005127,
187     "z": "57051de1.b81bb4",
188     "wires": [
189       [
190         
191       ]
192     ]
193   },
194   {
195     "id": "a22dae69.80ef5",
196     "type": "call",
197     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-assign",
198     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign' mode='sync' >\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 1215.52392578125,
202     "y": 94.50905799865723,
203     "z": "57051de1.b81bb4",
204     "wires": [
205       [
206         
207       ]
208     ]
209   },
210   {
211     "id": "463cb634.e904a8",
212     "type": "call",
213     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",
214     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",
215     "comments": "",
216     "outputs": 1,
217     "x": 1218.5237007141113,
218     "y": 429.84243297576904,
219     "z": "57051de1.b81bb4",
220     "wires": [
221       [
222         
223       ]
224     ]
225   },
226   {
227     "id": "b577f516.b87bb8",
228     "type": "outcome",
229     "name": "deactivate",
230     "xml": "<outcome value='deactivate'>\n",
231     "comments": "",
232     "outputs": 1,
233     "x": 878.5238189697266,
234     "y": 315.5090947151184,
235     "z": "57051de1.b81bb4",
236     "wires": [
237       [
238         "bd95d506.9d29c8"
239       ]
240     ]
241   },
242   {
243     "id": "e9cebc1e.d2457",
244     "type": "outcome",
245     "name": "activate",
246     "xml": "<outcome value='activate'>\n",
247     "comments": "",
248     "outputs": 1,
249     "x": 875.3333892822266,
250     "y": 155.08038139343262,
251     "z": "57051de1.b81bb4",
252     "wires": [
253       [
254         "9adca977.6fdd38"
255       ]
256     ]
257   },
258   {
259     "id": "31b7bba9.7bea94",
260     "type": "outcome",
261     "name": "changeassign",
262     "xml": "<outcome value='changeassign'>\n",
263     "comments": "",
264     "outputs": 1,
265     "x": 888.285831451416,
266     "y": 472.8422336578369,
267     "z": "57051de1.b81bb4",
268     "wires": [
269       [
270         "88556c83.1395f"
271       ]
272     ]
273   },
274   {
275     "id": "88556c83.1395f",
276     "type": "call",
277     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-changeassign",
278     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-changeassign' mode='sync' >\n",
279     "comments": "",
280     "outputs": 1,
281     "x": 1229.095199584961,
282     "y": 472.55640029907227,
283     "z": "57051de1.b81bb4",
284     "wires": [
285       [
286         
287       ]
288     ]
289   },
290   {
291     "id": "9adca977.6fdd38",
292     "type": "switchNode",
293     "name": "switch request-action",
294     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1064.0001411437988,
298     "y": 154.00003051757812,
299     "z": "57051de1.b81bb4",
300     "wires": [
301       [
302         "cc2bad6b.4598a",
303         "60d3ac48.b936d4"
304       ]
305     ]
306   },
307   {
308     "id": "60d3ac48.b936d4",
309     "type": "outcome",
310     "name": "ActivateSiteInstance",
311     "xml": "<outcome value='ActivateSiteInstance'>",
312     "comments": "",
313     "outputs": 1,
314     "x": 1277.476276397705,
315     "y": 145.4792356491089,
316     "z": "57051de1.b81bb4",
317     "wires": [
318       [
319         "57cdb54d.2f9f3c"
320       ]
321     ]
322   },
323   {
324     "id": "57cdb54d.2f9f3c",
325     "type": "call",
326     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-activate",
327     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-activate' mode='sync' >\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1651.0000801086426,
331     "y": 144.000018119812,
332     "z": "57051de1.b81bb4",
333     "wires": [
334       [
335         
336       ]
337     ]
338   },
339   {
340     "id": "cc2bad6b.4598a",
341     "type": "other",
342     "name": "other",
343     "xml": "<outcome value='Other'>\n",
344     "comments": "",
345     "outputs": 1,
346     "x": 1244.3810939788818,
347     "y": 226.85723209381104,
348     "z": "57051de1.b81bb4",
349     "wires": [
350       [
351         "10dbd8d4.75e477"
352       ]
353     ]
354   },
355   {
356     "id": "10dbd8d4.75e477",
357     "type": "call",
358     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",
359     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",
360     "comments": "",
361     "outputs": 1,
362     "x": 1582.666669845581,
363     "y": 226.9136552810669,
364     "z": "57051de1.b81bb4",
365     "wires": [
366       [
367         
368       ]
369     ]
370   },
371   {
372     "id": "bd95d506.9d29c8",
373     "type": "switchNode",
374     "name": "switch request-action",
375     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
376     "comments": "",
377     "outputs": 1,
378     "x": 1073,
379     "y": 346,
380     "z": "57051de1.b81bb4",
381     "wires": [
382       [
383         "b8195b3d.cc9f78",
384         "b97b745.9c9ca88"
385       ]
386     ]
387   },
388   {
389     "id": "b97b745.9c9ca88",
390     "type": "outcome",
391     "name": "DeActivateSiteInstance",
392     "xml": "<outcome value='DeActivateSiteInstance'>",
393     "comments": "",
394     "outputs": 1,
395     "x": 1286.4761962890625,
396     "y": 277.4792175292969,
397     "z": "57051de1.b81bb4",
398     "wires": [
399       [
400         "f5aac374.2e2d4"
401       ]
402     ]
403   },
404   {
405     "id": "f5aac374.2e2d4",
406     "type": "call",
407     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-deactivate",
408     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-deactivate' mode='sync' >\n",
409     "comments": "",
410     "outputs": 1,
411     "x": 1656,
412     "y": 275,
413     "z": "57051de1.b81bb4",
414     "wires": [
415       [
416         
417       ]
418     ]
419   },
420   {
421     "id": "504dc14c.1b4a",
422     "type": "call",
423     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",
424     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",
425     "comments": "",
426     "outputs": 1,
427     "x": 1610.8570556640625,
428     "y": 370.34234619140625,
429     "z": "57051de1.b81bb4",
430     "wires": [
431       [
432         
433       ]
434     ]
435   },
436   {
437     "id": "b8195b3d.cc9f78",
438     "type": "other",
439     "name": "other",
440     "xml": "<outcome value='Other'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 1255.3809280395508,
444     "y": 368.8572120666504,
445     "z": "57051de1.b81bb4",
446     "wires": [
447       [
448         "504dc14c.1b4a"
449       ]
450     ]
451   },
452   {
453     "id": "c33806c8.aa4d18",
454     "type": "outcome",
455     "name": "create",
456     "xml": "<outcome value='create'>\n",
457     "comments": "",
458     "outputs": 1,
459     "x": 871,
460     "y": 534,
461     "z": "57051de1.b81bb4",
462     "wires": [
463       [
464         "18cbc95d.535697"
465       ]
466     ]
467   },
468   {
469     "id": "725fe95a.c30bf8",
470     "type": "outcome",
471     "name": "delete",
472     "xml": "<outcome value='delete'>\n",
473     "comments": "",
474     "outputs": 1,
475     "x": 868.9999885559082,
476     "y": 677.000002861023,
477     "z": "57051de1.b81bb4",
478     "wires": [
479       [
480         "86c5aa37.0d5088"
481       ]
482     ]
483   },
484   {
485     "id": "18cbc95d.535697",
486     "type": "switchNode",
487     "name": "switch request-action",
488     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
489     "comments": "",
490     "outputs": 1,
491     "x": 1098.3335647583008,
492     "y": 564.5863790512085,
493     "z": "57051de1.b81bb4",
494     "wires": [
495       [
496         "33af8fa8.cb18f",
497         "6468b583.fa7cec"
498       ]
499     ]
500   },
501   {
502     "id": "6468b583.fa7cec",
503     "type": "outcome",
504     "name": "CreateSiteInstance",
505     "xml": "<outcome value='CreateSiteInstance'>",
506     "comments": "",
507     "outputs": 1,
508     "x": 1327.8096809387207,
509     "y": 518.0655851364136,
510     "z": "57051de1.b81bb4",
511     "wires": [
512       [
513         "93206f47.4db71"
514       ]
515     ]
516   },
517   {
518     "id": "33af8fa8.cb18f",
519     "type": "other",
520     "name": "other",
521     "xml": "<outcome value='Other'>\n",
522     "comments": "",
523     "outputs": 1,
524     "x": 1296.714412689209,
525     "y": 609.4435796737671,
526     "z": "57051de1.b81bb4",
527     "wires": [
528       [
529         "3bcc0d9a.e0d3b2"
530       ]
531     ]
532   },
533   {
534     "id": "93206f47.4db71",
535     "type": "call",
536     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-create",
537     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-create' mode='sync' >\n",
538     "comments": "",
539     "outputs": 1,
540     "x": 1701.3334846496582,
541     "y": 516.5863676071167,
542     "z": "57051de1.b81bb4",
543     "wires": [
544       [
545         
546       ]
547     ]
548   },
549   {
550     "id": "3bcc0d9a.e0d3b2",
551     "type": "block",
552     "name": "block",
553     "xml": "<block>\n",
554     "atomic": "false",
555     "comments": "",
556     "outputs": 1,
557     "x": 1436.9999885559082,
558     "y": 610.500002861023,
559     "z": "57051de1.b81bb4",
560     "wires": [
561       [
562         
563       ]
564     ]
565   },
566   {
567     "id": "86c5aa37.0d5088",
568     "type": "switchNode",
569     "name": "switch request-action",
570     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
571     "comments": "",
572     "outputs": 1,
573     "x": 1088.000228881836,
574     "y": 685.5001239776611,
575     "z": "57051de1.b81bb4",
576     "wires": [
577       [
578         "fc244f76.ceda2",
579         "bd7ae6f3.16da48"
580       ]
581     ]
582   },
583   {
584     "id": "bd7ae6f3.16da48",
585     "type": "outcome",
586     "name": "DeleteSiteInstance",
587     "xml": "<outcome value='DeleteSiteInstance'>",
588     "comments": "",
589     "outputs": 1,
590     "x": 1328.4761848449707,
591     "y": 660.9792203903198,
592     "z": "57051de1.b81bb4",
593     "wires": [
594       [
595         "bad4d35c.1ebd6"
596       ]
597     ]
598   },
599   {
600     "id": "fc244f76.ceda2",
601     "type": "other",
602     "name": "other",
603     "xml": "<outcome value='Other'>\n",
604     "comments": "",
605     "outputs": 1,
606     "x": 1297.380916595459,
607     "y": 752.3572149276733,
608     "z": "57051de1.b81bb4",
609     "wires": [
610       [
611         "fc430959.324e98"
612       ]
613     ]
614   },
615   {
616     "id": "bad4d35c.1ebd6",
617     "type": "call",
618     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-delete",
619     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-delete' mode='sync' >\n",
620     "comments": "",
621     "outputs": 1,
622     "x": 1701.9999885559082,
623     "y": 659.500002861023,
624     "z": "57051de1.b81bb4",
625     "wires": [
626       [
627         
628       ]
629     ]
630   },
631   {
632     "id": "fc430959.324e98",
633     "type": "block",
634     "name": "block",
635     "xml": "<block>\n",
636     "atomic": "false",
637     "comments": "",
638     "outputs": 1,
639     "x": 1437.6664924621582,
640     "y": 753.4136381149292,
641     "z": "57051de1.b81bb4",
642     "wires": [
643       [
644         
645       ]
646     ]
647   }
648 ]