Prevent Duplicate VLAN IDs
Addresses Bug 708278 Add check for duplicates in api.py Add DuplicateVlan to exception.py Add test to raise DuplicateVlan in test_db_api.py Add to Authors Change-Id: I9d68d7b7c886071e38df3c9d7d53724758bdd84c
This commit is contained in:
@@ -984,3 +984,7 @@ class SolidFireAPIStatusException(SolidFireAPIException):
|
||||
|
||||
class SolidFireAPIDataException(SolidFireAPIException):
|
||||
message = _("Error in SolidFire API response: data=%(data)s")
|
||||
|
||||
|
||||
class DuplicateVlan(Duplicate):
|
||||
message = _("Detected existing vlan with id %(vlan)")
|
||||
|
Reference in New Issue
Block a user