1 ##########################################################################
3 #==================LICENSE_START==========================================
6 # Copyright 2017 AT&T Intellectual Property. All rights reserved.
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #==================LICENSE_END============================================
21 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 ##########################################################################
25 heat_template_version: 2013-05-23
27 description: Heat template to deploy vCPE Infrastructue emlements (vAAA, vDHCP, vDNS_DHCP) for ONAP
38 label: Image name or ID
39 description: Image to be used for compute instance
43 description: Type of instance (flavor) to be used
46 label: Public network name or ID
47 description: Public network that enables remote connection to VNF
50 label: vAAA private network name or ID
51 description: Private network that connects vAAA with vDNSs
54 label: ONAP management network name or ID
55 description: Private network that connects ONAP components and the VNF
56 onap_private_subnet_id:
58 label: ONAP management sub-network name or ID
59 description: Private sub-network that connects ONAP components and the VNF
60 vaaa_private_net_cidr:
62 label: vAAA private network CIDR
63 description: The CIDR of the vAAA private network
64 onap_private_net_cidr:
66 label: ONAP private network CIDR
67 description: The CIDR of the protected private network
70 label: vAAA private IP address towards the private network
71 description: Private IP address that is assigned to the vAAA to communicate with the vCPE components
74 label: vAAA private IP address towards the ONAP management network
75 description: Private IP address that is assigned to the vAAA to communicate with ONAP components
78 label: vDNS private IP address towards the private network
79 description: Private IP address that is assigned to the vDNS to communicate with the vCPE components
82 label: vDNS private IP address towards the ONAP management network
83 description: Private IP address that is assigned to the vDNS to communicate with ONAP components
86 label: vDHCP private IP address towards the private network
87 description: Private IP address that is assigned to the vDHCP to communicate with the vCPE components
90 label: vDNS private IP address towards the ONAP management network
91 description: Private IP address that is assigned to the vDHCP to communicate with ONAP components
95 description: Name of the vAAA
99 description: Name of the vDNS
103 description: Name of the vDHCP
107 description: The VNF ID is provided by ONAP
110 label: vFirewall module ID
111 description: The vAAA Module ID is provided by ONAP
114 label: DCAE collector IP address
115 description: IP address of the DCAE collector
118 label: DCAE collector port
119 description: Port of the DCAE collector
123 description: Public/Private key pair name
127 description: Public key to be installed on the compute instance
130 label: Repository URL
131 description: URL of the repository that hosts the demo packages
134 label: Repository URL
135 description: URL of the repository that hosts the demo packages
136 install_script_version:
138 label: Installation script version number
139 description: Version number of the scripts that install the vFW demo app
140 demo_artifacts_version:
142 label: Artifacts version used in demo vnfs
143 description: Artifacts (jar, tar.gz) version used in demo vnfs
146 label: Cloud environment
147 description: Cloud environment (e.g., openstack, rackspace)
158 type: OS::Heat::RandomString
163 type: OS::Nova::KeyPair
169 base: { get_param: key_name }
170 rand: { get_resource: random-str }
171 public_key: { get_param: pub_key }
172 save_private_key: false
174 vaaa_private_network:
175 type: OS::Neutron::Net
177 name: { get_param: vaaa_private_net_id }
180 type: OS::Neutron::Subnet
182 name: { get_param: vaaa_private_net_id }
183 network_id: { get_resource: vaaa_private_network }
184 cidr: { get_param: vaaa_private_net_cidr }
186 # Virtual Load Balancer Instantiation
188 type: OS::Neutron::Port
190 network: { get_resource: vaaa_private_network }
191 fixed_ips: [{"subnet": { get_resource: vaaa_private_subnet }, "ip_address": { get_param: vaaa_private_ip_0 }}]
194 type: OS::Neutron::Port
196 network: { get_param: onap_private_net_id }
197 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vaaa_private_ip_1 }}]
200 type: OS::Nova::Server
202 image: { get_param: vcpe_image_name }
203 flavor: { get_param: vcpe_flavor_name }
204 name: { get_param: vaaa_name_0 }
205 key_name: { get_resource: my_keypair }
207 - network: { get_param: public_net_id }
208 - port: { get_resource: vaaa_private_0_port }
209 - port: { get_resource: vaaa_private_1_port }
210 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
211 user_data_format: RAW
215 __dcae_collector_ip__: { get_param: dcae_collector_ip }
216 __dcae_collector_port__: { get_param: dcae_collector_port }
217 __local_private_ipaddr__: { get_param: vaaa_private_ip_0 }
218 __repo_url_blob__ : { get_param: repo_url_blob }
219 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
220 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
221 __install_script_version__ : { get_param: install_script_version }
222 __cloud_env__ : { get_param: cloud_env }
226 # Create configuration files
228 echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt
229 echo "__dcae_collector_port__" > /opt/config/dcae_collector_port.txt
230 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
231 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
232 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
233 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
234 echo "__install_script_version__" > /opt/config/install_script_version.txt
235 echo "__cloud_env__" > /opt/config/cloud_env.txt
237 # Download and run install script
238 curl -k __repo_url_blob__/org.onap.demo/vnfs/vaaa/__install_script_version__/v_aaa_install.sh -o /opt/v_aaa_install.sh
240 chmod +x v_aaa_install.sh
244 # Virtual DNS Instantiation
246 type: OS::Neutron::Port
248 network: { get_resource: vaaa_private_network }
249 fixed_ips: [{"subnet": { get_resource: vaaa_private_subnet }, "ip_address": { get_param: vdns_private_ip_0 }}]
252 type: OS::Neutron::Port
254 network: { get_param: onap_private_net_id }
255 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdns_private_ip_1 }}]
258 type: OS::Nova::Server
260 image: { get_param: vcpe_image_name }
261 flavor: { get_param: vcpe_flavor_name }
262 name: { get_param: vdns_name_0 }
263 key_name: { get_resource: my_keypair }
265 - network: { get_param: public_net_id }
266 - port: { get_resource: vdns_private_0_port }
267 - port: { get_resource: vdns_private_1_port }
268 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
269 user_data_format: RAW
273 __lb_oam_int__ : { get_param: vaaa_private_ip_1 }
274 __lb_private_ipaddr__: { get_param: vaaa_private_ip_0 }
275 __local_private_ipaddr__: { get_param: vdns_private_ip_0 }
276 __repo_url_blob__ : { get_param: repo_url_blob }
277 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
278 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
279 __install_script_version__ : { get_param: install_script_version }
280 __cloud_env__ : { get_param: cloud_env }
284 # Create configuration files
286 echo "__lb_oam_int__" > /opt/config/lb_oam_int.txt
287 echo "__lb_private_ipaddr__" > /opt/config/lb_private_ipaddr.txt
288 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
289 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
290 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
291 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
292 echo "__install_script_version__" > /opt/config/install_script_version.txt
293 echo "__cloud_env__" > /opt/config/cloud_env.txt
295 # Download and run install script
296 curl -k __repo_url_blob__/org.onap.demo/vnfs/vdns/__install_script_version__/v_dns_install.sh -o /opt/v_dns_install.sh
298 chmod +x v_dns_install.sh
302 # Virtual DHCP Instantiation
303 vdhcp_private_0_port:
304 type: OS::Neutron::Port
306 network: { get_resource: vaaa_private_network }
307 fixed_ips: [{"subnet": { get_resource: vaaa_private_subnet }, "ip_address": { get_param: vdhcp_private_ip_0 }}]
309 vdhcp_private_1_port:
310 type: OS::Neutron::Port
312 network: { get_param: onap_private_net_id }
313 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdhcp_private_ip_1 }}]
316 type: OS::Nova::Server
318 image: { get_param: vcpe_image_name }
319 flavor: { get_param: vcpe_flavor_name }
320 name: { get_param: vdhcp_name_0 }
321 key_name: { get_resource: my_keypair }
323 - network: { get_param: public_net_id }
324 - port: { get_resource: vdhcp_private_0_port }
325 - port: { get_resource: vdhcp_private_1_port }
326 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
327 user_data_format: RAW
331 __lb_oam_int__ : { get_param: vaaa_private_ip_1 }
332 __lb_private_ipaddr__: { get_param: vaaa_private_ip_0 }
333 __local_private_ipaddr__: { get_param: vdhcp_private_ip_0 }
334 __repo_url_blob__ : { get_param: repo_url_blob }
335 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
336 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
337 __install_script_version__ : { get_param: install_script_version }
338 __cloud_env__ : { get_param: cloud_env }
342 # Create configuration files
344 echo "__lb_oam_int__" > /opt/config/lb_oam_int.txt
345 echo "__lb_private_ipaddr__" > /opt/config/lb_private_ipaddr.txt
346 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
347 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
348 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
349 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
350 echo "__install_script_version__" > /opt/config/install_script_version.txt
351 echo "__cloud_env__" > /opt/config/cloud_env.txt
353 # Download and run install script
354 curl -k __repo_url_blob__/org.onap.demo/vnfs/vdhcp/__install_script_version__/v_dhcp_install.sh -o /opt/v_dhcp_install.sh
356 chmod +x v_dhcp_install.sh