summaryrefslogtreecommitdiff
path: root/nova/ipv6/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/ipv6/api.py')
-rw-r--r--nova/ipv6/api.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/ipv6/api.py b/nova/ipv6/api.py
index f57a4554d8..7fedfe8332 100644
--- a/nova/ipv6/api.py
+++ b/nova/ipv6/api.py
@@ -13,8 +13,8 @@
# under the License.
from oslo_config import cfg
+from stevedore import driver
-from nova import utils
ipv6_backend_opt = cfg.StrOpt('ipv6_backend',
default='rfc2462',
@@ -27,9 +27,8 @@ IMPL = None
def reset_backend():
global IMPL
- IMPL = utils.LazyPluggable('ipv6_backend',
- rfc2462='nova.ipv6.rfc2462',
- account_identifier='nova.ipv6.account_identifier')
+ IMPL = driver.DriverManager("nova.ipv6_backend",
+ CONF.ipv6_backend).driver
def to_global(prefix, mac, project_id):