a19029d3d6
This function isn't necessary. The json encoding of a named tuple will already turn into a normal list. ports = [l2pop_rpc.PortInfo('abcdef', '1.1.1.1')] json.dumps(ports) == json.dumps([(mac, ip) for (mac, ip) in ports]) An argument could be made that the PortInfo object could have something added to it later that we wouldn't want to serialize in order to remain backward compatible. However, doing so would break all of the constructions of PortInfo objects on the agents once they got the updated code for PortInfo that requires the new parameter. So there is no way currently to add a new field to PortInfo without breaking existing legacy clients or breaking new clients. Given that, let's stop doing the json encoder's job. This patch also adds a sanity unit test to make sure the json serialization method used in oslo does not break on the named tuples. Change-Id: I45ae69ef8c9c15ad21a28dc42f2d78b234ccfb0c |
||
---|---|---|
bin | ||
devstack | ||
doc | ||
etc | ||
neutron | ||
rally-jobs | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
TESTING.rst | ||
babel.cfg | ||
openstack-common.conf | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Welcome!
You have come across a cloud computing network fabric controller. It has identified itself as "Neutron." It aims to tame your (cloud) networking!
External Resources:
The homepage for Neutron is: http://launchpad.net/neutron. Use this site for asking for help, and filing bugs. Code is available on git.openstack.org at <http://git.openstack.org/cgit/openstack/neutron>.
The latest and most in-depth documentation on how to use Neutron is available at: <http://docs.openstack.org>. This includes:
- Neutron Administrator Guide
- Networking Guide
- Neutron API Reference:
-
http://docs.openstack.org/api/openstack-network/2.0/content/
- Current Neutron developer documentation is available at:
For help on usage and hacking of Neutron, please send mail to <mailto:openstack-dev@lists.openstack.org>.
For information on how to contribute to Neutron, please see the contents of the CONTRIBUTING.rst file.