Skip to content

Commit 5cbdd25

Browse files
authored
Merge pull request #663 from rackerlabs/update-vxlan-type
feat(neutron): make our VXLAN type driver unique
2 parents e594bb4 + ea23556 commit 5cbdd25

File tree

3 files changed

+5
-41
lines changed

3 files changed

+5
-41
lines changed

components/neutron/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ conf:
5252
# we'll need to use the ovn ML2 plugin to hook the routers to our network
5353
mechanism_drivers: "understack,ovn"
5454
tenant_network_types: "vlan"
55-
type_drivers: "vlan,understack_vxlan"
55+
type_drivers: "vlan,vxlan"
5656
ml2_type_vxlan:
5757
# OSH sets a default range here but we want to use network_segment_range plugin
5858
# to configure this instead

components/ovn/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ conf:
77
ovn_cms_options: ""
88
ovn_cms_options_gw_enabled: "enable-chassis-as-gw"
99
# we are working with baremetal so we'll need VTEP support
10-
ovn_encap_type: vxlan
10+
ovn_encap_type: geneve
1111

1212
volume:
1313
ovn_ovsdb_nb:
Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,9 @@
1+
from neutron.plugins.ml2.drivers import type_vxlan
12
from neutron_lib import constants as p_const
2-
from neutron_lib.plugins.ml2 import api
3-
from oslo_log import log
43

5-
LOG = log.getLogger(__name__)
64

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."""
137

148
def get_type(self):
159
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

Comments
 (0)