Merge "Add methods for network segment range support"
This commit is contained in:
commit
baab4a0373
|
@ -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):
|
||||
|
|
|
@ -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.
|
Loading…
Reference in New Issue