Add exception for vlan conflicts
Change-Id: Iba543fd3ad4eac1f81df1d0b343306c60269fa8e
This commit is contained in:
parent
ea2f4ea568
commit
a9b7d770c3
@ -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…
x
Reference in New Issue
Block a user