summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoden R <bodenvmw@gmail.com>2018-04-03 13:17:03 -0600
committerBoden R <bodenvmw@gmail.com>2018-04-03 13:17:29 -0600
commita50781c086ef8a824671bb8a302343877811f696 (patch)
tree7508f735baa20b4dfd7ec0023502e01e0e69a363
parenteeb74c47e1ea6d888d6fa9301bdda40c2b265067 (diff)
use plugin names from neutron-lib plugin constants
Switch usage of plugin names from neutron_lib.constants over to neutron_lib.plugins.constants in prep for https://review.openstack.org/#/c/531857/ Change-Id: I3a21f2a2bd9875b55f21f306d4fba733e6feb8da
Notes
Notes (review): Code-Review+1: Maciej Jagiello <maciej.jagiello@codilime.com> Code-Review+2: Sukhdev Kapur <sukhdevkapur@gmail.com> Workflow+1: Sukhdev Kapur <sukhdevkapur@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 13 Apr 2018 19:08:08 +0000 Reviewed-on: https://review.openstack.org/558606 Project: openstack/networking-opencontrail Branch: refs/heads/master
-rw-r--r--networking_opencontrail/l3/opencontrail_rt_callback.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking_opencontrail/l3/opencontrail_rt_callback.py b/networking_opencontrail/l3/opencontrail_rt_callback.py
index aed43aa..16c8f07 100644
--- a/networking_opencontrail/l3/opencontrail_rt_callback.py
+++ b/networking_opencontrail/l3/opencontrail_rt_callback.py
@@ -20,6 +20,7 @@ from neutron.db import l3_agentschedulers_db
20from neutron.db import l3_dvr_db 20from neutron.db import l3_dvr_db
21from neutron.db import l3_gwmode_db 21from neutron.db import l3_gwmode_db
22from neutron_lib import constants as const 22from neutron_lib import constants as const
23from neutron_lib.plugins import constants as plugin_const
23from oslo_log import helpers as log_helpers 24from oslo_log import helpers as log_helpers
24from oslo_log import log as logging 25from oslo_log import log as logging
25from oslo_utils import excutils 26from oslo_utils import excutils
@@ -46,7 +47,7 @@ class OpenContrailRouterHandler(common_db_mixin.CommonDbMixin,
46 self.driver = driver.OpenContrailDrivers() 47 self.driver = driver.OpenContrailDrivers()
47 48
48 def get_plugin_type(self): 49 def get_plugin_type(self):
49 return const.L3 50 return plugin_const.L3
50 51
51 def get_plugin_description(self): 52 def get_plugin_description(self):
52 """Returns string description of the plugin.""" 53 """Returns string description of the plugin."""