Merge "Define IpAddressAlreadyAllocated exception"
This commit is contained in:
commit
8b3516d40a
neutronclient
releasenotes/notes
@ -162,6 +162,10 @@ class IpAddressInUseClient(Conflict):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class IpAddressAlreadyAllocatedClient(Conflict):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class InvalidIpForNetworkClient(BadRequest):
|
class InvalidIpForNetworkClient(BadRequest):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -911,6 +911,8 @@ class CLITestV20ExceptionHandler(CLITestV20Base):
|
|||||||
('OverQuota', exceptions.OverQuotaClient, 409),
|
('OverQuota', exceptions.OverQuotaClient, 409),
|
||||||
('InvalidIpForNetwork', exceptions.InvalidIpForNetworkClient, 400),
|
('InvalidIpForNetwork', exceptions.InvalidIpForNetworkClient, 400),
|
||||||
('InvalidIpForSubnet', exceptions.InvalidIpForSubnetClient, 400),
|
('InvalidIpForSubnet', exceptions.InvalidIpForSubnetClient, 400),
|
||||||
|
('IpAddressAlreadyAllocated',
|
||||||
|
exceptions.IpAddressAlreadyAllocatedClient, 400),
|
||||||
]
|
]
|
||||||
|
|
||||||
error_msg = 'dummy exception message'
|
error_msg = 'dummy exception message'
|
||||||
|
6
releasenotes/notes/Define-IpAddressAlreadyAllocatedClient-exception-e8600ca5ba1c7f45.yaml
Normal file
6
releasenotes/notes/Define-IpAddressAlreadyAllocatedClient-exception-e8600ca5ba1c7f45.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
other:
|
||||||
|
- |
|
||||||
|
Define a new exception type ``IpAddressAlreadyAllocatedClient``.
|
||||||
|
Users can catch this specific exception instead of the generic
|
||||||
|
``NeutronClientException``.
|
Loading…
x
Reference in New Issue
Block a user