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 virtual Broadband Network Gateway (vBNG)
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
48 brgemu_bng_private_net_id:
50 label: vBNG IN private network name or ID
51 description: Private network that connects vBRG to vBNG
52 brgemu_bng_private_subnet_id:
54 label: vBNG IN private sub-network name or ID
55 description: vBNG IN private sub-network name or ID
56 brgemu_bng_private_net_cidr:
58 label: vBNG IN private network CIDR
59 description: The CIDR of the input side of vBNG private network
60 bng_gmux_private_net_id:
62 label: vBNG vGMUX private network name or ID
63 description: Private network that connects vBNG to vGMUX
64 bng_gmux_private_subnet_id:
66 label: vBNG vGMUX private sub-network name or ID
67 description: vBNG vGMUX private sub-network name or ID
68 bng_gmux_private_net_cidr:
70 label: vGMUX private network CIDR
71 description: The CIDR of the input side of vGMUX private network
74 label: ONAP management network name or ID
75 description: Private network that connects ONAP components and the VNF
76 onap_private_subnet_id:
78 label: ONAP management sub-network name or ID
79 description: Private sub-network that connects ONAP components and the VNF
80 onap_private_net_cidr:
82 label: ONAP private network CIDR
83 description: The CIDR of the protected private network
86 label: vCPE private network name or ID
87 description: Private network that connects vCPE elements with vCPE infrastructure elements
90 label: vCPE private sub-network name or ID
91 description: vCPE private sub-network name or ID
92 cpe_signal_private_net_cidr:
94 label: vAAA private network CIDR
95 description: The CIDR of the vAAA private network
98 label: vBNG IN private IP address
99 description: Private IP address that is assigned to the vBNG IN
102 label: vBNG private IP address towards the ONAP management network
103 description: Private IP address that is assigned to the vBNG to communicate with ONAP components
106 label: vBNG to CPE_SIGNAL private IP address
107 description: Private IP address that is assigned to the vBNG in the CPE_SIGNAL network
110 label: vBNG to vGMUX private IP address
111 description: Private IP address that is assigned to the vBNG to vGMUX port
115 description: Name of the vBNG
119 description: The VNF ID is provided by ONAP
122 label: vCPE module ID
123 description: The vCPE Module ID is provided by ONAP
126 label: DCAE collector IP address
127 description: IP address of the DCAE collector
130 label: DCAE collector port
131 description: Port of the DCAE collector
135 description: Public/Private key pair name
139 description: Public key to be installed on the compute instance
142 label: Repository URL
143 description: URL of the repository that hosts the demo packages
146 label: Repository URL
147 description: URL of the repository that hosts the demo packages
148 install_script_version:
150 label: Installation script version number
151 description: Version number of the scripts that install the vFW demo app
152 demo_artifacts_version:
154 label: Artifacts version used in demo vnfs
155 description: Artifacts (jar, tar.gz) version used in demo vnfs
158 label: Cloud environment
159 description: Cloud environment (e.g., openstack, rackspace)
162 label: VPP Source Git Repo
163 description: URL for VPP source codes
164 vpp_source_repo_branch:
166 label: VPP Source Git Branch
167 description: Git Branch for the VPP source codes
171 description: URL for VPP patch for vBNG
182 type: OS::Heat::RandomString
187 type: OS::Nova::KeyPair
193 base: { get_param: key_name }
194 rand: { get_resource: random-str }
195 public_key: { get_param: pub_key }
196 save_private_key: false
199 # Virtual BNG Instantiation
201 type: OS::Neutron::Port
203 network: { get_param: brgemu_bng_private_net_id }
204 fixed_ips: [{"subnet": { get_param: brgemu_bng_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_0 }}]
207 type: OS::Neutron::Port
209 network: { get_param: onap_private_net_id }
210 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_1 }}]
213 type: OS::Neutron::Port
215 network: { get_param: cpe_signal_net_id }
216 fixed_ips: [{"subnet": { get_param: cpe_signal_subnet_id }, "ip_address": { get_param: vbng_private_ip_2 }}]
219 type: OS::Neutron::Port
221 network: { get_param: bng_gmux_private_net_id }
222 fixed_ips: [{"subnet": { get_param: bng_gmux_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_3 }}]
225 type: OS::Nova::Server
227 image: { get_param: vcpe_image_name }
228 flavor: { get_param: vcpe_flavor_name }
229 name: { get_param: vbng_name_0 }
230 key_name: { get_resource: my_keypair }
232 - network: { get_param: public_net_id }
233 - port: { get_resource: vbng_private_0_port }
234 - port: { get_resource: vbng_private_1_port }
235 - port: { get_resource: vbng_private_2_port }
236 - port: { get_resource: vbng_private_3_port }
237 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
238 user_data_format: RAW
242 __oam_ipaddr__: { get_param: vbng_private_ip_1 }
243 __brgemu_bng_net_ipaddr__: { get_param: vbng_private_ip_0 }
244 __cpe_signal_net_ipaddr__: { get_param: vbng_private_ip_2 }
245 __bng_gmux_net_ipaddr__: { get_param: vbng_private_ip_3 }
246 __oam_cidr__: { get_param: onap_private_net_cidr }
247 __brgemu_bng_cidr__: { get_param: brgemu_bng_private_net_cidr }
248 __cpe_signal_cidr__: { get_param: cpe_signal_private_net_cidr }
249 __bng_gmux_cidr__: { get_param: bng_gmux_private_net_cidr }
250 __dcae_collector_ip__: { get_param: dcae_collector_ip }
251 __dcae_collector_port__: { get_param: dcae_collector_port }
252 __repo_url_blob__ : { get_param: repo_url_blob }
253 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
254 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
255 __install_script_version__ : { get_param: install_script_version }
256 __cloud_env__ : { get_param: cloud_env }
257 __vpp_source_repo_url__ : { get_param: vpp_source_repo_url }
258 __vpp_source_repo_branch__ : { get_param: vpp_source_repo_branch }
259 __vpp_patch_url__ : { get_param: vpp_patch_url }
263 # Create configuration files
265 echo "__brgemu_bng_net_ipaddr__" > /opt/config/brgemu_bng_net_ipaddr.txt
266 echo "__cpe_signal_net_ipaddr__" > /opt/config/cpe_signal_net_ipaddr.txt
267 echo "__bng_gmux_net_ipaddr__" > /opt/config/bng_gmux_net_ipaddr.txt
268 echo "__oam_ipaddr__" > /opt/config/oam_ipaddr.txt
269 echo "__oam_cidr__" > /opt/config/oam_cidr.txt
270 echo "__bng_gmux_cidr__" > /opt/config/bng_gmux_net_cidr.txt
271 echo "__cpe_signal_cidr__" > /opt/config/cpe_signal_net_cidr.txt
272 echo "__brgemu_bng_cidr__" > /opt/config/brgemu_bng_net_cidr.txt
273 echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt
274 echo "__dcae_collector_port__" > /opt/config/dcae_collector_port.txt
275 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
276 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
277 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
278 echo "__install_script_version__" > /opt/config/install_script_version.txt
279 echo "__cloud_env__" > /opt/config/cloud_env.txt
280 echo "__vpp_source_repo_url__" > /opt/config/vpp_source_repo_url.txt
281 echo "__vpp_source_repo_branch__" > /opt/config/vpp_source_repo_branch.txt
282 echo "__vpp_patch_url__" > /opt/config/vpp_patch_url.txt
284 # Download and run install script
285 curl -k __repo_url_blob__/org.onap.demo/vnfs/vcpe/__install_script_version__/v_bng_install.sh -o /opt/v_bng_install.sh
287 chmod +x v_bng_install.sh