Use neutron-lib's context module

Change-Id: I7f097c0e61ddc1f056081eca14d8e68efd34ad60
stable/pike 10.1.0.a1
Adit Sarfaty 6 years ago committed by Gary Kotton
parent 9a046ea132
commit 0061bf903f

@ -14,7 +14,7 @@
# under the License.
from neutron.agent import rpc as agent_rpc
from neutron import context
from neutron_lib import context
from oslo_config import cfg
from oslo_log import log as logging

@ -18,7 +18,7 @@ import os.path
import eventlet
from contextlib import contextmanager
from neutron import context as ctx
from neutron_lib import context as ctx
from oslo_config import cfg
from oslo_log import log as logging

@ -30,7 +30,7 @@ from networking_l2gw.services.l2gateway import exceptions
LOG = logging.getLogger(__name__)
class Activity:
class Activity(object):
Initial, Update = range(2)

@ -20,8 +20,8 @@ from oslo_config import cfg
from oslo_log import log as logging
from oslo_service import loopingcall
from neutron import context as neutron_context
from neutron.db import agents_db
from neutron_lib import context as neutron_context
from networking_l2gw._i18n import _LE
from networking_l2gw.services.l2gateway.common import config

@ -24,7 +24,7 @@ from neutron.tests import base
from networking_l2gw.services.l2gateway.agent.ovsdb import impl_idl
class Msg:
class Msg(object):
id = 0
type = 1
method = 'update'

@ -17,8 +17,8 @@ from oslo_db import exception as d_exc
from oslo_utils import timeutils
from oslo_utils import uuidutils
from neutron import context
from neutron.tests.unit import testlib_api
from neutron_lib import context
from networking_l2gw.db.l2gateway.ovsdb import lib
from networking_l2gw.db.l2gateway.ovsdb import models

@ -17,8 +17,8 @@ import mock
from neutron.callbacks import events
from neutron.callbacks import resources
from neutron import context
from neutron.tests.unit import testlib_api
from neutron_lib import context
from networking_l2gw.db.l2gateway import l2gateway_db
from networking_l2gw.services.l2gateway.common import constants

@ -22,8 +22,8 @@ import mock
from neutron.agent.common import config as agent_config
from neutron.agent import rpc as agent_rpc
from neutron.common import rpc
from neutron import context
from neutron.tests import base
from neutron_lib import context
from oslo_config import cfg
from oslo_service import loopingcall

@ -15,11 +15,11 @@
import mock
from neutron import context
from neutron import manager
from neutron.plugins.ml2 import managers
from neutron.tests import base
from neutron_lib import context
from neutron_lib.plugins import directory
from networking_l2gw.db.l2gateway import l2gateway_db

@ -15,9 +15,9 @@
import mock
from neutron.common import rpc as n_rpc
from neutron import context as ctx
from neutron.db import agents_db
from neutron.tests.unit.plugins.ml2 import test_plugin
from neutron_lib import context as ctx
from networking_l2gw.db.l2gateway.ovsdb import lib as db
from networking_l2gw.services.l2gateway.common import l2gw_validators

@ -23,11 +23,11 @@ from oslo_service import loopingcall
from oslo_utils import timeutils
from neutron.common import topics
from neutron import context as neutron_context
from neutron.db import agents_db
from neutron import manager
from neutron.plugins.ml2 import rpc
from neutron.tests import base
from neutron_lib import context as neutron_context
from networking_l2gw.services.l2gateway import agent_scheduler
from networking_l2gw.services.l2gateway.common import constants as srv_const

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.8 # Apache-2.0
pbr>=2.0.0 # Apache-2.0
Babel>=2.3.4 # BSD
neutron-lib>=1.1.0 # Apache-2.0
neutron-lib>=1.2.0 # Apache-2.0
python-neutronclient>=5.1.0 # Apache-2.0

@ -25,5 +25,5 @@ except ImportError:
pass
setuptools.setup(
setup_requires=['pbr>=1.8'],
setup_requires=['pbr>=2.0.0'],
pbr=True)

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking<0.10,>=0.9.2
hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0
coverage>=4.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD

Loading…
Cancel
Save