Take out private networks from vCPE Heat templates
[demo.git] / heat / vCPE / vbng / base_vcpe_vbng.yaml
similarity index 91%
rename from heat/vCPE/vbng/base_vcpe_vbng_rackspace.yaml
rename to heat/vCPE/vbng/base_vcpe_vbng.yaml
index 8a49e17..9cc4484 100644 (file)
@@ -24,7 +24,7 @@
 
 heat_template_version: 2013-05-23
 
-description: Heat template to deploy vCPE virtual Broadband Network Gateway (vBNG) for ONAP
+description: Heat template to deploy vCPE virtual Broadband Network Gateway (vBNG)
 
 ##############
 #            #
@@ -49,6 +49,10 @@ parameters:
     type: string
     label: vBNG IN private network name or ID
     description: Private network that connects vBRG to vBNG
+  brgemu_bng_private_subnet_id:
+    type: string
+    label: vBNG IN private sub-network name or ID
+    description: vBNG IN private sub-network name or ID
   brgemu_bng_private_net_cidr:
     type: string
     label: vBNG IN private network CIDR
@@ -57,6 +61,10 @@ parameters:
     type: string
     label: vBNG vGMUX private network name or ID
     description: Private network that connects vBNG to vGMUX
+  bng_gmux_private_subnet_id:
+    type: string
+    label: vBNG vGMUX private sub-network name or ID
+    description: vBNG vGMUX private sub-network name or ID
   bng_gmux_private_net_cidr:
     type: string
     label: vGMUX private network CIDR
@@ -77,6 +85,10 @@ parameters:
     type: string
     label: vCPE private network name or ID
     description: Private network that connects vCPE elements with vCPE infrastructure elements
+  cpe_signal_subnet_id:
+    type: string
+    label: vCPE private sub-network name or ID
+    description: vCPE private sub-network name or ID
   cpe_signal_private_net_cidr:
     type: string
     label: vAAA private network CIDR
@@ -183,24 +195,13 @@ resources:
       public_key: { get_param: pub_key }
       save_private_key: false
 
-  brgemu_bng_private_network:
-    type: OS::Neutron::Net
-    properties:
-      name: { get_param: brgemu_bng_private_net_id }
-
-  brgemu_bng_private_subnet:
-    type: OS::Neutron::Subnet
-    properties:
-      name: { get_param: brgemu_bng_private_net_id }
-      network_id: { get_resource: brgemu_bng_private_network }
-      cidr: { get_param: brgemu_bng_private_net_cidr }
 
   # Virtual BNG Instantiation
   vbng_private_0_port:
     type: OS::Neutron::Port
     properties:
-      network: { get_resource: brgemu_bng_private_network }
-      fixed_ips: [{"subnet": { get_resource: brgemu_bng_private_subnet }, "ip_address": { get_param: vbng_private_ip_0 }}]
+      network: { get_param: brgemu_bng_private_net_id }
+      fixed_ips: [{"subnet": { get_param: brgemu_bng_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_0 }}]
 
   vbng_private_1_port:
     type: OS::Neutron::Port
@@ -212,13 +213,13 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: { get_param: cpe_signal_net_id }
-      fixed_ips: [{"subnet": { get_param: cpe_signal_net_id }, "ip_address": { get_param: vbng_private_ip_2 }}]
+      fixed_ips: [{"subnet": { get_param: cpe_signal_subnet_id }, "ip_address": { get_param: vbng_private_ip_2 }}]
 
   vbng_private_3_port:
     type: OS::Neutron::Port
     properties:
       network: { get_param: bng_gmux_private_net_id }
-      fixed_ips: [{"subnet": { get_param: bng_gmux_private_net_id }, "ip_address": { get_param: vbng_private_ip_3 }}]
+      fixed_ips: [{"subnet": { get_param: bng_gmux_private_subnet_id }, "ip_address": { get_param: vbng_private_ip_3 }}]
 
   vbng_0:
     type: OS::Nova::Server