[VVP] udpating scripts for casablanca 2
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_environment_file_parameters / pass / pass.yaml
1 heat_template_version: 2015-04-30
2
3 description: fdsafsfsa
4
5 parameters:
6
7   fw_oam_route_prefixes:
8     type: string
9     description: nsjalfdn
10
11   myvm_net_fqdn:
12     type: string
13     description: nasfln
14
15   TESTDB_avail_hosts:
16     type: string
17     description: nsfadl
18
19   STARKDB_private_v6_ips:
20     type: comma_delimited_list
21     description: ndsajlfn
22
23   workload_context:
24     type: string
25     description: Unique ID for this VNF instance
26
27   availability_zone_0:
28     type: json
29     description: Unique ID for this VNF instance
30
31   environment_context:
32     type: string
33     description: Unique ID for this VNF instance
34   
35   vnf_id:
36     type: string
37     description: Unique ID for this VNF instance
38
39   vf_module_id:
40     type: json
41     description: Unique ID for this VNF module instance
42
43   vnf_name:
44     type: string
45     description: Unique name for this VNF instance
46
47   starkdb_name:
48     type: string
49     description: fdhsfbsakdjnfjdsank
50
51   STARKDB_name:
52     type: json
53     description: fdhsfbsakdjnfjdsank
54
55   STARKDB_image_name:
56     type: string
57     description: fdhsfbsakdjnfjdsank
58
59   STARKDB_flavor_dvdfg:
60     type: string
61     description: fdhsfbsakdjnfjdsank
62
63
64   TESTDB_name:
65     type: string
66     description: fdhsfbsakdjnfjdsank
67
68   TESTDB_name2:
69     type: string
70     description: fdhsfbsakdjnfjdsank
71
72   TESTDB_image_name:
73     type: string
74     description: fdhsfbsakdjnfjdsank
75
76   TESTDB_flavor_name:
77     type: string
78     description: fdhsfbsakdjnfjdsank
79
80   stark_vol1_id:
81     type: number
82     description: myvolume
83     constraints:
84       - range: { min: 100, max: 400 }
85
86   param_X:
87     type: string
88     description: fdafsda
89
90   priv_net_id:
91     type: string
92     description: external network
93
94   #priv_sub2net_id:
95   #  type: json
96   #  description: external subnetwork
97
98   int_priv_subnet_name:
99     type: string
100     description: sadnfjls
101
102   int_priv_net_id:
103     type: string
104     description: internal network name
105
106   STARKDB_crazy_floating_ip:
107     type: string
108     description: asnfjl
109
110   crazy_net_id:
111     type: string
112     description: ansfkld
113
114   crazy_subnet_id:
115     type: string
116     description: asdfnkal
117
118   STARKDB_crazy_ip_0:
119     type: string
120     description: nsalfd
121
122   STARKDB_crazy_ip_1:
123     type: string
124     description: nsalfd
125
126   stark_rg_count:
127     type: string
128     description: njlasd
129
130   my_nested_parameter: 
131     type: string
132     description: naskl
133
134 resources:
135
136   STARKDB_cinder_attach:
137     type: OS::Cinder::VolumeAttachment
138     properties:
139       server: { get_resource: STARKDB_server_0 }
140       volume: { get_param: stark_vol1_id }
141
142   STARKDB_server_0:
143     type: OS::Nova::Server
144     properties:
145       image: { get_param: STARKDB_image_name }
146       flavor: { get_param: STARKDB_flavor_dvdfg }
147       name: { get_param: starkdb_name }
148       metadata:
149         vnf_id: { get_param: vnf_id }
150         vf_module_id: { get_param: vf_module_id }
151         vnf_name: { get_param: vnf_name }
152         workload_context: { get_param: workload_context }
153         environment_context: { get_param: environment_context }
154       networks:
155         - port: { get_resource: STARKDB_0_int_priv_port_0 }
156         - port: { get_resource: STARKDB_0_PRIV_port_1}
157         - port: { get_resource: STARKDB_0_crazy_port_0 }
158         
159
160   STARKDB_server_1:
161     type: OS::Nova::Server
162     properties:
163       image: { get_param: STARKDB_image_name }
164       flavor: { get_param: STARKDB_flavor_dvdfg }
165       name: { get_param: STARKDB_name }
166       metadata:
167         vnf_id: { get_param: vnf_id }
168         vf_module_id: { get_param: vf_module_id }
169         vnf_name: { get_param: vnf_name }
170         #int_network_id: { get_resource: int_priv_network }
171         workload_context: { get_param: workload_context }
172         environment_context: { get_param: environment_context }
173       networks:
174         - port: {get_resource: STARKDB_1_int_priv_port_0}
175         - port: {get_resource: STARKDB_1_crazy_port_0}
176
177   TESTDB_server_0:
178     type: OS::Nova::Server
179     properties:
180       image: { get_param: TESTDB_image_name }
181       flavor: { get_param: TESTDB_flavor_name }
182       name: { get_param: TESTDB_name }
183       metadata:
184         vnf_id: { get_param: vnf_id }
185         vf_module_id: { get_param: vf_module_id }
186         vnf_name: { get_param: vnf_name }
187         #int_network_id: { get_resource: int_priv_network }
188         workload_context: { get_param: workload_context }
189         environment_context: { get_param: environment_context }
190       networks:
191         - port: {get_resource: TESTDB_0_int_priv_port_0}
192       availability_zone: { get_param: availability_zone_0 }
193
194   TESTDB_server_1:
195     type: OS::Nova::Server
196     properties:
197       image: { get_param: TESTDB_image_name }
198       flavor: { get_param: TESTDB_flavor_name }
199       name: { get_param: TESTDB_name2 }
200       metadata:
201         test_fqdn: { get_param: myvm_net_fqdn }
202         vnf_id: { get_param: vnf_id }
203         vf_module_id: { get_param: vf_module_id }
204         vnf_name: { get_param: vnf_name }
205         #int_network_id: { get_resource: int_priv_network }
206         workload_context: { get_param: workload_context }
207         environment_context: { get_param: environment_context }
208       networks:
209         - port: {get_resource: TESTDB_0_int_priv_port_0}
210       availability_zone: { get_param: [ TESTDB_avail_hosts, 0 ] }
211
212
213   vol_attachment:
214     type: OS::Cinder::VolumeAttachment
215     properties:
216       volume_id: { get_param: stark_vol1_id }
217       server: { get_resource: STARKDB_server_0 }
218
219   int_private_net_id:
220     type: OS::Neutron::Net
221     properties:
222       name: { get_param: int_priv_net_id }
223
224   priv_network:
225     type: OS::Neutron::Net
226     properties:
227       fnsdf: nksldfnkl
228
229   int_priv_subnet:
230       type: OS::Neutron::Subnet
231       properties:
232           name: { get_param: int_priv_subnet_name}
233           network_id: { get_resource: int_private_net_id }
234
235   STARKDB_0_int_priv_port_0:
236     type: OS::Neutron::Port
237     properties:
238       network: { get_resource: int_private_net_id }
239       fixed_ips:
240         - subnet_id: { get_resource: int_priv_subnet }
241         - ip_address: { get_param: STARKDB_private_v6_ips }
242
243       
244   STARKDB_0_crazy_port_0:
245     type: OS::Neutron::Port
246     properties:
247       network: { get_param: crazy_net_id }
248       fixed_ips: 
249         - subnet_id: { get_param: crazy_subnet_id }
250         - ip_address: { get_param: STARKDB_crazy_ip_0 }
251       allowed_address_pairs: [ { "ip_address": {get_param:
252         STARKDB_crazy_floating_ip}}]
253
254
255   STARKDB_1_crazy_port_0:
256     type: OS::Neutron::Port
257     properties:
258       network: { get_param: crazy_net_id }
259       fixed_ips: 
260         - subnet_id: { get_param: crazy_subnet_id }
261         - ip_address: { get_param: STARKDB_crazy_ip_1 }
262       allowed_address_pairs: [ { "ip_address": {get_param:
263         STARKDB_crazy_floating_ip}}]
264
265   STARKDB_1_int_priv_port_0:
266     type: OS::Neutron::Port
267     properties:
268       network: { get_resource: int_private_net_id }
269
270
271   TESTDB_0_int_priv_port_0:
272     type: OS::Neutron::Port
273     properties:
274       network: { get_param: int_priv_net_id }
275
276   STARKDB_0_PRIV_port_1:
277     type: OS::Neutron::Port
278     properties:
279       network: { get_param: priv_net_id }
280
281   STARKDB_cloud_config:
282     type: OS::Heat::CloudConfig
283
284
285   myrouteprefix:
286     type: OS::ContrailV2::InterfaceRouteTable
287     properties:
288       name:
289         str_replace:
290           template: VNF_NAME_interface_route_table
291           params:
292             VNF_NAME: { get_param: vnf_name }
293       interface_route_table_routes:
294         interface_route_table_routes_route: { get_param: fw_oam_route_prefixes }
295         test: safd
296
297   stark_rg:
298     type: OS::Heat::ResourceGroup
299     properties:
300       count: { get_param: stark_rg_count }
301       resource_def:
302         type: STARKDB-nested.yaml
303         properties:
304           my_nested_parameter: {get_param:  my_nested_parameter}