Commit seed code for validation-scripts
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_allowed_address_pairs_include_vm_type_network_role / fail / mismatch_vm_type_internal_nova_server.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2017 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: Heat template description
44
45 parameters:
46
47   vnf_id:
48     type: string
49     description: Unique ID for this VNF instance
50
51   vf_module_id:
52     type: string
53     description: Unique ID for this VF module
54
55   vnf_name:
56     type: string
57     description: Unique name for this VNF instance
58
59   db1_names:
60     type: comma_delimited_list
61     description: Names attribute for the VMs
62
63   lb_names:
64     type: comma_delimited_list
65     description: Names attribute for the VMs
66
67   lb_flavor_name:
68     type: string
69     description: flavor to be used to create this vm must be one of the following flavors
70
71   db1_flavor_name:
72     type: string
73     description: flavor to be used to create this vm must be one of the following flavors
74
75   availability_zone_0:
76     type: string
77     description: availability zone to be used
78
79   exnet_net_name:
80     type: string
81     description: network name for the external network extnet
82
83   exnet_net_id:
84     type: string
85     description: network id for the external network extnet
86
87   int_intranet_net_id:
88     type: string
89     description: network id for the internal network intranet 
90
91   db_int_intranet_ip_0:
92     type: string
93     description: db_int_intranet_ip_0
94
95   db_int_intranet_v6_ip_0:
96     type: string
97     description: db_int_intranet_v6_ip_0
98
99   db_int_intranet_ips:
100     type: string
101     description: db_int_intranet_ips
102
103   db_int_intranet_v6_ips:
104     type: string
105     description: db_int_intranet_v6_ips
106
107   db_int_intranet_floating_ip:
108     type: string
109     description: db_int_intranet_floating_ip
110
111   db_int_intranet_floating_v6_ip:
112     type: string
113     description: db_int_intranet_floating_v6_ip
114
115   lb_extnet_ip_0:
116     type: string
117     description: lb_extnet_ip_0
118
119   lb_extnet_v6_ip_0:
120     type: string
121     description: lb_extnet_v6_ip_0
122
123   lb_extnet_ips:
124     type: string
125     description: lb_extnet_ips
126
127   lb_extnet_v6_ips:
128     type: string
129     description: lb_extnet_v6_ips
130
131   lb_extnet_floating_ip:
132     type: string
133     description: lb_extnet_floating_ip
134
135   lb_extnet_floating_v6_ip:  
136     type: string
137     description: lb_extnet_floating_v6_ip
138
139 resources:
140
141   lb_server_0:
142     type: OS::Nova::Server
143     properties:
144       availability_zone: { get_param: availability_zone_0 }
145       name: { get_param: [lb_names, 0]  }
146       flavor: { get_param: lb_flavor_name}
147       networks:
148         - port: { get_resource: lb_0_extnet_0_port }
149         - port: { get_resource: lb_1_extnet_0_port }
150         - port: { get_resource: lb_2_extnet_0_port }
151         - port: { get_resource: lb_3_extnet_0_port }
152         - port: { get_resource: lb_4_extnet_0_port }
153         - port: { get_resource: lb_5_extnet_0_port }  
154       metadata:
155         vnf_name: { get_param: vnf_name }
156         vnf_id: { get_param: vnf_id }
157         vf_module_id: { get_param: vf_module_id }
158
159   db_server_0:
160     type: OS::Nova::Server
161     properties:
162       availability_zone: { get_param: availability_zone_0 }
163       name: { get_param: [db1_names, 1]  }
164       flavor: { get_param: db1_flavor_name}
165       networks:
166         - port: { get_resource: db_0_int_intranet_0_port }
167         - port: { get_resource: db_1_int_intranet_0_port }
168         - port: { get_resource: db_2_int_intranet_0_port }
169         - port: { get_resource: db_3_int_intranet_0_port }
170         - port: { get_resource: db_4_int_intranet_0_port }
171         - port: { get_resource: db_5_int_intranet_0_port }
172       metadata:
173         vnf_name: { get_param: vnf_name }
174         vnf_id: { get_param: vnf_id }
175         vf_module_id: { get_param: vf_module_id }
176
177   db_0_int_intranet_0_port:
178         type: OS::Neutron::Port
179         properties:
180           network: { get_param: int_intranet_net_id }
181           allowed_address_pairs:
182             - ip_address: { get_param: db_int_intranet_ip_0 }
183
184   db_1_int_intranet_0_port:
185         type: OS::Neutron::Port
186         properties:
187           network: { get_param: int_intranet_net_id }
188           allowed_address_pairs:
189             - ip_address: { get_param: db_int_intranet_v6_ip_0 }
190
191   db_2_int_intranet_0_port:
192         type: OS::Neutron::Port
193         properties:
194           network: { get_param: int_intranet_net_id }
195           allowed_address_pairs:
196             - ip_address: { get_param: [db_int_intranet_ips, 0] }
197
198   db_3_int_intranet_0_port:
199         type: OS::Neutron::Port
200         properties:
201           network: { get_param: int_intranet_net_id }
202           allowed_address_pairs:
203             - ip_address: { get_param: [db_int_intranet_v6_ips, 0] }
204
205   db_4_int_intranet_0_port:
206         type: OS::Neutron::Port
207         properties:
208           network: { get_param: int_intranet_net_id }
209           allowed_address_pairs:
210             - ip_address: { get_param: db_int_intranet_floating_ip }
211
212   db_5_int_intranet_0_port:
213         type: OS::Neutron::Port
214         properties:
215           network: { get_param: int_intranet_net_id }
216           allowed_address_pairs:
217             - ip_address: { get_param: db_int_intranet_floating_v6_ip }
218
219   lb_0_extnet_0_port:
220         type: OS::Neutron::Port
221         properties:
222           network: { get_param: extnet_net_name }
223           allowed_address_pairs:
224             - ip_address: { get_param: lb_extnet_ip_0 }
225
226   lb_1_extnet_0_port:
227         type: OS::Neutron::Port
228         properties:
229           network: { get_param: extnet_net_id }
230           allowed_address_pairs:
231             - ip_address: { get_param: lb_extnet_v6_ip_0 }
232
233   lb_2_extnet_0_port:
234         type: OS::Neutron::Port
235         properties:
236           network: { get_param: extnet_net_name }
237           allowed_address_pairs:
238             - ip_address: { get_param: [lb_extnet_ips, 0] }
239
240   lb_3_extnet_0_port:
241         type: OS::Neutron::Port
242         properties:
243           network: { get_param: extnet_net_id }
244           allowed_address_pairs:
245             - ip_address: { get_param: [lb_extnet_v6_ips, 0] }
246
247   lb_4_extnet_0_port:
248         type: OS::Neutron::Port
249         properties:
250           network: { get_param: extnet_net_name }
251           allowed_address_pairs:
252             - ip_address: { get_param: lb_extnet_floating_ip }
253
254   lb_5_extnet_0_port:
255         type: OS::Neutron::Port
256         properties:
257           network: { get_param: extnet_net_id }
258           allowed_address_pairs:
259             - ip_address: { get_param: lb_extnet_floating_v6_ip }