Skip to content

Commit

Permalink
Fix import errors when using with latest neutron
Browse files Browse the repository at this point in the history
Change-Id: I09ce9e81bd487e757141b6727310af4e5471d2bf
  • Loading branch information
numansiddique committed Jan 30, 2015
1 parent f867f65 commit 4b429e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 10 additions & 2 deletions neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py
Expand Up @@ -27,8 +27,16 @@
from neutron.extensions import portbindings
from neutron.extensions import securitygroup
from neutron import neutron_plugin_base_v2
from neutron.openstack.common import importutils
from neutron.openstack.common import jsonutils as json
try:
from neutron.openstack.common import importutils
except ImportError:
from oslo_utils import importutils

try:
from neutron.openstack.common import jsonutils as json
except ImportError:
from oslo_serialization import jsonutils as json

from neutron.openstack.common import log as logging
from simplejson import JSONDecodeError

Expand Down
Expand Up @@ -6,7 +6,10 @@

from neutron.common import exceptions as n_exc
from neutron.openstack.common import log as logging
import neutron.services.loadbalancer.drivers.abstract_driver as abstract_driver
try:
from neutron.services.loadbalancer.drivers import abstract_driver
except ImportError:
from neutron_lbaas.services.loadbalancer.drivers import abstract_driver

from vnc_api.vnc_api import ServiceInstance, ServiceInstanceType
from vnc_api.vnc_api import ServiceScaleOutType, ServiceInstanceInterfaceType
Expand Down

0 comments on commit 4b429e5

Please sign in to comment.