|
| 1 | +from neutron.plugins.ml2.drivers import type_vxlan |
1 | 2 | from neutron_lib import constants as p_const
|
2 |
| -from neutron_lib.plugins.ml2 import api |
3 |
| -from oslo_log import log |
4 | 3 |
|
5 |
| -LOG = log.getLogger(__name__) |
6 | 4 |
|
7 |
| - |
8 |
| -class UnderstackVxlanTypeDriver(api.ML2TypeDriver): |
9 |
| - def __init__(self): |
10 |
| - """Understack based type driver.""" |
11 |
| - super().__init__() |
12 |
| - LOG.info("ML2 Understack VXLAN Type initialization complete") |
| 5 | +class UnderstackVxlanTypeDriver(type_vxlan.VxlanTypeDriver): |
| 6 | + """Manage state for EVPN L2VNI networks with ML2.""" |
13 | 7 |
|
14 | 8 | def get_type(self):
|
15 | 9 | return p_const.TYPE_VXLAN
|
16 |
| - |
17 |
| - def initialize(self): |
18 |
| - pass |
19 |
| - |
20 |
| - def initialize_network_segment_range_support(self): |
21 |
| - pass |
22 |
| - |
23 |
| - def update_network_segment_range_allocations(self): |
24 |
| - pass |
25 |
| - |
26 |
| - def get_network_segment_ranges(self): |
27 |
| - pass |
28 |
| - |
29 |
| - def is_partial_segment(self, segment): |
30 |
| - return False |
31 |
| - |
32 |
| - def validate_provider_segment(self, segment): |
33 |
| - pass |
34 |
| - |
35 |
| - def reserve_provider_segment(self, context, segment, filters=None): |
36 |
| - return segment |
37 |
| - |
38 |
| - def allocate_tenant_segment(self, context, filters=None): |
39 |
| - return {api.NETWORK_TYPE: p_const.TYPE_VXLAN} |
40 |
| - |
41 |
| - def release_segment(self, context, segment): |
42 |
| - pass |
43 |
| - |
44 |
| - def get_mtu(self, physical_network=None): |
45 |
| - pass |
0 commit comments