Following change [1], this bw-compat measure can be dropped.
Depends-on: https://review.openstack.org/#/c/151707 [1]
Change-Id: I2283759a5b0ee995573d4e4357dafb3e66ca4aed
+++ /dev/null
-# Copyright (c) 2015 OpenStack Foundation
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-# TODO(armax): this file is added for bw-compat. As soon as the respective
-# change merges on the networking_odl side, this file can be dropped.
-
-from neutron.plugins.ml2.drivers.opendaylight import driver
-
-OpenDaylightMechanismDriver = driver.OpenDaylightMechanismDriver
'networking_odl.common': mock.Mock(),
'networking_odl.ml2': mock.Mock()}):
from networking_odl.common import constants as const
- from neutron.plugins.ml2.drivers import mechanism_odl
+ from neutron.plugins.ml2.drivers.opendaylight import driver
class TestODLShim(test_plugin.Ml2PluginV2TestCase):
super(TestODLShim, self).setUp()
self.context = context.get_admin_context()
self.plugin = mock.Mock()
- self.driver = mechanism_odl.OpenDaylightMechanismDriver()
+ self.driver = driver.OpenDaylightMechanismDriver()
self.driver.odl_drv = mock.Mock()
def test_create_network_postcommit(self):
gre = neutron.plugins.ml2.drivers.type_gre:GreTypeDriver
vxlan = neutron.plugins.ml2.drivers.type_vxlan:VxlanTypeDriver
neutron.ml2.mechanism_drivers =
- opendaylight = neutron.plugins.ml2.drivers.mechanism_odl:OpenDaylightMechanismDriver
+ opendaylight = neutron.plugins.ml2.drivers.opendaylight.driver:OpenDaylightMechanismDriver
logger = neutron.tests.unit.ml2.drivers.mechanism_logger:LoggerMechanismDriver
test = neutron.tests.unit.ml2.drivers.mechanism_test:TestMechanismDriver
linuxbridge = neutron.plugins.ml2.drivers.mech_linuxbridge:LinuxbridgeMechanismDriver