blob: e29c9e4cbf99a1c2dbb2dd98c1d24f0754a563ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<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'><method rpc='topology-operation-all' mode='sync'>
<!--What method should we try to call. Closely maps to __action__Server()--><switch test='`$org.openecomp.appc.action`'>
<outcome value='restart'>
<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restartServer'>
<parameter name="org.openecomp.appc.provider.name" value="OpenStack" />
<parameter name="org.openecomp.appc.instance.url" value="`$org.openecomp.appc.vmid`" />
<parameter name="org.openecomp.appc.identity.url" value="`$org.openecomp.appc.identity.url`" /><outcome value='success'>
<return status='success'>
</return></outcome><outcome value='failure'>
<return status='failure'>
<!--
<parameter name='error-code' value='500' />
<parameter name='error-message' value='failed' />
--></return></outcome></execute></outcome><outcome value='rebuild'>
<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>
<parameter name="org.openecomp.appc.provider.name" value="OpenStack" />
<parameter name="org.openecomp.appc.instance.url" value="`$org.openecomp.appc.vmid`" />
<parameter name="org.openecomp.appc.identity.url" value="`$org.openecomp.appc.identity.url`" /><outcome value='success'>
<return status='success'>
</return></outcome><outcome value='Other'>
<return status='failure'>
<!--
<parameter name='error-code' value='500' />
<parameter name='error-message' value='failed' />
--></return></outcome></execute></outcome><outcome value='migrate'>
<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='migrateServer'>
<parameter name="org.openecomp.appc.provider.name" value="OpenStack" />
<parameter name="org.openecomp.appc.instance.url" value="`$org.openecomp.appc.vmid`" />
<parameter name="org.openecomp.appc.identity.url" value="`$org.openecomp.appc.identity.url`" /><outcome value='success'>
<return status='success'>
</return></outcome><outcome value='Other'>
<return status='failure'>
<!--
<parameter name='error-code' value='500' />
<parameter name='error-message' value='failed' />
--></return></outcome></execute></outcome><outcome value='snapshot'>
<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>
<parameter name="org.openecomp.appc.provider.name" value="OpenStack" />
<parameter name="org.openecomp.appc.instance.url" value="`$org.openecomp.appc.vmid`" />
<parameter name="org.openecomp.appc.identity.url" value="`$org.openecomp.appc.identity.url`" /><outcome value='success'>
<return status='success'>
</return></outcome><outcome value='Other'>
<return status='failure'>
<!--
<parameter name='error-code' value='500' />
<parameter name='error-message' value='failed' />
--></return></outcome></execute></outcome><outcome value='evacuate'>
<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>
<parameter name="org.openecomp.appc.provider.name" value="OpenStack" />
<parameter name="org.openecomp.appc.instance.url" value="`$org.openecomp.appc.vmid`" />
<parameter name="org.openecomp.appc.identity.url" value="`$org.openecomp.appc.identity.url`" /><outcome value='success'>
<return status='failure'>
<parameter name='error-code' value='500' />
<parameter name='error-message' value='This action is not yet implemented' />
</return></outcome><outcome value='Other'>
<return status='failure'>
<parameter name='error-code' value='500' />
<parameter name='error-message' value='This action is not yet implemented' />
</return></outcome></execute></outcome><!--Unknown action provided. Fail--><outcome value='Other'>
<return status='failure'>
<parameter name='error-code' value='404' />
<parameter name='error-message' value='Unknown action specified' />
</return></outcome><outcome value='modifyConfig'>
<block>
<execute plugin='org.openecomp.appc.adapter.rest.RestAdapter' method='commonDelete' >
<parameter name='org.openecomp.appc.instance.URI' value='`$org.openecomp.appc.configURL`'/>
<parameter name='org.openecomp.appc.instance.haveHeader' value='false'/>
</execute><execute plugin='org.openecomp.appc.adapter.rest.RestAdapter' method='commonPut' >
<parameter name='org.openecomp.appc.instance.URI' value='`$org.openecomp.appc.configURL`'/>
<parameter name='org.openecomp.appc.instance.requestBody' value='`$org.openecomp.appc.configJson`'/>
<parameter name='org.openecomp.appc.instance.headers' value='{"Content-type":"application/json"}'/>
<parameter name='org.openecomp.appc.instance.haveHeader' value='true'/><outcome value='success'>
<return status='success'>
</return></outcome><outcome value='Other'>
<return status='success'>
</return></outcome></execute></block></outcome></switch></method></service-logic>
|