in python3.x, there is no method named xrange(),
it has replaced by range(),which is equal to xrange() in python2.x.
so we must fix this issue.we use six module to fix this issue.
Change-Id: I9cee3f0df2d8abbf6f66d7c5a3a0fed98df622e8
Closes-Bug: #
1268439
# 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
import json
import re
+from six.moves import xrange
from wsgiref.simple_server import make_server
"""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
import netaddr
import re
+from six.moves import xrange
from sqlalchemy.orm import exc
from sqlalchemy.sql import and_
# 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
# 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
# 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
import sys
from oslo.config import cfg
+from six.moves import xrange
import sqlalchemy as sa
from neutron.common import constants as q_const
# 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
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
# 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
# @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
import eventlet
import fixtures
+from six.moves import xrange
+
from neutron.agent.linux import async_process
from neutron.tests import base
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
# @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
# limitations under the License.
from oslo.config import cfg
+from six.moves import xrange
import testtools
from testtools import matchers
# License for the specific language governing permissions and limitations
# under the License.
+from six.moves import xrange
import testtools
from testtools import matchers
# @author: Kyle Mestery, Cisco Systems, Inc.
from oslo.config import cfg
+from six.moves import xrange
import testtools
from testtools import matchers
# 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
import mock
from oslo.config import cfg
+from six.moves import xrange
import testtools
from neutron.agent.linux import ovs_lib
import random
import mock
+from six.moves import xrange
from neutron.openstack.common import uuidutils
from neutron.plugins.nec.common import ofc_client
import mock
from oslo.config import cfg
+from six.moves import xrange
import testtools
from testtools import matchers
import contextlib
import mock
+from six.moves import xrange
from webob import exc
from neutron.common import exceptions
import sys
import mock
+from six.moves import xrange
from neutron.tests import base
from neutron.tests import post_mortem_debug