Remove unused imports
Fixes bug #1010276 Removed unused imports found by: find . -type f -name "*py" -exec pylint -r n {} \; | grep -E "Unused imp|^\*" Change-Id: Ie2ca545ecfaadd033652554c9e59d6a83d44ed09
This commit is contained in:
parent
268040c336
commit
dee8bd1a10
@ -38,11 +38,9 @@
|
||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from nose import config
|
||||
from nose import core
|
||||
from nose import result
|
||||
|
||||
|
@ -24,7 +24,6 @@ from quantum.api import api_common as common
|
||||
from quantum.api.views import ports as port_view
|
||||
from quantum.extensions import extensions
|
||||
from quantum.manager import QuantumManager
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as exception
|
||||
from quantum.plugins.cisco.common import cisco_faults as faults
|
||||
from quantum import wsgi
|
||||
|
||||
|
@ -29,9 +29,7 @@ import logging.handlers
|
||||
from optparse import OptionParser
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantumclient import Client
|
||||
import quantumclient.cli as qcli
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
from configobj import ConfigObj
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
|
||||
|
||||
class CiscoConfigParser(ConfigObj):
|
||||
"""Config Parser based on the ConfigObj module"""
|
||||
|
@ -16,7 +16,6 @@
|
||||
#
|
||||
# @author: Sumit Naiksatam, Cisco Systems, Inc.
|
||||
|
||||
import os
|
||||
import logging as LOG
|
||||
|
||||
from quantum.common.config import find_config_file
|
||||
|
@ -18,12 +18,8 @@
|
||||
|
||||
import hashlib
|
||||
import logging
|
||||
import traceback
|
||||
|
||||
import MySQLdb
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.db import api as db
|
||||
from quantum.plugins.cisco.db import l2network_db as cdb
|
||||
|
||||
|
||||
|
@ -24,9 +24,6 @@ from quantum.plugins.cisco.db import l2network_models
|
||||
|
||||
import logging as LOG
|
||||
import quantum.plugins.cisco.db.api as db
|
||||
import quantum.plugins.cisco.db.nexus_db as ndb
|
||||
import quantum.plugins.cisco.db.ucs_db as udb
|
||||
import quantum.plugins.cisco.db.services_db as sdb
|
||||
|
||||
|
||||
def initialize():
|
||||
|
@ -22,7 +22,6 @@ from sqlalchemy.orm import exc
|
||||
|
||||
import quantum.plugins.cisco.db.api as db
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as c_exc
|
||||
from quantum.plugins.cisco.db import services_models
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
import inspect
|
||||
import logging
|
||||
import re
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.openstack.common import importutils
|
||||
|
@ -17,8 +17,6 @@
|
||||
# @author: Sumit Naiksatam, Cisco Systems, Inc.
|
||||
# @author: Rohit Agarwalla, Cisco Systems, Inc.
|
||||
|
||||
import os
|
||||
|
||||
from quantum.common.config import find_config_file
|
||||
from quantum.plugins.cisco.common import cisco_configparser as confp
|
||||
|
||||
|
@ -19,14 +19,11 @@
|
||||
from copy import deepcopy
|
||||
import inspect
|
||||
import logging
|
||||
import platform
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.openstack.common import importutils
|
||||
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
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -19,14 +19,11 @@
|
||||
from copy import deepcopy
|
||||
import inspect
|
||||
import logging
|
||||
import platform
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.openstack.common import importutils
|
||||
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
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -22,7 +22,6 @@ Configuration consolidation for the Nexus Driver
|
||||
This module will export the configuration parameters
|
||||
from the nexus.ini file
|
||||
"""
|
||||
import os
|
||||
|
||||
from quantum.common.config import find_config_file
|
||||
from quantum.plugins.cisco.common import cisco_configparser as confp
|
||||
|
@ -25,7 +25,6 @@ import logging
|
||||
|
||||
from ncclient import manager
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.db import l2network_db as cdb
|
||||
from quantum.plugins.cisco.nexus import cisco_nexus_snippets as snipp
|
||||
|
||||
|
@ -22,8 +22,6 @@ Nexus-OS XML-based configuration snippets
|
||||
|
||||
import logging
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
@ -27,7 +27,6 @@ from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import cfg
|
||||
from nova.scheduler import chance
|
||||
from nova.scheduler import driver
|
||||
from quantumclient import Client
|
||||
|
||||
|
||||
|
@ -33,7 +33,6 @@ sys.path.append(os.getcwd())
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
from quantum.common.test_lib import run_tests, test_config
|
||||
import quantum.tests.unit
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -17,8 +17,6 @@
|
||||
# @author: Sumit Naiksatam, Cisco Systems, Inc.
|
||||
#
|
||||
|
||||
import os
|
||||
|
||||
from quantum.common.config import find_config_file
|
||||
from quantum.plugins.cisco.common import cisco_configparser as confp
|
||||
|
||||
|
@ -70,7 +70,6 @@ from quantum.plugins.cisco.l2device_inventory_base import (
|
||||
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 ucs_db as udb
|
||||
from quantum.plugins.cisco.ucs import (
|
||||
|
@ -17,8 +17,6 @@
|
||||
# @author: Sumit Naiksatam, Cisco Systems, Inc.
|
||||
#
|
||||
|
||||
import os
|
||||
|
||||
from quantum.common.config import find_config_file
|
||||
from quantum.plugins.cisco.common import cisco_configparser as confp
|
||||
|
||||
|
@ -26,8 +26,6 @@ import logging
|
||||
from xml.etree import ElementTree as et
|
||||
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.common import cisco_exceptions as cexc
|
||||
from quantum.plugins.cisco.ucs import cisco_getvif as gvif
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -19,7 +19,6 @@
|
||||
|
||||
import logging
|
||||
|
||||
from quantum.common import exceptions as exc
|
||||
from quantum.openstack.common import importutils
|
||||
from quantum.plugins.cisco.common import cisco_constants as const
|
||||
from quantum.plugins.cisco.common import cisco_credentials as cred
|
||||
|
@ -15,12 +15,8 @@
|
||||
# under the License.
|
||||
# @author: Rohit Agarwalla, Cisco Systems, Inc.
|
||||
|
||||
import uuid
|
||||
|
||||
from sqlalchemy import Column, Integer, String, Boolean
|
||||
from sqlalchemy.orm import relation, object_mapper
|
||||
|
||||
from quantum.db import models
|
||||
from quantum.db.models import BASE
|
||||
from quantum.db.models import QuantumBase
|
||||
|
||||
|
@ -25,10 +25,8 @@ To run all tests::
|
||||
PLUGIN_DIR=quantum/plugins/linuxbridge ./run_tests.sh
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from nose import config
|
||||
from nose import core
|
||||
@ -39,9 +37,7 @@ sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
from quantum.api.api_common import OperationalStatus
|
||||
from quantum.common.test_lib import run_tests, test_config
|
||||
from quantum.plugins.linuxbridge.LinuxBridgePlugin import LinuxBridgePlugin
|
||||
import quantum.tests.unit
|
||||
from tests.unit.test_database import L2networkDBTest
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -21,11 +21,9 @@
|
||||
|
||||
import logging
|
||||
from optparse import OptionParser
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
|
||||
import sqlalchemy
|
||||
from sqlalchemy.ext import sqlsoup
|
||||
|
||||
from quantum.agent.linux import ovs_lib
|
||||
|
@ -20,7 +20,6 @@
|
||||
from sqlalchemy.orm import exc
|
||||
|
||||
import quantum.db.api as db
|
||||
import quantum.db.models as models
|
||||
from quantum.plugins.openvswitch import ovs_models
|
||||
|
||||
|
||||
|
@ -17,11 +17,7 @@
|
||||
# @author: Brad Hall, Nicira Networks, Inc.
|
||||
# @author: Dan Wendlandt, Nicira Networks, Inc.
|
||||
|
||||
import uuid
|
||||
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import relation
|
||||
from sqlalchemy import Column, Integer, String
|
||||
|
||||
from quantum.db.models import BASE
|
||||
|
||||
|
@ -19,9 +19,7 @@
|
||||
# @author: Dave Lapsley, Nicira Networks, Inc.
|
||||
|
||||
import logging
|
||||
from optparse import OptionParser
|
||||
import os
|
||||
import sys
|
||||
|
||||
from quantum.api.api_common import OperationalStatus
|
||||
from quantum.common import exceptions as q_exc
|
||||
|
@ -25,10 +25,8 @@ To run all tests::
|
||||
PLUGIN_DIR=quantum/plugins/openvswitch ./run_tests.sh
|
||||
"""
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from nose import config
|
||||
from nose import core
|
||||
@ -38,7 +36,6 @@ sys.path.append(os.path.dirname(__file__))
|
||||
|
||||
from quantum.api.api_common import OperationalStatus
|
||||
from quantum.common.test_lib import run_tests, test_config
|
||||
from quantum.plugins.openvswitch.tests.unit.test_vlan_map import VlanMapTest
|
||||
import quantum.tests.unit
|
||||
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#
|
||||
# @author: Dave Lapsley, Nicira Networks, Inc.
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
import mox
|
||||
|
@ -15,7 +15,6 @@
|
||||
# under the License.
|
||||
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
from quantum.db.models import BASE
|
||||
|
||||
|
@ -55,9 +55,6 @@ if __name__ == '__main__':
|
||||
# patch modules for ryu.app.client and ryu.app.rest_nw_id
|
||||
# With those, plugin can be tested without ryu installed
|
||||
with patch_fake_ryu_client():
|
||||
# to find quantum/etc/plugin/ryu/ryu.ini before chdir()
|
||||
import ryu_quantum_plugin
|
||||
|
||||
c = config.Config(stream=sys.stdout,
|
||||
env=os.environ,
|
||||
verbosity=3,
|
||||
|
@ -20,7 +20,6 @@ import stubout
|
||||
import unittest
|
||||
|
||||
import quantum.db.api as db
|
||||
import quantum.plugins.ryu.db.models # for ryu specific tables
|
||||
from quantum.plugins.ryu.tests.unit import utils
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
import unittest
|
||||
|
||||
from lxml import etree
|
||||
from webob import exc, request
|
||||
from webob import exc
|
||||
|
||||
import quantum.api.attachments as atts
|
||||
import quantum.api.networks as nets
|
||||
|
Loading…
Reference in New Issue
Block a user