import tosca bug
[sdc.git] / openecomp-be / lib / openecomp-tosca-converter-lib / openecomp-tosca-converter-core / src / test / resources / mock / toscaConverter / convertCsar / in / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1
2 metadata:
3   invariantUUID: 3c677981-34bf-47a0-a21b-c0d81f93d438
4   UUID: 5e74136f-3ca0-48eb-b0e7-b3740e170030
5   name: SPGW
6   description: SPGW
7   type: VF
8   category: Application L4+
9   subcategory: Firewall
10   resourceVendor: zte
11   resourceVendorRelease: v1.0
12   resourceVendorModelNumber: ''
13 imports:
14 - nodes:
15     file: Definitions/nodes.yml
16 - datatypes:
17     file: Definitions/data.yml
18 - capabilities:
19     file: Definitions/capabilities.yml
20 - relationships:
21     file: Definitions/relationships.yml
22 - groups:
23     file: Definitions/groups.yml
24 - policies:
25     file: Definitions/policies.yml
26 - resource-SPGW-interface:
27     file: Definitions/resource-Spgw-template-interface.yml
28 - resource-Compute:
29     file: Definitions/resource-Compute-template.yml
30 - resource-Cpd:
31     file: Definitions/resource-Cpd-template.yml
32 - resource-ExtCP:
33     file: Definitions/resource-Extcp-template.yml
34 - resource-Network:
35     file: Definitions/resource-Network-template.yml
36 - resource-BlockStorage:
37     file: Definitions/resource-Blockstorage-template.yml
38 topology_template:
39   inputs:
40     nf_naming:
41       type: org.openecomp.datatypes.Naming
42       default:
43         ecomp_generated_naming: true
44     nf_naming_code:
45       type: string
46       default: {
47         }
48     nf_function:
49       type: string
50       default: {
51         }
52     availability_zone_max_count:
53       type: integer
54       default: 1
55     nf_role:
56       type: string
57       default: {
58         }
59     max_instances:
60       type: integer
61       default: {
62         }
63     min_instances:
64       type: integer
65       default: {
66         }
67     nf_type:
68       type: string
69       default: {
70         }
71   node_templates:
72     Cpd 0:
73       type: tosca.nodes.nfv.VduCpd
74       metadata:
75         invariantUUID: 77336b37-f7b2-4226-a347-158d9c5a90b3
76         UUID: 06e09b93-d4aa-4d08-a2e5-99dbe80fb556
77         customizationUUID: fbf85c13-570f-415b-8eef-477341fcc6dc
78         version: '2.0'
79         name: Cpd
80         description: Cpd desc.
81         type: CP
82         category: Nfvo
83         subcategory: Network Elements
84         resourceVendor: ATT (Tosca)
85         resourceVendorRelease: 1.0.0.wd03
86         resourceVendorModelNumber: ''
87     BlockStorage 0:
88       type: tosca.nodes.BlockStorage
89       metadata:
90         invariantUUID: cbb3a953-20e4-49cd-b957-4d7a3232e2fc
91         UUID: 505ee1a0-68bb-4a85-a5ed-78ffa1a93a9b
92         customizationUUID: 9440174f-f641-44ba-8a93-6c3c8c6e17b9
93         version: '1.0'
94         name: BlockStorage
95         description: Represents a server-local block storage device (i.e., not shared) offering evenly sized blocks of data from which raw storage volumes can be created.
96         type: VFC
97         category: Generic
98         subcategory: Infrastructure
99         resourceVendor: ATT (Tosca)
100         resourceVendorRelease: 1.0.0.wd03
101         resourceVendorModelNumber: ''
102     ExtCP 0:
103       type: org.openecomp.resource.cp.extCP
104       metadata:
105         invariantUUID: eee70cdb-7632-4f4b-8a69-e1d7230a3263
106         UUID: 74db9efa-f694-4a7b-8056-6145372b37c4
107         customizationUUID: b6bc4c89-f2e3-4d14-8fb2-8535f42331a7
108         version: '3.0'
109         name: ExtCP
110         description: The AT&T Connection Point base type all other CP derive from
111         type: CP
112         category: Generic
113         subcategory: Network Elements
114         resourceVendor: ATT (Tosca)
115         resourceVendorRelease: 1.0.0.wd03
116         resourceVendorModelNumber: ''
117       properties:
118         mac_requirements:
119           mac_count_required:
120             is_required: false
121         exCP_naming:
122           ecomp_generated_naming: true
123     Network 0:
124       type: tosca.nodes.network.Network
125       metadata:
126         invariantUUID: e9f16c37-4632-4e1b-ba2f-10e2f9ade337
127         UUID: 2a34714c-84fa-4f74-b118-b87d25b6d0eb
128         customizationUUID: f7bb69e3-2b97-4fcd-b18d-5eba059a37b1
129         version: '1.0'
130         name: Network
131         description: Represents a simple , logical network service.
132         type: VL
133         category: Generic
134         subcategory: Infrastructure
135         resourceVendor: ATT (Tosca)
136         resourceVendorRelease: 1.0.0.wd03
137         resourceVendorModelNumber: ''
138       properties:
139         dhcp_enabled: true
140         ip_version: 4
141     Compute 0:
142       type: tosca.nodes.Compute
143       metadata:
144         invariantUUID: 2d9b896d-13ea-4a32-9d59-2966b4925aea
145         UUID: fb2c9fe0-bea9-4945-9e31-04709bcda292
146         customizationUUID: ffee7d61-f396-4630-ba3c-f5c6b514816f
147         version: '1.0'
148         name: Compute
149         description: Represents a real or virtual machine or server. Information specified on the Compute node will be used to find the machine that fits the given requirements in the cloud available machines. If no sizing information are specified the cloud provider default machine will be used. It is strongly recommended to specify the required CPUs and memory at least.
150         type: VFC
151         category: Generic
152         subcategory: Infrastructure
153         resourceVendor: ATT (Tosca)
154         resourceVendorRelease: 1.0.0.wd03
155         resourceVendorModelNumber: ''
156   substitution_mappings:
157     node_type: org.openecomp.resource.vf.Spgw
158     capabilities:
159       extcp0.feature:
160       - ExtCP 0
161       - feature
162       compute0.binding:
163       - Compute 0
164       - binding
165       extcp0.internal_connectionPoint:
166       - ExtCP 0
167       - internal_connectionPoint
168       blockstorage0.feature:
169       - BlockStorage 0
170       - feature
171       compute0.feature:
172       - Compute 0
173       - feature
174       compute0.host:
175       - Compute 0
176       - host
177       network0.feature:
178       - Network 0
179       - feature
180       compute0.scalable:
181       - Compute 0
182       - scalable
183       compute0.endpoint:
184       - Compute 0
185       - endpoint
186       blockstorage0.attachment:
187       - BlockStorage 0
188       - attachment
189       compute0.os:
190       - Compute 0
191       - os
192       network0.link:
193       - Network 0
194       - link
195       cpd0.feature:
196       - Cpd 0
197       - feature
198     requirements:
199       extcp0.virtualBinding:
200       - ExtCP 0
201       - virtualBinding
202       blockstorage0.dependency:
203       - BlockStorage 0
204       - dependency
205       cpd0.dependency:
206       - Cpd 0
207       - dependency
208       compute0.dependency:
209       - Compute 0
210       - dependency
211       extcp0.external_virtualLink:
212       - ExtCP 0
213       - external_virtualLink
214       extcp0.dependency:
215       - ExtCP 0
216       - dependency
217       network0.dependency:
218       - Network 0
219       - dependency
220       cpd0.virtual_link:
221       - Cpd 0
222       - virtual_link
223       extcp0.virtualLink:
224       - ExtCP 0
225       - virtualLink
226       compute0.local_storage:
227       - Compute 0
228       - local_storage
229       cpd0.virtual_binding:
230       - Cpd 0
231       - virtual_binding