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 Metro elements (vBNG, vGMUX ) 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
48 vbng_in_private_net_id:
50 label: vBNG IN private network name or ID
51 description: Private network that connects vBRG to vBNG
52 vbng_in_private_net_cidr:
54 label: vBNG IN private network CIDR
55 description: The CIDR of the input side of vBNG private network
56 vbng_vgmux_private_net_id:
58 label: vBNG vGMUX private network name or ID
59 description: Private network that connects vBNG to vGMUX
60 vbng_vgmux_private_net_cidr:
62 label: vGMUX private network CIDR
63 description: The CIDR of the input side of vGMUX private network
66 label: vGMUX private network name or ID
67 description: Private network that connects vGMUX to vGWs
70 label: ONAP management network name or ID
71 description: Private network that connects ONAP components and the VNF
72 onap_private_subnet_id:
74 label: ONAP management sub-network name or ID
75 description: Private sub-network that connects ONAP components and the VNF
76 vgmux_private_net_cidr:
78 label: vGMUX private network CIDR
79 description: The CIDR of the vGMUX private network
80 onap_private_net_cidr:
82 label: ONAP private network CIDR
83 description: The CIDR of the protected private network
86 label: vBNG IN private IP address
87 description: Private IP address that is assigned to the vBNG IN
90 label: vBNG private IP address towards the ONAP management network
91 description: Private IP address that is assigned to the vBNG to communicate with ONAP components
94 label: vBNG to vGMUX private IP address
95 description: Private IP address that is assigned to the vBNG to vGMUX port
98 label: vGMUX private IP address towards the private network
99 description: Private IP address that is assigned to the vGMUX to communicate with the vCPE components
102 label: vGMUX private IP address towards the ONAP management network
103 description: Private IP address that is assigned to the vGMUX to communicate with ONAP components
106 label: vGMUX private IP address towards the ONAP management network
107 description: Private IP address that is assigned to the vGMUX to communicate with ONAP components
111 description: Name of the vBNG
115 description: Name of the vGMUX
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)
170 type: OS::Heat::RandomString
175 type: OS::Nova::KeyPair
181 base: { get_param: key_name }
182 rand: { get_resource: random-str }
183 public_key: { get_param: pub_key }
184 save_private_key: false
186 vbng_in_private_network:
187 type: OS::Neutron::Net
189 name: { get_param: vbng_in_private_net_id }
190 vbng_in_private_subnet:
191 type: OS::Neutron::Subnet
193 name: { get_param: vbng_in_private_net_id }
194 network_id: { get_resource: vbng_in_private_network }
195 cidr: { get_param: vbng_in_private_net_cidr }
196 vbng_vgmux_private_network:
197 type: OS::Neutron::Net
199 name: { get_param: vbng_vgmux_private_net_id }
200 vbng_vgmux_private_subnet:
201 type: OS::Neutron::Subnet
203 name: { get_param: vbng_vgmux_private_net_id }
204 network_id: { get_resource: vbng_vgmux_private_network }
205 cidr: { get_param: vbng_vgmux_private_net_cidr }
206 vgmux_private_network:
207 type: OS::Neutron::Net
209 name: { get_param: vgmux_private_net_id }
210 vgmux_private_subnet:
211 type: OS::Neutron::Subnet
213 name: { get_param: vgmux_private_net_id }
214 network_id: { get_resource: vgmux_private_network }
215 cidr: { get_param: vgmux_private_net_cidr }
218 # Virtual BNG Instantiation
220 type: OS::Neutron::Port
222 network: { get_resource: vbng_in_private_network }
223 fixed_ips: [{"subnet": { get_resource: vbng_in_private_subnet}, "ip_address": { get_param: vbng_private_ip_0 }}]
226 type: OS::Neutron::Port
228 network: { get_param: onap_private_net_id }
229 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_1 }}]
232 type: OS::Neutron::Port
234 network: { get_resource: vbng_vgmux_private_network }
235 fixed_ips: [{"subnet": { get_resource: vbng_vgmux_private_subnet}, "ip_address": { get_param: vbng_private_ip_2 }}]
238 type: OS::Nova::Server
240 image: { get_param: vcpe_image_name }
241 flavor: { get_param: vcpe_flavor_name }
242 name: { get_param: vbng_name_0 }
243 key_name: { get_resource: my_keypair }
245 - network: { get_param: public_net_id }
246 - port: { get_resource: vbng_private_0_port }
247 - port: { get_resource: vbng_private_1_port }
248 - port: { get_resource: vbng_private_2_port }
249 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
250 user_data_format: RAW
254 __dcae_collector_ip__: { get_param: dcae_collector_ip }
255 __dcae_collector_port__: { get_param: dcae_collector_port }
256 __local_private_ipaddr__: { get_param: vbng_private_ip_1 }
257 __repo_url_blob__ : { get_param: repo_url_blob }
258 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
259 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
260 __install_script_version__ : { get_param: install_script_version }
261 __cloud_env__ : { get_param: cloud_env }
265 # Create configuration files
267 echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt
268 echo "__dcae_collector_port__" > /opt/config/dcae_collector_port.txt
269 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
270 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
271 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
272 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
273 echo "__install_script_version__" > /opt/config/install_script_version.txt
274 echo "__cloud_env__" > /opt/config/cloud_env.txt
276 # Download and run install script
277 curl -k __repo_url_blob__/org.openecomp.demo/vnfs/vbng/__install_script_version__/v_aaa_install.sh -o /opt/v_aaa_install.sh
279 chmod +x v_aaa_install.sh
283 # Virtual GMUX Instantiation
284 vgmux_private_0_port:
285 type: OS::Neutron::Port
287 network: { get_resource: vbng_vgmux_private_network }
288 fixed_ips: [{"subnet": { get_resource: vbng_vgmux_private_subnet}, "ip_address": { get_param: vgmux_private_ip_0 }}]
290 vgmux_private_1_port:
291 type: OS::Neutron::Port
293 network: { get_param: onap_private_net_id }
294 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vgmux_private_ip_1 }}]
296 vgmux_private_2_port:
297 type: OS::Neutron::Port
299 network: { get_resource: vgmux_private_network }
300 fixed_ips: [{"subnet": { get_resource: vgmux_private_subnet}, "ip_address": { get_param: vgmux_private_ip_2 }}]
303 type: OS::Nova::Server
305 image: { get_param: vcpe_image_name }
306 flavor: { get_param: vcpe_flavor_name }
307 name: { get_param: vgmux_name_0 }
308 key_name: { get_resource: my_keypair }
310 - network: { get_param: public_net_id }
311 - port: { get_resource: vgmux_private_0_port }
312 - port: { get_resource: vgmux_private_1_port }
313 - port: { get_resource: vgmux_private_2_port }
314 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
315 user_data_format: RAW
319 __gmux_oam_int__ : { get_param: vgmux_private_ip_1 }
320 __gmux_private_ipaddr__: { get_param: vgmux_private_ip_2 }
321 __local_private_ipaddr__: { get_param: vgmux_private_ip_1 }
322 __repo_url_blob__ : { get_param: repo_url_blob }
323 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
324 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
325 __install_script_version__ : { get_param: install_script_version }
326 __cloud_env__ : { get_param: cloud_env }
330 # Create configuration files
332 echo "__gmux_oam_int__" > /opt/config/gmux_oam_int.txt
333 echo "__gmux_private_ipaddr__" > /opt/config/gmux_private_ipaddr.txt
334 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
335 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
336 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
337 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
338 echo "__install_script_version__" > /opt/config/install_script_version.txt
339 echo "__cloud_env__" > /opt/config/cloud_env.txt
341 # Download and run install script
342 curl -k __repo_url_blob__/org.openecomp.demo/vnfs/vgmux/__install_script_version__/v_dns_install.sh -o /opt/v_dns_install.sh
344 chmod +x v_dns_install.sh