2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
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
13 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
28 # https://creativecommons.org/licenses/by/4.0/
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.
36 # ============LICENSE_END============================================
40 heat_template_version: 2015-04-30
42 description: Heat template description
48 description: Unique ID for this VNF instance
52 description: Unique ID for this VF module
56 description: Unique name for this VNF instance
59 type: comma_delimited_list
60 description: Names attribute for the VMs
63 type: comma_delimited_list
64 description: Names attribute for the VMs
68 description: flavor to be used to create this vm must be one of the following flavors
72 description: flavor to be used to create this vm must be one of the following flavors
76 description: availability zone to be used
80 description: network name for the external network extnet
84 description: network id for the external network extnet
88 description: network id for the internal network intranet
90 db_int_intranet_floating_ip:
92 description: db_int_intranet_floating_ip
94 db_int_intranet_floating_v6_ip:
96 description: db_int_intranet_floating_v6_ip
98 db_int_intranet_floating_ips:
99 type: comma_delimited_list
100 description: db_int_intranet_floating_ips
102 db_int_intranet_floating_v6_ips:
103 type: comma_delimited_list
104 description: db_int_intranet_floating_v6_ips
106 db_int_intranet_floating_ip:
108 description: db_int_intranet_floating_ip
110 lb_extnet_floating_ip:
112 description: lb_extnet_floating_ip
114 lb_extnet_floating_v6_ip:
116 description: lb_extnet_floating_v6_ip
119 type: comma_delimited_list
120 description: lb_extnet_ips
123 type: comma_delimited_list
124 description: lb_extnet_v6_ips
126 lb_extnet_floating_ip:
128 description: lb_extnet_floating_ip
132 description: nafskldnaklsdf
137 type: OS::Nova::Server
139 availability_zone: { get_param: availability_zone_0 }
140 name: { get_param: [lb_names, 0] }
141 flavor: { get_param: lb_flavor_name}
143 - port: { get_resource: lb_0_extnet_0_port }
144 - port: { get_resource: lb_1_extnet_0_port }
145 - port: { get_resource: lb_2_extnet_0_port }
146 - port: { get_resource: lb_3_extnet_0_port }
147 - port: { get_resource: lb_4_extnet_0_port }
148 - port: { get_resource: lb_5_extnet_0_port }
149 - port: { get_resource: lb_6_extnet_0_port }
151 vnf_name: { get_param: vnf_name }
152 vnf_id: { get_param: vnf_id }
153 vf_module_id: { get_param: vf_module_id }
156 type: OS::Nova::Server
158 availability_zone: { get_param: availability_zone_0 }
159 name: { get_param: [db_names, 1] }
160 flavor: { get_param: db_flavor_name}
162 - port: { get_resource: db_0_int_intranet_0_port }
163 - port: { get_resource: db_1_int_intranet_0_port }
164 - port: { get_resource: db_2_int_intranet_0_port }
165 - port: { get_resource: db_3_int_intranet_0_port }
166 - port: { get_resource: db_4_int_intranet_0_port }
167 - port: { get_resource: db_5_int_intranet_0_port }
169 vnf_name: { get_param: vnf_name }
170 vnf_id: { get_param: vnf_id }
171 vf_module_id: { get_param: vf_module_id }
173 db_0_int_intranet_port_0:
174 type: OS::Neutron::Port
176 network: { get_param: int_intranet_net_id }
177 allowed_address_pairs:
178 - ip_address: { get_param: db_int_intranet_floating_ip }
180 db_0_int_intranet_port_1:
181 type: OS::Neutron::Port
183 network: { get_param: int_intranet_net_id }
184 allowed_address_pairs:
185 - ip_address: { get_param: db_int_intranet_floating_v6_ip }
187 db_0_int_intranet_port_2:
188 type: OS::Neutron::Port
190 network: { get_param: int_intranet_net_id }
191 allowed_address_pairs:
192 - ip_address: { get_param: [db_int_intranet_floating_ips, 0] }
194 db_0_int_intranet_port_3:
195 type: OS::Neutron::Port
197 network: { get_param: int_intranet_net_id }
198 allowed_address_pairs:
199 - ip_address: { get_param: [db_int_intranet_floating_v6_ips, 0] }
201 db_0_int_intranet_port_4:
202 type: OS::Neutron::Port
204 network: { get_param: int_intranet_net_id }
205 allowed_address_pairs:
206 - ip_address: { get_param: db_int_intranet_floating_ip }
208 db_0_int_intranet_port_5:
209 type: OS::Neutron::Port
211 network: { get_param: int_intranet_net_id }
212 allowed_address_pairs:
213 - ip_address: { get_param: db_int_intranet_floating_v6_ip }
216 type: OS::Neutron::Port
218 network: { get_param: extnet_net_name }
219 allowed_address_pairs:
220 - ip_address: { get_param: lb_extnet_floating_ip }
223 type: OS::Neutron::Port
225 network: { get_param: extnet_net_id }
226 allowed_address_pairs:
227 - ip_address: { get_param: lb_extnet_floating_v6_ip }
230 type: OS::Neutron::Port
232 network: { get_param: extnet_net_name }
233 allowed_address_pairs:
234 - ip_address: { get_param: [lb_extnet_ips, 0] }
240 type: OS::Neutron::Port
242 network: { get_param: extnet_net_id }
243 allowed_address_pairs:
244 - ip_address: { get_param: [lb_extnet_v6_ips, 0] }
250 type: OS::Neutron::Port
252 network: { get_param: extnet_net_name }
253 allowed_address_pairs:
254 - ip_address: { get_param: lb_extnet_floating_ip }
257 type: OS::Neutron::Port
259 network: { get_param: extnet_net_id }
260 allowed_address_pairs:
261 - ip_address: { get_param: lb_extnet_floating_v6_ip }
264 type: OS::Neutron::Port
266 network: { get_param: extnet_net_id }
267 allowed_address_pairs:
270 template: $IPADDR$CIDR
272 $CIDR: { get_param: cidr }
273 $IPADDR: { get_param: lb_extnet_floating_v6_ip }