Properly disable the L3 agent scheduler.

Change-Id: I9a4213e51ffaee784c8c4c99953fa306deef624a
Closes-bug: #1573226
This commit is contained in:
Ryan Petrello 2016-04-21 15:24:52 -04:00
parent 7f2417e480
commit fcc31ec0f4
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,6 @@ class Ml2Plugin(plugin.Ml2Plugin):
disabled_extensions = [
neutron_constants.DHCP_AGENT_SCHEDULER_EXT_ALIAS,
neutron_constants.L3_AGENT_SCHEDULER_EXT_ALIAS,
neutron_constants.LBAAS_AGENT_SCHEDULER_EXT_ALIAS
]
for ext in disabled_extensions:
@ -169,3 +168,9 @@ class L3RouterPlugin(l3_router_plugin.L3RouterPlugin):
def create_router(self, context, router):
router['router']['ha'] = self._is_ha(router['router'])
return self._create_router(context, router)
if neutron_constants.L3_AGENT_SCHEDULER_EXT_ALIAS in \
L3RouterPlugin.supported_extension_aliases:
L3RouterPlugin.supported_extension_aliases.remove(
neutron_constants.L3_AGENT_SCHEDULER_EXT_ALIAS
)