059a8862421730e1d623c4ca1a94e9f10418d92e
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 [
22     {
23         "id": "99bfac0c.66405",
24         "type": "service-logic",
25         "name": "APPC 2.0.0",
26         "module": "APPC",
27         "version": "2.0.0",
28         "comments": "",
29         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",
30         "outputs": 1,
31         "x": 114.75,
32         "y": 78,
33         "z": "551b1552.aae4ec",
34         "wires": [
35             [
36                 "87a31d5f.785ce"
37             ]
38         ]
39     },
40     {
41         "id": "5284c172.ad7b4",
42         "type": "dgstart",
43         "name": "DGSTART",
44         "outputs": 1,
45         "x": 121.75,
46         "y": 28,
47         "z": "551b1552.aae4ec",
48         "wires": [
49             [
50                 "99bfac0c.66405"
51             ]
52         ]
53     },
54     {
55         "id": "b69b6144.4964a",
56         "type": "switchNode",
57         "name": "action",
58         "xml": "<switch test='`$org.openecomp.appc.action`'>\n",
59         "comments": "What method should we try to call. Closely maps to __action__Server()",
60         "outputs": 1,
61         "x": 112.75,
62         "y": 160,
63         "z": "551b1552.aae4ec",
64         "wires": [
65             [
66                 "3c76f1b.fc3890e",
67                 "3bbff8f1.c44008",
68                 "67723fa.f988dc",
69                 "82f997d3.7d0668",
70                 "bb942a8e.446bd8",
71                 "3d16f80b.b81e98"
72             ]
73         ]
74     },
75     {
76         "id": "3c76f1b.fc3890e",
77         "type": "outcome",
78         "name": "restart",
79         "xml": "<outcome value='restart'>\n",
80         "comments": "",
81         "outputs": 1,
82         "x": 267.75,
83         "y": 175,
84         "z": "551b1552.aae4ec",
85         "wires": [
86             [
87                 "f6ee74ac.091188"
88             ]
89         ]
90     },
91     {
92         "id": "3bbff8f1.c44008",
93         "type": "outcome",
94         "name": "rebuild",
95         "xml": "<outcome value='rebuild'>\n",
96         "comments": "",
97         "outputs": 1,
98         "x": 279,
99         "y": 301,
100         "z": "551b1552.aae4ec",
101         "wires": [
102             [
103                 "336f5c4b.cc90a4"
104             ]
105         ]
106     },
107     {
108         "id": "67723fa.f988dc",
109         "type": "other",
110         "name": "Unknown",
111         "xml": "<outcome value='Other'>\n",
112         "comments": "Unknown action provided. Fail",
113         "outputs": 1,
114         "x": 285,
115         "y": 785,
116         "z": "551b1552.aae4ec",
117         "wires": [
118             [
119                 "90b7e545.6f4818"
120             ]
121         ]
122     },
123     {
124         "id": "90b7e545.6f4818",
125         "type": "returnFailure",
126         "name": "Unknown Action",
127         "xml": "<return status='failure'>\n<parameter name='error-code' value='404' />\n<parameter name='error-message' value='Unknown action specified' />\n",
128         "comments": "",
129         "x": 886.5,
130         "y": 785,
131         "z": "551b1552.aae4ec",
132         "wires": []
133     },
134     {
135         "id": "f6ee74ac.091188",
136         "type": "execute",
137         "name": "restartServer()",
138         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
139         "comments": "",
140         "outputs": 1,
141         "x": 430.75,
142         "y": 177,
143         "z": "551b1552.aae4ec",
144         "wires": [
145             [
146                 "3e552093.c1aae",
147                 "df92233b.206de"
148             ]
149         ]
150     },
151     {
152         "id": "3e552093.c1aae",
153         "type": "success",
154         "name": "success",
155         "xml": "<outcome value='success'>\n",
156         "comments": "",
157         "outputs": 1,
158         "x": 579.75,
159         "y": 178,
160         "z": "551b1552.aae4ec",
161         "wires": [
162             [
163                 "60e4194b.9f1be8"
164             ]
165         ]
166     },
167     {
168         "id": "60e4194b.9f1be8",
169         "type": "returnSuccess",
170         "name": "return success",
171         "xml": "<return status='success'>\n",
172         "comments": "",
173         "x": 922.75,
174         "y": 302,
175         "z": "551b1552.aae4ec",
176         "wires": []
177     },
178     {
179         "id": "fda90bc9.0256f8",
180         "type": "returnFailure",
181         "name": "return failure",
182         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
183         "comments": "",
184         "x": 920.75,
185         "y": 478,
186         "z": "551b1552.aae4ec",
187         "wires": []
188     },
189     {
190         "id": "336f5c4b.cc90a4",
191         "type": "execute",
192         "name": "rebuildServer()",
193         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
194         "comments": "",
195         "outputs": 1,
196         "x": 441.75,
197         "y": 302,
198         "z": "551b1552.aae4ec",
199         "wires": [
200             [
201                 "8981943d.767e68",
202                 "444dcc7.fbbb234"
203             ]
204         ]
205     },
206     {
207         "id": "8981943d.767e68",
208         "type": "success",
209         "name": "success",
210         "xml": "<outcome value='success'>\n",
211         "comments": "",
212         "outputs": 1,
213         "x": 591.75,
214         "y": 301,
215         "z": "551b1552.aae4ec",
216         "wires": [
217             [
218                 "60e4194b.9f1be8"
219             ]
220         ]
221     },
222     {
223         "id": "87a31d5f.785ce",
224         "type": "method",
225         "name": "method",
226         "xml": "<method rpc='topology-operation-all' mode='sync'>\n",
227         "comments": "",
228         "outputs": 1,
229         "x": 272.75,
230         "y": 78,
231         "z": "551b1552.aae4ec",
232         "wires": [
233             [
234                 "b69b6144.4964a"
235             ]
236         ]
237     },
238     {
239         "id": "82f997d3.7d0668",
240         "type": "outcome",
241         "name": "migrate",
242         "xml": "<outcome value='migrate'>\n",
243         "comments": "",
244         "outputs": 1,
245         "x": 281.5,
246         "y": 421,
247         "z": "551b1552.aae4ec",
248         "wires": [
249             [
250                 "ae163e95.51e9c"
251             ]
252         ]
253     },
254     {
255         "id": "ae163e95.51e9c",
256         "type": "execute",
257         "name": "migrateServer()",
258         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
259         "comments": "",
260         "outputs": 1,
261         "x": 444.5,
262         "y": 420,
263         "z": "551b1552.aae4ec",
264         "wires": [
265             [
266                 "f18ec542.0e7138",
267                 "4c64d27c.b39b2c"
268             ]
269         ]
270     },
271     {
272         "id": "f18ec542.0e7138",
273         "type": "success",
274         "name": "success",
275         "xml": "<outcome value='success'>\n",
276         "comments": "",
277         "outputs": 1,
278         "x": 600,
279         "y": 420,
280         "z": "551b1552.aae4ec",
281         "wires": [
282             [
283                 "60e4194b.9f1be8"
284             ]
285         ]
286     },
287     {
288         "id": "4c64d27c.b39b2c",
289         "type": "other",
290         "name": "other",
291         "xml": "<outcome value='Other'>\n",
292         "comments": "",
293         "outputs": 1,
294         "x": 596,
295         "y": 460,
296         "z": "551b1552.aae4ec",
297         "wires": [
298             [
299                 "fda90bc9.0256f8"
300             ]
301         ]
302     },
303     {
304         "id": "444dcc7.fbbb234",
305         "type": "other",
306         "name": "other",
307         "xml": "<outcome value='Other'>\n",
308         "comments": "",
309         "outputs": 1,
310         "x": 587.75,
311         "y": 339,
312         "z": "551b1552.aae4ec",
313         "wires": [
314             [
315                 "fda90bc9.0256f8"
316             ]
317         ]
318     },
319     {
320         "id": "84b5bf3d.7b4a4",
321         "type": "other",
322         "name": "other",
323         "xml": "<outcome value='Other'>\n",
324         "comments": "",
325         "outputs": 1,
326         "x": 595,
327         "y": 700,
328         "z": "551b1552.aae4ec",
329         "wires": [
330             [
331                 "b99f0467.4660f8"
332             ]
333         ]
334     },
335     {
336         "id": "84f23c8f.7b0dc",
337         "type": "success",
338         "name": "success",
339         "xml": "<outcome value='success'>\n",
340         "comments": "",
341         "outputs": 1,
342         "x": 598,
343         "y": 664,
344         "z": "551b1552.aae4ec",
345         "wires": [
346             [
347                 "b99f0467.4660f8"
348             ]
349         ]
350     },
351     {
352         "id": "707eb288.8f814c",
353         "type": "execute",
354         "name": "evacuateServer()",
355         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
356         "comments": "",
357         "outputs": 1,
358         "x": 442.5,
359         "y": 664,
360         "z": "551b1552.aae4ec",
361         "wires": [
362             [
363                 "84b5bf3d.7b4a4",
364                 "84f23c8f.7b0dc"
365             ]
366         ]
367     },
368     {
369         "id": "bb942a8e.446bd8",
370         "type": "outcome",
371         "name": "migrate",
372         "xml": "<outcome value='evacuate'>\n",
373         "comments": "",
374         "outputs": 1,
375         "x": 279.5,
376         "y": 665,
377         "z": "551b1552.aae4ec",
378         "wires": [
379             [
380                 "707eb288.8f814c"
381             ]
382         ]
383     },
384     {
385         "id": "df92233b.206de",
386         "type": "failure",
387         "name": "failure",
388         "xml": "<outcome value='failure'>\n",
389         "comments": "",
390         "outputs": 1,
391         "x": 583,
392         "y": 224,
393         "z": "551b1552.aae4ec",
394         "wires": [
395             [
396                 "fda90bc9.0256f8"
397             ]
398         ]
399     },
400     {
401         "id": "b99f0467.4660f8",
402         "type": "returnFailure",
403         "name": "Not Yet Implemented",
404         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
405         "comments": "",
406         "x": 898,
407         "y": 683,
408         "z": "551b1552.aae4ec",
409         "wires": []
410     },
411     {
412         "id": "3d16f80b.b81e98",
413         "type": "outcome",
414         "name": "snapshot",
415         "xml": "<outcome value='snapshot'>\n",
416         "comments": "",
417         "outputs": 1,
418         "x": 282,
419         "y": 533,
420         "z": "551b1552.aae4ec",
421         "wires": [
422             [
423                 "7b8aa37e.280c6c"
424             ]
425         ]
426     },
427     {
428         "id": "7b8aa37e.280c6c",
429         "type": "execute",
430         "name": "createSnapshot()",
431         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
432         "comments": "",
433         "outputs": 1,
434         "x": 445,
435         "y": 532,
436         "z": "551b1552.aae4ec",
437         "wires": [
438             [
439                 "b2fdd324.e7734",
440                 "72f58d9a.ca2144"
441             ]
442         ]
443     },
444     {
445         "id": "b2fdd324.e7734",
446         "type": "success",
447         "name": "success",
448         "xml": "<outcome value='success'>\n",
449         "comments": "",
450         "outputs": 1,
451         "x": 600.5,
452         "y": 532,
453         "z": "551b1552.aae4ec",
454         "wires": [
455             [
456                 "60e4194b.9f1be8"
457             ]
458         ]
459     },
460     {
461         "id": "72f58d9a.ca2144",
462         "type": "other",
463         "name": "other",
464         "xml": "<outcome value='Other'>\n",
465         "comments": "",
466         "outputs": 1,
467         "x": 596.5,
468         "y": 572,
469         "z": "551b1552.aae4ec",
470         "wires": [
471             [
472                 "fda90bc9.0256f8"
473             ]
474         ]
475     },
476     {
477         "id": "7fee971b.b82fe8",
478         "type": "success",
479         "name": "success",
480         "xml": "<outcome value='success'>\n",
481         "comments": "",
482         "outputs": 1,
483         "x": 962,
484         "y": 556,
485         "z": "551b1552.aae4ec",
486         "wires": [
487             [
488                 "fba5b0ee.57367"
489             ]
490         ]
491     },
492     {
493         "id": "fba5b0ee.57367",
494         "type": "returnSuccess",
495         "name": "return success",
496         "xml": "<return status='success'>\n",
497         "comments": "",
498         "x": 1275,
499         "y": 617,
500         "z": "551b1552.aae4ec",
501         "wires": []
502     },
503     {
504         "id": "c6eec239.65f49",
505         "type": "returnFailure",
506         "name": "return failure",
507         "xml": "<return status='failure'>\n<!--\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='failed' />\n-->",
508         "comments": "",
509         "x": 1285,
510         "y": 812,
511         "z": "551b1552.aae4ec",
512         "wires": []
513     },
514     {
515         "id": "aebd3b77.717c8",
516         "type": "success",
517         "name": "success",
518         "xml": "<outcome value='success'>\n",
519         "comments": "",
520         "outputs": 1,
521         "x": 974,
522         "y": 679,
523         "z": "551b1552.aae4ec",
524         "wires": [
525             [
526                 "fba5b0ee.57367"
527             ]
528         ]
529     },
530     {
531         "id": "61570f13.03e13",
532         "type": "outcome",
533         "name": "migrate",
534         "xml": "<outcome value='migrate'>\n",
535         "comments": "",
536         "outputs": 1,
537         "x": 663.75,
538         "y": 799,
539         "z": "551b1552.aae4ec",
540         "wires": [
541             [
542                 "4b9dc5bd.fed9ac"
543             ]
544         ]
545     },
546     {
547         "id": "4b9dc5bd.fed9ac",
548         "type": "execute",
549         "name": "migrateServer()",
550         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
551         "comments": "",
552         "outputs": 1,
553         "x": 826.75,
554         "y": 798,
555         "z": "551b1552.aae4ec",
556         "wires": [
557             [
558                 "54315afb.9b2a34",
559                 "1a5da1c6.c6a002"
560             ]
561         ]
562     },
563     {
564         "id": "54315afb.9b2a34",
565         "type": "success",
566         "name": "success",
567         "xml": "<outcome value='success'>\n",
568         "comments": "",
569         "outputs": 1,
570         "x": 982.25,
571         "y": 798,
572         "z": "551b1552.aae4ec",
573         "wires": [
574             [
575                 "fba5b0ee.57367"
576             ]
577         ]
578     },
579     {
580         "id": "1a5da1c6.c6a002",
581         "type": "other",
582         "name": "other",
583         "xml": "<outcome value='Other'>\n",
584         "comments": "",
585         "outputs": 1,
586         "x": 978.25,
587         "y": 838,
588         "z": "551b1552.aae4ec",
589         "wires": [
590             [
591                 "c6eec239.65f49"
592             ]
593         ]
594     },
595     {
596         "id": "15e18db0.b27eda",
597         "type": "other",
598         "name": "other",
599         "xml": "<outcome value='Other'>\n",
600         "comments": "",
601         "outputs": 1,
602         "x": 970,
603         "y": 717,
604         "z": "551b1552.aae4ec",
605         "wires": [
606             [
607                 "c6eec239.65f49"
608             ]
609         ]
610     },
611     {
612         "id": "b92b57bc.074df8",
613         "type": "other",
614         "name": "other",
615         "xml": "<outcome value='Other'>\n",
616         "comments": "",
617         "outputs": 1,
618         "x": 979.25,
619         "y": 954,
620         "z": "551b1552.aae4ec",
621         "wires": [
622             [
623                 "f2833507.0f2148"
624             ]
625         ]
626     },
627     {
628         "id": "d669863.db192b8",
629         "type": "success",
630         "name": "success",
631         "xml": "<outcome value='success'>\n",
632         "comments": "",
633         "outputs": 1,
634         "x": 982.25,
635         "y": 918,
636         "z": "551b1552.aae4ec",
637         "wires": [
638             [
639                 "f2833507.0f2148"
640             ]
641         ]
642     },
643     {
644         "id": "69143893.52d5d",
645         "type": "execute",
646         "name": "evacuateServer()",
647         "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$org.openecomp.appc.vmid`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$org.openecomp.appc.identity.url`\" />",
648         "comments": "",
649         "outputs": 1,
650         "x": 826.75,
651         "y": 918,
652         "z": "551b1552.aae4ec",
653         "wires": [
654             [
655                 "d669863.db192b8",
656                 "b92b57bc.074df8"
657             ]
658         ]
659     },
660     {
661         "id": "8e670719.e182d8",
662         "type": "outcome",
663         "name": "migrate",
664         "xml": "<outcome value='evacuate'>\n",
665         "comments": "",
666         "outputs": 1,
667         "x": 663.75,
668         "y": 919,
669         "z": "551b1552.aae4ec",
670         "wires": [
671             [
672                 "69143893.52d5d"
673             ]
674         ]
675     },
676     {
677         "id": "15ac686f.889474",
678         "type": "failure",
679         "name": "failure",
680         "xml": "<outcome value='failure'>\n",
681         "comments": "",
682         "outputs": 1,
683         "x": 965.25,
684         "y": 602,
685         "z": "551b1552.aae4ec",
686         "wires": [
687             [
688                 "c6eec239.65f49"
689             ]
690         ]
691     },
692     {
693         "id": "f2833507.0f2148",
694         "type": "returnFailure",
695         "name": "Not Yet Implemented",
696         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='This action is not yet implemented' />\n",
697         "comments": "",
698         "x": 1282.25,
699         "y": 937,
700         "z": "551b1552.aae4ec",
701         "wires": []
702     }
703 ]