VALID_SERVICES = ['fwaas', 'lbaas', 'vpnaas']
INSTALLED_SERVICES = [service_ for service_ in VALID_SERVICES
if 'neutron-%s' % service_ in migration_entrypoints]
-INSTALLED_SERVICE_PROJECTS = ['neutron-%s' % service_
- for service_ in INSTALLED_SERVICES]
-INSTALLED_SUBPROJECTS = [project_ for project_ in migration_entrypoints
- if project_ not in INSTALLED_SERVICE_PROJECTS]
-
-service_help = (
- _("Can be one of '%s'.") % "', '".join(INSTALLED_SERVICES)
- if INSTALLED_SERVICES else
- _("(No services are currently installed).")
-)
+INSTALLED_SUBPROJECTS = [project_ for project_ in migration_entrypoints]
_core_opts = [
cfg.StrOpt('core_plugin',
help=_('Neutron plugin provider module')),
cfg.StrOpt('service',
choices=INSTALLED_SERVICES,
- help=(_("The advanced service to execute the command against. ")
- + service_help)),
+ help=(_("(Deprecated. Use '--subproject neutron-SERVICE' "
+ "instead.) The advanced service to execute the "
+ "command against."))),
cfg.StrOpt('subproject',
choices=INSTALLED_SUBPROJECTS,
help=(_("The subproject to execute the command against. "
- "Can be one of %s.") % INSTALLED_SUBPROJECTS)),
+ "Can be one of: '%s'.")
+ % "', '".join(INSTALLED_SUBPROJECTS))),
cfg.BoolOpt('split_branches',
default=False,
help=_("Enforce using split branches file structure."))
# Get the script locations for the specified or installed projects.
# Which projects to get script locations for is determined by the CLI
# options as follows:
- # --service X # only subproject neutron-X
- # --subproject Y # only subproject Y
+ # --service X # only subproject neutron-X (deprecated)
+ # --subproject Y # only subproject Y (where Y can be neutron)
# (none specified) # neutron and all installed subprojects
script_locations = {}
if CONF.service: