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
This commit is contained in:
parent
fcdee08dca
commit
427d299c89
|
@ -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
|
||||
from neutron_lib.plugins import directory
|
||||
|
@ -43,6 +44,7 @@ def main():
|
|||
" search paths (~/.neutron/, ~/, /etc/neutron/, /etc/) and"
|
||||
" the '--config-file' option!"))
|
||||
|
||||
router.APIRouter.factory({})
|
||||
manager.init()
|
||||
|
||||
gbp_plugin = directory.get_plugin('GROUP_POLICY')
|
||||
|
|
Loading…
Reference in New Issue