From e88a2a616b6d3eda01ae739e542bec54ff82922f Mon Sep 17 00:00:00 2001 From: Andrew Clay Shafer Date: Tue, 14 Feb 2012 01:44:37 -0500 Subject: 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 --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') diff --git a/nova/exception.py b/nova/exception.py index 9bb39b2f4..979703072 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -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)") -- cgit