OpenStack library for serialization
Go to file
Ihar Hrachyshka be828c35d8 Don't iterate through addresses in netaddr.IPNetwork
Currently, to_primitive tries to iterate through all addresses in the
network, because the type doesn't have a special handling that would
short curcuit it, but also has __iter__. This may be detrimental to
performance, up to the point of node crash due to memory exhaustion if
the passed network range is too large (think of 0.0.0.0/0 or even
2001::/64). This behavior also makes it impossible to restore the
original data format (CIDR).

This patch short curcuits the iteration by handling the IPNetwork type
as a special case, same as we do for IPAddress.

Change-Id: I6aecd2d057d282a655ff9e4918c164253142b188
Closes-Bug: #1698355
(cherry picked from commit 38ac21b523)
2017-09-05 11:58:24 +00:00
doc/source Add a title to the API Documentation page 2016-09-29 12:53:06 -07:00
oslo_serialization Don't iterate through addresses in netaddr.IPNetwork 2017-09-05 11:58:24 +00:00
releasenotes Add reno for release notes management 2016-11-03 20:44:36 +08:00
tools Add Constraints support 2016-12-20 14:36:50 +11:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:22:20 -04:00
.gitignore Add reno for release notes management 2016-11-03 20:44:36 +08:00
.gitreview Update .gitreview for stable/ocata 2017-01-20 19:15:51 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-07-14 17:54:12 +00:00
.testr.conf Fixes wrong folder for listing tests 2015-04-27 15:00:14 +02:00
CONTRIBUTING.rst Fix bug track URL 2015-11-16 21:41:23 +08:00
HACKING.rst exported from oslo-incubator by graduate.sh 2014-07-14 17:54:12 +00:00
LICENSE exported from oslo-incubator by graduate.sh 2014-07-14 17:54:12 +00:00
README.rst Show team and repo badges on README 2016-11-25 15:21:15 +01:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-07-14 17:54:12 +00:00
requirements.txt Updated from global requirements 2016-11-09 04:23:03 +00:00
setup.cfg modify the home-page info with the developer documentation 2016-09-20 11:47:00 +05:30
setup.py Updated from global requirements 2015-09-17 12:16:12 +00:00
test-requirements.txt Add reno for release notes management 2016-11-03 20:44:36 +08:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/ocata 2017-01-20 19:15:52 +00:00

README.rst

Team and repository tags

image

oslo.serialization

Latest Version

Downloads

The oslo.serialization library provides support for representing objects in transmittable and storable formats, such as Base64, JSON and MessagePack.