Make it possible to do physical networks for VMs.
authorRobert Collins <rbtcollins@hp.com>
Fri, 7 Feb 2014 02:37:45 +0000 (15:37 +1300)
committerRobert Collins <rbtcollins@hp.com>
Tue, 11 Feb 2014 19:02:59 +0000 (08:02 +1300)
This patch makes it possible to setup physical networks for VMs,
separate to the control plane configuration which is needed for
routed/natted access to physical networks.

Future work is needed to automate ci-overcloud configuration of the
control plane where we need two distinct bridges, but this is enough
to stop folk dying of boredom setting up a sizeable ci-overcloud.

Change-Id: I6ac7129f22bb797467adb0408638781d20081f19

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

index 15b5e19..6c2671c 100644 (file)
@@ -29,6 +29,14 @@ Parameters:
     Description: If set, flat networks to configure in neutron plugins.
   NeutronHost:
     Type: String
+  NeutronPhysicalBridge:
+    Default: ''
+    Description: An OVS bridge to create for accessing external networks.
+    Type: String
+  NeutronPublicInterface:
+    Default: ''
+    Description: A port to add to the NeutronPhysicalBridge.
+    Type: String
   RabbitHost:
     Type: String
   RabbitPassword:
@@ -169,6 +177,8 @@ Resources:
           network_vlan_ranges: {Ref: NeutronNetworkVLANRanges}
           bridge_mappings: {Ref: NeutronBridgeMappings}
           enable_tunneling: {Ref: NeutronEnableTunnelling}
+          physical_bridge: {Ref: NeutronPhysicalBridge}
+          public_interface: {Ref: NeutronPublicInterface}
         service-password:
           Ref: NeutronPassword
       admin-password: {Ref: AdminPassword}
index bdbf721..7fd7505 100644 (file)
@@ -81,6 +81,14 @@ Parameters:
     Type: String
     Default: ''
     Description: If set, flat networks to configure in neutron plugins.
+  HypervisorNeutronPhysicalBridge:
+    Default: ''
+    Description: An OVS bridge to create on each hypervisor.
+    Type: String
+  HypervisorNeutronPublicInterface:
+    Default: ''
+    Description: What interface to add to the HypervisorNeutronPhysicalBridge.
+    Type: String
   NeutronPublicInterface:
     Default: eth0
     Description: What interface to bridge onto br-ex for network nodes.
@@ -165,6 +173,10 @@ Resources:
         NeutronFlatNetworks:
             Ref: NeutronFlatNetworks
         NeutronNetworkVLANRanges: ""
+        NeutronPhysicalBridge:
+            Ref: HypervisorNeutronPhysicalBridge
+        NeutronPublicInterface:
+            Ref: HypervisorNeutronPublicInterface
         NeutronBridgeMappings:
             Ref: NeutronBridgeMappings
         RabbitPassword: "guest"