Make all network ports type to consume FixedIPs
authorGiulio Fidente <gfidente@redhat.com>
Mon, 16 Nov 2015 12:49:00 +0000 (13:49 +0100)
committerGiulio Fidente <gfidente@redhat.com>
Mon, 16 Nov 2015 12:49:00 +0000 (13:49 +0100)
This change adds to the internal_api, storage, storage_mgmt and
tenant network ports the FixedIPs param and make them consume it
when passed.

Change-Id: Ica2bca9f573b206cc60c9d572224a8cc7b9b8aa4

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

index da1b185..711ee17 100644 (file)
@@ -15,6 +15,12 @@ parameters:
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
+  FixedIPs:
+    description: >
+        Control the IP allocation for the VIP port. E.g.
+        [{'ip_address':'1.2.3.4'}]
+    default: []
+    type: json
 
 resources:
 
@@ -23,6 +29,7 @@ resources:
     properties:
       network: {get_param: InternalApiNetName}
       name: {get_param: PortName}
+      fixed_ips: {get_param: FixedIPs}
       replacement_policy: AUTO
 
 outputs:
index ecb20b8..e013619 100644 (file)
@@ -15,6 +15,12 @@ parameters:
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
+  FixedIPs:
+    description: >
+        Control the IP allocation for the VIP port. E.g.
+        [{'ip_address':'1.2.3.4'}]
+    default: []
+    type: json
 
 resources:
 
@@ -23,6 +29,7 @@ resources:
     properties:
       network: {get_param: StorageNetName}
       name: {get_param: PortName}
+      fixed_ips: {get_param: FixedIPs}
       replacement_policy: AUTO
 
 outputs:
index 2ab39f2..76afae0 100644 (file)
@@ -15,6 +15,12 @@ parameters:
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
+  FixedIPs:
+    description: >
+        Control the IP allocation for the VIP port. E.g.
+        [{'ip_address':'1.2.3.4'}]
+    default: []
+    type: json
 
 resources:
 
@@ -23,6 +29,7 @@ resources:
     properties:
       network: {get_param: StorageMgmtNetName}
       name: {get_param: PortName}
+      fixed_ips: {get_param: FixedIPs}
       replacement_policy: AUTO
 
 outputs:
index aae12d4..6e8ad48 100644 (file)
@@ -15,6 +15,12 @@ parameters:
   ControlPlaneIP: # Here for compatability with noop.yaml
     description: IP address on the control plane
     type: string
+  FixedIPs:
+    description: >
+        Control the IP allocation for the VIP port. E.g.
+        [{'ip_address':'1.2.3.4'}]
+    default: []
+    type: json
 
 resources:
 
@@ -23,6 +29,7 @@ resources:
     properties:
       network: {get_param: TenantNetName}
       name: {get_param: PortName}
+      fixed_ips: {get_param: FixedIPs}
       replacement_policy: AUTO
 
 outputs: