remove neutron.common.rpc
The neutron.common.rpc module has been in neutron-lib for awhile now and neutron is shimmed to use neutron-lib already. This patch removes neutron.common.rpc and switches the code over to use neutron-lib's implementation where needed. NeutronLibImpact Change-Id: I733f07a8c4a2af071b3467bd710290eee11a4f4c
This commit is contained in:
parent
5a8506fda6
commit
024802aafd
@ -23,6 +23,7 @@ from neutron_lib.agent import topics
|
|||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
from neutron_lib import exceptions
|
from neutron_lib import exceptions
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_concurrency import lockutils
|
from oslo_concurrency import lockutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
@ -39,7 +40,6 @@ from neutron.agent.linux import external_process
|
|||||||
from neutron.agent.metadata import driver as metadata_driver
|
from neutron.agent.metadata import driver as metadata_driver
|
||||||
from neutron.agent import rpc as agent_rpc
|
from neutron.agent import rpc as agent_rpc
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.common import utils
|
from neutron.common import utils
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ from neutron_lib.callbacks import resources
|
|||||||
from neutron_lib import constants as lib_const
|
from neutron_lib import constants as lib_const
|
||||||
from neutron_lib import context as n_context
|
from neutron_lib import context as n_context
|
||||||
from neutron_lib.exceptions import l3 as l3_exc
|
from neutron_lib.exceptions import l3 as l3_exc
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_context import context as common_context
|
from oslo_context import context as common_context
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
@ -54,7 +55,6 @@ from neutron.agent.metadata import driver as metadata_driver
|
|||||||
from neutron.agent import rpc as agent_rpc
|
from neutron.agent import rpc as agent_rpc
|
||||||
from neutron.common import constants as l3_constants
|
from neutron.common import constants as l3_constants
|
||||||
from neutron.common import ipv6_utils
|
from neutron.common import ipv6_utils
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.common import utils
|
from neutron.common import utils
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
import collections
|
import collections
|
||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_concurrency import lockutils
|
from oslo_concurrency import lockutils
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
@ -25,7 +26,6 @@ from neutron.api.rpc.callbacks import events
|
|||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import constants
|
from neutron.common import constants
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron_lib.agent import l3_extension
|
from neutron_lib.agent import l3_extension
|
||||||
from neutron_lib import constants as lib_consts
|
from neutron_lib import constants as lib_consts
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ import collections
|
|||||||
|
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib.db import constants as db_consts
|
from neutron_lib.db import constants as db_consts
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services.qos import constants as qos_consts
|
from neutron_lib.services.qos import constants as qos_consts
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
@ -24,7 +25,6 @@ from neutron.agent.linux import l3_tc_lib as tc_lib
|
|||||||
from neutron.api.rpc.callbacks.consumer import registry
|
from neutron.api.rpc.callbacks.consumer import registry
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ import hmac
|
|||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -34,7 +35,6 @@ from neutron.agent import rpc as agent_rpc
|
|||||||
from neutron.common import cache_utils as cache
|
from neutron.common import cache_utils as cache
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import ipv6_utils
|
from neutron.common import ipv6_utils
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.conf.agent.metadata import config
|
from neutron.conf.agent.metadata import config
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -15,13 +15,13 @@
|
|||||||
from neutron_lib.callbacks import events
|
from neutron_lib.callbacks import events
|
||||||
from neutron_lib.callbacks import registry
|
from neutron_lib.callbacks import registry
|
||||||
from neutron_lib import context as n_ctx
|
from neutron_lib import context as n_ctx
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.api.rpc.callbacks.consumer import registry as registry_rpc
|
from neutron.api.rpc.callbacks.consumer import registry as registry_rpc
|
||||||
from neutron.api.rpc.callbacks import events as events_rpc
|
from neutron.api.rpc.callbacks import events as events_rpc
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import objects
|
from neutron import objects
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -32,7 +32,6 @@ from oslo_utils import uuidutils
|
|||||||
from neutron.agent import resource_cache
|
from neutron.agent import resource_cache
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import objects
|
from neutron import objects
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -52,7 +51,7 @@ def create_consumers(endpoints, prefix, topic_details, start_listening=True):
|
|||||||
:returns: A common Connection.
|
:returns: A common Connection.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
connection = n_rpc.Connection()
|
connection = lib_rpc.Connection()
|
||||||
for details in topic_details:
|
for details in topic_details:
|
||||||
topic, operation, node_name = itertools.islice(
|
topic, operation, node_name = itertools.islice(
|
||||||
itertools.chain(details, [None]), 3)
|
itertools.chain(details, [None]), 3)
|
||||||
@ -80,7 +79,7 @@ class PluginReportStateAPI(object):
|
|||||||
def __init__(self, topic):
|
def __init__(self, topic):
|
||||||
target = oslo_messaging.Target(topic=topic, version='1.2',
|
target = oslo_messaging.Target(topic=topic, version='1.2',
|
||||||
namespace=n_const.RPC_NAMESPACE_STATE)
|
namespace=n_const.RPC_NAMESPACE_STATE)
|
||||||
self.client = n_rpc.get_client(target)
|
self.client = lib_rpc.get_client(target)
|
||||||
|
|
||||||
def has_alive_neutron_server(self, context, **kwargs):
|
def has_alive_neutron_server(self, context, **kwargs):
|
||||||
cctxt = self.client.prepare()
|
cctxt = self.client.prepare()
|
||||||
@ -117,7 +116,7 @@ class PluginApi(object):
|
|||||||
|
|
||||||
def __init__(self, topic):
|
def __init__(self, topic):
|
||||||
target = oslo_messaging.Target(topic=topic, version='1.0')
|
target = oslo_messaging.Target(topic=topic, version='1.0')
|
||||||
self.client = n_rpc.get_client(target)
|
self.client = lib_rpc.get_client(target)
|
||||||
|
|
||||||
def get_device_details(self, context, device, agent_id, host=None):
|
def get_device_details(self, context, device, agent_id, host=None):
|
||||||
cctxt = self.client.prepare()
|
cctxt = self.client.prepare()
|
||||||
|
@ -23,11 +23,11 @@ from neutron_lib.callbacks import registry
|
|||||||
from neutron_lib.callbacks import resources
|
from neutron_lib.callbacks import resources
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
|
|
||||||
# Priorities - lower value is higher priority
|
# Priorities - lower value is higher priority
|
||||||
PRIORITY_NETWORK_CREATE = 0
|
PRIORITY_NETWORK_CREATE = 0
|
||||||
|
@ -20,11 +20,11 @@ from neutron_lib.api import extensions
|
|||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.api.rpc.agentnotifiers import utils as ag_utils
|
from neutron.api.rpc.agentnotifiers import utils as ag_utils
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -17,10 +17,10 @@ from neutron_lib.api import extensions
|
|||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import agentschedulers_db
|
from neutron.db import agentschedulers_db
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
|
|
||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.common import constants
|
from neutron.common import constants
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ import collections
|
|||||||
|
|
||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
from neutron_lib import exceptions
|
from neutron_lib import exceptions
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -28,7 +29,6 @@ from neutron.api.rpc.callbacks.producer import registry as prod_registry
|
|||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.callbacks import version_manager
|
from neutron.api.rpc.callbacks import version_manager
|
||||||
from neutron.common import constants
|
from neutron.common import constants
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.objects import base as obj_base
|
from neutron.objects import base as obj_base
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -18,13 +18,13 @@ from neutron_lib.agent import topics
|
|||||||
from neutron_lib.callbacks import events
|
from neutron_lib.callbacks import events
|
||||||
from neutron_lib.callbacks import registry
|
from neutron_lib.callbacks import registry
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.utils import net
|
from neutron_lib.utils import net
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import constants
|
from neutron.common import constants
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import securitygroups_rpc_base as sg_rpc_base
|
from neutron.db import securitygroups_rpc_base as sg_rpc_base
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -22,6 +22,7 @@ from neutron_lib.callbacks import events
|
|||||||
from neutron_lib.callbacks import registry
|
from neutron_lib.callbacks import registry
|
||||||
from neutron_lib.db import api as db_api
|
from neutron_lib.db import api as db_api
|
||||||
from neutron_lib import exceptions
|
from neutron_lib import exceptions
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_policy import policy as oslo_policy
|
from oslo_policy import policy as oslo_policy
|
||||||
from oslo_utils import excutils
|
from oslo_utils import excutils
|
||||||
@ -31,7 +32,6 @@ from neutron._i18n import _
|
|||||||
from neutron.api import api_common
|
from neutron.api import api_common
|
||||||
from neutron.api.v2 import resource as wsgi_resource
|
from neutron.api.v2 import resource as wsgi_resource
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import policy
|
from neutron import policy
|
||||||
from neutron import quota
|
from neutron import quota
|
||||||
from neutron.quota import resource_registry
|
from neutron.quota import resource_registry
|
||||||
|
@ -22,9 +22,9 @@ import sys
|
|||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
from neutron_lib.plugins import constants
|
from neutron_lib.plugins import constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
|
|
||||||
from neutron.common import config
|
from neutron.common import config
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ import sys
|
|||||||
|
|
||||||
from keystoneauth1 import loading as ks_loading
|
from keystoneauth1 import loading as ks_loading
|
||||||
from neutron_lib.api import validators
|
from neutron_lib.api import validators
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -28,7 +29,6 @@ from oslo_middleware import cors
|
|||||||
from oslo_service import wsgi
|
from oslo_service import wsgi
|
||||||
|
|
||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.conf import common as common_config
|
from neutron.conf import common as common_config
|
||||||
from neutron import policy
|
from neutron import policy
|
||||||
from neutron import version
|
from neutron import version
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
# Copyright (c) 2012 OpenStack Foundation.
|
|
||||||
# Copyright (c) 2014 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
from neutron_lib import rpc
|
|
||||||
|
|
||||||
|
|
||||||
# TODO(boden): remove lib rpc shims
|
|
||||||
TRANSPORT = rpc.TRANSPORT
|
|
||||||
NOTIFICATION_TRANSPORT = rpc.NOTIFICATION_TRANSPORT
|
|
||||||
NOTIFIER = rpc.NOTIFIER
|
|
||||||
|
|
||||||
init = rpc.init
|
|
||||||
cleanup = rpc.cleanup
|
|
||||||
BackingOffClient = rpc.BackingOffClient
|
|
||||||
get_client = rpc.get_client
|
|
||||||
get_server = rpc.get_server
|
|
||||||
get_notifier = rpc.get_notifier
|
|
||||||
RequestContextSerializer = rpc.RequestContextSerializer
|
|
||||||
Service = rpc.Service
|
|
||||||
Connection = rpc.Connection
|
|
@ -35,6 +35,7 @@ from neutron_lib.exceptions import l3 as l3_exc
|
|||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
from neutron_lib.plugins import utils as plugin_utils
|
from neutron_lib.plugins import utils as plugin_utils
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services import base as base_services
|
from neutron_lib.services import base as base_services
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
@ -44,7 +45,6 @@ from sqlalchemy.orm import exc
|
|||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
||||||
from neutron.common import ipv6_utils
|
from neutron.common import ipv6_utils
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.common import utils
|
from neutron.common import utils
|
||||||
from neutron.db import _utils as db_utils
|
from neutron.db import _utils as db_utils
|
||||||
from neutron.db.models import l3 as l3_models
|
from neutron.db.models import l3 as l3_models
|
||||||
|
@ -21,11 +21,11 @@ from neutron_lib.api.definitions import network as net_apidef
|
|||||||
from neutron_lib.api import extensions as api_extensions
|
from neutron_lib.api import extensions as api_extensions
|
||||||
from neutron_lib.api import faults
|
from neutron_lib.api import faults
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from neutron.api import extensions
|
from neutron.api import extensions
|
||||||
from neutron.api.v2 import resource
|
from neutron.api.v2 import resource
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import policy
|
from neutron import policy
|
||||||
from neutron import wsgi
|
from neutron import wsgi
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ from neutron_lib import exceptions
|
|||||||
from neutron_lib.exceptions import agent as agent_exc
|
from neutron_lib.exceptions import agent as agent_exc
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import six
|
import six
|
||||||
import webob.exc
|
import webob.exc
|
||||||
@ -29,7 +30,6 @@ import webob.exc
|
|||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.api import extensions
|
from neutron.api import extensions
|
||||||
from neutron.api.v2 import resource
|
from neutron.api.v2 import resource
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron import policy
|
from neutron import policy
|
||||||
from neutron import wsgi
|
from neutron import wsgi
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ from neutron_lib.api import faults
|
|||||||
from neutron_lib.api import validators
|
from neutron_lib.api import validators
|
||||||
from neutron_lib import exceptions
|
from neutron_lib import exceptions
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services import base as service_base
|
from neutron_lib.services import base as service_base
|
||||||
import six
|
import six
|
||||||
import webob.exc
|
import webob.exc
|
||||||
@ -25,7 +26,6 @@ import webob.exc
|
|||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.api import extensions
|
from neutron.api import extensions
|
||||||
from neutron.api.v2 import resource as api_resource
|
from neutron.api.v2 import resource as api_resource
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import standard_attr
|
from neutron.db import standard_attr
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
from neutron_lib.callbacks import events
|
from neutron_lib.callbacks import events
|
||||||
from neutron_lib.callbacks import registry
|
from neutron_lib.callbacks import registry
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
from pecan import hooks
|
from pecan import hooks
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.pecan_wsgi import constants as pecan_constants
|
from neutron.pecan_wsgi import constants as pecan_constants
|
||||||
from neutron.pecan_wsgi.hooks import utils
|
from neutron.pecan_wsgi.hooks import utils
|
||||||
|
|
||||||
|
@ -16,11 +16,10 @@
|
|||||||
import collections
|
import collections
|
||||||
|
|
||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ from neutron_lib.plugins import constants as plugin_constants
|
|||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
from neutron_lib.plugins.ml2 import api
|
from neutron_lib.plugins.ml2 import api
|
||||||
from neutron_lib.plugins import utils as p_utils
|
from neutron_lib.plugins import utils as p_utils
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services.qos import constants as qos_consts
|
from neutron_lib.services.qos import constants as qos_consts
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_db import exception as os_db_exception
|
from oslo_db import exception as os_db_exception
|
||||||
@ -68,7 +69,6 @@ from neutron.api.rpc.handlers import metadata_rpc
|
|||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.api.rpc.handlers import securitygroups_rpc
|
from neutron.api.rpc.handlers import securitygroups_rpc
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.common import utils
|
from neutron.common import utils
|
||||||
from neutron.db import address_scope_db
|
from neutron.db import address_scope_db
|
||||||
from neutron.db import agents_db
|
from neutron.db import agents_db
|
||||||
|
@ -21,6 +21,7 @@ from neutron_lib.callbacks import resources
|
|||||||
from neutron_lib import constants as n_const
|
from neutron_lib import constants as n_const
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
from neutron_lib.plugins.ml2 import api
|
from neutron_lib.plugins.ml2 import api
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services.qos import constants as qos_consts
|
from neutron_lib.services.qos import constants as qos_consts
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -30,7 +31,6 @@ from neutron.agent import _topics as n_topics
|
|||||||
from neutron.api.rpc.handlers import dvr_rpc
|
from neutron.api.rpc.handlers import dvr_rpc
|
||||||
from neutron.api.rpc.handlers import securitygroups_rpc as sg_rpc
|
from neutron.api.rpc.handlers import securitygroups_rpc as sg_rpc
|
||||||
from neutron.common import constants as c_const
|
from neutron.common import constants as c_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import l3_hamode_db
|
from neutron.db import l3_hamode_db
|
||||||
from neutron.db import provisioning_blocks
|
from neutron.db import provisioning_blocks
|
||||||
from neutron.plugins.ml2 import db as ml2_db
|
from neutron.plugins.ml2 import db as ml2_db
|
||||||
|
@ -23,6 +23,7 @@ from neutron_lib.callbacks import resources
|
|||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
from neutron_lib.db import api as session
|
from neutron_lib.db import api as session
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib import worker as neutron_worker
|
from neutron_lib import worker as neutron_worker
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
@ -35,7 +36,6 @@ from oslo_utils import importutils
|
|||||||
|
|
||||||
from neutron.common import config
|
from neutron.common import config
|
||||||
from neutron.common import profiler
|
from neutron.common import profiler
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.conf import service
|
from neutron.conf import service
|
||||||
from neutron import wsgi
|
from neutron import wsgi
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ from neutron_lib.api.definitions import l3 as l3_apidef
|
|||||||
from neutron_lib import constants as n_const
|
from neutron_lib import constants as n_const
|
||||||
from neutron_lib.db import resource_extend
|
from neutron_lib.db import resource_extend
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services import base as service_base
|
from neutron_lib.services import base as service_base
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
@ -26,7 +27,6 @@ from oslo_utils import importutils
|
|||||||
|
|
||||||
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
||||||
from neutron.api.rpc.handlers import l3_rpc
|
from neutron.api.rpc.handlers import l3_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import common_db_mixin
|
from neutron.db import common_db_mixin
|
||||||
from neutron.db import dns_db
|
from neutron.db import dns_db
|
||||||
from neutron.db import extraroute_db
|
from neutron.db import extraroute_db
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_concurrency import lockutils
|
from oslo_concurrency import lockutils
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
@ -20,7 +21,6 @@ from neutron.api.rpc.callbacks.consumer import registry
|
|||||||
from neutron.api.rpc.callbacks import events
|
from neutron.api.rpc.callbacks import events
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.conf.services import logging as log_cfg
|
from neutron.conf.services import logging as log_cfg
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.services.logapi.common import constants as log_const
|
from neutron.services.logapi.common import constants as log_const
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from neutron_lib.callbacks import resources as r_const
|
from neutron_lib.callbacks import resources as r_const
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.api.rpc.callbacks import events
|
from neutron.api.rpc.callbacks import events
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.services.logapi.common import constants as log_const
|
from neutron.services.logapi.common import constants as log_const
|
||||||
from neutron.services.logapi.common import db_api
|
from neutron.services.logapi.common import db_api
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ import sys
|
|||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.utils import runtime
|
from neutron_lib.utils import runtime
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
@ -30,7 +31,6 @@ from neutron._i18n import _
|
|||||||
from neutron.agent import rpc as agent_rpc
|
from neutron.agent import rpc as agent_rpc
|
||||||
from neutron.common import config as common_config
|
from neutron.common import config as common_config
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.conf.agent import common as config
|
from neutron.conf.agent import common as config
|
||||||
from neutron.conf.services import metering_agent
|
from neutron.conf.services import metering_agent
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
|
|
||||||
from neutron_lib.agent import topics
|
from neutron_lib.agent import topics
|
||||||
from neutron_lib.api.definitions import metering as metering_apidef
|
from neutron_lib.api.definitions import metering as metering_apidef
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
|
|
||||||
from neutron.api.rpc.agentnotifiers import metering_rpc_agent_api
|
from neutron.api.rpc.agentnotifiers import metering_rpc_agent_api
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db.metering import metering_db
|
from neutron.db.metering import metering_db
|
||||||
from neutron.db.metering import metering_rpc
|
from neutron.db.metering import metering_rpc
|
||||||
from neutron import service
|
from neutron import service
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.api.rpc.callbacks.consumer import registry
|
from neutron.api.rpc.callbacks.consumer import registry
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.services.trunk.rpc import constants as trunk_consts
|
from neutron.services.trunk.rpc import constants as trunk_consts
|
||||||
|
|
||||||
# This module contains stub (client-side) and skeleton (server-side)
|
# This module contains stub (client-side) and skeleton (server-side)
|
||||||
|
@ -17,6 +17,7 @@ import collections
|
|||||||
from neutron_lib.api.definitions import portbindings
|
from neutron_lib.api.definitions import portbindings
|
||||||
from neutron_lib.db import api as db_api
|
from neutron_lib.db import api as db_api
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -25,7 +26,6 @@ from neutron.api.rpc.callbacks import events
|
|||||||
from neutron.api.rpc.callbacks.producer import registry
|
from neutron.api.rpc.callbacks.producer import registry
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.objects import trunk as trunk_objects
|
from neutron.objects import trunk as trunk_objects
|
||||||
from neutron.services.trunk import constants as trunk_consts
|
from neutron.services.trunk import constants as trunk_consts
|
||||||
from neutron.services.trunk import exceptions as trunk_exc
|
from neutron.services.trunk import exceptions as trunk_exc
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
import mock
|
import mock
|
||||||
from neutron_lib import constants as lib_const
|
from neutron_lib import constants as lib_const
|
||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.services.qos import constants as qos_consts
|
from neutron_lib.services.qos import constants as qos_consts
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
@ -26,7 +27,6 @@ from neutron.agent.l3 import router_info as l3router
|
|||||||
from neutron.api.rpc.callbacks.consumer import registry
|
from neutron.api.rpc.callbacks.consumer import registry
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.objects.qos import policy
|
from neutron.objects.qos import policy
|
||||||
from neutron.objects.qos import rule
|
from neutron.objects.qos import rule
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
@ -139,7 +139,7 @@ class RouterGatewayIPQosAgentExtensionInitializeTestCase(
|
|||||||
@mock.patch.object(registry, 'register')
|
@mock.patch.object(registry, 'register')
|
||||||
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
||||||
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
||||||
call_to_patch = 'neutron.common.rpc.Connection'
|
call_to_patch = 'neutron_lib.rpc.Connection'
|
||||||
with mock.patch(call_to_patch,
|
with mock.patch(call_to_patch,
|
||||||
return_value=self.connection) as create_connection:
|
return_value=self.connection) as create_connection:
|
||||||
self.gw_ip_qos_ext.initialize(
|
self.gw_ip_qos_ext.initialize(
|
||||||
|
@ -103,7 +103,7 @@ class FipPortForwardingExtensionInitializeTestCase(
|
|||||||
@mock.patch.object(registry, 'register')
|
@mock.patch.object(registry, 'register')
|
||||||
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
||||||
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
||||||
call_to_patch = 'neutron.common.rpc.Connection'
|
call_to_patch = 'neutron_lib.rpc.Connection'
|
||||||
with mock.patch(call_to_patch,
|
with mock.patch(call_to_patch,
|
||||||
return_value=self.connection) as create_connection:
|
return_value=self.connection) as create_connection:
|
||||||
self.fip_pf_ext.initialize(
|
self.fip_pf_ext.initialize(
|
||||||
|
@ -33,7 +33,7 @@ class SnatLogExtensionInitializeTestCase(test_base.L3LoggingExtBaseTestCase):
|
|||||||
@mock.patch.object(registry, 'register')
|
@mock.patch.object(registry, 'register')
|
||||||
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
@mock.patch.object(resources_rpc, 'ResourcesPushRpcCallback')
|
||||||
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
def test_initialize_subscribed_to_rpc(self, rpc_mock, subscribe_mock):
|
||||||
call_to_patch = 'neutron.common.rpc.Connection'
|
call_to_patch = 'neutron_lib.rpc.Connection'
|
||||||
with mock.patch(call_to_patch,
|
with mock.patch(call_to_patch,
|
||||||
return_value=self.connection) as create_connection:
|
return_value=self.connection) as create_connection:
|
||||||
self.snat_log_ext.initialize(
|
self.snat_log_ext.initialize(
|
||||||
|
@ -21,12 +21,12 @@ from neutron_lib.agent import topics as lib_topics
|
|||||||
from neutron_lib.callbacks import events
|
from neutron_lib.callbacks import events
|
||||||
from neutron_lib.callbacks import resources
|
from neutron_lib.callbacks import resources
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_context import context as oslo_context
|
from oslo_context import context as oslo_context
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from neutron.agent import rpc
|
from neutron.agent import rpc
|
||||||
from neutron.common import constants as n_const
|
from neutron.common import constants as n_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.objects import network
|
from neutron.objects import network
|
||||||
from neutron.objects import ports
|
from neutron.objects import ports
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
@ -22,6 +22,7 @@ from neutron_lib.api.definitions import allowedaddresspairs as addr_apidef
|
|||||||
from neutron_lib import constants as const
|
from neutron_lib import constants as const
|
||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
from testtools import matchers
|
from testtools import matchers
|
||||||
@ -32,7 +33,6 @@ from neutron.agent.linux import ip_conntrack
|
|||||||
from neutron.agent.linux import iptables_manager
|
from neutron.agent.linux import iptables_manager
|
||||||
from neutron.agent import securitygroups_rpc as sg_rpc
|
from neutron.agent import securitygroups_rpc as sg_rpc
|
||||||
from neutron.api.rpc.handlers import securitygroups_rpc
|
from neutron.api.rpc.handlers import securitygroups_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import securitygroups_rpc_base as sg_db_rpc
|
from neutron.db import securitygroups_rpc_base as sg_db_rpc
|
||||||
from neutron.extensions import securitygroup as ext_sg
|
from neutron.extensions import securitygroup as ext_sg
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
@ -15,8 +15,9 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
from neutron_lib import rpc
|
||||||
|
|
||||||
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
||||||
from neutron.common import rpc
|
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ from neutron_lib import constants
|
|||||||
from neutron_lib import context
|
from neutron_lib import context
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from neutron_lib.tests.unit import fake_notifier
|
from neutron_lib.tests.unit import fake_notifier
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
@ -33,7 +34,6 @@ from neutron.api.rpc.agentnotifiers import dhcp_rpc_agent_api
|
|||||||
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
from neutron.api.rpc.agentnotifiers import l3_rpc_agent_api
|
||||||
from neutron.api.rpc.handlers import dhcp_rpc
|
from neutron.api.rpc.handlers import dhcp_rpc
|
||||||
from neutron.api.rpc.handlers import l3_rpc
|
from neutron.api.rpc.handlers import l3_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import agents_db
|
from neutron.db import agents_db
|
||||||
from neutron.db import agentschedulers_db
|
from neutron.db import agentschedulers_db
|
||||||
from neutron.db.models import agent as agent_model
|
from neutron.db.models import agent as agent_model
|
||||||
|
@ -18,6 +18,7 @@ import time
|
|||||||
import mock
|
import mock
|
||||||
from neutron_lib.agent import constants as agent_consts
|
from neutron_lib.agent import constants as agent_consts
|
||||||
from neutron_lib import constants as n_const
|
from neutron_lib import constants as n_const
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
@ -30,7 +31,6 @@ from neutron.agent.common import polling
|
|||||||
from neutron.agent.common import utils
|
from neutron.agent.common import utils
|
||||||
from neutron.agent.linux import ip_lib
|
from neutron.agent.linux import ip_lib
|
||||||
from neutron.common import constants as c_const
|
from neutron.common import constants as c_const
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc
|
from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc
|
||||||
from neutron.plugins.ml2.drivers.openvswitch.agent.common import constants
|
from neutron.plugins.ml2.drivers.openvswitch.agent.common import constants
|
||||||
from neutron.plugins.ml2.drivers.openvswitch.agent import ovs_neutron_agent \
|
from neutron.plugins.ml2.drivers.openvswitch.agent import ovs_neutron_agent \
|
||||||
|
@ -24,6 +24,7 @@ from neutron_lib import context as n_context
|
|||||||
from neutron_lib.exceptions import l3 as l3_exc
|
from neutron_lib.exceptions import l3 as l3_exc
|
||||||
from neutron_lib.plugins import constants as plugin_constants
|
from neutron_lib.plugins import constants as plugin_constants
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
@ -32,7 +33,6 @@ from sqlalchemy import orm
|
|||||||
import testscenarios
|
import testscenarios
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.db import db_base_plugin_v2 as db_v2
|
from neutron.db import db_base_plugin_v2 as db_v2
|
||||||
from neutron.db import l3_db
|
from neutron.db import l3_db
|
||||||
from neutron.db import l3_dvr_db
|
from neutron.db import l3_dvr_db
|
||||||
|
@ -12,12 +12,12 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from neutron_lib import rpc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc
|
|
||||||
from neutron.services.trunk.rpc import agent
|
from neutron.services.trunk.rpc import agent
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
import mock
|
import mock
|
||||||
from neutron_lib.api.definitions import portbindings
|
from neutron_lib.api.definitions import portbindings
|
||||||
from neutron_lib.plugins import directory
|
from neutron_lib.plugins import directory
|
||||||
|
from neutron_lib import rpc as n_rpc
|
||||||
|
|
||||||
from neutron.api.rpc.callbacks import events
|
from neutron.api.rpc.callbacks import events
|
||||||
from neutron.api.rpc.callbacks import resources
|
from neutron.api.rpc.callbacks import resources
|
||||||
from neutron.api.rpc.handlers import resources_rpc
|
from neutron.api.rpc.handlers import resources_rpc
|
||||||
from neutron.common import rpc as n_rpc
|
|
||||||
from neutron.objects import trunk as trunk_obj
|
from neutron.objects import trunk as trunk_obj
|
||||||
from neutron.plugins.ml2 import plugin as ml2_plugin
|
from neutron.plugins.ml2 import plugin as ml2_plugin
|
||||||
from neutron.services.trunk import constants
|
from neutron.services.trunk import constants
|
||||||
|
Loading…
Reference in New Issue
Block a user