Support neutron.flat-networks in overclouds.
authorRobert Collins <rbtcollins@hp.com>
Tue, 4 Feb 2014 00:07:03 +0000 (13:07 +1300)
committerRobert Collins <rbtcollins@hp.com>
Tue, 4 Feb 2014 00:07:03 +0000 (13:07 +1300)
This is needed to allow configuring the template in
I9fa923b63033edb694720bfe5fc756a7c0fbfd2a.

Change-Id: I65810db156cb3d93291ac56fcf96e3ed2c87e1b2

nova-compute-instance.yaml
overcloud-source.yaml

index 4b6a8a0..15b5e19 100644 (file)
@@ -23,6 +23,10 @@ Parameters:
     Default: overcloud-compute
   KeystoneHost:
     Type: String
+  NeutronFlatNetworks:
+    Type: String
+    Default: ''
+    Description: If set, flat networks to configure in neutron plugins.
   NeutronHost:
     Type: String
   RabbitHost:
@@ -149,6 +153,7 @@ Resources:
       keystone:
         host: {Ref: KeystoneHost}
       neutron:
+        flat-networks: {Ref: NeutronFlatNetworks}
         host: {Ref: NeutronHost}
         ovs_db: {Ref: NeutronDSN}
         ovs:
index 78ce4aa..a102e17 100644 (file)
@@ -81,6 +81,10 @@ Parameters:
     Default: stack
     Description: What username to ssh to the virtual power host with.
     Type: String
+  NeutronFlatNetworks:
+    Type: String
+    Default: ''
+    Description: If set, flat networks to configure in neutron plugins.
   NeutronPublicInterface:
     Default: eth0
     Description: What interface to bridge onto br-ex for network nodes.
@@ -162,6 +166,8 @@ Resources:
         NeutronDSN: {"Fn::Join": ['', ['mysql://neutron:unset@', {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notCompute0, networks]} ]} ]}, '/neutron']]}
         NeutronNetworkType: "gre"
         NeutronEnableTunnelling: "True"
+        NeutronFlatNetworks:
+            Ref: NeutronFlatNetworks
         NeutronNetworkVLANRanges: ""
         NeutronBridgeMappings:
             Ref: NeutronBridgeMappings
@@ -280,6 +286,7 @@ Resources:
                 - notCompute0
                 - networks
       neutron:
+        flat-networks: {Ref: NeutronFlatNetworks}
         host:
           Fn::Select:
             - 0