Add fixed IPs to vCPE-vBRGEMU and vCPE-vGW 53/7353/1
authorMarco Platania <platania@research.att.com>
Fri, 11 Aug 2017 15:04:47 +0000 (11:04 -0400)
committerMarco Platania <platania@research.att.com>
Fri, 11 Aug 2017 15:04:47 +0000 (11:04 -0400)
Change-Id: I0bc01ca1ae3089d23bf21c52ecf9170dc60ae458
Signed-off-by: Marco Platania <platania@research.att.com>
heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.env
heat/vCPE/vbrgemu/base_vcpe_vbrgemu_rackspace.yaml
heat/vCPE/vgw/base_vcpe_vgw_rackspace.env
heat/vCPE/vgw/base_vcpe_vgw_rackspace.yaml

index f512bcd..0d4d894 100644 (file)
@@ -6,6 +6,7 @@
   vbrgemu_private_net_id: zdfw1vbrgemu01_private
   vbrgemu_bng_private_net_cidr: 10.3.0.0/24
   vbrgemu_private_net_cidr: 192.168.1.0/24
+  vbrgemu_private_ip_0: 10.3.0.2
   vbrgemu_private_ip_1: 192.168.1.1\r
   vbrgemu_name_0: zdcpe11cpe01brgemu01
   vnf_id: vCPE_Infrastructure_BGREMU_demo_app
index c99da2a..6f926eb 100644 (file)
@@ -63,10 +63,14 @@ parameters:
     type: string
     label: vBRGEMU Home private network CIDR
     description: The CIDR of the input side of vBRGEMU Home private network
-  vbrgemu_private_ip_1:
+  vbrgemu_private_ip_0:
     type: string
-    label: vGW IN private IP address
+    label: vGW private IP address
     description: Private IP address towards the BRGEMU-BNG network
+  vbrgemu_private_ip_1:
+    type: string
+    label: vGW private IP address
+    description: Private IP address towards the BRGEMU private network
   vbrgemu_name_0:
     type: string
     label: vGW  name
@@ -146,11 +150,12 @@ resources:
       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 once the VNF is running
   vbrgemu_private_0_port:
     type: OS::Neutron::Port
     properties:
       network: { get_param: vbrgemu_bng_private_net_id }
+      fixed_ips: [{"subnet": { get_param: vbrgemu_bng_private_net_id }, "ip_address": { get_param: vbrgemu_private_ip_0 }}]
 
   vbrgemu_private_1_port:
     type: OS::Neutron::Port
index 3842fc0..33da8d7 100644 (file)
@@ -11,6 +11,7 @@
   onap_private_net_cidr: 10.0.0.0/16
   vgw_private_ip_0: 10.5.0.21
   vgw_private_ip_1: 10.0.101.30
+  vgw_private_ip_2: 10.2.0.2
   vgw_name_0: zdcpe11cpe01gw01
   vnf_id: vCPE_Infrastructure_GW_demo_app
   vf_module_id: vCPE_Customer_GW
index 8fe5e59..0621556 100644 (file)
@@ -81,6 +81,10 @@ parameters:
     type: string
     label: vGW private IP address towards the ONAP management network
     description: Private IP address that is assigned to the vGW to communicate with ONAP components
+  vgw_private_ip_2:
+    type: string
+    label: vGW private IP address towards the vCPE public network
+    description: Private IP address that is assigned to the vGW to communicate with vCPE public network
   vgw_name_0:
     type: string
     label: vGW  name
@@ -174,6 +178,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: { get_param: cpe_public_net_id}
+      fixed_ips: [{"subnet": { get_param: cpe_public_net_id }, "ip_address": { get_param: vgw_private_ip_2 }}]
 
   vgw_0:
     type: OS::Nova::Server