Initial commit for Sequence Generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / test / resources / input / mandatory-vnfc.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25
26
27
28 {
29         "request-info":
30         {
31                 "action": "Start",
32                 "action-level": "vnf",
33                 "action-identifier":
34                 {
35                         "vnf-id": "dbgx0001v"
36                 },
37                 "payload": "ABC"
38         },
39         "inventory-info":
40         {
41                 "vnf-info":
42                 {
43                         "vnf-id" : "abc",
44                         "vnf-name": "vVNF",
45                         "vnf-type": "vVNF",
46                         "vnf-version" : "1.0",
47                         "vm": [
48                                         {
49                                                 "vserver-id" : "vnfc2_vserverid1",
50                                                 "vnfc":
51                                                                 {
52                                                                         "vnfc-type": "VNFC2",
53                                                                         "vnfc-name": "VNFC2 - Name"
54                                                                 }
55
56                                         },
57                                         {
58                                                 "vserver-id" : "vnfc2_vserverid2",
59                                                 "vnfc":
60                                                                 {
61                                                                         "vnfc-type": "VNFC2",
62                                                                         "vnfc-name": "VNFC2 - Name"
63                                                                 }
64
65                                         },
66                                         {
67                                                 "vserver-id" : "vnfc2_vserverid3",
68                                                 "vnfc":
69                                                                 {
70                                                                         "vnfc-type": "VNFC2",
71                                                                         "vnfc-name": "VNFC2 - Name"
72                                                                 }
73
74                                         },
75                                         {
76                                                 "vserver-id" : "vnfc1_vserverid1",
77                                                 "vnfc":
78                                                                 {
79                                                                         "vnfc-type": "VNFC1",
80                                                                         "vnfc-name": "VNFC1 - Name"
81                                                                 }
82
83                                         },
84                                         {
85                                                 "vserver-id" : "vnfc1_vserverid2",
86                                                 "vnfc":
87                                                                 {
88                                                                         "vnfc-type": "VNFC1",
89                                                                         "vnfc-name": "VNFC1 - Name"
90                                                                 }
91                                         },
92                                         {
93                                                 "vserver-id" : "vnfc2_vserverid4",
94                                                 "vnfc":
95                                                 {
96                                                         "vnfc-type": "VNFC2",
97                                                         "vnfc-name": "VNFC2 - Name"
98                                                 }
99
100                                         },
101                                         {
102                                                 "vserver-id" : "vnfc2_vserverid5",
103                                                 "vnfc":
104                                                 {
105                                                         "vnfc-type": "VNFC2",
106                                                         "vnfc-name": "VNFC2 - Name"
107                                                 }
108
109                                         }
110                         ]
111                 }
112         },
113         "dependency-info":
114         {
115                 "vnfcs" :
116                 [
117                         {
118                                 "vnfc-type" : "VNFC2",
119                                 "mandatory" : "true",
120                                 "resilience": "Active-Active",
121                                 "parents" :
122                                 [
123                                         "VNFC1"
124                                 ]
125                         },
126                         {
127                                 "vnfc-type" : "VNFC3",
128                                 "mandatory" : "true",
129                                 "resilience": "Active-Active",
130                                 "parents" :
131                                 [
132                                         "VNFC2"
133                                 ]
134                         },
135                         {
136                                 "vnfc-type" : "VNFC1",
137                                 "mandatory" : "true",
138                                 "resilience": "Active-Passive",
139                                 "parents" : []
140                         }
141                 ]
142         },
143         "tunable-parameters":
144         {
145                 "strategy" : "FORWARD",
146                 "wait-time": "120",
147                 "retry-count": "5"
148         },
149         "capabilities" :
150         {
151                 "vnf":
152                 [
153                         "Stop",
154                         "Start",
155                         "StartApplication",
156                         "StopApplication"
157                 ],
158                 "vf-module":
159                 [
160                         "Stop",
161                         "Start"
162                 ],
163                 "vm" :
164                 [
165                         "Stop",
166                         "Start"
167                 ],
168                 "vnfc":
169                 [
170                         "StopApplication",
171                         "StartApplication",
172                         "HealthCheck"
173                 ]
174         }
175 }
176
177