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, webServer)
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: ONAP management network name or ID
51 description: Private network that connects ONAP components and the VNF
52 onap_private_subnet_id:
54 label: ONAP management sub-network name or ID
55 description: Private sub-network that connects ONAP components and the VNF
56 onap_private_net_cidr:
58 label: ONAP private network CIDR
59 description: The CIDR of the protected private network
62 label: vAAA private network name or ID
63 description: Private network that connects vAAA with vDNSs
66 label: CPE Signal subnet
67 description: CPE Signal subnet
70 label: vAAA private network CIDR
71 description: The CIDR of the vAAA private network
74 label: vCPE Public network (emulates internet) name or ID
75 description: Private network that connects vGW to emulated internet
78 label: CPE Public subnet
79 description: CPE Public subnet
82 label: vCPE public network CIDR
83 description: The CIDR of the vCPE public
86 label: vAAA private IP address towards the CPE_SIGNAL private network
87 description: Private IP address that is assigned to the vAAA to communicate with the vCPE components
90 label: vAAA private IP address towards the ONAP management network
91 description: Private IP address that is assigned to the vAAA to communicate with ONAP components
94 label: vDNS private IP address towards the CPE_PUBLIC private network
95 description: Private IP address that is assigned to the vDNS to communicate with the vCPE components
98 label: vDNS private IP address towards the ONAP management network
99 description: Private IP address that is assigned to the vDNS to communicate with ONAP components
102 label: vDHCP private IP address towards the CPE_SIGNAL private network
103 description: Private IP address that is assigned to the vDHCP to communicate with the vCPE components
106 label: vDNS private IP address towards the ONAP management network
107 description: Private IP address that is assigned to the vDHCP to communicate with ONAP components
110 label: vWEB private IP address towards the CPE_PUBLIC private network
111 description: Private IP address that is assigned to the vWEB to communicate with the vGWs
114 label: vWEB private IP address towards the ONAP management network
115 description: Private IP address that is assigned to the vWEB to communicate with ONAP components
119 description: Name of the vAAA
123 description: Name of the vDNS
127 description: Name of the vDHCP
131 description: Name of the vWEB
135 description: The VNF ID is provided by ONAP
138 label: vFirewall module ID
139 description: The vAAA Module ID is provided by ONAP
142 label: DCAE collector IP address
143 description: IP address of the DCAE collector
146 label: DCAE collector port
147 description: Port of the DCAE collector
150 label: Message Router IP address
151 description: IP address of the Message Router that for vDHCP configuration
155 description: Public/Private key pair name
159 description: Public key to be installed on the compute instance
162 label: Repository URL
163 description: URL of the repository that hosts the demo packages
166 label: Repository URL
167 description: URL of the repository that hosts the demo packages
168 install_script_version:
170 label: Installation script version number
171 description: Version number of the scripts that install the vFW demo app
172 demo_artifacts_version:
174 label: Artifacts version used in demo vnfs
175 description: Artifacts (jar, tar.gz) version used in demo vnfs
178 label: Cloud environment
179 description: Cloud environment (e.g., openstack, rackspace)
190 type: OS::Heat::RandomString
195 type: OS::Nova::KeyPair
201 base: { get_param: key_name }
202 rand: { get_resource: random-str }
203 public_key: { get_param: pub_key }
204 save_private_key: false
207 # Virtual AAA server Instantiation
209 type: OS::Neutron::Port
211 network: { get_param: cpe_signal_net_id }
212 fixed_ips: [{"subnet": { get_param: cpe_signal_subnet_id }, "ip_address": { get_param: vaaa_private_ip_0 }}]
215 type: OS::Neutron::Port
217 network: { get_param: onap_private_net_id }
218 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vaaa_private_ip_1 }}]
221 type: OS::Nova::Server
223 image: { get_param: vcpe_image_name }
224 flavor: { get_param: vcpe_flavor_name }
225 name: { get_param: vaaa_name_0 }
226 key_name: { get_resource: my_keypair }
228 - network: { get_param: public_net_id }
229 - port: { get_resource: vaaa_private_0_port }
230 - port: { get_resource: vaaa_private_1_port }
231 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
232 user_data_format: RAW
236 __dcae_collector_ip__: { get_param: dcae_collector_ip }
237 __dcae_collector_port__: { get_param: dcae_collector_port }
238 __cpe_signal_net_ipaddr__: { get_param: vaaa_private_ip_0 }
239 __oam_ipaddr__: { get_param: vaaa_private_ip_1 }
240 __oam_cidr__: { get_param: onap_private_net_cidr }
241 __cpe_signal_net_cidr__: { get_param: cpe_signal_net_cidr }
242 __repo_url_blob__ : { get_param: repo_url_blob }
243 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
244 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
245 __install_script_version__ : { get_param: install_script_version }
246 __cloud_env__ : { get_param: cloud_env }
250 # Create configuration files
252 echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt
253 echo "__dcae_collector_port__" > /opt/config/dcae_collector_port.txt
254 echo "__cpe_signal_net_ipaddr__" > /opt/config/cpe_signal_net_ipaddr.txt
255 echo "__oam_ipaddr__" > /opt/config/oam_ipaddr.txt
256 echo "__oam_cidr__" > /opt/config/oam_cidr.txt
257 echo "__cpe_signal_net_cidr__" > /opt/config/cpe_signal_net_cidr.txt
258 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
259 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
260 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
261 echo "__install_script_version__" > /opt/config/install_script_version.txt
262 echo "__cloud_env__" > /opt/config/cloud_env.txt
264 # Download and run install script
265 curl -k __repo_url_blob__/org.onap.demo/vnfs/vcpe/__install_script_version__/v_aaa_install.sh -o /opt/v_aaa_install.sh
267 chmod +x v_aaa_install.sh
271 # Virtual DNS Instantiation
273 type: OS::Neutron::Port
275 network: { get_param: cpe_public_net_id }
276 fixed_ips: [{"subnet": { get_param: cpe_public_subnet_id }, "ip_address": { get_param: vdns_private_ip_0 }}]
279 type: OS::Neutron::Port
281 network: { get_param: onap_private_net_id }
282 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdns_private_ip_1 }}]
285 type: OS::Nova::Server
287 image: { get_param: vcpe_image_name }
288 flavor: { get_param: vcpe_flavor_name }
289 name: { get_param: vdns_name_0 }
290 key_name: { get_resource: my_keypair }
292 - network: { get_param: public_net_id }
293 - port: { get_resource: vdns_private_0_port }
294 - port: { get_resource: vdns_private_1_port }
295 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
296 user_data_format: RAW
300 __oam_ipaddr__ : { get_param: vdns_private_ip_1 }
301 __cpe_public_net_ipaddr__: { get_param: vdns_private_ip_0 }
302 __oam_cidr__: { get_param: onap_private_net_cidr }
303 __cpe_public_net_cidr__: { get_param: cpe_public_net_cidr }
304 __repo_url_blob__ : { get_param: repo_url_blob }
305 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
306 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
307 __install_script_version__ : { get_param: install_script_version }
308 __cloud_env__ : { get_param: cloud_env }
312 # Create configuration files
314 echo "__oam_ipaddr__" > /opt/config/oam_ipaddr.txt
315 echo "__cpe_public_net_ipaddr__" > /opt/config/cpe_public_net_ipaddr.txt
316 echo "__oam_cidr__" > /opt/config/oam_cidr.txt
317 echo "__cpe_public_net_cidr__" > /opt/config/cpe_public_net_cidr.txt
318 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
319 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
320 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
321 echo "__install_script_version__" > /opt/config/install_script_version.txt
322 echo "__cloud_env__" > /opt/config/cloud_env.txt
324 # Download and run install script
325 curl -k __repo_url_blob__/org.onap.demo/vnfs/vcpe/__install_script_version__/v_dns_install.sh -o /opt/v_dns_install.sh
327 chmod +x v_dns_install.sh
331 # Virtual DHCP Instantiation
332 vdhcp_private_0_port:
333 type: OS::Neutron::Port
335 network: { get_param: cpe_signal_net_id }
336 fixed_ips: [{"subnet": { get_param: cpe_signal_subnet_id }, "ip_address": { get_param: vdhcp_private_ip_0 }}]
338 vdhcp_private_1_port:
339 type: OS::Neutron::Port
341 network: { get_param: onap_private_net_id }
342 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdhcp_private_ip_1 }}]
345 type: OS::Nova::Server
347 image: { get_param: vcpe_image_name }
348 flavor: { get_param: vcpe_flavor_name }
349 name: { get_param: vdhcp_name_0 }
350 key_name: { get_resource: my_keypair }
352 - network: { get_param: public_net_id }
353 - port: { get_resource: vdhcp_private_0_port }
354 - port: { get_resource: vdhcp_private_1_port }
355 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
356 user_data_format: RAW
360 __oam_ipaddr__ : { get_param: vdhcp_private_ip_1 }
361 __cpe_signal_ipaddr__ : { get_param: vdhcp_private_ip_0 }
362 __oam_cidr__ : { get_param: onap_private_net_cidr }
363 __cpe_signal_net_cidr__ : { get_param: cpe_signal_net_cidr }
364 __mr_ip_addr__ : { get_param: mr_ip_addr }
365 __repo_url_blob__ : { get_param: repo_url_blob }
366 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
367 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
368 __install_script_version__ : { get_param: install_script_version }
369 __cloud_env__ : { get_param: cloud_env }
373 # Create configuration files
375 echo "__oam_ipaddr__" > /opt/config/oam_ipaddr.txt
376 echo "__cpe_signal_ipaddr__" > /opt/config/cpe_signal_ipaddr.txt
377 echo "__oam_cidr__" > /opt/config/oam_cidr.txt
378 echo "__cpe_signal_net_cidr__" > /opt/config/cpe_signal_net_cidr.txt
379 echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
380 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
381 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
382 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
383 echo "__install_script_version__" > /opt/config/install_script_version.txt
384 echo "__cloud_env__" > /opt/config/cloud_env.txt
386 # Download and run install script
387 curl -k __repo_url_blob__/org.onap.demo/vnfs/vcpe/__install_script_version__/v_dhcp_install.sh -o /opt/v_dhcp_install.sh
389 chmod +x v_dhcp_install.sh
394 type: OS::Neutron::Port
396 network: { get_param: cpe_public_net_id }
397 fixed_ips: [{"subnet": { get_param: cpe_public_subnet_id }, "ip_address": { get_param: vweb_private_ip_0 }}]
400 type: OS::Neutron::Port
402 network: { get_param: onap_private_net_id }
403 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vweb_private_ip_1 }}]
407 type: OS::Nova::Server
409 image: { get_param: vcpe_image_name }
410 flavor: { get_param: vcpe_flavor_name }
411 name: { get_param: vweb_name_0 }
412 key_name: { get_resource: my_keypair }
414 - network: { get_param: public_net_id }
415 - port: { get_resource: vweb_private_0_port }
416 - port: { get_resource: vweb_private_1_port }
417 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
418 user_data_format: RAW
422 __oam_ipaddr__ : { get_param: vweb_private_ip_1 }
423 __cpe_public_ipaddr__: { get_param: vweb_private_ip_0 }
424 __oam_cidr__: { get_param: onap_private_net_cidr }
425 __cpe_public_net_cidr__: { get_param: cpe_public_net_cidr }
426 __repo_url_blob__ : { get_param: repo_url_blob }
427 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
428 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
429 __install_script_version__ : { get_param: install_script_version }
430 __cloud_env__ : { get_param: cloud_env }
434 # Create configuration files
436 echo "__oam_ipaddr__" > /opt/config/oam_ipaddr.txt
437 echo "__cpe_public_ipaddr__" > /opt/config/cpe_public_ipaddr.txt
438 echo "__oam_cidr__" > /opt/config/oam_cidr.txt
439 echo "__cpe_public_net_cidr__" > /opt/config/cpe_public_net_cidr.txt
440 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
441 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
442 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
443 echo "__install_script_version__" > /opt/config/install_script_version.txt
444 echo "__cloud_env__" > /opt/config/cloud_env.txt
446 # Download and run install script
447 curl -k __repo_url_blob__/org.onap.demo/vnfs/vcpe/__install_script_version__/v_web_install.sh -o /opt/v_web_install.sh
449 chmod +x v_web_install.sh