SOTN siteInstance DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation.json
1 [
2   {
3     "id": "41d1eb7e.d42df4",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 132,
8     "y": 174.4136562347412,
9     "z": "4375a986.58da58",
10     "wires": [
11       [
12         "b80f4569.cfd668"
13       ]
14     ]
15   },
16   {
17     "id": "b80f4569.cfd668",
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": 207.28570556640625,
26     "y": 214.6517677307129,
27     "z": "4375a986.58da58",
28     "wires": [
29       [
30         "ce452a31.2d7d48"
31       ]
32     ]
33   },
34   {
35     "id": "ce452a31.2d7d48",
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": 200.42862701416016,
42     "y": 254.4136505126953,
43     "z": "4375a986.58da58",
44     "wires": [
45       [
46         "fddedb90.e69728"
47       ]
48     ]
49   },
50   {
51     "id": "8ff57105.db631",
52     "type": "comment",
53     "name": "vnf-topology-operation",
54     "info": "",
55     "comments": "",
56     "x": 526.344856262207,
57     "y": 122,
58     "z": "4375a986.58da58",
59     "wires": []
60   },
61   {
62     "id": "fddedb90.e69728",
63     "type": "block",
64     "name": "block : atomic",
65     "xml": "<block atomic=\"true\">",
66     "atomic": "true",
67     "outputs": 1,
68     "x": 216.16676330566406,
69     "y": 441.10718727111816,
70     "z": "4375a986.58da58",
71     "wires": [
72       [
73         "ac9bf788.c56fa8",
74         "88cf203d.250b4",
75         "2346097e.a3b566"
76       ]
77     ]
78   },
79   {
80     "id": "ac9bf788.c56fa8",
81     "type": "returnSuccess",
82     "name": "return success",
83     "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",
84     "comments": "",
85     "x": 508.6667175292969,
86     "y": 591.2712202072144,
87     "z": "4375a986.58da58",
88     "wires": []
89   },
90   {
91     "id": "88cf203d.250b4",
92     "type": "switchNode",
93     "name": "switch svc-action",
94     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
95     "comments": "",
96     "outputs": 1,
97     "x": 511.5714340209961,
98     "y": 439.31843090057373,
99     "z": "4375a986.58da58",
100     "wires": [
101       [
102         "b29425ac.0e6b88",
103         "efa0b97f.2c8418",
104         "a699d525.8a5fb8",
105         "4c0d9e23.ae0fa",
106         "7e03d2fb.a3855c",
107         "c854e634.dbefd8",
108         "97cbf81.e321b08"
109       ]
110     ]
111   },
112   {
113     "id": "b29425ac.0e6b88",
114     "type": "outcome",
115     "name": "assign",
116     "xml": "<outcome value='assign'>\n",
117     "comments": "",
118     "outputs": 1,
119     "x": 923.3809661865234,
120     "y": 149.93756771087646,
121     "z": "4375a986.58da58",
122     "wires": [
123       [
124         "ecd39eee.bd2f6"
125       ]
126     ]
127   },
128   {
129     "id": "efa0b97f.2c8418",
130     "type": "outcome",
131     "name": "unassign",
132     "xml": "<outcome value='unassign'>\n",
133     "comments": "",
134     "outputs": 1,
135     "x": 939.4286308288574,
136     "y": 580.1282825469971,
137     "z": "4375a986.58da58",
138     "wires": [
139       [
140         "91a6f5ca.5e21e8"
141       ]
142     ]
143   },
144   {
145     "id": "4c0d9e23.ae0fa",
146     "type": "other",
147     "name": "other",
148     "xml": "<outcome value='Other'>\n",
149     "comments": "",
150     "outputs": 1,
151     "x": 928.1428680419922,
152     "y": 960.3183660507202,
153     "z": "4375a986.58da58",
154     "wires": [
155       [
156         "b067ec27.e84b4"
157       ]
158     ]
159   },
160   {
161     "id": "b067ec27.e84b4",
162     "type": "returnFailure",
163     "name": "return failure",
164     "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",
165     "comments": "",
166     "x": 1161.3332977294922,
167     "y": 960.3184270858765,
168     "z": "4375a986.58da58",
169     "wires": []
170   },
171   {
172     "id": "2346097e.a3b566",
173     "type": "call",
174     "name": "call GENERIC-RESOURCE-API:validate-vnf-input",
175     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",
176     "comments": "",
177     "outputs": 1,
178     "x": 617.4166870117188,
179     "y": 330.79471588134766,
180     "z": "4375a986.58da58",
181     "wires": [
182       []
183     ]
184   },
185   {
186     "id": "ecd39eee.bd2f6",
187     "type": "call",
188     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-assign",
189     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign' mode='sync' >\n",
190     "comments": "",
191     "outputs": 1,
192     "x": 1265.5238189697266,
193     "y": 149.50902843475342,
194     "z": "4375a986.58da58",
195     "wires": [
196       []
197     ]
198   },
199   {
200     "id": "960e9019.0d07b",
201     "type": "call",
202     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",
203     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",
204     "comments": "",
205     "outputs": 1,
206     "x": 1746.8571319580078,
207     "y": 492.84235858917236,
208     "z": "4375a986.58da58",
209     "wires": [
210       []
211     ]
212   },
213   {
214     "id": "91a6f5ca.5e21e8",
215     "type": "call",
216     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",
217     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",
218     "comments": "",
219     "outputs": 1,
220     "x": 1284.5237274169922,
221     "y": 579.8424139022827,
222     "z": "4375a986.58da58",
223     "wires": [
224       []
225     ]
226   },
227   {
228     "id": "a699d525.8a5fb8",
229     "type": "outcome",
230     "name": "deactivate",
231     "xml": "<outcome value='deactivate'>\n",
232     "comments": "",
233     "outputs": 1,
234     "x": 946.5237579345703,
235     "y": 435.5090456008911,
236     "z": "4375a986.58da58",
237     "wires": [
238       [
239         "65d7cc2b.f72464"
240       ]
241     ]
242   },
243   {
244     "id": "a260cf56.f0217",
245     "type": "call",
246     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",
247     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",
248     "comments": "",
249     "outputs": 1,
250     "x": 1728.666763305664,
251     "y": 313.4136724472046,
252     "z": "4375a986.58da58",
253     "wires": [
254       []
255     ]
256   },
257   {
258     "id": "7e03d2fb.a3855c",
259     "type": "outcome",
260     "name": "activate",
261     "xml": "<outcome value='activate'>\n",
262     "comments": "",
263     "outputs": 1,
264     "x": 926.3333053588867,
265     "y": 241.08033561706543,
266     "z": "4375a986.58da58",
267     "wires": [
268       [
269         "cb9db39e.3efd"
270       ]
271     ]
272   },
273   {
274     "id": "c854e634.dbefd8",
275     "type": "outcome",
276     "name": "create",
277     "xml": "<outcome value='create'>\n",
278     "comments": "",
279     "outputs": 1,
280     "x": 941.0001182556152,
281     "y": 680.5000038146973,
282     "z": "4375a986.58da58",
283     "wires": [
284       [
285         "32894e90.6b0c32"
286       ]
287     ]
288   },
289   {
290     "id": "97cbf81.e321b08",
291     "type": "outcome",
292     "name": "delete",
293     "xml": "<outcome value='delete'>\n",
294     "comments": "",
295     "outputs": 1,
296     "x": 939.0001068115234,
297     "y": 823.5000066757202,
298     "z": "4375a986.58da58",
299     "wires": [
300       [
301         "6dc15b04.91f744"
302       ]
303     ]
304   },
305   {
306     "id": "7bb307b0.304958",
307     "type": "switchNode",
308     "name": "switch request-action",
309     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
310     "comments": "",
311     "outputs": 1,
312     "x": 1168.0000762939453,
313     "y": 291.5000123977661,
314     "z": "4375a986.58da58",
315     "wires": [
316       [
317         "c9e81f54.ac68b",
318         "d05da9c5.f500d8"
319       ]
320     ]
321   },
322   {
323     "id": "d05da9c5.f500d8",
324     "type": "outcome",
325     "name": "ActivateSiteInstance",
326     "xml": "<outcome value='ActivateSiteInstance'>",
327     "comments": "",
328     "outputs": 1,
329     "x": 1381.4762725830078,
330     "y": 222.979229927063,
331     "z": "4375a986.58da58",
332     "wires": [
333       [
334         "4a2d9e9d.93099"
335       ]
336     ]
337   },
338   {
339     "id": "c9e81f54.ac68b",
340     "type": "other",
341     "name": "other",
342     "xml": "<outcome value='Other'>\n",
343     "comments": "",
344     "outputs": 1,
345     "x": 1350.381004333496,
346     "y": 314.3572244644165,
347     "z": "4375a986.58da58",
348     "wires": [
349       [
350         "a260cf56.f0217"
351       ]
352     ]
353   },
354   {
355     "id": "cb9db39e.3efd",
356     "type": "block",
357     "name": "block : atomic",
358     "xml": "<block atomic=\"true\">",
359     "atomic": "true",
360     "outputs": 1,
361     "x": 1107.0000762939453,
362     "y": 236.5000123977661,
363     "z": "4375a986.58da58",
364     "wires": [
365       [
366         "7bb307b0.304958"
367       ]
368     ]
369   },
370   {
371     "id": "4a2d9e9d.93099",
372     "type": "call",
373     "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-activate",
374     "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-activate' mode='sync' >\n",
375     "comments": "",
376     "outputs": 1,
377     "x": 1755.0000762939453,
378     "y": 221.5000123977661,
379     "z": "4375a986.58da58",
380     "wires": [
381       []
382     ]
383   },
384   {
385     "id": "fef45f01.3fce6",
386     "type": "switchNode",
387     "name": "switch request-action",
388     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
389     "comments": "",
390     "outputs": 1,
391     "x": 1209.0000762939453,
392     "y": 468.5000123977661,
393     "z": "4375a986.58da58",
394     "wires": [
395       [
396         "f6ce8f15.087c8",
397         "6a7a4689.125ee8"
398       ]
399     ]
400   },
401   {
402     "id": "6a7a4689.125ee8",
403     "type": "outcome",
404     "name": "DeactivateSiteInstance",
405     "xml": "<outcome value='DeactivateSiteInstance'>",
406     "comments": "",
407     "outputs": 1,
408     "x": 1422.4762725830078,
409     "y": 399.979229927063,
410     "z": "4375a986.58da58",
411     "wires": [
412       [
413         "b4232a97.fef598"
414       ]
415     ]
416   },
417   {
418     "id": "f6ce8f15.087c8",
419     "type": "other",
420     "name": "other",
421     "xml": "<outcome value='Other'>\n",
422     "comments": "",
423     "outputs": 1,
424     "x": 1391.381004333496,
425     "y": 491.3572244644165,
426     "z": "4375a986.58da58",
427     "wires": [
428       [
429         "960e9019.0d07b"
430       ]
431     ]
432   },
433   {
434     "id": "65d7cc2b.f72464",
435     "type": "block",
436     "name": "block : atomic",
437     "xml": "<block atomic=\"true\">",
438     "atomic": "true",
439     "outputs": 1,
440     "x": 1148.0000762939453,
441     "y": 413.5000123977661,
442     "z": "4375a986.58da58",
443     "wires": [
444       [
445         "fef45f01.3fce6"
446       ]
447     ]
448   },
449   {
450     "id": "b4232a97.fef598",
451     "type": "call",
452     "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-deactivate",
453     "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-deactivate' mode='sync' >\n",
454     "comments": "",
455     "outputs": 1,
456     "x": 1792.0000762939453,
457     "y": 397.5000123977661,
458     "z": "4375a986.58da58",
459     "wires": [
460       []
461     ]
462   },
463   {
464     "id": "49a6d604.e73918",
465     "type": "switchNode",
466     "name": "switch request-action",
467     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
468     "comments": "",
469     "outputs": 1,
470     "x": 1184.3336029052734,
471     "y": 733.086371421814,
472     "z": "4375a986.58da58",
473     "wires": [
474       [
475         "92af337f.f9091",
476         "2260291f.e97ce6"
477       ]
478     ]
479   },
480   {
481     "id": "2260291f.e97ce6",
482     "type": "outcome",
483     "name": "CreateSiteInstance",
484     "xml": "<outcome value='CreateSiteInstance'>",
485     "comments": "",
486     "outputs": 1,
487     "x": 1397.809799194336,
488     "y": 664.5655889511108,
489     "z": "4375a986.58da58",
490     "wires": [
491       [
492         "a7e96e7.da3759"
493       ]
494     ]
495   },
496   {
497     "id": "92af337f.f9091",
498     "type": "other",
499     "name": "other",
500     "xml": "<outcome value='Other'>\n",
501     "comments": "",
502     "outputs": 1,
503     "x": 1366.7145309448242,
504     "y": 755.9435834884644,
505     "z": "4375a986.58da58",
506     "wires": [
507       [
508         "7a7968b7.86bdd8"
509       ]
510     ]
511   },
512   {
513     "id": "32894e90.6b0c32",
514     "type": "block",
515     "name": "block : atomic",
516     "xml": "<block atomic=\"true\">",
517     "atomic": "true",
518     "outputs": 1,
519     "x": 1123.3336029052734,
520     "y": 678.086371421814,
521     "z": "4375a986.58da58",
522     "wires": [
523       [
524         "49a6d604.e73918"
525       ]
526     ]
527   },
528   {
529     "id": "a7e96e7.da3759",
530     "type": "call",
531     "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-create",
532     "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-create' mode='sync' >\n",
533     "comments": "",
534     "outputs": 1,
535     "x": 1771.3336029052734,
536     "y": 663.086371421814,
537     "z": "4375a986.58da58",
538     "wires": [
539       []
540     ]
541   },
542   {
543     "id": "7a7968b7.86bdd8",
544     "type": "block",
545     "name": "block",
546     "xml": "<block>\n",
547     "atomic": "false",
548     "comments": "",
549     "outputs": 1,
550     "x": 1507.0001068115234,
551     "y": 757.0000066757202,
552     "z": "4375a986.58da58",
553     "wires": [
554       []
555     ]
556   },
557   {
558     "id": "20f9ae9c.019342",
559     "type": "switchNode",
560     "name": "switch request-action",
561     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
562     "comments": "",
563     "outputs": 1,
564     "x": 1185.0001068115234,
565     "y": 876.0000066757202,
566     "z": "4375a986.58da58",
567     "wires": [
568       [
569         "91de147a.222508",
570         "74446a5b.f474e4"
571       ]
572     ]
573   },
574   {
575     "id": "74446a5b.f474e4",
576     "type": "outcome",
577     "name": "DeleteSiteInstance",
578     "xml": "<outcome value='DeleteSiteInstance'>",
579     "comments": "",
580     "outputs": 1,
581     "x": 1398.476303100586,
582     "y": 807.4792242050171,
583     "z": "4375a986.58da58",
584     "wires": [
585       [
586         "553676c.1a72488"
587       ]
588     ]
589   },
590   {
591     "id": "91de147a.222508",
592     "type": "other",
593     "name": "other",
594     "xml": "<outcome value='Other'>\n",
595     "comments": "",
596     "outputs": 1,
597     "x": 1367.3810348510742,
598     "y": 898.8572187423706,
599     "z": "4375a986.58da58",
600     "wires": [
601       [
602         "55eb587b.78c2a8"
603       ]
604     ]
605   },
606   {
607     "id": "6dc15b04.91f744",
608     "type": "block",
609     "name": "block : atomic",
610     "xml": "<block atomic=\"true\">",
611     "atomic": "true",
612     "outputs": 1,
613     "x": 1124.0001068115234,
614     "y": 821.0000066757202,
615     "z": "4375a986.58da58",
616     "wires": [
617       [
618         "20f9ae9c.019342"
619       ]
620     ]
621   },
622   {
623     "id": "553676c.1a72488",
624     "type": "call",
625     "name": "call GENERIC-RESOURCE-API:site-vnf-topology-operation-delete",
626     "xml": "<call module='GENERIC-RESOURCE-API' rpc='site-vnf-topology-operation-delete' mode='sync' >\n",
627     "comments": "",
628     "outputs": 1,
629     "x": 1772.0001068115234,
630     "y": 806.0000066757202,
631     "z": "4375a986.58da58",
632     "wires": [
633       []
634     ]
635   },
636   {
637     "id": "55eb587b.78c2a8",
638     "type": "block",
639     "name": "block",
640     "xml": "<block>\n",
641     "atomic": "false",
642     "comments": "",
643     "outputs": 1,
644     "x": 1507.6666107177734,
645     "y": 899.9136419296265,
646     "z": "4375a986.58da58",
647     "wires": [
648       []
649     ]
650   }
651 ]