Merge "Remove unused exceptions"

This commit is contained in:
Jenkins 2017-07-12 14:06:23 +00:00 committed by Gerrit Code Review
commit d37f0652b9

View File

@ -109,6 +109,8 @@ class FlatNetworkInUse(e.InUse):
class TenantNetworksDisabled(e.ServiceUnavailable): class TenantNetworksDisabled(e.ServiceUnavailable):
# NOTE(vvargaszte): May be removed in the future as it is not used in
# Neutron, only in the Neutron plugin of OpenContrail.
message = _("Tenant network creation is not enabled.") message = _("Tenant network creation is not enabled.")
@ -182,10 +184,6 @@ class QoSRuleParameterConflict(e.Conflict):
"%(existing_value)s.") "%(existing_value)s.")
class InvalidExtensionEnv(e.BadRequest):
message = _("Invalid extension environment: %(reason)s.")
class ExtensionsNotFound(e.NotFound): class ExtensionsNotFound(e.NotFound):
message = _("Extensions not found: %(extensions)s.") message = _("Extensions not found: %(extensions)s.")
@ -244,10 +242,6 @@ class RouterNotCompatibleWithAgent(e.NeutronException):
message = _("Router '%(router_id)s' is not compatible with this agent.") message = _("Router '%(router_id)s' is not compatible with this agent.")
class DvrHaRouterNotSupported(e.NeutronException):
message = _("Router '%(router_id)s' cannot be both DVR and HA.")
class FailToDropPrivilegesExit(SystemExit): class FailToDropPrivilegesExit(SystemExit):
"""Exit exception raised when a drop privileges action fails.""" """Exit exception raised when a drop privileges action fails."""
code = 99 code = 99
@ -274,10 +268,6 @@ class AbortSyncRouters(e.NeutronException):
message = _("Aborting periodic_sync_routers_task due to an error.") message = _("Aborting periodic_sync_routers_task due to an error.")
class MissingMinSubnetPoolPrefix(e.BadRequest):
message = _("Unspecified minimum subnet pool prefix.")
class EmptySubnetPoolPrefixList(e.BadRequest): class EmptySubnetPoolPrefixList(e.BadRequest):
message = _("Empty subnet pool prefix list.") message = _("Empty subnet pool prefix list.")