Merge "update part of cli command guide about vfc test"
[vfc/nfvo/lcm.git] / lcm / ns / data / file.json
1 [
2     {
3         "connections": [],
4         "type": "",
5         "id": "element4"
6     },
7     {
8         "name": "createVL",
9         "position": {
10             "left": 141.5,
11             "top": 157
12         },
13         "type": "RestTask",
14         "microservice": "nslcm",
15         "connections": [
16             "element169"
17         ],
18         "id": "element7",
19         "publicInterface": "vls Resource.2",
20         "method": "POST",
21         "accept": "application/json",
22         "contentType": "application/json",
23         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/vls",
24         "path": {},
25         "query": {},
26         "body": {
27             "vnfInstanceData": {
28                 "type": "string",
29                 "value": ""
30             },
31             "additionalParamForVnf": {
32                 "type": "plan",
33                 "value": "StartEvent.object_additionalParamForVnf"
34             },
35             "nsInstanceId": {
36                 "type": "plan",
37                 "value": "StartEvent.nsInstanceId"
38             },
39             "flavourId": {
40                 "type": "string",
41                 "value": ""
42             },
43             "pnfInfo": {
44                 "type": "string",
45                 "value": ""
46             },
47             "extNSVirtualLink": {
48                 "type": "string",
49                 "value": ""
50             },
51             "additionalParamForNs": {
52                 "type": "plan",
53                 "value": "StartEvent.object_additionalParamForNs"
54             },
55             "context": {
56                 "type": "plan",
57                 "value": "StartEvent.object_context"
58             },
59             "sapData": {
60                 "type": "string",
61                 "value": ""
62             },
63             "nestedNsInstanceId": {
64                 "type": "string",
65                 "value": ""
66             },
67             "jobId": {
68                 "type": "string",
69                 "value": ""
70             },
71             "locationConstraints": {
72                 "type": "string",
73                 "value": ""
74             },
75             "vlIndex": {
76                 "type": "plan",
77                 "value": "StartEvent.vl_index"
78             }
79         },
80         "output": {
81             "vlId": {
82                 "type": "topology",
83                 "value": ""
84             },
85             "result": {
86                 "type": "plan",
87                 "value": "StartEvent.vl_status"
88             },
89             "detail": {
90                 "type": "topology",
91                 "value": ""
92             }
93         }
94     },
95     {
96         "name": "StartEvent",
97         "position": {
98             "left": 64,
99             "top": 74
100         },
101         "type": "StartEvent",
102         "connections": [
103             "element173"
104         ],
105         "id": "element27",
106         "output": {
107             "vlCount": {
108                 "type": "string",
109                 "value": ""
110             },
111             "vnfCount": {
112                 "type": "string",
113                 "value": ""
114             },
115             "sfcCount": {
116                 "type": "string",
117                 "value": ""
118             },
119             "object_context": {
120                 "type": "string",
121                 "value": ""
122             },
123             "nsInstanceId": {
124                 "type": "string",
125                 "value": ""
126             },
127             "object_additionalParamForNs": {
128                 "type": "string",
129                 "value": ""
130             },
131             "object_additionalParamForVnf": {
132                 "type": "string",
133                 "value": ""
134             },
135             "jobId": {
136                 "type": "string",
137                 "value": ""
138             },
139             "sdnControllerId": {
140                 "type": "string",
141                 "value": ""
142             }
143         },
144         "variable": {
145             "vl_index": {
146                 "type": "string",
147                 "value": "1"
148             },
149             "vnf_index": {
150                 "type": "string",
151                 "value": "1"
152             },
153             "sfc_index": {
154                 "type": "string",
155                 "value": "1"
156             },
157             "vnf_status": {
158                 "type": "string",
159                 "value": "active"
160             },
161             "sfc_status": {
162                 "type": "string",
163                 "value": "active"
164             },
165             "vl_status": {
166                 "type": "string",
167                 "value": "active"
168             },
169             "exec_status": {
170                 "type": "string",
171                 "value": "active"
172             }
173         }
174     },
175     {
176         "name": "EndEvent",
177         "position": {
178             "left": 872.5,
179             "top": 183
180         },
181         "type": "EndEvent",
182         "connections": [],
183         "id": "element31"
184     },
185     {
186         "name": "Variable",
187         "position": {
188             "left": 321,
189             "top": 112
190         },
191         "type": "Variable",
192         "connections": [],
193         "id": "element166"
194     },
195     {
196         "name": "Assign_vl_index",
197         "position": {
198             "left": 124.5,
199             "top": 257
200         },
201         "type": "Assign",
202         "connections": [
203             "element177"
204         ],
205         "id": "element169",
206         "params": {
207             "StartEvent.vl_index": {
208                 "type": "expression",
209                 "value": "$vl_index+1",
210                 "extension": ""
211             },
212             "StartEvent.vl_status": {
213                 "type": "expression",
214                 "value": "concat(translate($vl_status,'0',''), 'active')",
215                 "extension": ""
216             }
217         }
218     },
219     {
220         "name": "While",
221         "position": {
222             "left": 164.5,
223             "top": 74
224         },
225         "type": "While",
226         "connections": [
227             "element7"
228         ],
229         "id": "element173",
230         "condition": "$vl_index<=$vlCount and $vl_status='active'"
231     },
232     {
233         "name": "End",
234         "position": {
235             "left": 164.5,
236             "top": 337
237         },
238         "type": "Loop",
239         "connections": [
240             "element150"
241         ],
242         "id": "element177"
243     },
244     {
245         "name": "While",
246         "position": {
247             "left": 273.5,
248             "top": 110
249         },
250         "type": "While",
251         "connections": [
252             "element23"
253         ],
254         "id": "element19",
255         "condition": "$vnf_index<=$vnfCount and $vl_status='active' and $vnf_status='active'"
256     },
257     {
258         "name": "createVNF",
259         "position": {
260             "left": 358.5,
261             "top": 106
262         },
263         "type": "RestTask",
264         "microservice": "nslcm",
265         "connections": [
266             "element45"
267         ],
268         "id": "element23",
269         "publicInterface": "vnfs Resource.1",
270         "method": "POST",
271         "accept": "application/json",
272         "contentType": "application/json",
273         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/vnfs",
274         "path": {},
275         "query": {},
276         "body": {
277             "vnfInstanceData": {
278                 "type": "string",
279                 "value": ""
280             },
281             "vnfIndex": {
282                 "type": "plan",
283                 "value": "StartEvent.vnf_index"
284             },
285             "additionalParamForVnf": {
286                 "type": "plan",
287                 "value": "StartEvent.object_additionalParamForVnf"
288             },
289             "nsInstanceId": {
290                 "type": "plan",
291                 "value": "StartEvent.nsInstanceId"
292             },
293             "flavourId": {
294                 "type": "string",
295                 "value": ""
296             },
297             "pnfInfo": {
298                 "type": "string",
299                 "value": ""
300             },
301             "extNSVirtualLink": {
302                 "type": "string",
303                 "value": ""
304             },
305             "additionalParamForNs": {
306                 "type": "plan",
307                 "value": "StartEvent.object_additionalParamForNs"
308             },
309             "context": {
310                 "type": "plan",
311                 "value": "StartEvent.object_context"
312             },
313             "sapData": {
314                 "type": "string",
315                 "value": ""
316             },
317             "nestedNsInstanceId": {
318                 "type": "string",
319                 "value": ""
320             },
321             "jobId": {
322                 "type": "string",
323                 "value": ""
324             },
325             "locationConstraints": {
326                 "type": "string",
327                 "value": ""
328             }
329         },
330         "output": {
331             "vnfInstId": {
332                 "type": "topology",
333                 "value": ""
334             },
335             "jobId": {
336                 "type": "topology",
337                 "value": ""
338             }
339         }
340     },
341     {
342         "name": "Assign_vnf_index",
343         "position": {
344             "left": 342,
345             "top": 389.5
346         },
347         "type": "Assign",
348         "connections": [
349             "element53"
350         ],
351         "id": "element39",
352         "params": {
353             "StartEvent.vnf_index": {
354                 "type": "expression",
355                 "value": "$vnf_index+1",
356                 "extension": ""
357             }
358         }
359     },
360     {
361         "name": "RepeatUntil",
362         "position": {
363             "left": 385,
364             "top": 183
365         },
366         "type": "RepeatUntil",
367         "connections": [
368             "element57"
369         ],
370         "id": "element45",
371         "condition": "$vnf_status='active' or $vnf_status='failed'"
372     },
373     {
374         "name": "End",
375         "position": {
376             "left": 385,
377             "top": 337
378         },
379         "type": "Loop",
380         "connections": [
381             "element39"
382         ],
383         "id": "element49"
384     },
385     {
386         "name": "End",
387         "position": {
388             "left": 385,
389             "top": 447
390         },
391         "type": "Loop",
392         "connections": [
393             "element318"
394         ],
395         "id": "element53"
396     },
397     {
398         "name": "query_vnf nslcm",
399         "position": {
400             "left": 345,
401             "top": 257
402         },
403         "type": "RestTask",
404         "microservice": "nslcm",
405         "connections": [
406             "element49"
407         ],
408         "id": "element57",
409         "publicInterface": "vnfs Resource.3",
410         "method": "GET",
411         "accept": "application/json",
412         "contentType": "application/json",
413         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/vnfs/{vnfInstId}",
414         "path": {
415             "vnfInstId": {
416                 "type": "plan",
417                 "value": "createVNF.vnfInstId"
418             }
419         },
420         "query": {},
421         "body": {},
422         "output": {
423             "vnfInstId": {
424                 "type": "topology",
425                 "value": ""
426             },
427             "vnfName": {
428                 "type": "topology",
429                 "value": ""
430             },
431             "vnfStatus": {
432                 "type": "plan",
433                 "value": "StartEvent.vnf_status"
434             }
435         }
436     },
437     {
438         "name": "While",
439         "position": {
440             "left": 510.5,
441             "top": 110
442         },
443         "type": "While",
444         "connections": [
445             "element160"
446         ],
447         "id": "element156",
448         "condition": "$sfc_index<=$sfcCount and $vl_status='active' and $vnf_status='active' and $sfc_status='active'"
449     },
450     {
451         "name": "createSFC",
452         "position": {
453             "left": 600.5,
454             "top": 106
455         },
456         "type": "RestTask",
457         "microservice": "nslcm",
458         "connections": [
459             "element187"
460         ],
461         "id": "element160",
462         "publicInterface": "sfcs Resource.1",
463         "method": "POST",
464         "accept": "application/json",
465         "contentType": "application/json",
466         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/sfcs",
467         "path": {},
468         "query": {},
469         "body": {
470             "sdnControllerId": {
471                 "type": "plan",
472                 "value": "StartEvent.sdnControllerId"
473             },
474             "vnfInstanceData": {
475                 "type": "string",
476                 "value": ""
477             },
478             "additionalParamForVnf": {
479                 "type": "plan",
480                 "value": "StartEvent.object_additionalParamForVnf"
481             },
482             "nsInstanceId": {
483                 "type": "plan",
484                 "value": "StartEvent.nsInstanceId"
485             },
486             "additionalParamForNs": {
487                 "type": "plan",
488                 "value": "StartEvent.object_additionalParamForNs"
489             },
490             "context": {
491                 "type": "plan",
492                 "value": "StartEvent.object_context"
493             },
494             "sapData": {
495                 "type": "string",
496                 "value": ""
497             },
498             "fpindex": {
499                 "type": "plan",
500                 "value": "StartEvent.sfc_index"
501             }
502         },
503         "output": {
504             "sfcInstId": {
505                 "type": "topology",
506                 "value": ""
507             },
508             "jobId": {
509                 "type": "topology",
510                 "value": ""
511             }
512         }
513     },
514     {
515         "name": "RepeatUntil",
516         "position": {
517             "left": 627,
518             "top": 183
519         },
520         "type": "RepeatUntil",
521         "connections": [
522             "element191"
523         ],
524         "id": "element187",
525         "condition": "$sfc_status='active' or $sfc_status='failed'"
526     },
527     {
528         "name": "querySFC",
529         "position": {
530             "left": 602,
531             "top": 257
532         },
533         "type": "RestTask",
534         "microservice": "nslcm",
535         "connections": [
536             "element201"
537         ],
538         "id": "element191",
539         "publicInterface": "sfcs Resource.0",
540         "method": "GET",
541         "accept": "application/json",
542         "contentType": "application/json",
543         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/sfcs/{sfcInstId}",
544         "path": {
545             "sfcInstId": {
546                 "type": "plan",
547                 "value": "createSFC.sfcInstId"
548             }
549         },
550         "query": {},
551         "body": {},
552         "output": {
553             "sfcName": {
554                 "type": "topology",
555                 "value": ""
556             },
557             "sfcInstId": {
558                 "type": "topology",
559                 "value": ""
560             },
561             "sfcStatus": {
562                 "type": "plan",
563                 "value": "StartEvent.sfc_status"
564             }
565         }
566     },
567     {
568         "name": "End",
569         "position": {
570             "left": 627,
571             "top": 315
572         },
573         "type": "Loop",
574         "connections": [
575             "element205"
576         ],
577         "id": "element201"
578     },
579     {
580         "name": "Assign_sfc_index",
581         "position": {
582             "left": 585,
583             "top": 389.5
584         },
585         "type": "Assign",
586         "connections": [
587             "element228"
588         ],
589         "id": "element205",
590         "params": {
591             "StartEvent.sfc_index": {
592                 "type": "expression",
593                 "value": "$sfc_index+1",
594                 "extension": ""
595             }
596         }
597     },
598     {
599         "name": "End",
600         "position": {
601             "left": 627,
602             "top": 447
603         },
604         "type": "Loop",
605         "connections": [
606             "element356"
607         ],
608         "id": "element228"
609     },
610     {
611         "name": "jobstatus",
612         "position": {
613             "left": 251,
614             "top": 333
615         },
616         "type": "RestTask",
617         "microservice": "nslcm",
618         "connections": [
619             "element19"
620         ],
621         "id": "element150",
622         "publicInterface": "jobstatus.0",
623         "method": "POST",
624         "accept": "application/json",
625         "contentType": "application/json",
626         "url": "http://127.0.0.1:80/api/nslcm/v1/jobs/{jobId}",
627         "path": {
628             "jobId": {
629                 "type": "plan",
630                 "value": "StartEvent.jobId"
631             }
632         },
633         "query": {},
634         "body": {
635             "progress": {
636                 "type": "string",
637                 "value": "20"
638             },
639             "errcode": {
640                 "type": "plan",
641                 "value": "StartEvent.vl_status"
642             },
643             "desc": {
644                 "type": "string",
645                 "value": ""
646             }
647         },
648         "output": {}
649     },
650     {
651         "name": "jobstatus",
652         "position": {
653             "left": 488,
654             "top": 443
655         },
656         "type": "RestTask",
657         "microservice": "nslcm",
658         "connections": [
659             "element156"
660         ],
661         "id": "element318",
662         "publicInterface": "jobstatus.0",
663         "method": "POST",
664         "accept": "application/json",
665         "contentType": "application/json",
666         "url": "http://127.0.0.1:80/api/nslcm/v1/jobs/{jobId}",
667         "path": {
668             "jobId": {
669                 "type": "plan",
670                 "value": "StartEvent.jobId"
671             }
672         },
673         "query": {},
674         "body": {
675             "progress": {
676                 "type": "string",
677                 "value": "60"
678             },
679             "errcode": {
680                 "type": "plan",
681                 "value": "StartEvent.vnf_status"
682             },
683             "desc": {
684                 "type": "string",
685                 "value": ""
686             }
687         },
688         "output": {}
689     },
690     {
691         "name": "jobstatus",
692         "position": {
693             "left": 604.5,
694             "top": 512.5
695         },
696         "type": "RestTask",
697         "microservice": "nslcm",
698         "connections": [
699             "element386"
700         ],
701         "id": "element356",
702         "publicInterface": "jobstatus.0",
703         "method": "POST",
704         "accept": "application/json",
705         "contentType": "application/json",
706         "url": "http://127.0.0.1:80/api/nslcm/v1/jobs/{jobId}",
707         "path": {
708             "jobId": {
709                 "type": "plan",
710                 "value": "StartEvent.jobId"
711             }
712         },
713         "query": {},
714         "body": {
715             "progress": {
716                 "type": "string",
717                 "value": "80"
718             },
719             "errcode": {
720                 "type": "plan",
721                 "value": "StartEvent.sfc_status"
722             },
723             "desc": {
724                 "type": "string",
725                 "value": ""
726             }
727         },
728         "output": {}
729     },
730     {
731         "name": "post_do",
732         "position": {
733             "left": 731.5,
734             "top": 106
735         },
736         "type": "RestTask",
737         "microservice": "nslcm",
738         "connections": [
739             "element369"
740         ],
741         "id": "element360",
742         "publicInterface": "ns postdeal.0",
743         "method": "POST",
744         "accept": "application/json",
745         "contentType": "application/json",
746         "url": "http://127.0.0.1:80/api/nslcm/v1/ns/{nsInstanceId}/postdeal",
747         "path": {
748             "nsInstanceId": {
749                 "type": "plan",
750                 "value": "StartEvent.nsInstanceId"
751             }
752         },
753         "query": {},
754         "body": {
755             "status": {
756                 "type": "plan",
757                 "value": "StartEvent.exec_status"
758             }
759         },
760         "output": {}
761     },
762     {
763         "name": "jobstatus",
764         "position": {
765             "left": 850,
766             "top": 106
767         },
768         "type": "RestTask",
769         "microservice": "nslcm",
770         "connections": [
771             "element31"
772         ],
773         "id": "element369",
774         "publicInterface": "jobstatus.0",
775         "method": "POST",
776         "accept": "application/json",
777         "contentType": "application/json",
778         "url": "http://127.0.0.1:80/api/nslcm/v1/jobs/{jobId}",
779         "path": {
780             "jobId": {
781                 "type": "plan",
782                 "value": "StartEvent.jobId"
783             }
784         },
785         "query": {},
786         "body": {
787             "progress": {
788                 "type": "string",
789                 "value": "100"
790             },
791             "errcode": {
792                 "type": "plan",
793                 "value": "StartEvent.exec_status"
794             },
795             "desc": {
796                 "type": "string",
797                 "value": ""
798             }
799         },
800         "output": {}
801     },
802     {
803         "name": "Assign_all_stauts",
804         "position": {
805             "left": 710,
806             "top": 512.5
807         },
808         "type": "Assign",
809         "connections": [
810             "element360"
811         ],
812         "id": "element386",
813         "params": {
814             "StartEvent.exec_status": {
815                 "type": "expression",
816                 "value": "starts-with($vl_status,'active') and contains($vnf_status,'active') and contains($sfc_status,'active')",
817                 "extension": ""
818             }
819         }
820     }
821 ]