diff options
author | Marco Platania <platania@research.att.com> | 2017-08-08 11:37:49 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-08-08 11:37:49 -0400 |
commit | 4e560cd743de2cb8d6e302454e9d3f0aefec10c0 (patch) | |
tree | 4b75de072f7fa8490f04635348bea5316568ceb0 /heat/vCPE/vbrgemu | |
parent | 0e3f08f62a8c61f6ee40131df123247c7c614f06 (diff) |
Clean up vCPE Heat templates
Change-Id: I1227bb9751cec36cba2ba5e03d6f0ed302fb1489
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'heat/vCPE/vbrgemu')
-rw-r--r-- | heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env | 3 | ||||
-rw-r--r-- | heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml | 49 |
2 files changed, 30 insertions, 22 deletions
diff --git a/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env b/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env index 475a170c..20e66327 100644 --- a/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env +++ b/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env @@ -3,6 +3,9 @@ vcpe_flavor_name: 4 GB General Purpose v1 public_net_id: 00000000-0000-0000-0000-000000000000 brgemu_bng_private_net_id: zdfw1brgemubng01_private + vbrgemu_private_net_id: zdfw1vbrgemu01_private + vbrgemu_private_net_cidr: 192.168.1.0/24 + vbrgemu_private_ip_1: 192.168.1.2
vbrgemu_name_0: zdcpe11cpe01brgemu01 vnf_id: vCPE_Infrastructure_BGREMU_demo_app vf_module_id: vCPE_Customer_BRGEMU diff --git a/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml b/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml index bf387fae..8d8f306f 100644 --- a/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml +++ b/heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml @@ -28,7 +28,7 @@ description: Heat template to deploy vCPE vBRG Emulator (vBRGEMU ) for ONAP ####################################################################### # # -# PARAMETERS # +# PARAMETERS # # # # 0_port should get IP address from DHCP discover through vBNG # # DCAE is not monitoring the BRGEMULATOR # @@ -47,27 +47,19 @@ parameters: type: string label: Public network name or ID description: Public network that enables remote connection to VNF - brgemu_bng_private_net_id: + vbrgemu_bng_private_net_id: type: string label: vBNG private network name or ID description: Private network that connects vBRGEMU to vBNG - onap_private_net_id: + vbrgemu_private_net_id: type: string - label: ONAP management network name or ID - description: Private network that connects ONAP components and the VNF - onap_private_subnet_id: + label: vBRGEMU Home private network name or ID + description: Private network that connects vBRGEMU to local devices + vbrgemu_private_net_cidr: type: string - label: ONAP management sub-network name or ID - description: Private sub-network that connects ONAP components and the VNF - brgemu_bng_private_net_cidr: - type: string - label: BRGEMUL vBNG private network CIDR - description: The CIDR of the vBNG private network - onap_private_net_cidr: - type: string - label: ONAP private network CIDR - description: The CIDR of the protected private network - vbrgemu_private_ip_0: + label: vBRGEMU Home private network CIDR + description: The CIDR of the input side of vBRGEMU Home private network + vbrgemu_private_ip_1: type: string label: vGW IN private IP address description: Private IP address that is assigned to the vBRGEMU (SHOULD NOT BE NEEDED) @@ -137,15 +129,30 @@ resources: public_key: { get_param: pub_key } save_private_key: false + vbrgemu_private_network: + type: OS::Neutron::Net + properties: + name: { get_param: vbrgemu_private_net_id } + + vbrgemu_private_subnet: + type: OS::Neutron::Subnet + properties: + name: { get_param: vbrgemu_private_net_id } + network_id: { get_resource: vbrgemu_private_network } + cidr: { get_param: vbrgemu_private_net_cidr } # Virtual BRG Emulator Instantiation - # 0_port should get IP address from DHCP discover through vBNG + # 0_port should get IP address from DHCP discover through vBNG vbrgemu_private_0_port: type: OS::Neutron::Port properties: - network: { get_param: brgemu_bng_private_net_id} - # fixed_ips: [{"subnet": { get_resource: vbng_vbrgemu_private_subnet}, "ip_address": { get_param: vbrgemu_private_ip_0 }}] + network: { get_param: vbrgemu_bng_private_net_id} + vbrgemu_private_0_port: + type: OS::Neutron::Port + properties: + network: { get_param: vbrgemu_private_net_id} + fixed_ips: [{"subnet": { get_resource: vbrgemu_private_subnet}, "ip_address": { get_param: vbrgemu_private_ip_1 }}] vbrgemu_0: type: OS::Nova::Server @@ -158,7 +165,6 @@ resources: - network: { get_param: public_net_id } - port: { get_resource: vbrgemu_private_0_port } - port: { get_resource: vbrgemu_private_1_port } - - port: { get_resource: vbrgemu_private_2_port } metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }} user_data_format: RAW user_data: @@ -185,4 +191,3 @@ resources: cd /opt chmod +x v_brgemu_install.sh ./v_brgemu_install.sh - |