Reorder imports by full module path
Fixes bug #1014765 Change-Id: I849d73fc756b830b78492a6ed0e8cf2d32fde8cd
This commit is contained in:
parent
b1c7d5519e
commit
87448d5749
@ -17,9 +17,9 @@
|
||||
#
|
||||
# @author: Juliano Martinez, Locaweb.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import shlex
|
||||
import logging
|
||||
import subprocess
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -24,11 +24,11 @@ import routes
|
||||
import webob.dec
|
||||
import webob.exc
|
||||
|
||||
from quantum import manager
|
||||
from quantum.api import attachments
|
||||
from quantum.api import networks
|
||||
from quantum.api import ports
|
||||
from quantum.common import flags
|
||||
from quantum import manager
|
||||
from quantum import wsgi
|
||||
|
||||
|
||||
|
@ -19,8 +19,8 @@ import logging
|
||||
|
||||
from webob import exc
|
||||
|
||||
from quantum import wsgi
|
||||
from quantum.api import faults
|
||||
from quantum import wsgi
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -19,11 +19,11 @@ Utility methods for working with WSGI servers redux
|
||||
import logging
|
||||
|
||||
import webob
|
||||
import webob.exc
|
||||
import webob.dec
|
||||
import webob.exc
|
||||
|
||||
from quantum import context
|
||||
from quantum.common import exceptions
|
||||
from quantum import context
|
||||
from quantum.openstack.common import jsonutils as json
|
||||
from quantum import wsgi
|
||||
|
||||
|
@ -21,10 +21,10 @@ import webob
|
||||
import webob.dec
|
||||
import webob.exc
|
||||
|
||||
from quantum import manager
|
||||
from quantum import wsgi
|
||||
from quantum.api.v2 import base
|
||||
from quantum import manager
|
||||
from quantum.openstack.common import cfg
|
||||
from quantum import wsgi
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -18,8 +18,8 @@
|
||||
import logging
|
||||
import webob.dec
|
||||
|
||||
from quantum import wsgi
|
||||
from quantum.api.views import versions as versions_view
|
||||
from quantum import wsgi
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -20,11 +20,11 @@ import netaddr
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.orm import exc
|
||||
|
||||
from quantum import quantum_plugin_base_v2
|
||||
from quantum.api.v2 import router as api_router
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.db import api as db
|
||||
from quantum.db import models_v2
|
||||
from quantum import quantum_plugin_base_v2
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -16,8 +16,8 @@
|
||||
import uuid
|
||||
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy import orm
|
||||
from sqlalchemy.ext import declarative
|
||||
from sqlalchemy import orm
|
||||
|
||||
|
||||
def str_uuid():
|
||||
|
@ -20,8 +20,8 @@ from webob import exc
|
||||
|
||||
from quantum.api import api_common as common
|
||||
from quantum.common import exceptions as qexception
|
||||
from quantum.extensions import extensions
|
||||
from quantum.extensions import _novatenant_view as novatenant_view
|
||||
from quantum.extensions import extensions
|
||||
from quantum.manager import QuantumManager
|
||||
from quantum.plugins.cisco.common import cisco_faults as faults
|
||||
from quantum import wsgi
|
||||
|
@ -30,8 +30,8 @@ from optparse import OptionParser
|
||||
import os
|
||||
import sys
|
||||
|
||||
from quantumclient import Client
|
||||
import quantumclient.cli as qcli
|
||||
from quantumclient import Client
|
||||
|
||||
|
||||
LOG = logging.getLogger('quantum')
|
||||
|
@ -18,9 +18,9 @@
|
||||
from sqlalchemy.orm import exc
|
||||
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as c_exc
|
||||
from quantum.plugins.cisco.db import l2network_models
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
|
||||
import logging as LOG
|
||||
import quantum.plugins.cisco.db.api as db
|
||||
|
@ -20,8 +20,8 @@ import uuid
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey, Boolean
|
||||
from sqlalchemy.orm import relation, object_mapper
|
||||
|
||||
from quantum.plugins.cisco.db.models import BASE
|
||||
from quantum.plugins.cisco.db import models
|
||||
from quantum.plugins.cisco.db.models import BASE
|
||||
|
||||
|
||||
class L2NetworkBase(object):
|
||||
|
@ -18,8 +18,8 @@
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey
|
||||
from sqlalchemy.orm import relation
|
||||
|
||||
from quantum.plugins.cisco.db import models
|
||||
from quantum.plugins.cisco.db.l2network_models import L2NetworkBase
|
||||
from quantum.plugins.cisco.db import models
|
||||
from quantum.plugins.cisco.db.models import BASE
|
||||
|
||||
|
||||
|
@ -21,14 +21,14 @@ import logging
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.openstack.common import importutils
|
||||
from quantum.quantum_plugin_base import QuantumPluginBase
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.common import cisco_credentials as cred
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
from quantum.plugins.cisco.common import cisco_utils as cutil
|
||||
from quantum.plugins.cisco.db import api as db
|
||||
from quantum.plugins.cisco.db import l2network_db as cdb
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.quantum_plugin_base import QuantumPluginBase
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -21,9 +21,9 @@ import inspect
|
||||
import logging
|
||||
|
||||
from quantum.openstack.common import importutils
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.l2network_model_base import L2NetworkModelBase
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -21,9 +21,9 @@ import inspect
|
||||
import logging
|
||||
|
||||
from quantum.openstack.common import importutils
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.l2network_model_base import L2NetworkModelBase
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -20,14 +20,14 @@ Logistic components for Service Insertion utility
|
||||
"""
|
||||
|
||||
import logging
|
||||
import subprocess
|
||||
import re
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
from quantum.openstack.common import importutils
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.db import services_db as sdb
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.services import services_constants as servconts
|
||||
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
import __builtin__
|
||||
import unittest
|
||||
|
||||
|
||||
setattr(__builtin__, '_', lambda x: x)
|
||||
|
||||
|
||||
|
@ -23,10 +23,10 @@ import unittest
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
from quantum.plugins.cisco import l2network_plugin
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
from quantum.plugins.cisco.db import api as db
|
||||
from quantum.plugins.cisco.db import l2network_db as cdb
|
||||
from quantum.plugins.cisco import l2network_plugin
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
|
||||
|
||||
LOG = logging.getLogger('quantum.tests.test_core_api_func')
|
||||
|
@ -20,8 +20,8 @@ import logging
|
||||
import unittest
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as c_exc
|
||||
from quantum.plugins.cisco.common import cisco_credentials as creds
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as c_exc
|
||||
from quantum.plugins.cisco.db import api as db
|
||||
from quantum.plugins.cisco.db import l2network_db as cdb
|
||||
from quantum.plugins.cisco import l2network_plugin_configuration as conf
|
||||
|
@ -64,14 +64,14 @@ from copy import deepcopy
|
||||
import logging
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.plugins.cisco.l2device_inventory_base import (
|
||||
L2NetworkDeviceInventoryBase,
|
||||
)
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.common import cisco_credentials as cred
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
from quantum.plugins.cisco.db import api as db
|
||||
from quantum.plugins.cisco.db import ucs_db as udb
|
||||
from quantum.plugins.cisco.l2device_inventory_base import (
|
||||
L2NetworkDeviceInventoryBase,
|
||||
)
|
||||
from quantum.plugins.cisco.ucs import (
|
||||
cisco_ucs_inventory_configuration as conf,
|
||||
)
|
||||
|
@ -23,9 +23,9 @@ from sqlalchemy.orm import exc
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.common.utils import find_config_file
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.linuxbridge.common import config
|
||||
from quantum.plugins.linuxbridge.common import exceptions as c_exc
|
||||
from quantum.plugins.linuxbridge.db import l2network_models
|
||||
from quantum.plugins.linuxbridge.common import config
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
CONF_FILE = find_config_file({'plugin': 'linuxbridge'},
|
||||
|
@ -26,12 +26,12 @@ import sys
|
||||
import unittest
|
||||
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.linuxbridge import LinuxBridgePlugin
|
||||
from quantum.plugins.linuxbridge.agent import (
|
||||
linuxbridge_quantum_agent as linux_agent,
|
||||
)
|
||||
from quantum.plugins.linuxbridge.common import constants as lconst
|
||||
from quantum.plugins.linuxbridge.db import l2network_db as cdb
|
||||
from quantum.plugins.linuxbridge import LinuxBridgePlugin
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -18,10 +18,10 @@ import time
|
||||
|
||||
import eventlet
|
||||
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.client as client
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.api_client.common import (
|
||||
_conn_str,
|
||||
)
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.client as client
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.request_eventlet
|
||||
|
||||
|
||||
|
@ -22,11 +22,11 @@ import eventlet
|
||||
from eventlet import timeout
|
||||
|
||||
from quantum.openstack.common import jsonutils
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.client_eventlet
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.api_client.common import (
|
||||
_conn_str,
|
||||
)
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.request as request
|
||||
import quantum.plugins.nicira.nicira_nvp_plugin.api_client.client_eventlet
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
@ -17,8 +17,8 @@
|
||||
import logging
|
||||
import unittest
|
||||
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin import nvplib
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
@ -21,11 +21,11 @@ import unittest
|
||||
|
||||
from quantum.common import exceptions as exception
|
||||
from quantum.openstack.common import jsonutils
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin import (
|
||||
NvpApiClient,
|
||||
nvplib,
|
||||
)
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
@ -20,11 +20,11 @@ import unittest
|
||||
|
||||
from quantum.common import exceptions as exception
|
||||
from quantum.openstack.common import jsonutils
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin import (
|
||||
NvpApiClient,
|
||||
nvplib,
|
||||
)
|
||||
from quantum.plugins.nicira.nicira_nvp_plugin.QuantumPlugin import NvpPlugin
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
@ -25,8 +25,8 @@ from quantum.api.api_common import OperationalStatus
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.common.utils import find_config_file
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.openvswitch import ovs_db
|
||||
from quantum.plugins.openvswitch.common import config
|
||||
from quantum.plugins.openvswitch import ovs_db
|
||||
from quantum.quantum_plugin_base import QuantumPluginBase
|
||||
|
||||
LOG = logging.getLogger("ovs_quantum_plugin")
|
||||
|
@ -20,8 +20,8 @@ import unittest
|
||||
|
||||
import mox
|
||||
|
||||
from quantum.plugins.openvswitch.agent import ovs_quantum_agent
|
||||
from quantum.agent.linux import ovs_lib
|
||||
from quantum.plugins.openvswitch.agent import ovs_quantum_agent
|
||||
|
||||
# Useful global dummy variables.
|
||||
NET_UUID = '3faeebfe-5d37-11e1-a64b-000c29d5f0a7'
|
||||
|
@ -22,8 +22,8 @@ import os
|
||||
|
||||
from quantum.api.api_common import OperationalStatus
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.plugins.ryu.common import config
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.ryu.common import config
|
||||
from quantum.quantum_plugin_base import QuantumPluginBase
|
||||
|
||||
|
||||
|
@ -19,12 +19,12 @@
|
||||
from ryu.app import client
|
||||
from ryu.app import rest_nw_id
|
||||
|
||||
from quantum.common.utils import find_config_file
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.common.utils import find_config_file
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.ryu.db import api as db_api
|
||||
from quantum.plugins.ryu import ofp_service_type
|
||||
from quantum.plugins.ryu import ovs_quantum_plugin_base
|
||||
from quantum.plugins.ryu.db import api as db_api
|
||||
|
||||
|
||||
CONF_FILE = find_config_file({"plugin": "ryu"}, "ryu.ini")
|
||||
|
@ -19,9 +19,9 @@ import os
|
||||
|
||||
import mox
|
||||
|
||||
from quantum.plugins.ryu.tests.unit.basetest import BaseRyuTest
|
||||
from quantum.plugins.ryu.tests.unit import fake_plugin
|
||||
from quantum.plugins.ryu.tests.unit import utils
|
||||
from quantum.plugins.ryu.tests.unit.basetest import BaseRyuTest
|
||||
|
||||
|
||||
class PluginBaseTest(BaseRyuTest):
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
import uuid
|
||||
|
||||
import quantum.db.api as db
|
||||
from quantum.common.utils import find_config_file
|
||||
import quantum.db.api as db
|
||||
from quantum.plugins.ryu.common import config
|
||||
from quantum.plugins.ryu.tests.unit.basetest import BaseRyuTest
|
||||
from quantum.plugins.ryu.tests.unit import utils
|
||||
|
@ -16,9 +16,9 @@
|
||||
# under the License.
|
||||
|
||||
import ConfigParser
|
||||
from StringIO import StringIO
|
||||
import imp
|
||||
import os
|
||||
from StringIO import StringIO
|
||||
import tempfile
|
||||
|
||||
import mock
|
||||
|
@ -21,8 +21,8 @@ Policy engine for quantum. Largely copied from nova.
|
||||
|
||||
import os.path
|
||||
|
||||
from quantum.common.utils import find_config_file
|
||||
from quantum.common import exceptions
|
||||
from quantum.common.utils import find_config_file
|
||||
from quantum.openstack.common import policy
|
||||
|
||||
|
||||
|
@ -22,8 +22,8 @@ QuantumPluginBase provides the definition of minimum set of
|
||||
methods that needs to be implemented by a Quantum Plug-in.
|
||||
"""
|
||||
|
||||
import inspect
|
||||
from abc import ABCMeta, abstractmethod
|
||||
import inspect
|
||||
|
||||
|
||||
class QuantumPluginBase(object):
|
||||
|
@ -25,12 +25,12 @@ import os
|
||||
|
||||
from quantum.api.api_common import APIFaultWrapper
|
||||
from quantum.api.networks import Controller
|
||||
from quantum.common.test_lib import test_config
|
||||
from quantum.common import config
|
||||
from quantum.common.test_lib import test_config
|
||||
from quantum.db import api as db
|
||||
from quantum.openstack.common import cfg
|
||||
from quantum.openstack.common import importutils
|
||||
import quantum.tests.unit.testlib_api as testlib
|
||||
from quantum.openstack.common import cfg
|
||||
from quantum.wsgi import XMLDeserializer, JSONDeserializer
|
||||
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the spec
|
||||
|
||||
import os
|
||||
import logging
|
||||
import os
|
||||
import unittest
|
||||
import uuid
|
||||
|
||||
@ -22,12 +22,12 @@ import webtest
|
||||
|
||||
from webob import exc
|
||||
|
||||
from quantum import context
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.api.v2 import resource as wsgi_resource
|
||||
from quantum.api.v2 import router
|
||||
from quantum.api.v2 import views
|
||||
from quantum.common import config
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum import context
|
||||
from quantum.openstack.common import cfg
|
||||
|
||||
|
||||
|
@ -13,17 +13,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import os
|
||||
import logging
|
||||
import unittest
|
||||
import contextlib
|
||||
import logging
|
||||
import mock
|
||||
import os
|
||||
import unittest
|
||||
|
||||
import quantum
|
||||
from quantum.api.v2.router import APIRouter
|
||||
from quantum.common import config
|
||||
from quantum.common import exceptions as q_exc
|
||||
from quantum.db import api as db
|
||||
from quantum.common import config
|
||||
from quantum.openstack.common import cfg
|
||||
from quantum.tests.unit.testlib_api import create_request
|
||||
from quantum.wsgi import Serializer, JSONDeserializer
|
||||
|
Loading…
Reference in New Issue
Block a user