Remove hardcoded bridge name in bonded compute NIC config
authorDan Sneddon <dsneddon@redhat.com>
Mon, 17 Aug 2015 21:08:08 +0000 (14:08 -0700)
committerDan Sneddon <dsneddon@redhat.com>
Mon, 17 Aug 2015 21:08:08 +0000 (14:08 -0700)
This change removes a hardcoded value for the bond name in the NIC
config for the compute node in the bond-with-vlan NIC config
templates. When this hardcoded value of "br-bond" is used, then the
Neutron bridge mappings must be set to set to datacentre:br-bond in
order for VLAN mode networking to recognize the bridge. By using the
input value for bridge_name we will ensure that the controller and
compute nodes have the same bridge name (defaults to "br-ex"), and
that the defaults will work with VLAN mode.

Change-Id: I28654ab93e3c10a8597c8b877f3f2f6b3eca887c

network/config/bond-with-vlans/compute.yaml

index 5105ee1..3a46a48 100644 (file)
@@ -53,7 +53,7 @@ resources:
           network_config:
             -
               type: ovs_bridge
-              name: br-bond
+              name: {get_input: bridge_name}
               members:
                 -
                   type: ovs_bond