Remove two exceptions already in neutron-lib
Since the InvalidIpForNetwork and InvalidContentType exception definitions have already defined in neutron-lib, we don't need them in Neutron code. Change-Id: I35afdf75a5e1fcb100f13f9ec3a0282192111e76 Signed-off-by: liusheng <liusheng@huawei.com>
This commit is contained in:
parent
1a991f7786
commit
d76a174d57
@ -77,11 +77,6 @@ class DNSNameServersExhausted(e.BadRequest):
|
|||||||
"The number of DNS nameservers exceeds the limit %(quota)s.")
|
"The number of DNS nameservers exceeds the limit %(quota)s.")
|
||||||
|
|
||||||
|
|
||||||
class InvalidIpForNetwork(e.BadRequest):
|
|
||||||
message = _("IP address %(ip_address)s is not a valid IP "
|
|
||||||
"for any of the subnets on the specified network.")
|
|
||||||
|
|
||||||
|
|
||||||
class FlatNetworkInUse(e.InUse):
|
class FlatNetworkInUse(e.InUse):
|
||||||
message = _("Unable to create the flat network. "
|
message = _("Unable to create the flat network. "
|
||||||
"Physical network %(physical_network)s is in use.")
|
"Physical network %(physical_network)s is in use.")
|
||||||
@ -153,10 +148,6 @@ class ExtensionsNotFound(e.NotFound):
|
|||||||
message = _("Extensions not found: %(extensions)s.")
|
message = _("Extensions not found: %(extensions)s.")
|
||||||
|
|
||||||
|
|
||||||
class InvalidContentType(e.NeutronException):
|
|
||||||
message = _("Invalid content type %(content_type)s.")
|
|
||||||
|
|
||||||
|
|
||||||
class GatewayConflictWithAllocationPools(e.InUse):
|
class GatewayConflictWithAllocationPools(e.InUse):
|
||||||
message = _("Gateway ip %(ip_address)s conflicts with "
|
message = _("Gateway ip %(ip_address)s conflicts with "
|
||||||
"allocation pool %(pool)s.")
|
"allocation pool %(pool)s.")
|
||||||
|
Loading…
Reference in New Issue
Block a user