Remove UnknownNetworkType InvalidAddressRequest and IPAllocationFailed
These exception classes are defined but never raised or referenced anywhere in the codebase. Remove them to reduce dead code. Assisted-By: Claude Opus 4.6 Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com> Change-Id: Ia1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0
This commit is contained in:
1 parent
de087e8f12
commit
25a7c59512
2 files changed
-14
No files matched your search
@@ -39,11 +39,6 @@ class InvalidIpForSubnet(exceptions.BadRequest):
|
||||
message = _("IP address %(ip)s does not belong to subnet %(subnet_id)s")
|
||||
|
||||
|
||||
class InvalidAddressRequest(exceptions.BadRequest):
|
||||
message = _("The address allocation request could not be satisfied "
|
||||
"because: %(reason)s")
|
||||
|
||||
|
||||
class InvalidSubnetRequest(exceptions.BadRequest):
|
||||
message = _("The subnet request could not be satisfied because: "
|
||||
"%(reason)s")
|
||||
@@ -72,10 +67,6 @@ class IpAddressGenerationFailureNoMatchingSubnet(IpAddressGenerationFailure):
|
||||
"network %(network_id)s, service type %(service_type)s.")
|
||||
|
||||
|
||||
class IPAllocationFailed(exceptions.NeutronException):
|
||||
message = _("IP allocation failed. Try again later.")
|
||||
|
||||
|
||||
class IpamValueInvalid(exceptions.Conflict):
|
||||
def __init__(self, message=None):
|
||||
self.message = message
|
||||
|
||||
@@ -40,8 +40,3 @@ class ExtensionDriverNotFound(exceptions.InvalidConfigurationOption):
|
||||
"""Required extension driver not found in ML2 config."""
|
||||
message = _("Extension driver %(driver)s required for "
|
||||
"service plugin %(service_plugin)s not found.")
|
||||
|
||||
|
||||
class UnknownNetworkType(exceptions.NeutronException):
|
||||
"""Network with unknown type."""
|
||||
message = _("Unknown network type %(network_type)s.")
|
||||
Reference in new issue
Block a user