8099410b4df04885fc31a6e14134a547c18d22da
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_environment_file_parameters / pass / pass.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2019 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
7 #
8 # Unless otherwise specified, all software contained herein is licensed
9 # under the Apache License, Version 2.0 (the "License");
10 # you may not use this software 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 #
22 #
23 # Unless otherwise specified, all documentation contained herein is licensed
24 # under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25 # you may not use this documentation except in compliance with the License.
26 # You may obtain a copy of the License at
27 #
28 #             https://creativecommons.org/licenses/by/4.0/
29 #
30 # Unless required by applicable law or agreed to in writing, documentation
31 # distributed under the License is distributed on an "AS IS" BASIS,
32 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 # See the License for the specific language governing permissions and
34 # limitations under the License.
35 #
36 # ============LICENSE_END============================================
37 #
38 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 #
40
41 heat_template_version: 2015-04-30
42
43 description: fdsafsfsa
44
45 parameters:
46
47   fw_oam_route_prefixes:
48     type: string
49     description: nsjalfdn
50
51   myvm_net_fqdn:
52     type: string
53     description: nasfln
54
55   TESTDB_avail_hosts:
56     type: string
57     description: nsfadl
58
59   STARKDB_private_v6_ips:
60     type: comma_delimited_list
61     description: ndsajlfn
62
63   workload_context:
64     type: string
65     description: Unique ID for this VNF instance
66
67   availability_zone_0:
68     type: json
69     description: Unique ID for this VNF instance
70
71   environment_context:
72     type: string
73     description: Unique ID for this VNF instance
74   
75   vnf_id:
76     type: string
77     description: Unique ID for this VNF instance
78
79   vf_module_id:
80     type: json
81     description: Unique ID for this VNF module instance
82
83   vnf_name:
84     type: string
85     description: Unique name for this VNF instance
86
87   starkdb_name:
88     type: string
89     description: fdhsfbsakdjnfjdsank
90
91   STARKDB_name:
92     type: json
93     description: fdhsfbsakdjnfjdsank
94
95   STARKDB_image_name:
96     type: string
97     description: fdhsfbsakdjnfjdsank
98
99   STARKDB_flavor_dvdfg:
100     type: string
101     description: fdhsfbsakdjnfjdsank
102
103
104   TESTDB_name:
105     type: string
106     description: fdhsfbsakdjnfjdsank
107
108   TESTDB_name2:
109     type: string
110     description: fdhsfbsakdjnfjdsank
111
112   TESTDB_image_name:
113     type: string
114     description: fdhsfbsakdjnfjdsank
115
116   TESTDB_flavor_name:
117     type: string
118     description: fdhsfbsakdjnfjdsank
119
120   stark_vol1_id:
121     type: number
122     description: myvolume
123     constraints:
124       - range: { min: 100, max: 400 }
125
126   param_X:
127     type: string
128     description: fdafsda
129
130   priv_net_id:
131     type: string
132     description: external network
133
134   #priv_sub2net_id:
135   #  type: json
136   #  description: external subnetwork
137
138   int_priv_subnet_name:
139     type: string
140     description: sadnfjls
141
142   int_priv_net_id:
143     type: string
144     description: internal network name
145
146   STARKDB_crazy_floating_ip:
147     type: string
148     description: asnfjl
149
150   crazy_net_id:
151     type: string
152     description: ansfkld
153
154   crazy_subnet_id:
155     type: string
156     description: asdfnkal
157
158   STARKDB_crazy_ip_0:
159     type: string
160     description: nsalfd
161
162   STARKDB_crazy_ip_1:
163     type: string
164     description: nsalfd
165
166   stark_rg_count:
167     type: string
168     description: njlasd
169
170   my_nested_parameter: 
171     type: string
172     description: naskl
173
174 resources:
175
176   STARKDB_cinder_attach:
177     type: OS::Cinder::VolumeAttachment
178     properties:
179       server: { get_resource: STARKDB_server_0 }
180       volume: { get_param: stark_vol1_id }
181
182   STARKDB_server_0:
183     type: OS::Nova::Server
184     properties:
185       image: { get_param: STARKDB_image_name }
186       flavor: { get_param: STARKDB_flavor_dvdfg }
187       name: { get_param: starkdb_name }
188       metadata:
189         vnf_id: { get_param: vnf_id }
190         vf_module_id: { get_param: vf_module_id }
191         vnf_name: { get_param: vnf_name }
192         workload_context: { get_param: workload_context }
193         environment_context: { get_param: environment_context }
194       networks:
195         - port: { get_resource: STARKDB_0_int_priv_port_0 }
196         - port: { get_resource: STARKDB_0_PRIV_port_1}
197         - port: { get_resource: STARKDB_0_crazy_port_0 }
198         
199
200   STARKDB_server_1:
201     type: OS::Nova::Server
202     properties:
203       image: { get_param: STARKDB_image_name }
204       flavor: { get_param: STARKDB_flavor_dvdfg }
205       name: { get_param: STARKDB_name }
206       metadata:
207         vnf_id: { get_param: vnf_id }
208         vf_module_id: { get_param: vf_module_id }
209         vnf_name: { get_param: vnf_name }
210         #int_network_id: { get_resource: int_priv_network }
211         workload_context: { get_param: workload_context }
212         environment_context: { get_param: environment_context }
213       networks:
214         - port: {get_resource: STARKDB_1_int_priv_port_0}
215         - port: {get_resource: STARKDB_1_crazy_port_0}
216
217   TESTDB_server_0:
218     type: OS::Nova::Server
219     properties:
220       image: { get_param: TESTDB_image_name }
221       flavor: { get_param: TESTDB_flavor_name }
222       name: { get_param: TESTDB_name }
223       metadata:
224         vnf_id: { get_param: vnf_id }
225         vf_module_id: { get_param: vf_module_id }
226         vnf_name: { get_param: vnf_name }
227         #int_network_id: { get_resource: int_priv_network }
228         workload_context: { get_param: workload_context }
229         environment_context: { get_param: environment_context }
230       networks:
231         - port: {get_resource: TESTDB_0_int_priv_port_0}
232       availability_zone: { get_param: availability_zone_0 }
233
234   TESTDB_server_1:
235     type: OS::Nova::Server
236     properties:
237       image: { get_param: TESTDB_image_name }
238       flavor: { get_param: TESTDB_flavor_name }
239       name: { get_param: TESTDB_name2 }
240       metadata:
241         test_fqdn: { get_param: myvm_net_fqdn }
242         vnf_id: { get_param: vnf_id }
243         vf_module_id: { get_param: vf_module_id }
244         vnf_name: { get_param: vnf_name }
245         #int_network_id: { get_resource: int_priv_network }
246         workload_context: { get_param: workload_context }
247         environment_context: { get_param: environment_context }
248       networks:
249         - port: {get_resource: TESTDB_0_int_priv_port_0}
250       availability_zone: { get_param: [ TESTDB_avail_hosts, 0 ] }
251
252
253   vol_attachment:
254     type: OS::Cinder::VolumeAttachment
255     properties:
256       volume_id: { get_param: stark_vol1_id }
257       server: { get_resource: STARKDB_server_0 }
258
259   int_private_net_id:
260     type: OS::Neutron::Net
261     properties:
262       name: { get_param: int_priv_net_id }
263
264   priv_network:
265     type: OS::Neutron::Net
266     properties:
267       fnsdf: nksldfnkl
268
269   int_priv_subnet:
270       type: OS::Neutron::Subnet
271       properties:
272           name: { get_param: int_priv_subnet_name}
273           network_id: { get_resource: int_private_net_id }
274
275   STARKDB_0_int_priv_port_0:
276     type: OS::Neutron::Port
277     properties:
278       network: { get_resource: int_private_net_id }
279       fixed_ips:
280         - subnet_id: { get_resource: int_priv_subnet }
281         - ip_address: { get_param: STARKDB_private_v6_ips }
282
283       
284   STARKDB_0_crazy_port_0:
285     type: OS::Neutron::Port
286     properties:
287       network: { get_param: crazy_net_id }
288       fixed_ips: 
289         - subnet_id: { get_param: crazy_subnet_id }
290         - ip_address: { get_param: STARKDB_crazy_ip_0 }
291       allowed_address_pairs: [ { "ip_address": {get_param:
292         STARKDB_crazy_floating_ip}}]
293
294
295   STARKDB_1_crazy_port_0:
296     type: OS::Neutron::Port
297     properties:
298       network: { get_param: crazy_net_id }
299       fixed_ips: 
300         - subnet_id: { get_param: crazy_subnet_id }
301         - ip_address: { get_param: STARKDB_crazy_ip_1 }
302       allowed_address_pairs: [ { "ip_address": {get_param:
303         STARKDB_crazy_floating_ip}}]
304
305   STARKDB_1_int_priv_port_0:
306     type: OS::Neutron::Port
307     properties:
308       network: { get_resource: int_private_net_id }
309
310
311   TESTDB_0_int_priv_port_0:
312     type: OS::Neutron::Port
313     properties:
314       network: { get_param: int_priv_net_id }
315
316   STARKDB_0_PRIV_port_1:
317     type: OS::Neutron::Port
318     properties:
319       network: { get_param: priv_net_id }
320
321   STARKDB_cloud_config:
322     type: OS::Heat::CloudConfig
323
324
325   myrouteprefix:
326     type: OS::ContrailV2::InterfaceRouteTable
327     properties:
328       name:
329         str_replace:
330           template: VNF_NAME_interface_route_table
331           params:
332             VNF_NAME: { get_param: vnf_name }
333       interface_route_table_routes:
334         interface_route_table_routes_route: { get_param: fw_oam_route_prefixes }
335         test: safd
336
337   stark_rg:
338     type: OS::Heat::ResourceGroup
339     properties:
340       count: { get_param: stark_rg_count }
341       resource_def:
342         type: STARKDB-nested.yaml
343         properties:
344           my_nested_parameter: {get_param:  my_nested_parameter}