Add PortName to ports stacks
authorDan Prince <dprince@redhat.com>
Fri, 29 May 2015 16:07:44 +0000 (12:07 -0400)
committerDan Prince <dprince@redhat.com>
Wed, 3 Jun 2015 12:58:13 +0000 (08:58 -0400)
For VIP ports we set an explicit name on the ports. This
patch adds an optional PortName parameter to the ports
objects which can be used to specify a name.

Change-Id: Iad0f5e4cfc31a931dbb574d9e589570125e9465c

network/ports/external.yaml
network/ports/internal_api.yaml
network/ports/noop.yaml
network/ports/storage.yaml
network/ports/storage_mgmt.yaml
network/ports/tenant.yaml

index db86b32..b5c1e5c 100644 (file)
@@ -8,6 +8,10 @@ parameters:
     description: Name of the external neutron network
     default: external
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
@@ -18,6 +22,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: {get_param: ExternalNetName}
+      name: {get_param: PortName}
       replacement_policy: AUTO
 
 outputs:
index 59c0e0a..da1b185 100644 (file)
@@ -8,6 +8,10 @@ parameters:
     description: Name of the internal API neutron network
     default: internal_api
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
@@ -18,6 +22,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: {get_param: InternalApiNetName}
+      name: {get_param: PortName}
       replacement_policy: AUTO
 
 outputs:
index 6bbf23c..80eccf6 100644 (file)
@@ -7,6 +7,10 @@ parameters:
   ControlPlaneIP:
     description: IP address on the control plane
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneSubnetCidr: # Override this via parameter_defaults
     default: '24'
     description: The subnet CIDR of the control plane network.
index 27f60a0..ecb20b8 100644 (file)
@@ -8,6 +8,10 @@ parameters:
     description: Name of the storage neutron network
     default: storage
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
@@ -18,6 +22,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: {get_param: StorageNetName}
+      name: {get_param: PortName}
       replacement_policy: AUTO
 
 outputs:
index 03cc224..2ab39f2 100644 (file)
@@ -8,6 +8,10 @@ parameters:
     description: Name of the storage_mgmt API neutron network
     default: storage_mgmt
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
@@ -18,6 +22,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: {get_param: StorageMgmtNetName}
+      name: {get_param: PortName}
       replacement_policy: AUTO
 
 outputs:
index 1957c41..aae12d4 100644 (file)
@@ -8,6 +8,10 @@ parameters:
     description: Name of the tenant neutron network
     default: tenant
     type: string
+  PortName:
+    description: Name of the port
+    default: ''
+    type: string
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
@@ -18,6 +22,7 @@ resources:
     type: OS::Neutron::Port
     properties:
       network: {get_param: TenantNetName}
+      name: {get_param: PortName}
       replacement_policy: AUTO
 
 outputs: