]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
neutron-db-manage: mark several options as deprecated
authorIhar Hrachyshka <ihrachys@redhat.com>
Fri, 20 Nov 2015 16:20:09 +0000 (17:20 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 23 Nov 2015 12:01:45 +0000 (12:01 +0000)
I believe we don't rely on --core_plugin or --quota_driver for the tool
because database contents are independent of chosen plugins and drivers
since ~Juno.

Also marked --service with deprecated_for_removal=True.

Related-Bug: #1501380
Change-Id: I2b4d98242a0d38843d931a71414ef2560a7ddb8f

neutron/db/migration/cli.py

index 99bf7e6055895a2238b6a9988a0c20e1b8de8029..a1a84d8f0389d8af86ac8ad0a0d19b2da035b755 100644 (file)
@@ -65,12 +65,14 @@ INSTALLED_SUBPROJECTS = [project_ for project_ in migration_entrypoints]
 _core_opts = [
     cfg.StrOpt('core_plugin',
                default='',
-               help=_('Neutron plugin provider module')),
+               help=_('Neutron plugin provider module'),
+               deprecated_for_removal=True),
     cfg.StrOpt('service',
                choices=INSTALLED_SERVICES,
                help=(_("(Deprecated. Use '--subproject neutron-SERVICE' "
                        "instead.) The advanced service to execute the "
-                       "command against."))),
+                       "command against.")),
+               deprecated_for_removal=True),
     cfg.StrOpt('subproject',
                choices=INSTALLED_SUBPROJECTS,
                help=(_("The subproject to execute the command against. "
@@ -84,7 +86,8 @@ _core_opts = [
 _quota_opts = [
     cfg.StrOpt('quota_driver',
                default='',
-               help=_('Neutron quota driver class')),
+               help=_('Neutron quota driver class'),
+               deprecated_for_removal=True),
 ]
 
 _db_opts = [