Pretty print json files in tutorials/
[demo.git] / tutorials / CreateAppcNetconfMount / VNF-API_vnf-topology-activate.json
1 [
2     {
3         "id": "9b515625.d22748",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 93.33332824707031,
8         "y": 36.33332824707031,
9         "z": "669f9d98.2ac9f4",
10         "wires": [
11             [
12                 "80315e6e.63505"
13             ]
14         ]
15     },
16     {
17         "id": "80315e6e.63505",
18         "type": "service-logic",
19         "name": "VNF-API 1.0.0-DEMO",
20         "module": "VNF-API",
21         "version": "1.0.0-DEMO",
22         "comments": "",
23         "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='VNF-API' version='1.0.0-DEMO'>",
24         "outputs": 1,
25         "x": 258.49998474121094,
26         "y": 36.5,
27         "z": "669f9d98.2ac9f4",
28         "wires": [
29             [
30                 "3c8cef4d.49542"
31             ]
32         ]
33     },
34     {
35         "id": "3c8cef4d.49542",
36         "type": "method",
37         "name": "method vnf-topology-activate",
38         "xml": "<method rpc='vnf-topology-activate' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 166.50001525878906,
42         "y": 83.49999237060547,
43         "z": "669f9d98.2ac9f4",
44         "wires": [
45             [
46                 "6cd2edde.1d6bd4"
47             ]
48         ]
49     },
50     {
51         "id": "6cd2edde.1d6bd4",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "outputs": 1,
57         "x": 123.83332824707031,
58         "y": 139.3333282470703,
59         "z": "669f9d98.2ac9f4",
60         "wires": [
61             [
62                 "ab8c4330.26d2b",
63                 "df0bd34b.bf0cf",
64                 "d8650a48.f0bcd8",
65                 "6e2d653a.a05bec",
66                 "9bb6aa32.18f568",
67                 "d92f94a6.8f1a28",
68                 "b846b4fc.934e88",
69                 "c3be1550.0013d8",
70                 "40746641.fe81b8"
71             ]
72         ]
73     },
74     {
75         "id": "ab8c4330.26d2b",
76         "type": "set",
77         "name": "set: order-status = Active",
78         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Active\"/>",
79         "comments": "",
80         "x": 376.83333587646484,
81         "y": 371.83331298828125,
82         "z": "669f9d98.2ac9f4",
83         "wires": []
84     },
85     {
86         "id": "df0bd34b.bf0cf",
87         "type": "switchNode",
88         "name": "switch: order-status = PendingCreate",
89         "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
90         "comments": "",
91         "outputs": 1,
92         "x": 416.16670989990234,
93         "y": 268.1665344238281,
94         "z": "669f9d98.2ac9f4",
95         "wires": [
96             [
97                 "22236f98.35747"
98             ]
99         ]
100     },
101     {
102         "id": "d8650a48.f0bcd8",
103         "type": "returnSuccess",
104         "name": "return success",
105         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
106         "comments": "",
107         "x": 333.9444580078125,
108         "y": 1233.5,
109         "z": "669f9d98.2ac9f4",
110         "wires": []
111     },
112     {
113         "id": "6e2d653a.a05bec",
114         "type": "set",
115         "name": "set: last-order-status = order-status",
116         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
117         "comments": "",
118         "x": 409.94701385498047,
119         "y": 320.447021484375,
120         "z": "669f9d98.2ac9f4",
121         "wires": []
122     },
123     {
124         "id": "9bb6aa32.18f568",
125         "type": "switchNode",
126         "name": "switch:vnf-id   config == input",
127         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
128         "comments": "",
129         "outputs": 1,
130         "x": 388.60607147216797,
131         "y": 216.37876892089844,
132         "z": "669f9d98.2ac9f4",
133         "wires": [
134             [
135                 "4c7aba25.1c7f44"
136             ]
137         ]
138     },
139     {
140         "id": "d92f94a6.8f1a28",
141         "type": "set",
142         "name": "set: service-data = input",
143         "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"vnf-topology-operation-input.\" />",
144         "comments": "",
145         "x": 361.8333435058594,
146         "y": 1147.888916015625,
147         "z": "669f9d98.2ac9f4",
148         "wires": []
149     },
150     {
151         "id": "b846b4fc.934e88",
152         "type": "set",
153         "name": "set: last-action ",
154         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
155         "comments": "",
156         "x": 343.83333587646484,
157         "y": 418.8888854980469,
158         "z": "669f9d98.2ac9f4",
159         "wires": []
160     },
161     {
162         "id": "40746641.fe81b8",
163         "type": "save",
164         "name": "update AnAI - vf-module.orchestration-status",
165         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tAND generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\t\tlocal-only=\"false\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />",
166         "comments": "",
167         "outputs": 1,
168         "x": 437.7221984863281,
169         "y": 461.8888816833496,
170         "z": "669f9d98.2ac9f4",
171         "wires": [
172             [
173                 "738bd5ac.1e39cc"
174             ]
175         ]
176     },
177     {
178         "id": "5a15cf5c.1fe94",
179         "type": "record",
180         "name": "record",
181         "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/sdnc_appc_netconf.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action`\"/>\n<parameter name=\"field3\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-name`\"/>\n<parameter name=\"field4\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-type`\"/>\n<parameter name=\"field5\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id`\"/>\n<parameter name=\"field6\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-name`\"/>\n<parameter name=\"field7\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-type`\"/>\n<parameter name=\"field8\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>\n<parameter name=\"field9\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-name`\"/>\n<parameter name=\"field10\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type`\"/>\n",
182         "comments": "",
183         "outputs": 1,
184         "x": 938.72216796875,
185         "y": 776.3888549804688,
186         "z": "669f9d98.2ac9f4",
187         "wires": [
188             []
189         ]
190     },
191     {
192         "id": "c3be1550.0013d8",
193         "type": "switchNode",
194         "name": "switch vnf type ",
195         "xml": "<switch test='`substr($preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type,22,30)`'>\n<!-- Aa27262bF2d040799b5c..base_vfw..module-0 -->",
196         "comments": "",
197         "outputs": 1,
198         "x": 338.522216796875,
199         "y": 667.9055213928223,
200         "z": "669f9d98.2ac9f4",
201         "wires": [
202             [
203                 "798dbf61.8ef5c"
204             ]
205         ]
206     },
207     {
208         "id": "22236f98.35747",
209         "type": "other",
210         "name": "false",
211         "xml": "<outcome value='false'>",
212         "comments": "",
213         "outputs": 1,
214         "x": 665.5000610351562,
215         "y": 268.4998435974121,
216         "z": "669f9d98.2ac9f4",
217         "wires": [
218             [
219                 "b819ee7c.13f39"
220             ]
221         ]
222     },
223     {
224         "id": "4c7aba25.1c7f44",
225         "type": "outcomeFalse",
226         "name": "false",
227         "xml": "<outcome value='false'>\n",
228         "comments": "",
229         "outputs": 1,
230         "x": 608.060546875,
231         "y": 216.56058883666992,
232         "z": "669f9d98.2ac9f4",
233         "wires": [
234             [
235                 "6309638d.9a29fc"
236             ]
237         ]
238     },
239     {
240         "id": "738bd5ac.1e39cc",
241         "type": "failure",
242         "name": "failure",
243         "xml": "<outcome value='failure'>\n",
244         "comments": "",
245         "outputs": 1,
246         "x": 702.2460556030273,
247         "y": 461.877384185791,
248         "z": "669f9d98.2ac9f4",
249         "wires": [
250             [
251                 "91b545b4.961ef8"
252             ]
253         ]
254     },
255     {
256         "id": "798dbf61.8ef5c",
257         "type": "outcome",
258         "name": "outcome base_vfw",
259         "xml": "<outcome value='base_vfw'>\n",
260         "comments": "",
261         "outputs": 1,
262         "x": 564.5221862792969,
263         "y": 697.9055213928223,
264         "z": "669f9d98.2ac9f4",
265         "wires": [
266             [
267                 "9aacbf5a.ed983"
268             ]
269         ]
270     },
271     {
272         "id": "b819ee7c.13f39",
273         "type": "switchNode",
274         "name": "switch: order-status = PendingUpdate",
275         "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingUpdate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
276         "comments": "",
277         "outputs": 1,
278         "x": 916.4242553710938,
279         "y": 267.9242515563965,
280         "z": "669f9d98.2ac9f4",
281         "wires": [
282             [
283                 "de1e0e32.44154"
284             ]
285         ]
286     },
287     {
288         "id": "6309638d.9a29fc",
289         "type": "returnFailure",
290         "name": "return failure",
291         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' not found in config tree'`\"/>",
292         "comments": "",
293         "x": 786.1514892578125,
294         "y": 216.4696922302246,
295         "z": "669f9d98.2ac9f4",
296         "wires": []
297     },
298     {
299         "id": "91b545b4.961ef8",
300         "type": "returnFailure",
301         "name": "return failure",
302         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Encountered error while updating vf-module orchestration-status in AnAI with vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
303         "comments": "",
304         "x": 870.3889846801758,
305         "y": 461.87745475769043,
306         "z": "669f9d98.2ac9f4",
307         "wires": []
308     },
309     {
310         "id": "9aacbf5a.ed983",
311         "type": "block",
312         "name": "block",
313         "xml": "<block>\n",
314         "atomic": "false",
315         "comments": "",
316         "outputs": 1,
317         "x": 778.5221862792969,
318         "y": 737.9055213928223,
319         "z": "669f9d98.2ac9f4",
320         "wires": [
321             [
322                 "f6b5a926.ce9888",
323                 "2c6e5e35.0760b2",
324                 "c3f63154.8e521",
325                 "5a15cf5c.1fe94"
326             ]
327         ]
328     },
329     {
330         "id": "de1e0e32.44154",
331         "type": "other",
332         "name": "false",
333         "xml": "<outcome value='false'>",
334         "comments": "",
335         "outputs": 1,
336         "x": 1158.878662109375,
337         "y": 267.92422103881836,
338         "z": "669f9d98.2ac9f4",
339         "wires": [
340             [
341                 "5f574a63.b3a724"
342             ]
343         ]
344     },
345     {
346         "id": "f6b5a926.ce9888",
347         "type": "execute",
348         "name": "excute REST NETCONF MOUNT ",
349         "xml": "<execute plugin='org.openecomp.sdnc.restapicall.RestapiCallNode' method='sendRequest' >\n\t<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/netconf-mount-template.xml'`\"/>\n\t<parameter name=\"restapiUrl\" value=\"`$prop.appcRestApi.url+'/restconf/config/network-topology:network-topology/topology/topology-netconf/node/'+$prop.vpg_hostname`\"/>\n\t<parameter name=\"restapiUser\" value=\"`$prop.appcRestApi.sdncOdl.user`\"/>\n\t<parameter name=\"restapiPassword\" value=\"`$prop.appcRestApi.sdncOdl.password`\"/>\n\t<parameter name=\"format\" value=\"xml\" />\n\t<parameter name=\"httpMethod\" value=\"put\" />\n\t<parameter name=\"responsePrefix\" value=\"restapi-result\" />\n\t\n\t",
350         "comments": "",
351         "outputs": 1,
352         "x": 1026.5221099853516,
353         "y": 1073.9054565429688,
354         "z": "669f9d98.2ac9f4",
355         "wires": [
356             []
357         ]
358     },
359     {
360         "id": "2dff6fee.5d34e",
361         "type": "set",
362         "name": "set localhost data",
363         "xml": "<set>\n<parameter name='prop.appcRestApi.url' value='http://localhost:8181' />\n<!-- 8181 when doing localhost -->\n<parameter name=\"prop.restapi.templateDir\" value=\"/opt/openecomp/sdnc/data\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.user\" value=\"admin\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.password\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\"/>\n",
364         "comments": "",
365         "x": 1331.5221557617188,
366         "y": 746.905517578125,
367         "z": "669f9d98.2ac9f4",
368         "wires": []
369     },
370     {
371         "id": "5f574a63.b3a724",
372         "type": "returnFailure",
373         "name": "return failure",
374         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid last-order-status'/>",
375         "comments": "",
376         "x": 1323.8331832885742,
377         "y": 267.4998950958252,
378         "z": "669f9d98.2ac9f4",
379         "wires": []
380     },
381     {
382         "id": "e27e181e.227c48",
383         "type": "comment",
384         "name": "VNF-TOPOLOGY-ACTIVATE",
385         "info": "",
386         "comments": "",
387         "x": 665.7221984863281,
388         "y": 35.88888168334961,
389         "z": "669f9d98.2ac9f4",
390         "wires": []
391     },
392     {
393         "id": "2aacf238.e9652e",
394         "type": "comment",
395         "name": "once success is returned, operational-data gets saved",
396         "info": "",
397         "comments": "",
398         "x": 669.3510437011719,
399         "y": 1228.434326171875,
400         "z": "669f9d98.2ac9f4",
401         "wires": []
402     },
403     {
404         "id": "75691490.243aac",
405         "type": "comment",
406         "name": "request-action = VNFActivateRequest, svc-action = activate",
407         "info": "",
408         "comments": "",
409         "x": 672.4444122314453,
410         "y": 75.66666221618652,
411         "z": "669f9d98.2ac9f4",
412         "wires": []
413     },
414     {
415         "id": "bcfdeb55.ac2538",
416         "type": "set",
417         "name": "Set final indicator to Y",
418         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
419         "comments": "",
420         "x": 356.15079498291016,
421         "y": 1191.6031608581543,
422         "z": "669f9d98.2ac9f4",
423         "wires": []
424     },
425     {
426         "id": "2c6e5e35.0760b2",
427         "type": "set",
428         "name": "set appc data",
429         "xml": "<set>\n<parameter name='prop.appcRestApi.url' value='http://appc.api.simpledemo.openecomp.org:8282' />\n<!-- 8181 when doing localhost -->\n<parameter name=\"prop.restapi.templateDir\" value=\"/opt/openecomp/sdnc/data\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.user\" value=\"admin\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.password\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\"/>\n",
430         "comments": "",
431         "x": 967.5221862792969,
432         "y": 1019.9054832458496,
433         "z": "669f9d98.2ac9f4",
434         "wires": []
435     },
436     {
437         "id": "873d2429.978de8",
438         "type": "comment",
439         "name": "Get Hostname and IP address",
440         "info": "",
441         "comments": "",
442         "x": 1005.2166748046875,
443         "y": 821.9387817382812,
444         "z": "669f9d98.2ac9f4",
445         "wires": []
446     },
447     {
448         "id": "c3f63154.8e521",
449         "type": "for",
450         "name": "for vnf-parameters",
451         "xml": "<for index='k' start='0' end=\"`$preload-data.vnf-topology-information.vnf-parameters_length`\" >\n",
452         "comments": "",
453         "outputs": 1,
454         "x": 975.2166442871094,
455         "y": 866.9388999938965,
456         "z": "669f9d98.2ac9f4",
457         "wires": [
458             [
459                 "7112332f.7cf7ac"
460             ]
461         ]
462     },
463     {
464         "id": "1c75c042.26d5d",
465         "type": "switchNode",
466         "name": "switch vpg_name_0",
467         "xml": "<switch test=\"`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-name == 'vpg_name_0'`\">\n",
468         "comments": "",
469         "outputs": 1,
470         "x": 1338.2167663574219,
471         "y": 972.9389305114746,
472         "z": "669f9d98.2ac9f4",
473         "wires": [
474             [
475                 "f162e338.32bba"
476             ]
477         ]
478     },
479     {
480         "id": "f162e338.32bba",
481         "type": "outcomeTrue",
482         "name": "true",
483         "xml": "<outcome value='true'>\n",
484         "comments": "",
485         "outputs": 1,
486         "x": 1525.2167663574219,
487         "y": 972.9389305114746,
488         "z": "669f9d98.2ac9f4",
489         "wires": [
490             [
491                 "fb2d23d2.1064d"
492             ]
493         ]
494     },
495     {
496         "id": "fb2d23d2.1064d",
497         "type": "set",
498         "name": "set vpg_ hostname ",
499         "xml": "<set>\n<parameter name='prop.vpg_hostname' value='`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-value`' />\n",
500         "comments": "",
501         "x": 1693.2167663574219,
502         "y": 973.5389366149902,
503         "z": "669f9d98.2ac9f4",
504         "wires": []
505     },
506     {
507         "id": "7112332f.7cf7ac",
508         "type": "block",
509         "name": "block",
510         "xml": "<block>\n",
511         "atomic": "false",
512         "comments": "",
513         "outputs": 1,
514         "x": 1148.2167663574219,
515         "y": 910.9388999938965,
516         "z": "669f9d98.2ac9f4",
517         "wires": [
518             [
519                 "1c75c042.26d5d",
520                 "9dc9c622.a5ca58"
521             ]
522         ]
523     },
524     {
525         "id": "9dc9c622.a5ca58",
526         "type": "switchNode",
527         "name": "switch vpg_private_ip_1",
528         "xml": "<switch test=\"`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-name == 'vpg_private_ip_1'`\">\n",
529         "comments": "",
530         "outputs": 1,
531         "x": 1342.2167053222656,
532         "y": 1034.538906097412,
533         "z": "669f9d98.2ac9f4",
534         "wires": [
535             [
536                 "43a36baf.403124"
537             ]
538         ]
539     },
540     {
541         "id": "43a36baf.403124",
542         "type": "outcomeTrue",
543         "name": "true",
544         "xml": "<outcome value='true'>\n",
545         "comments": "",
546         "outputs": 1,
547         "x": 1527.2167053222656,
548         "y": 1032.538906097412,
549         "z": "669f9d98.2ac9f4",
550         "wires": [
551             [
552                 "b4b98be7.2c0088"
553             ]
554         ]
555     },
556     {
557         "id": "b4b98be7.2c0088",
558         "type": "set",
559         "name": "set vpg_ipaddress",
560         "xml": "<set>\n<parameter name='prop.vpg_ipaddress' value='`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-value`' />\n",
561         "comments": "",
562         "x": 1696.2167053222656,
563         "y": 1030.538906097412,
564         "z": "669f9d98.2ac9f4",
565         "wires": []
566     },
567     {
568         "id": "54b07b39.58cfd4",
569         "type": "comment",
570         "name": "unlinked AnAI update for slitesting",
571         "info": "",
572         "comments": "",
573         "x": 399.1666564941406,
574         "y": 509.8888816833496,
575         "z": "669f9d98.2ac9f4",
576         "wires": []
577     }
578 ]