Don't access iface_arr unless using OVS

Change-Id: I3829f4aeb9d8072597fa68a71280c5444c2ab34e
This commit is contained in:
Terry Wilson 2013-08-01 09:58:01 -05:00
parent ae24837f12
commit acfacd7fc3

View File

@ -410,10 +410,11 @@ def createL2AgentManifests(config):
manifestfile = "%s_quantum.pp" % (host,)
manifestdata = getManifestTemplate(template_name)
appendManifestFile(manifestfile, manifestdata + "\n")
for if_map in iface_arr:
controller.CONF['CONFIG_QUANTUM_OVS_BRIDGE'], controller.CONF['CONFIG_QUANTUM_OVS_IFACE'] = if_map.split(':')
manifestdata = getManifestTemplate("quantum_ovs_port.pp")
appendManifestFile(manifestfile, manifestdata + "\n")
if controller.CONF["CONFIG_QUANTUM_L2_PLUGIN"] == "openvswitch":
for if_map in iface_arr:
controller.CONF['CONFIG_QUANTUM_OVS_BRIDGE'], controller.CONF['CONFIG_QUANTUM_OVS_IFACE'] = if_map.split(':')
manifestdata = getManifestTemplate("quantum_ovs_port.pp")
appendManifestFile(manifestfile, manifestdata + "\n")
def createMetadataManifests(config):
global meta_hosts