
1. What is the problem In the current implementation of the Tricircle plugin for neutron, network type is not supported so users cannot create networks with network type specified. In the specification of cross-pod l2 networking feature[1], we decide to support several network types like local, shared VLAN, shared VxLAN, etc, the first step is to make the Tricircle plugin be aware of network type. 2. What is the solution to the problem Handle network type in the Tricircle plugin for neutron. 3. What the features need to be implemented to the Tricircle to realize the solution In this patch, we add a framework to load type driver which processes different network type. The framework is based on neutron ML2 implemenation, we inherit the ML2 type manager and create a new Tricircle type manager. Also the Tricircle plugin is modified to extract network type parameter from request and insert network type information to response. [1] https://github.com/openstack/tricircle/blob/master/specs/cross-pod-l2-networking.rst Change-Id: Ida9b88df6113db46e637a7841ce5c1adaf651eba
48 lines
1.3 KiB
INI
48 lines
1.3 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
sitepackages = True
|
|
usedevelop = True
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
TRICIRCLE_TEST_DIRECTORY=tricircle/tests
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/neutron@master#egg=neutron
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
whitelist_externals = rm
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/api-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/nova_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/cinder_apigw-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/xjob-cfg-gen.conf
|
|
oslo-config-generator --config-file=etc/tricircle_plugin-cfg-gen.conf
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|