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