45ec5b9950d0d2a702ae43c6fbadef9a4dbc48fe
[appc/deployment.git] / platform-logic / appc / src / main / json / APPC_ansible-adapter-1.0.json
1 [
2   {
3     "id": "7bf7da57.3da1c4",
4     "type": "method",
5     "name": "ansible-adapter-1.0",
6     "xml": "<method rpc='ansible-adapter-1.0' mode='sync'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 364,
10     "y": 69,
11     "z": "b542ee98.8e312",
12     "wires": [
13       [
14         "16608a2e.c8019e"
15       ]
16     ]
17   },
18   {
19     "id": "51e78fba.f0a328",
20     "type": "service-logic",
21     "name": "APPC 2.0.1",
22     "module": "APPC",
23     "version": "2.0.1",
24     "comments": "",
25     "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.1'>",
26     "outputs": 1,
27     "x": 155,
28     "y": 147,
29     "z": "b542ee98.8e312",
30     "wires": [
31       [
32         "7bf7da57.3da1c4"
33       ]
34     ]
35   },
36   {
37     "id": "8d1e806.c53808",
38     "type": "returnFailure",
39     "name": "return failure",
40     "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />",
41     "comments": "",
42     "x": 1122.142822265625,
43     "y": 67.99999237060547,
44     "z": "b542ee98.8e312",
45     "wires": []
46   },
47   {
48     "id": "16608a2e.c8019e",
49     "type": "execute",
50     "name": "execute",
51     "xml": "<execute plugin='org.onap.appc.adapter.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$AgentUrl`'/>\n  <parameter name='User' value='`$User`'/>\n                        <parameter name='Password' value='`$Password`'/>\n                        <parameter name='LocalParameters' value='`$LocalParameters`'/>\n                        <parameter name='EnvParameters' value='`$EnvParameters`'/>\n                        <parameter name='FileParameters' value='`$FileParameters`'/>\n                        <parameter name='AutoNodeList' value='`$AutoNodeList`'/>\n                        <parameter name='NodeList' value='`$NodeList`'/>\n                        <parameter name='Timeout' value='`$Timeout`'/>\n                        <parameter name='Version' value='`$Version`'/>\n                        <parameter name='InventoryNames' value='`$InventoryNames`'/>\n                        <parameter name='PlaybookName' value='`$PlaybookName`'/>\n                        <parameter name='Action' value='`$Action`'/>\n                        <parameter name='vnfc-name' value='`$request-parameters.vnfc-name`'/>\n                        <parameter name='vnfc-type' value='`$request-parameters.vnfc-type`'/>\n                        <parameter name='vserver-id' value='`$request-parameters.vserver-id`'/>\n                        <parameter name='vf-module-id' value='`$request-parameters.vf-module-id`'/>\n",
52     "comments": "",
53     "outputs": 1,
54     "x": 569,
55     "y": 67,
56     "z": "b542ee98.8e312",
57     "wires": [
58       [
59         "d9cc3d9f.aac2d8",
60         "14bd2fff.6686e8"
61       ]
62     ]
63   },
64   {
65     "id": "ba12f2b.bdd719",
66     "type": "switchNode",
67     "name": "switch",
68     "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
69     "comments": "",
70     "outputs": 1,
71     "x": 359,
72     "y": 228,
73     "z": "b542ee98.8e312",
74     "wires": [
75       [
76         "be58dd22.f76ca8",
77         "9a080acd.94f5a8"
78       ]
79     ]
80   },
81   {
82     "id": "be58dd22.f76ca8",
83     "type": "other",
84     "name": "outcome",
85     "xml": "<outcome value='500'>\n",
86     "comments": "",
87     "outputs": 1,
88     "x": 546,
89     "y": 228,
90     "z": "b542ee98.8e312",
91     "wires": [
92       [
93         "dae941c0.963348"
94       ]
95     ]
96   },
97   {
98     "id": "9a080acd.94f5a8",
99     "type": "other",
100     "name": "outcome",
101     "xml": "<outcome value='100'>\n",
102     "comments": "",
103     "outputs": 1,
104     "x": 183,
105     "y": 316,
106     "z": "b542ee98.8e312",
107     "wires": [
108       [
109         "9e3bd7b.ca9e528"
110       ]
111     ]
112   },
113   {
114     "id": "9e3bd7b.ca9e528",
115     "type": "execute",
116     "name": "execute",
117     "xml": "<execute plugin='org.onap.appc.adapter.ansible.AnsibleAdapter' method='reqExecResult' >\n   <parameter name='message' value='`$org.onap.appc.adapter.ansible.message`'/>\n   <parameter name='code' value='$org.onap.appc.adapter.ansible.result.code`'/>\n   <parameter name='AgentUrl' value='`$AgentUrl`'/>\n   <parameter name='User' value='`$User`'/>\n   <parameter name='Password' value='`$Password`'/>\n   <parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n",
118     "comments": "",
119     "outputs": 1,
120     "x": 361,
121     "y": 315,
122     "z": "b542ee98.8e312",
123     "wires": [
124       [
125         "abbb14c.b93d5e8",
126         "976d4e79.c90208"
127       ]
128     ]
129   },
130   {
131     "id": "d9cc3d9f.aac2d8",
132     "type": "failure",
133     "name": "failure",
134     "xml": "<outcome value='failure'>\n",
135     "comments": "",
136     "outputs": 1,
137     "x": 823,
138     "y": 68,
139     "z": "b542ee98.8e312",
140     "wires": [
141       [
142         "8d1e806.c53808"
143       ]
144     ]
145   },
146   {
147     "id": "14bd2fff.6686e8",
148     "type": "other",
149     "name": "other",
150     "xml": "<outcome value='Other'>\n",
151     "comments": "",
152     "outputs": 1,
153     "x": 182,
154     "y": 229,
155     "z": "b542ee98.8e312",
156     "wires": [
157       [
158         "ba12f2b.bdd719"
159       ]
160     ]
161   },
162   {
163     "id": "abbb14c.b93d5e8",
164     "type": "failure",
165     "name": "failure",
166     "xml": "<outcome value='failure'>\n",
167     "comments": "",
168     "outputs": 1,
169     "x": 551,
170     "y": 316,
171     "z": "b542ee98.8e312",
172     "wires": [
173       [
174         "dae941c0.963348"
175       ]
176     ]
177   },
178   {
179     "id": "976d4e79.c90208",
180     "type": "success",
181     "name": "success",
182     "xml": "<outcome value='success'>\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 549,
186     "y": 385,
187     "z": "b542ee98.8e312",
188     "wires": [
189       [
190         "46cf1c4a.fd5ebc"
191       ]
192     ]
193   },
194   {
195     "id": "fd6d2e88.86c9a",
196     "type": "dgstart",
197     "name": "DGSTART",
198     "outputs": 1,
199     "x": 133,
200     "y": 47,
201     "z": "b542ee98.8e312",
202     "wires": [
203       [
204         "51e78fba.f0a328"
205       ]
206     ]
207   },
208   {
209     "id": "dae941c0.963348",
210     "type": "returnFailure",
211     "name": "return failure",
212     "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='output.status.results' value='`$org.onap.appc.adapter.ansible.results`' />\n",
213     "comments": "",
214     "x": 1126.7855224609375,
215     "y": 328.2143249511719,
216     "z": "b542ee98.8e312",
217     "wires": []
218   },
219   {
220     "id": "46cf1c4a.fd5ebc",
221     "type": "set",
222     "name": "set",
223     "xml": "<set>\n<parameter name='output.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='output.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='output.status.results' value = '`$org.onap.appc.adapter.ansible.results`'/>\n",
224     "comments": "",
225     "x": 1106.78564453125,
226     "y": 479.64276123046875,
227     "z": "b542ee98.8e312",
228     "wires": []
229   }
230 ]