Merge "Handle overlap ips errors"
This commit is contained in:
commit
15743868fe
@ -38,7 +38,8 @@ def http_error_to_exception(status_code, error_code):
|
||||
{'60508': exceptions.NsxIndexingInProgress,
|
||||
'60514': exceptions.NsxSearchTimeout,
|
||||
'500045': exceptions.NsxPendingDelete,
|
||||
'500030': exceptions.ResourceInUse},
|
||||
'500030': exceptions.ResourceInUse,
|
||||
'500105': exceptions.NsxOverlapAddresses},
|
||||
requests.codes.CONFLICT: exceptions.StaleRevision,
|
||||
requests.codes.PRECONDITION_FAILED: exceptions.StaleRevision,
|
||||
requests.codes.INTERNAL_SERVER_ERROR:
|
||||
|
@ -199,6 +199,10 @@ class NsxPendingDelete(NsxLibException):
|
||||
"remove the deleted object")
|
||||
|
||||
|
||||
class NsxOverlapAddresses(NsxLibInvalidInput):
|
||||
message = _("Overlapping addresses found: %(details)s")
|
||||
|
||||
|
||||
class APITransactionAborted(ServerBusy):
|
||||
message = _("API transaction aborted as MP cluster is reconfiguring")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user