Browse Source

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
changes/06/558606/1
Boden R 1 year ago
parent
commit
a50781c086
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      networking_opencontrail/l3/opencontrail_rt_callback.py

+ 2
- 1
networking_opencontrail/l3/opencontrail_rt_callback.py View File

@@ -20,6 +20,7 @@ from neutron.db import l3_agentschedulers_db
20 20
 from neutron.db import l3_dvr_db
21 21
 from neutron.db import l3_gwmode_db
22 22
 from neutron_lib import constants as const
23
+from neutron_lib.plugins import constants as plugin_const
23 24
 from oslo_log import helpers as log_helpers
24 25
 from oslo_log import log as logging
25 26
 from oslo_utils import excutils
@@ -46,7 +47,7 @@ class OpenContrailRouterHandler(common_db_mixin.CommonDbMixin,
46 47
         self.driver = driver.OpenContrailDrivers()
47 48
 
48 49
     def get_plugin_type(self):
49
-        return const.L3
50
+        return plugin_const.L3
50 51
 
51 52
     def get_plugin_description(self):
52 53
         """Returns string description of the plugin."""

Loading…
Cancel
Save