From 06868b709fa6d8d63d0d0ef468d3f464ec26c4b2 Mon Sep 17 00:00:00 2001 From: Boden R Date: Tue, 27 Jun 2017 15:10:38 -0600 Subject: [PATCH] use service type constants from neutron_lib plugins The well known service type constants are in neutron_lib.plugins.constants, but for legacy reasons a few still exist and are referenced from neutron_lib.constants [1] that we'd like to remove. This patch switches references over to neutron_lib's plugin constants. [1] https://github.com/openstack/neutron-lib/blob/master/neutron_lib/constants.py#L353 Change-Id: Ic33e7d9156bc17618c10765bdc36030b9ac4cc75 --- neutron_dynamic_routing/tests/unit/db/test_bgp_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron_dynamic_routing/tests/unit/db/test_bgp_db.py b/neutron_dynamic_routing/tests/unit/db/test_bgp_db.py index 498f7196..3696b7ad 100644 --- a/neutron_dynamic_routing/tests/unit/db/test_bgp_db.py +++ b/neutron_dynamic_routing/tests/unit/db/test_bgp_db.py @@ -20,6 +20,7 @@ from oslo_config import cfg from neutron_lib.api.definitions import portbindings from neutron_lib import constants as n_const from neutron_lib import exceptions as n_exc +from neutron_lib.plugins import constants as plugin_constants from neutron_lib.plugins import directory from oslo_utils import uuidutils @@ -1314,6 +1315,6 @@ class Ml2BgpTests(test_plugin.Ml2PluginV2TestCase, def setUp(self): super(Ml2BgpTests, self).setUp() - self.l3plugin = directory.get_plugin(n_const.L3) + self.l3plugin = directory.get_plugin(plugin_constants.L3) self.bgp_plugin = bgp_plugin.BgpPlugin() self.plugin = directory.get_plugin()