diff --git a/neutron/db/sqlalchemyutils.py b/neutron/db/sqlalchemyutils.py index d012a85a18..23dd6447f9 100644 --- a/neutron/db/sqlalchemyutils.py +++ b/neutron/db/sqlalchemyutils.py @@ -15,6 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. +from six.moves import xrange import sqlalchemy from sqlalchemy.orm.properties import RelationshipProperty diff --git a/neutron/plugins/bigswitch/tests/test_server.py b/neutron/plugins/bigswitch/tests/test_server.py index a3bfccdede..8725adbb6c 100755 --- a/neutron/plugins/bigswitch/tests/test_server.py +++ b/neutron/plugins/bigswitch/tests/test_server.py @@ -27,6 +27,7 @@ from __future__ import print_function import json import re +from six.moves import xrange from wsgiref.simple_server import make_server diff --git a/neutron/plugins/brocade/vlanbm.py b/neutron/plugins/brocade/vlanbm.py index 37a43a1126..ecb334478e 100644 --- a/neutron/plugins/brocade/vlanbm.py +++ b/neutron/plugins/brocade/vlanbm.py @@ -21,6 +21,7 @@ """A Vlan Bitmap class to handle allocation/de-allocation of vlan ids.""" +from six.moves import xrange from neutron.common import constants from neutron.plugins.brocade.db import models as brocade_db diff --git a/neutron/plugins/cisco/db/n1kv_db_v2.py b/neutron/plugins/cisco/db/n1kv_db_v2.py index 3ded6feb4b..69ffccf4b3 100644 --- a/neutron/plugins/cisco/db/n1kv_db_v2.py +++ b/neutron/plugins/cisco/db/n1kv_db_v2.py @@ -21,6 +21,7 @@ import netaddr import re +from six.moves import xrange from sqlalchemy.orm import exc from sqlalchemy.sql import and_ diff --git a/neutron/plugins/hyperv/db.py b/neutron/plugins/hyperv/db.py index fae554a3f3..97ac59ab25 100644 --- a/neutron/plugins/hyperv/db.py +++ b/neutron/plugins/hyperv/db.py @@ -16,6 +16,7 @@ # under the License. # @author: Alessandro Pilotti, Cloudbase Solutions Srl +from six.moves import xrange from sqlalchemy.orm import exc from neutron.common import exceptions as n_exc diff --git a/neutron/plugins/linuxbridge/db/l2network_db_v2.py b/neutron/plugins/linuxbridge/db/l2network_db_v2.py index 3178e4588a..4ad72bb9ca 100644 --- a/neutron/plugins/linuxbridge/db/l2network_db_v2.py +++ b/neutron/plugins/linuxbridge/db/l2network_db_v2.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. - +from six.moves import xrange from sqlalchemy.orm import exc from neutron.common import exceptions as n_exc diff --git a/neutron/plugins/ml2/drivers/type_gre.py b/neutron/plugins/ml2/drivers/type_gre.py index 4af8015079..850f1f1a01 100644 --- a/neutron/plugins/ml2/drivers/type_gre.py +++ b/neutron/plugins/ml2/drivers/type_gre.py @@ -14,6 +14,7 @@ # under the License. from oslo.config import cfg +from six.moves import xrange import sqlalchemy as sa from sqlalchemy.orm import exc as sa_exc diff --git a/neutron/plugins/ml2/drivers/type_vlan.py b/neutron/plugins/ml2/drivers/type_vlan.py index 1855d8e678..7bdc815258 100644 --- a/neutron/plugins/ml2/drivers/type_vlan.py +++ b/neutron/plugins/ml2/drivers/type_vlan.py @@ -16,6 +16,7 @@ import sys from oslo.config import cfg +from six.moves import xrange import sqlalchemy as sa from neutron.common import constants as q_const diff --git a/neutron/plugins/mlnx/db/mlnx_db_v2.py b/neutron/plugins/mlnx/db/mlnx_db_v2.py index b197d68992..856d1e44b2 100644 --- a/neutron/plugins/mlnx/db/mlnx_db_v2.py +++ b/neutron/plugins/mlnx/db/mlnx_db_v2.py @@ -15,6 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from six.moves import xrange from sqlalchemy.orm import exc from neutron.common import exceptions as n_exc diff --git a/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py b/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py index 3081f87988..11ff682183 100644 --- a/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py +++ b/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py @@ -21,6 +21,7 @@ import time import eventlet import netaddr from oslo.config import cfg +from six.moves import xrange from neutron.agent import l2population_rpc from neutron.agent.linux import ip_lib diff --git a/neutron/plugins/openvswitch/ovs_db_v2.py b/neutron/plugins/openvswitch/ovs_db_v2.py index e162565abb..6054b134af 100644 --- a/neutron/plugins/openvswitch/ovs_db_v2.py +++ b/neutron/plugins/openvswitch/ovs_db_v2.py @@ -13,6 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. +from six.moves import xrange from sqlalchemy import func from sqlalchemy.orm import exc diff --git a/neutron/services/loadbalancer/drivers/haproxy/cfg.py b/neutron/services/loadbalancer/drivers/haproxy/cfg.py index 74447c6b55..8e7b4090a1 100644 --- a/neutron/services/loadbalancer/drivers/haproxy/cfg.py +++ b/neutron/services/loadbalancer/drivers/haproxy/cfg.py @@ -17,6 +17,7 @@ # @author: Mark McClain, DreamHost import itertools +from six.moves import xrange from neutron.agent.linux import utils from neutron.plugins.common import constants as qconstants diff --git a/neutron/tests/functional/agent/linux/test_async_process.py b/neutron/tests/functional/agent/linux/test_async_process.py index 062cbc523f..3d829d6896 100644 --- a/neutron/tests/functional/agent/linux/test_async_process.py +++ b/neutron/tests/functional/agent/linux/test_async_process.py @@ -17,6 +17,8 @@ import eventlet import fixtures +from six.moves import xrange + from neutron.agent.linux import async_process from neutron.tests import base diff --git a/neutron/tests/unit/bigswitch/test_router_db.py b/neutron/tests/unit/bigswitch/test_router_db.py index c18168e101..0b1384cf56 100644 --- a/neutron/tests/unit/bigswitch/test_router_db.py +++ b/neutron/tests/unit/bigswitch/test_router_db.py @@ -23,6 +23,7 @@ import copy from mock import patch from oslo.config import cfg +from six.moves import xrange from webob import exc from neutron.common.test_lib import test_config diff --git a/neutron/tests/unit/cisco/n1kv/test_n1kv_db.py b/neutron/tests/unit/cisco/n1kv/test_n1kv_db.py index 07c059aef4..8acec2b8d7 100644 --- a/neutron/tests/unit/cisco/n1kv/test_n1kv_db.py +++ b/neutron/tests/unit/cisco/n1kv/test_n1kv_db.py @@ -18,6 +18,7 @@ # @author: Abhishek Raut, Cisco Systems Inc. # @author: Rudrajit Tapadar, Cisco Systems Inc. +from six.moves import xrange from sqlalchemy.orm import exc as s_exc from testtools import matchers diff --git a/neutron/tests/unit/linuxbridge/test_lb_db.py b/neutron/tests/unit/linuxbridge/test_lb_db.py index 63b216c7df..59d1086f66 100644 --- a/neutron/tests/unit/linuxbridge/test_lb_db.py +++ b/neutron/tests/unit/linuxbridge/test_lb_db.py @@ -14,6 +14,7 @@ # limitations under the License. from oslo.config import cfg +from six.moves import xrange import testtools from testtools import matchers diff --git a/neutron/tests/unit/ml2/test_type_gre.py b/neutron/tests/unit/ml2/test_type_gre.py index dd52f0dbf8..b45ed8378d 100644 --- a/neutron/tests/unit/ml2/test_type_gre.py +++ b/neutron/tests/unit/ml2/test_type_gre.py @@ -13,6 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. +from six.moves import xrange import testtools from testtools import matchers diff --git a/neutron/tests/unit/ml2/test_type_vxlan.py b/neutron/tests/unit/ml2/test_type_vxlan.py index 2e3c0adc33..51ce2549df 100644 --- a/neutron/tests/unit/ml2/test_type_vxlan.py +++ b/neutron/tests/unit/ml2/test_type_vxlan.py @@ -15,6 +15,7 @@ # @author: Kyle Mestery, Cisco Systems, Inc. from oslo.config import cfg +from six.moves import xrange import testtools from testtools import matchers diff --git a/neutron/tests/unit/mlnx/test_mlnx_db.py b/neutron/tests/unit/mlnx/test_mlnx_db.py index ec2621453e..51aadb9db5 100644 --- a/neutron/tests/unit/mlnx/test_mlnx_db.py +++ b/neutron/tests/unit/mlnx/test_mlnx_db.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from six.moves import xrange from testtools import matchers from neutron.common import exceptions as n_exc diff --git a/neutron/tests/unit/nec/test_nec_agent.py b/neutron/tests/unit/nec/test_nec_agent.py index 51915df53a..89c243574d 100644 --- a/neutron/tests/unit/nec/test_nec_agent.py +++ b/neutron/tests/unit/nec/test_nec_agent.py @@ -21,6 +21,7 @@ import time import mock from oslo.config import cfg +from six.moves import xrange import testtools from neutron.agent.linux import ovs_lib diff --git a/neutron/tests/unit/nec/test_trema_driver.py b/neutron/tests/unit/nec/test_trema_driver.py index 0eb219f985..dc16baab2b 100644 --- a/neutron/tests/unit/nec/test_trema_driver.py +++ b/neutron/tests/unit/nec/test_trema_driver.py @@ -18,6 +18,7 @@ import random import mock +from six.moves import xrange from neutron.openstack.common import uuidutils from neutron.plugins.nec.common import ofc_client diff --git a/neutron/tests/unit/openvswitch/test_ovs_db.py b/neutron/tests/unit/openvswitch/test_ovs_db.py index 5ebb0c0f20..f9896e4acc 100644 --- a/neutron/tests/unit/openvswitch/test_ovs_db.py +++ b/neutron/tests/unit/openvswitch/test_ovs_db.py @@ -17,6 +17,7 @@ import mock from oslo.config import cfg +from six.moves import xrange import testtools from testtools import matchers diff --git a/neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py b/neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py index 15b8e6d4a4..c828bd6846 100644 --- a/neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py +++ b/neutron/tests/unit/services/loadbalancer/drivers/test_agent_driver_base.py @@ -19,6 +19,7 @@ import contextlib import mock +from six.moves import xrange from webob import exc from neutron.common import exceptions diff --git a/neutron/tests/unit/test_post_mortem_debug.py b/neutron/tests/unit/test_post_mortem_debug.py index 458170924d..ffef668bb0 100644 --- a/neutron/tests/unit/test_post_mortem_debug.py +++ b/neutron/tests/unit/test_post_mortem_debug.py @@ -18,6 +18,7 @@ import sys import mock +from six.moves import xrange from neutron.tests import base from neutron.tests import post_mortem_debug