Fix initialization for migration tool
The quotas are inspected as part of the migration of resources
from the legacy plugin to the merged plugin. In order for the
migration tool to be able to use the quotas, they must be
initialized.
Change-Id: Ia8dffcbdb9f246a54fbe93a152e86ef1b49e0161
(cherry picked from commit ada9199de4
)
This commit is contained in:
parent
b53757d5cb
commit
d06960faa7
|
@ -16,6 +16,7 @@
|
|||
import sys
|
||||
|
||||
from oslo_config import cfg
|
||||
from neutron.api.v2 import router
|
||||
from neutron.common import config
|
||||
from neutron import manager
|
||||
|
||||
|
@ -42,6 +43,7 @@ def main():
|
|||
" search paths (~/.neutron/, ~/, /etc/neutron/, /etc/) and"
|
||||
" the '--config-file' option!"))
|
||||
|
||||
router.APIRouter.factory({})
|
||||
gbp_plugin = (manager.NeutronManager.get_service_plugins()
|
||||
.get("GROUP_POLICY"))
|
||||
if not gbp_plugin:
|
||||
|
|
Loading…
Reference in New Issue