Allow vlan type usage for OpenDaylight ml2
The initial OpenDaylight integration with Openstack did not support vlan isolation so it was not included as a valid type. This change adds the vlan type as allowed. Also modified tests to include vlan as supported in the check_segment(). DocImpact: Use of VLANs with ML2 and the OpenDaylight mechanism driver requires OpenDaylight Helium or newer to be installed. Closes-Bug: #1315475 Change-Id: I52e3c9bfdc93b8786c58954beca105e7498e3f40
This commit is contained in:
parent
8807461ba7
commit
4517074427
@ -371,4 +371,4 @@ class OpenDaylightMechanismDriver(api.MechanismDriver):
|
||||
"""
|
||||
network_type = segment[api.NETWORK_TYPE]
|
||||
return network_type in [constants.TYPE_LOCAL, constants.TYPE_GRE,
|
||||
constants.TYPE_VXLAN]
|
||||
constants.TYPE_VXLAN, constants.TYPE_VLAN]
|
||||
|
@ -57,7 +57,7 @@ class OpenDaylightTestCase(test_plugin.NeutronDbPluginV2TestCase):
|
||||
self.segment[api.NETWORK_TYPE] = constants.TYPE_FLAT
|
||||
self.assertFalse(self.mech.check_segment(self.segment))
|
||||
self.segment[api.NETWORK_TYPE] = constants.TYPE_VLAN
|
||||
self.assertFalse(self.mech.check_segment(self.segment))
|
||||
self.assertTrue(self.mech.check_segment(self.segment))
|
||||
self.segment[api.NETWORK_TYPE] = constants.TYPE_GRE
|
||||
self.assertTrue(self.mech.check_segment(self.segment))
|
||||
self.segment[api.NETWORK_TYPE] = constants.TYPE_VXLAN
|
||||
|
Loading…
x
Reference in New Issue
Block a user