Remove TooManyExternalNetworks exception class
This exception type is not used anymore as Neutron now don't have 'gateway_external_network_id' config option which was removed in [1]. [1] https://review.opendev.org/#/c/666409/ Depends-On: https://review.opendev.org/690908 Depends-On: https://review.opendev.org/710429 Change-Id: I3ba42cf3ed54e49e8bc6a6deede398643dd1c78c
This commit is contained in:
parent
33b41fb595
commit
95bcd28dae
@ -440,11 +440,6 @@ class ExternalIpAddressExhausted(BadRequest):
|
|||||||
"network %(net_id)s.")
|
"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):
|
class InvalidConfigurationOption(NeutronException):
|
||||||
"""An error due to an invalid configuration option value.
|
"""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."),
|
_("Unable to find any IP address on external network darpanet."),
|
||||||
net_id='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):
|
def test_invalid_configuration_option(self):
|
||||||
self._check_nexc(
|
self._check_nexc(
|
||||||
ne.InvalidConfigurationOption,
|
ne.InvalidConfigurationOption,
|
||||||
|
Loading…
Reference in New Issue
Block a user