Merge "Add exception for vlan conflicts"
This commit is contained in:
commit
9ecbde0c6d
|
@ -37,6 +37,7 @@ def http_error_to_exception(status_code, error_code):
|
|||
requests.codes.BAD_REQUEST:
|
||||
{'60508': exceptions.NsxIndexingInProgress,
|
||||
'60514': exceptions.NsxSearchTimeout,
|
||||
'8327': exceptions.NsxOverlapVlan,
|
||||
'500045': exceptions.NsxPendingDelete,
|
||||
'500030': exceptions.ResourceInUse,
|
||||
'500105': exceptions.NsxOverlapAddresses,
|
||||
|
|
|
@ -211,6 +211,11 @@ class NsxOverlapAddresses(NsxLibInvalidInput):
|
|||
message = _("Overlapping addresses found: %(details)s")
|
||||
|
||||
|
||||
class NsxOverlapVlan(NsxLibInvalidInput):
|
||||
message = _("Duplicate logical-switch vlan-ids sharing same underlying "
|
||||
"physical devices resulting in a conflict")
|
||||
|
||||
|
||||
class APITransactionAborted(ServerBusy):
|
||||
message = _("API transaction aborted as MP cluster is reconfiguring")
|
||||
|
||||
|
|
Loading…
Reference in New Issue