Add exception to prevent overlapped segment ranges
A check is introduced to ensure the network segment range to create is not overlapping with any existing range of the same type. Co-authored-by: Allain Legacy <Allain.legacy@windriver.com> Partially-implements: blueprint network-segment-range-management Change-Id: I6b011687320382f4523f074c08c24cd2e02f5718
This commit is contained in:
parent
3133add2c9
commit
d4fdf20631
@ -33,3 +33,8 @@ class NetworkSegmentRangeReferencedByProject(exceptions.NeutronException):
|
|||||||
class NetworkSegmentRangeDefaultReadOnly(exceptions.NeutronException):
|
class NetworkSegmentRangeDefaultReadOnly(exceptions.NeutronException):
|
||||||
message = _("Network Segment Range %(range_id)s is a "
|
message = _("Network Segment Range %(range_id)s is a "
|
||||||
"default segment range which could not be updated or deleted.")
|
"default segment range which could not be updated or deleted.")
|
||||||
|
|
||||||
|
|
||||||
|
class NetworkSegmentRangeOverlaps(exceptions.Conflict):
|
||||||
|
message = _("Network segment range overlaps with range(s) "
|
||||||
|
"with id %(range_id)s")
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add ``NetworkSegmentRangeOverlaps`` exception to prevent overlapping
|
||||||
|
network segment ranges on creation.
|
Loading…
Reference in New Issue
Block a user