Load ML2 mech drivers as listed in ml2_conf.ini

stevedore requires an additional parameter to be used (name_order=True) to
sort the loaded extensions to match the order used in the parameter "names".

bug 1221490

Change-Id: I614716c45d91cdf152650fba5ec8ced1e9c5aad4
This commit is contained in:
Rich Curran 2013-09-06 08:45:18 -04:00
parent 394741cb90
commit 5bae5828d3

View File

@ -117,7 +117,8 @@ class MechanismManager(stevedore.named.NamedExtensionManager):
cfg.CONF.ml2.mechanism_drivers)
super(MechanismManager, self).__init__('neutron.ml2.mechanism_drivers',
cfg.CONF.ml2.mechanism_drivers,
invoke_on_load=True)
invoke_on_load=True,
name_order=True)
LOG.info(_("Loaded mechanism driver names: %s"), self.names())
self._register_mechanisms()