Merge "Add methods for network segment range support"

This commit is contained in:
Zuul 2019-03-28 09:15:59 +00:00 committed by Gerrit Code Review
commit baab4a0373
2 changed files with 27 additions and 0 deletions

View File

@ -652,6 +652,26 @@ class ML2TypeDriver(_TypeDriverBase):
"""
pass
@abc.abstractmethod
def initialize_network_segment_range_support(self):
"""Perform driver network segment range initialization.
Called during the initialization of the ``network-segment-range``
service plugin if enabled, after all drivers have been loaded and the
database has been initialized. This reloads the `default`
network segment ranges when Neutron server starts/restarts.
"""
pass
@abc.abstractmethod
def update_network_segment_range_allocations(self):
"""Update driver network segment range allocations.
This syncs the driver segment allocations when network segment ranges
have been created, updated or deleted.
"""
pass
@six.add_metaclass(abc.ABCMeta)
class NetworkContext(object):

View File

@ -0,0 +1,7 @@
---
features:
- |
Introduce the ML2 type driver abstract methods
``initialize_network_segment_range_support`` and
``update_network_segment_range_allocations``
for the network segment range support when the extension is loaded.