Support playbook-name in payload of PNF S/W upgrade LCM API's request
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_rollback.json
1 [\r
2     {\r
3         "id": "22644446.031e2c",\r
4         "type": "method",\r
5         "name": "rollback",\r
6         "xml": "<method rpc='rollback' mode='sync'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 567.5,\r
10         "y": 73.75,\r
11         "z": "369f92b4.305cce",\r
12         "wires": [\r
13             [\r
14                 "79b7cec0.5cb7d"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "f17bcbcb.0eb2c8",\r
20         "type": "service-logic",\r
21         "name": "LCM ${project.version}",\r
22         "module": "LCM",\r
23         "version": "${project.version}",\r
24         "comments": "",\r
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='LCM' version='${project.version}'>",\r
26         "outputs": 1,\r
27         "x": 355.49993896484375,\r
28         "y": 74.75,\r
29         "z": "369f92b4.305cce",\r
30         "wires": [\r
31             [\r
32                 "22644446.031e2c"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "f9678654.f75948",\r
38         "type": "execute",\r
39         "name": "execute AnsibleA.reqExec",\r
40         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$rollback-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",\r
41         "comments": "",\r
42         "outputs": 1,\r
43         "x": 469.50001525878906,\r
44         "y": 720.75,\r
45         "z": "369f92b4.305cce",\r
46         "wires": [\r
47             [\r
48                 "30da80ae.d9fb4",\r
49                 "4fe2be8b.9f8b9",\r
50                 "29b2f38.ce75c0c"\r
51             ]\r
52         ]\r
53     },\r
54     {\r
55         "id": "db88e5a7.4dcf28",\r
56         "type": "switchNode",\r
57         "name": "switch",\r
58         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
59         "comments": "",\r
60         "outputs": 1,\r
61         "x": 869.4999389648438,\r
62         "y": 828.7500305175781,\r
63         "z": "369f92b4.305cce",\r
64         "wires": [\r
65             [\r
66                 "96dbcf56.55476",\r
67                 "22a86bdb.ccad74",\r
68                 "80a5dac3.8e7148"\r
69             ]\r
70         ]\r
71     },\r
72     {\r
73         "id": "96dbcf56.55476",\r
74         "type": "other",\r
75         "name": "outcome 500",\r
76         "xml": "<outcome value='500'>\n",\r
77         "comments": "",\r
78         "outputs": 1,\r
79         "x": 1014.4999389648438,\r
80         "y": 826.7500381469727,\r
81         "z": "369f92b4.305cce",\r
82         "wires": [\r
83             [\r
84                 "56f57.16a810aa"\r
85             ]\r
86         ]\r
87     },\r
88     {\r
89         "id": "22a86bdb.ccad74",\r
90         "type": "other",\r
91         "name": "outcome 100",\r
92         "xml": "<outcome value='100'>\n",\r
93         "comments": "",\r
94         "outputs": 1,\r
95         "x": 1011.4999389648438,\r
96         "y": 883.7500305175781,\r
97         "z": "369f92b4.305cce",\r
98         "wires": [\r
99             [\r
100                 "283d6739.74f598"\r
101             ]\r
102         ]\r
103     },\r
104     {\r
105         "id": "283d6739.74f598",\r
106         "type": "execute",\r
107         "name": "execute reqExecResult",\r
108         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n    <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",\r
109         "comments": "",\r
110         "outputs": 1,\r
111         "x": 1199.4999389648438,\r
112         "y": 882.7500305175781,\r
113         "z": "369f92b4.305cce",\r
114         "wires": [\r
115             [\r
116                 "d1f8a15d.af493",\r
117                 "caff8737.7aa8b8"\r
118             ]\r
119         ]\r
120     },\r
121     {\r
122         "id": "4fe2be8b.9f8b9",\r
123         "type": "failure",\r
124         "name": "failure",\r
125         "xml": "<outcome value='failure'>\n",\r
126         "comments": "",\r
127         "outputs": 1,\r
128         "x": 728.4999389648438,\r
129         "y": 741.7500915527344,\r
130         "z": "369f92b4.305cce",\r
131         "wires": [\r
132             [\r
133                 "56f57.16a810aa"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "30da80ae.d9fb4",\r
139         "type": "other",\r
140         "name": "other",\r
141         "xml": "<outcome value='Other'>\n",\r
142         "comments": "",\r
143         "outputs": 1,\r
144         "x": 730.4999389648438,\r
145         "y": 793.7500610351562,\r
146         "z": "369f92b4.305cce",\r
147         "wires": [\r
148             [\r
149                 "db88e5a7.4dcf28"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "d1f8a15d.af493",\r
155         "type": "failure",\r
156         "name": "failure",\r
157         "xml": "<outcome value='failure'>\n",\r
158         "comments": "",\r
159         "outputs": 1,\r
160         "x": 1368.4998779296875,\r
161         "y": 864.7500610351562,\r
162         "z": "369f92b4.305cce",\r
163         "wires": [\r
164             [\r
165                 "18cd1743.3c3df9"\r
166             ]\r
167         ]\r
168     },\r
169     {\r
170         "id": "80a5dac3.8e7148",\r
171         "type": "other",\r
172         "name": "outcome 101",\r
173         "xml": "<outcome value='101'>\n",\r
174         "comments": "",\r
175         "outputs": 1,\r
176         "x": 1011.4999389648438,\r
177         "y": 784.7500686645508,\r
178         "z": "369f92b4.305cce",\r
179         "wires": [\r
180             [\r
181                 "56f57.16a810aa"\r
182             ]\r
183         ]\r
184     },\r
185     {\r
186         "id": "caff8737.7aa8b8",\r
187         "type": "success",\r
188         "name": "success",\r
189         "xml": "<outcome value='success'>\n",\r
190         "comments": "",\r
191         "outputs": 1,\r
192         "x": 1372.4998779296875,\r
193         "y": 908.7501220703125,\r
194         "z": "369f92b4.305cce",\r
195         "wires": [\r
196             [\r
197                 "18cd1743.3c3df9"\r
198             ]\r
199         ]\r
200     },\r
201     {\r
202         "id": "eca36d4e.0587d",\r
203         "type": "dgstart",\r
204         "name": "DGSTART",\r
205         "outputs": 1,\r
206         "x": 170.5,\r
207         "y": 73.75,\r
208         "z": "369f92b4.305cce",\r
209         "wires": [\r
210             [\r
211                 "f17bcbcb.0eb2c8"\r
212             ]\r
213         ]\r
214     },\r
215     {\r
216         "id": "79b7cec0.5cb7d",\r
217         "type": "block",\r
218         "name": "block",\r
219         "xml": "<block atomic='true'>\n",\r
220         "atomic": "false",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 215.41669082641602,\r
224         "y": 224.83334636688232,\r
225         "z": "369f92b4.305cce",\r
226         "wires": [\r
227             [\r
228                 "f9678654.f75948",\r
229                 "3150eb49.56b364",\r
230                 "3d311f40.b0356",\r
231                 "d04dafe1.a776a",\r
232                 "d6a84e4d.99cf8",\r
233                 "23c2b9e5.228a76",\r
234                 "f65e13cf.33e86",\r
235                 "78201e79.92779"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "3150eb49.56b364",\r
241         "type": "execute",\r
242         "name": "execute Properties",\r
243         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
244         "comments": "",\r
245         "outputs": 1,\r
246         "x": 513.5000305175781,\r
247         "y": 184.83334350585938,\r
248         "z": "369f92b4.305cce",\r
249         "wires": [\r
250             []\r
251         ]\r
252     },\r
253     {\r
254         "id": "d6380b3d.e7dd58",\r
255         "type": "execute",\r
256         "name": "execute DmaapMsg",\r
257         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n    <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n    <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='contentType' value='application/json' />\n    <parameter name=\"responsePrefix\" value=\"lcm\" />\n",\r
258         "comments": "",\r
259         "outputs": 1,\r
260         "x": 1680.4998779296875,\r
261         "y": 690.8334045410156,\r
262         "z": "369f92b4.305cce",\r
263         "wires": [\r
264             [\r
265                 "7d366735.40b318"\r
266             ]\r
267         ]\r
268     },\r
269     {\r
270         "id": "7d366735.40b318",\r
271         "type": "failure",\r
272         "name": "failure",\r
273         "xml": "<outcome value='failure'>\n",\r
274         "comments": "",\r
275         "outputs": 1,\r
276         "x": 1850.4998168945312,\r
277         "y": 689.8334045410156,\r
278         "z": "369f92b4.305cce",\r
279         "wires": [\r
280             [\r
281                 "d429f6f2.1a8228"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "56f57.16a810aa",\r
287         "type": "block",\r
288         "name": "block",\r
289         "xml": "<block>\n",\r
290         "atomic": "false",\r
291         "comments": "",\r
292         "outputs": 1,\r
293         "x": 1483.4998168945312,\r
294         "y": 714.8334045410156,\r
295         "z": "369f92b4.305cce",\r
296         "wires": [\r
297             [\r
298                 "d6380b3d.e7dd58",\r
299                 "712abf34.0d6f",\r
300                 "d1b68f91.c944a"\r
301             ]\r
302         ]\r
303     },\r
304     {\r
305         "id": "906287db.12ffb8",\r
306         "type": "execute",\r
307         "name": "execute DmaapMsg",\r
308         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n    <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n    <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='contentType' value='application/json' />\n    <parameter name=\"responsePrefix\" value=\"lcm\" />\n",\r
309         "comments": "",\r
310         "outputs": 1,\r
311         "x": 1715.9998779296875,\r
312         "y": 956.8333740234375,\r
313         "z": "369f92b4.305cce",\r
314         "wires": [\r
315             [\r
316                 "3cbc715a.7ae70e"\r
317             ]\r
318         ]\r
319     },\r
320     {\r
321         "id": "3cbc715a.7ae70e",\r
322         "type": "failure",\r
323         "name": "failure",\r
324         "xml": "<outcome value='failure'>\n",\r
325         "comments": "",\r
326         "outputs": 1,\r
327         "x": 1900.9998779296875,\r
328         "y": 956.8333740234375,\r
329         "z": "369f92b4.305cce",\r
330         "wires": [\r
331             [\r
332                 "6851419b.3c644"\r
333             ]\r
334         ]\r
335     },\r
336     {\r
337         "id": "d429f6f2.1a8228",\r
338         "type": "record",\r
339         "name": "record",\r
340         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",\r
341         "comments": "",\r
342         "outputs": 1,\r
343         "x": 1970.4998779296875,\r
344         "y": 688.8333740234375,\r
345         "z": "369f92b4.305cce",\r
346         "wires": [\r
347             []\r
348         ]\r
349     },\r
350     {\r
351         "id": "712abf34.0d6f",\r
352         "type": "returnFailure",\r
353         "name": "return failure",\r
354         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",\r
355         "comments": "",\r
356         "x": 1662.41650390625,\r
357         "y": 741.8334045410156,\r
358         "z": "369f92b4.305cce",\r
359         "wires": []\r
360     },\r
361     {\r
362         "id": "6851419b.3c644",\r
363         "type": "record",\r
364         "name": "record",\r
365         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",\r
366         "comments": "",\r
367         "outputs": 1,\r
368         "x": 2033.4166259765625,\r
369         "y": 956.8333740234375,\r
370         "z": "369f92b4.305cce",\r
371         "wires": [\r
372             []\r
373         ]\r
374     },\r
375     {\r
376         "id": "d1b68f91.c944a",\r
377         "type": "set",\r
378         "name": "set DmaapReq",\r
379         "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$rollback-input.common-header.request-id + '-' + $rollback-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",\r
380         "comments": "",\r
381         "x": 1667.4998779296875,\r
382         "y": 637.8333740234375,\r
383         "z": "369f92b4.305cce",\r
384         "wires": []\r
385     },\r
386     {\r
387         "id": "18cd1743.3c3df9",\r
388         "type": "block",\r
389         "name": "block",\r
390         "xml": "<block>\n",\r
391         "atomic": "false",\r
392         "comments": "",\r
393         "outputs": 1,\r
394         "x": 1504.4998779296875,\r
395         "y": 883.8333740234375,\r
396         "z": "369f92b4.305cce",\r
397         "wires": [\r
398             [\r
399                 "906287db.12ffb8",\r
400                 "eb7f81a3.42757",\r
401                 "ec9cf419.aed218",\r
402                 "822ef90c.18eff8",\r
403                 "abc170de.d927e",\r
404                 "81befc92.0842f"\r
405             ]\r
406         ]\r
407     },\r
408     {\r
409         "id": "81befc92.0842f",\r
410         "type": "set",\r
411         "name": "set DmaapReq",\r
412         "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$rollback-input.common-header.request-id + '-' + $rollback-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='rollback'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$rollback-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$rollback-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$rollback-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$rollback-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$rollback-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$rollback-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$rollback-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$rollback-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",\r
413         "comments": "",\r
414         "x": 1702.6666564941406,\r
415         "y": 870.5833864212036,\r
416         "z": "369f92b4.305cce",\r
417         "wires": []\r
418     },\r
419     {\r
420         "id": "29b2f38.ce75c0c",\r
421         "type": "not-found",\r
422         "name": "not-found",\r
423         "xml": "<outcome value='not-found'>\n",\r
424         "comments": "",\r
425         "outputs": 1,\r
426         "x": 737.4999389648438,\r
427         "y": 693.7500610351562,\r
428         "z": "369f92b4.305cce",\r
429         "wires": [\r
430             [\r
431                 "c004f41.ad08008"\r
432             ]\r
433         ]\r
434     },\r
435     {\r
436         "id": "aec7b25c.15792",\r
437         "type": "set",\r
438         "name": "set Defaults",\r
439         "xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",\r
440         "comments": "",\r
441         "x": 1028.4999389648438,\r
442         "y": 652.75,\r
443         "z": "369f92b4.305cce",\r
444         "wires": []\r
445     },\r
446     {\r
447         "id": "c004f41.ad08008",\r
448         "type": "block",\r
449         "name": "block",\r
450         "xml": "<block>\n",\r
451         "atomic": "false",\r
452         "comments": "",\r
453         "outputs": 1,\r
454         "x": 874.4999389648438,\r
455         "y": 687.7500610351562,\r
456         "z": "369f92b4.305cce",\r
457         "wires": [\r
458             [\r
459                 "aec7b25c.15792",\r
460                 "56f57.16a810aa"\r
461             ]\r
462         ]\r
463     },\r
464     {\r
465         "id": "3d311f40.b0356",\r
466         "type": "set",\r
467         "name": "set default values",\r
468         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n<parameter name='outputPayloadField' value='.Output' />\n",\r
469         "comments": "",\r
470         "x": 506.5,\r
471         "y": 231.75,\r
472         "z": "369f92b4.305cce",\r
473         "wires": []\r
474     },\r
475     {\r
476         "id": "1785264e.51581a",\r
477         "type": "get-resource",\r
478         "name": "get aai.generic-vnf ",\r
479         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $rollback-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",\r
480         "comments": "",\r
481         "outputs": 1,\r
482         "x": 1046.5,\r
483         "y": 460.75,\r
484         "z": "369f92b4.305cce",\r
485         "wires": [\r
486             [\r
487                 "64e1e5a.ee16c1c"\r
488             ]\r
489         ]\r
490     },\r
491     {\r
492         "id": "64e1e5a.ee16c1c",\r
493         "type": "success",\r
494         "name": "success",\r
495         "xml": "<outcome value='success'>\n",\r
496         "comments": "",\r
497         "outputs": 1,\r
498         "x": 1204.8907470703125,\r
499         "y": 459.03399658203125,\r
500         "z": "369f92b4.305cce",\r
501         "wires": [\r
502             [\r
503                 "31c7d490.843fdc"\r
504             ]\r
505         ]\r
506     },\r
507     {\r
508         "id": "f65e13cf.33e86",\r
509         "type": "record",\r
510         "name": "record",\r
511         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",\r
512         "comments": "",\r
513         "outputs": 1,\r
514         "x": 435.4998779296875,\r
515         "y": 648.75,\r
516         "z": "369f92b4.305cce",\r
517         "wires": [\r
518             []\r
519         ]\r
520     },\r
521     {\r
522         "id": "d6a84e4d.99cf8",\r
523         "type": "switchNode",\r
524         "name": "switch pnf-flag",\r
525         "xml": "<switch test='`$payloadJson.pnf-flag`'>\n",\r
526         "comments": "",\r
527         "outputs": 1,\r
528         "x": 492.25000762939453,\r
529         "y": 379.5000057220459,\r
530         "z": "369f92b4.305cce",\r
531         "wires": [\r
532             [\r
533                 "30e4f46c.d1480c",\r
534                 "a2013485.ae3d68"\r
535             ]\r
536         ]\r
537     },\r
538     {\r
539         "id": "d04dafe1.a776a",\r
540         "type": "execute",\r
541         "name": "execute jsonStringToCtx",\r
542         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='rollback-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",\r
543         "comments": "",\r
544         "outputs": 1,\r
545         "x": 520.5,\r
546         "y": 278.75,\r
547         "z": "369f92b4.305cce",\r
548         "wires": [\r
549             []\r
550         ]\r
551     },\r
552     {\r
553         "id": "30e4f46c.d1480c",\r
554         "type": "outcome",\r
555         "name": "true",\r
556         "xml": "<outcome value='true'>\n",\r
557         "comments": "",\r
558         "outputs": 1,\r
559         "x": 676.7500076293945,\r
560         "y": 323.5000057220459,\r
561         "z": "369f92b4.305cce",\r
562         "wires": [\r
563             [\r
564                 "c022042b.de2278"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "a2013485.ae3d68",\r
570         "type": "outcome",\r
571         "name": "other",\r
572         "xml": "<outcome value='Other'>\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 679.2499465942383,\r
576         "y": 431.2500057220459,\r
577         "z": "369f92b4.305cce",\r
578         "wires": [\r
579             [\r
580                 "8adc4a30.e8aab8"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "8adc4a30.e8aab8",\r
586         "type": "block",\r
587         "name": "block",\r
588         "xml": "<block>\n",\r
589         "atomic": "false",\r
590         "comments": "",\r
591         "outputs": 1,\r
592         "x": 833.4999504089355,\r
593         "y": 432.2500057220459,\r
594         "z": "369f92b4.305cce",\r
595         "wires": [\r
596             [\r
597                 "1785264e.51581a",\r
598                 "6b67b6b7.0fe388"\r
599             ]\r
600         ]\r
601     },\r
602     {\r
603         "id": "ba864124.fbd17",\r
604         "type": "set",\r
605         "name": "set AnsibleReq",\r
606         "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam +  $quote + ']'`\"/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",\r
607         "comments": "",\r
608         "x": 1004.0000152587891,\r
609         "y": 231.50000381469727,\r
610         "z": "369f92b4.305cce",\r
611         "wires": []\r
612     },\r
613     {\r
614         "id": "6b67b6b7.0fe388",\r
615         "type": "execute",\r
616         "name": "set playbookname",\r
617         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.rollback.playbookname'`\" />\n\n",\r
618         "comments": "",\r
619         "outputs": 1,\r
620         "x": 1055.5,\r
621         "y": 404.75,\r
622         "z": "369f92b4.305cce",\r
623         "wires": [\r
624             []\r
625         ]\r
626     },\r
627     {\r
628         "id": "23c2b9e5.228a76",\r
629         "type": "switchNode",\r
630         "name": "switch playbookname",\r
631         "xml": "<switch test='`$playbookname`'>\n",\r
632         "comments": "",\r
633         "outputs": 1,\r
634         "x": 485.5,\r
635         "y": 516.75,\r
636         "z": "369f92b4.305cce",\r
637         "wires": [\r
638             [\r
639                 "c70d3d1f.891ee"\r
640             ]\r
641         ]\r
642     },\r
643     {\r
644         "id": "c70d3d1f.891ee",\r
645         "type": "outcome",\r
646         "name": "null",\r
647         "xml": "<outcome value=''>\n",\r
648         "comments": "",\r
649         "outputs": 1,\r
650         "x": 656.5,\r
651         "y": 517.75,\r
652         "z": "369f92b4.305cce",\r
653         "wires": [\r
654             [\r
655                 "83a84acf.4bd078"\r
656             ]\r
657         ]\r
658     },\r
659     {\r
660         "id": "83a84acf.4bd078",\r
661         "type": "set",\r
662         "name": "set playbookname",\r
663         "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.rollback.playbookname`'/>",\r
664         "comments": "",\r
665         "x": 846.5,\r
666         "y": 516.75,\r
667         "z": "369f92b4.305cce",\r
668         "wires": []\r
669     },\r
670     {\r
671         "id": "78201e79.92779",\r
672         "type": "switchNode",\r
673         "name": "switch nodelist",\r
674         "xml": "<switch test='`$nodelist`'>\n",\r
675         "comments": "",\r
676         "outputs": 1,\r
677         "x": 475.5,\r
678         "y": 575.75,\r
679         "z": "369f92b4.305cce",\r
680         "wires": [\r
681             [\r
682                 "cd45c66d.ce9838",\r
683                 "17f4d31.c678b2d"\r
684             ]\r
685         ]\r
686     },\r
687     {\r
688         "id": "cd45c66d.ce9838",\r
689         "type": "outcome",\r
690         "name": "null",\r
691         "xml": "<outcome value=''>\n",\r
692         "comments": "",\r
693         "outputs": 1,\r
694         "x": 655.5,\r
695         "y": 568.75,\r
696         "z": "369f92b4.305cce",\r
697         "wires": [\r
698             [\r
699                 "54593bc3.251964"\r
700             ]\r
701         ]\r
702     },\r
703     {\r
704         "id": "54593bc3.251964",\r
705         "type": "set",\r
706         "name": "set nodelist",\r
707         "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",\r
708         "comments": "",\r
709         "x": 812.5,\r
710         "y": 582.75,\r
711         "z": "369f92b4.305cce",\r
712         "wires": []\r
713     },\r
714     {\r
715         "id": "17f4d31.c678b2d",\r
716         "type": "outcome",\r
717         "name": "empty",\r
718         "xml": "<outcome value=\"['']\">\n\n",\r
719         "comments": "",\r
720         "outputs": 1,\r
721         "x": 654.5,\r
722         "y": 612.75,\r
723         "z": "369f92b4.305cce",\r
724         "wires": [\r
725             [\r
726                 "54593bc3.251964"\r
727             ]\r
728         ]\r
729     },\r
730     {\r
731         "id": "26a968e7.f7bf98",\r
732         "type": "switchNode",\r
733         "name": "switch playbookname",\r
734         "xml": "<switch test='`$playbookname`'>\n",\r
735         "comments": "",\r
736         "outputs": 1,\r
737         "x": 1530.5,\r
738         "y": 447.75,\r
739         "z": "369f92b4.305cce",\r
740         "wires": [\r
741             [\r
742                 "5f54def1.a67ca"\r
743             ]\r
744         ]\r
745     },\r
746     {\r
747         "id": "5f54def1.a67ca",\r
748         "type": "outcome",\r
749         "name": "null",\r
750         "xml": "<outcome value=''>\n",\r
751         "comments": "",\r
752         "outputs": 1,\r
753         "x": 1708.5,\r
754         "y": 447.75,\r
755         "z": "369f92b4.305cce",\r
756         "wires": [\r
757             [\r
758                 "b2eb228.3781ce"\r
759             ]\r
760         ]\r
761     },\r
762     {\r
763         "id": "294832a2.42287e",\r
764         "type": "set",\r
765         "name": "set nodelist",\r
766         "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address +  $quote + ']'`\"/>\n",\r
767         "comments": "",\r
768         "x": 1503.5,\r
769         "y": 500.75,\r
770         "z": "369f92b4.305cce",\r
771         "wires": []\r
772     },\r
773     {\r
774         "id": "31c7d490.843fdc",\r
775         "type": "block",\r
776         "name": "block",\r
777         "xml": "<block>\n",\r
778         "atomic": "false",\r
779         "comments": "",\r
780         "outputs": 1,\r
781         "x": 1333.5,\r
782         "y": 457.75,\r
783         "z": "369f92b4.305cce",\r
784         "wires": [\r
785             [\r
786                 "26a968e7.f7bf98",\r
787                 "294832a2.42287e"\r
788             ]\r
789         ]\r
790     },\r
791     {\r
792         "id": "b2eb228.3781ce",\r
793         "type": "execute",\r
794         "name": "set playbookname",\r
795         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.rollback.playbookname'`\" />\n\n",\r
796         "comments": "",\r
797         "outputs": 1,\r
798         "x": 1880.5,\r
799         "y": 445.75,\r
800         "z": "369f92b4.305cce",\r
801         "wires": [\r
802             []\r
803         ]\r
804     },\r
805     {\r
806         "id": "eb7f81a3.42757",\r
807         "type": "execute",\r
808         "name": "execute jsonStringToCtx",\r
809         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",\r
810         "comments": "",\r
811         "outputs": 1,\r
812         "x": 1730.5,\r
813         "y": 789.75,\r
814         "z": "369f92b4.305cce",\r
815         "wires": [\r
816             []\r
817         ]\r
818     },\r
819     {\r
820         "id": "ec9cf419.aed218",\r
821         "type": "execute",\r
822         "name": "execute getAttributeValue",\r
823         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson' + $outputPayloadField`\" />\n\t<parameter name='outputPath' value='outputPayload' />",\r
824         "comments": "",\r
825         "outputs": 1,\r
826         "x": 1736.5,\r
827         "y": 834.75,\r
828         "z": "369f92b4.305cce",\r
829         "wires": [\r
830             []\r
831         ]\r
832     },\r
833     {\r
834         "id": "822ef90c.18eff8",\r
835         "type": "switchNode",\r
836         "name": "switch outputPayload",\r
837         "xml": "<switch test='`$outputPayload`'>\n",\r
838         "comments": "",\r
839         "outputs": 1,\r
840         "x": 1722.5000228881836,\r
841         "y": 910.5000133514404,\r
842         "z": "369f92b4.305cce",\r
843         "wires": [\r
844             [\r
845                 "c302475b.9df818"\r
846             ]\r
847         ]\r
848     },\r
849     {\r
850         "id": "c302475b.9df818",\r
851         "type": "outcome",\r
852         "name": "other",\r
853         "xml": "<outcome value='Other'>\n",\r
854         "comments": "",\r
855         "outputs": 1,\r
856         "x": 1896.5000267028809,\r
857         "y": 910.7500133514404,\r
858         "z": "369f92b4.305cce",\r
859         "wires": [\r
860             [\r
861                 "a48299cb.b78bd8"\r
862             ]\r
863         ]\r
864     },\r
865     {\r
866         "id": "a48299cb.b78bd8",\r
867         "type": "set",\r
868         "name": "set DmaapReq with payload",\r
869         "xml": "<set>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",\r
870         "comments": "",\r
871         "x": 2094.750030517578,\r
872         "y": 911.2500133514404,\r
873         "z": "369f92b4.305cce",\r
874         "wires": []\r
875     },\r
876     {\r
877         "id": "6c329a17.f8bc34",\r
878         "type": "returnSuccess",\r
879         "name": "return success",\r
880         "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",\r
881         "comments": "",\r
882         "x": 2433.5,\r
883         "y": 992.7499389648438,\r
884         "z": "369f92b4.305cce",\r
885         "wires": []\r
886     },\r
887     {\r
888         "id": "6f27e34f.bfe1bc",\r
889         "type": "outcome",\r
890         "name": "null",\r
891         "xml": "<outcome value=''>\n",\r
892         "comments": "",\r
893         "outputs": 1,\r
894         "x": 1899.500244140625,\r
895         "y": 1014.7498779296875,\r
896         "z": "369f92b4.305cce",\r
897         "wires": [\r
898             [\r
899                 "ecb031ca.9f34d"\r
900             ]\r
901         ]\r
902     },\r
903     {\r
904         "id": "aba48551.b856a8",\r
905         "type": "outcome",\r
906         "name": "other",\r
907         "xml": "<outcome value='Other'>\n",\r
908         "comments": "",\r
909         "outputs": 1,\r
910         "x": 1898.500244140625,\r
911         "y": 1090.7498779296875,\r
912         "z": "369f92b4.305cce",\r
913         "wires": [\r
914             [\r
915                 "6bf32a4b.832444"\r
916             ]\r
917         ]\r
918     },\r
919     {\r
920         "id": "abc170de.d927e",\r
921         "type": "switchNode",\r
922         "name": "switch outputPayload",\r
923         "xml": "<switch test='`$outputPayload`'>\n",\r
924         "comments": "",\r
925         "outputs": 1,\r
926         "x": 1716.500244140625,\r
927         "y": 1050.7498779296875,\r
928         "z": "369f92b4.305cce",\r
929         "wires": [\r
930             [\r
931                 "6f27e34f.bfe1bc",\r
932                 "aba48551.b856a8"\r
933             ]\r
934         ]\r
935     },\r
936     {\r
937         "id": "a234b745.0050e8",\r
938         "type": "returnSuccess",\r
939         "name": "return success with payload",\r
940         "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",\r
941         "comments": "",\r
942         "x": 2474.500244140625,\r
943         "y": 1074.7498779296875,\r
944         "z": "369f92b4.305cce",\r
945         "wires": []\r
946     },\r
947     {\r
948         "id": "ecb031ca.9f34d",\r
949         "type": "switchNode",\r
950         "name": "switch result code",\r
951         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
952         "comments": "",\r
953         "outputs": 1,\r
954         "x": 2069.500244140625,\r
955         "y": 1014.7498779296875,\r
956         "z": "369f92b4.305cce",\r
957         "wires": [\r
958             [\r
959                 "7828ddac.7113c4",\r
960                 "50103e86.045b8"\r
961             ]\r
962         ]\r
963     },\r
964     {\r
965         "id": "6bf32a4b.832444",\r
966         "type": "switchNode",\r
967         "name": "switch result code",\r
968         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",\r
969         "comments": "",\r
970         "outputs": 1,\r
971         "x": 2069.500244140625,\r
972         "y": 1090.7498779296875,\r
973         "z": "369f92b4.305cce",\r
974         "wires": [\r
975             [\r
976                 "6e3f91ae.9416f",\r
977                 "bbd2dd1d.f1bdc"\r
978             ]\r
979         ]\r
980     },\r
981     {\r
982         "id": "c74eca80.53d6a8",\r
983         "type": "returnFailure",\r
984         "name": "return failure",\r
985         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",\r
986         "comments": "",\r
987         "x": 2427.500244140625,\r
988         "y": 1030.7498779296875,\r
989         "z": "369f92b4.305cce",\r
990         "wires": []\r
991     },\r
992     {\r
993         "id": "6a92df8c.f43f7",\r
994         "type": "returnFailure",\r
995         "name": "return failure with payload",\r
996         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",\r
997         "comments": "",\r
998         "x": 2470.500244140625,\r
999         "y": 1112.7498779296875,\r
1000         "z": "369f92b4.305cce",\r
1001         "wires": []\r
1002     },\r
1003     {\r
1004         "id": "7828ddac.7113c4",\r
1005         "type": "other",\r
1006         "name": "outcome 400",\r
1007         "xml": "<outcome value='400'>\n",\r
1008         "comments": "",\r
1009         "outputs": 1,\r
1010         "x": 2257.500244140625,\r
1011         "y": 992.7498779296875,\r
1012         "z": "369f92b4.305cce",\r
1013         "wires": [\r
1014             [\r
1015                 "6c329a17.f8bc34"\r
1016             ]\r
1017         ]\r
1018     },\r
1019     {\r
1020         "id": "50103e86.045b8",\r
1021         "type": "outcome",\r
1022         "name": "other",\r
1023         "xml": "<outcome value='Other'>\n",\r
1024         "comments": "",\r
1025         "outputs": 1,\r
1026         "x": 2238.500244140625,\r
1027         "y": 1030.7498779296875,\r
1028         "z": "369f92b4.305cce",\r
1029         "wires": [\r
1030             [\r
1031                 "c74eca80.53d6a8"\r
1032             ]\r
1033         ]\r
1034     },\r
1035     {\r
1036         "id": "6e3f91ae.9416f",\r
1037         "type": "other",\r
1038         "name": "outcome 400",\r
1039         "xml": "<outcome value='400'>\n",\r
1040         "comments": "",\r
1041         "outputs": 1,\r
1042         "x": 2258.500244140625,\r
1043         "y": 1074.7498779296875,\r
1044         "z": "369f92b4.305cce",\r
1045         "wires": [\r
1046             [\r
1047                 "a234b745.0050e8"\r
1048             ]\r
1049         ]\r
1050     },\r
1051     {\r
1052         "id": "bbd2dd1d.f1bdc",\r
1053         "type": "outcome",\r
1054         "name": "other",\r
1055         "xml": "<outcome value='Other'>\n",\r
1056         "comments": "",\r
1057         "outputs": 1,\r
1058         "x": 2240.500244140625,\r
1059         "y": 1112.7498779296875,\r
1060         "z": "369f92b4.305cce",\r
1061         "wires": [\r
1062             [\r
1063                 "6a92df8c.f43f7"\r
1064             ]\r
1065         ]\r
1066     },\r
1067     {\r
1068         "id": "c022042b.de2278",\r
1069         "type": "block",\r
1070         "name": "block",\r
1071         "xml": "<block>\n",\r
1072         "atomic": "false",\r
1073         "comments": "",\r
1074         "outputs": 1,\r
1075         "x": 835.7500114440918,\r
1076         "y": 282.00000381469727,\r
1077         "z": "369f92b4.305cce",\r
1078         "wires": [\r
1079             [\r
1080                 "ba864124.fbd17",\r
1081                 "8483b1ff.62265"\r
1082             ]\r
1083         ]\r
1084     },\r
1085     {\r
1086         "id": "8483b1ff.62265",\r
1087         "type": "switchNode",\r
1088         "name": "switch playbook-name in req",\r
1089         "xml": "<switch test='`$payloadJson.playbook-name`'>\n",\r
1090         "comments": "",\r
1091         "outputs": 1,\r
1092         "x": 1042.0000133514404,\r
1093         "y": 326.50000381469727,\r
1094         "z": "369f92b4.305cce",\r
1095         "wires": [\r
1096             [\r
1097                 "bb00ffff.87cfb",\r
1098                 "433808fa.337a18"\r
1099             ]\r
1100         ]\r
1101     },\r
1102     {\r
1103         "id": "bb00ffff.87cfb",\r
1104         "type": "outcome",\r
1105         "name": "null",\r
1106         "xml": "<outcome value=''>\n",\r
1107         "comments": "",\r
1108         "outputs": 1,\r
1109         "x": 1249.5000190734863,\r
1110         "y": 290.25000381469727,\r
1111         "z": "369f92b4.305cce",\r
1112         "wires": [\r
1113             [\r
1114                 "33939f7.002cb6"\r
1115             ]\r
1116         ]\r
1117     },\r
1118     {\r
1119         "id": "433808fa.337a18",\r
1120         "type": "outcome",\r
1121         "name": "other",\r
1122         "xml": "<outcome value='Other'>\n",\r
1123         "comments": "",\r
1124         "outputs": 1,\r
1125         "x": 1248.2500228881836,\r
1126         "y": 355.25000381469727,\r
1127         "z": "369f92b4.305cce",\r
1128         "wires": [\r
1129             [\r
1130                 "4b181e16.e7061"\r
1131             ]\r
1132         ]\r
1133     },\r
1134     {\r
1135         "id": "33939f7.002cb6",\r
1136         "type": "set",\r
1137         "name": "set playbookname from prop",\r
1138         "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.pnf.rollback.playbookname`'/>\n",\r
1139         "comments": "",\r
1140         "x": 1452.0000228881836,\r
1141         "y": 290.25000381469727,\r
1142         "z": "369f92b4.305cce",\r
1143         "wires": []\r
1144     },\r
1145     {\r
1146         "id": "4b181e16.e7061",\r
1147         "type": "set",\r
1148         "name": "set playbookname from req",\r
1149         "xml": "<set>\n<parameter name='playbookname' value='`$payloadJson.playbook-name`'/>\n",\r
1150         "comments": "",\r
1151         "x": 1447.0000228881836,\r
1152         "y": 355.25000381469727,\r
1153         "z": "369f92b4.305cce",\r
1154         "wires": []\r
1155     }\r
1156 ]