Merge "Remove TooManyExternalNetworks exception class"
This commit is contained in:
commit
ccbcc16381
neutron_lib
@ -440,11 +440,6 @@ class ExternalIpAddressExhausted(BadRequest):
|
||||
"network %(net_id)s.")
|
||||
|
||||
|
||||
class TooManyExternalNetworks(NeutronException):
|
||||
"""An error due to more than one external networks existing."""
|
||||
message = _("More than one external network exists.")
|
||||
|
||||
|
||||
class InvalidConfigurationOption(NeutronException):
|
||||
"""An error due to an invalid configuration option value.
|
||||
|
||||
|
@ -279,11 +279,6 @@ class TestExceptions(base.BaseTestCase):
|
||||
_("Unable to find any IP address on external network darpanet."),
|
||||
net_id='darpanet')
|
||||
|
||||
def test_too_many_external_networks(self):
|
||||
self._check_nexc(
|
||||
ne.TooManyExternalNetworks,
|
||||
_("More than one external network exists."))
|
||||
|
||||
def test_invalid_configuration_option(self):
|
||||
self._check_nexc(
|
||||
ne.InvalidConfigurationOption,
|
||||
|
Loading…
x
Reference in New Issue
Block a user