<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/netaddr.git, branch more2</title>
<subtitle>github.com: drkjam/netaddr.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/'/>
<entry>
<title>Fix a regression in spanning_cidr(), spotted by Herman Narkaytis</title>
<updated>2020-06-23T10:36:50+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-23T10:36:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=2ce9c813f78918968f6c1734b7d0ba524d4855a2'/>
<id>2ce9c813f78918968f6c1734b7d0ba524d4855a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Verify that various objects are weak referencable</title>
<updated>2020-06-23T10:26:51+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-23T10:26:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=54fd603b24a559214e80c564c4d9de2b93d58a13'/>
<id>54fd603b24a559214e80c564c4d9de2b93d58a13</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add some glob_to_iprange() tests</title>
<updated>2020-06-22T10:57:20+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-22T10:54:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=ebbaf8b30ef6b6c2a2845bb1cf99f334db6d8700'/>
<id>ebbaf8b30ef6b6c2a2845bb1cf99f334db6d8700</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support iterables of IPRange in IPSet and cidr_merge</title>
<updated>2020-06-22T10:57:02+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-22T10:34:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=dab5fa70d65691696894f36e1a03af70c01d5490'/>
<id>dab5fa70d65691696894f36e1a03af70c01d5490</id>
<content type='text'>
This is based on Henry's initial patch from GH-166. Changes:

* Fixed the return type of cidr_merge() so it's always IPNetworks,
  not IPRanges as it was in some cases in the original patch
* Added tests
* Updated documentation

This addresses GH-171.

Co-authored-by: Henry Stern &lt;hstern@securityscorecard.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is based on Henry's initial patch from GH-166. Changes:

* Fixed the return type of cidr_merge() so it's always IPNetworks,
  not IPRanges as it was in some cases in the original patch
* Added tests
* Updated documentation

This addresses GH-171.

Co-authored-by: Henry Stern &lt;hstern@securityscorecard.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove dead code</title>
<updated>2020-06-22T10:32:03+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-22T01:14:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=431f7ca08a2f590aa2d03caebc151d1cd0a1c12f'/>
<id>431f7ca08a2f590aa2d03caebc151d1cd0a1c12f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure that "x.x.x.x/x" in IPNetwork(...) works</title>
<updated>2020-06-21T12:40:32+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-21T12:36:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=9f14e8a7fb28f08125e560e747f4f0863789f273'/>
<id>9f14e8a7fb28f08125e560e747f4f0863789f273</id>
<content type='text'>
This is basically PR https://github.com/netaddr/netaddr/pull/151 with
added tests.

Co-authored-by: xpac1985
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is basically PR https://github.com/netaddr/netaddr/pull/151 with
added tests.

Co-authored-by: xpac1985
</pre>
</div>
</content>
</entry>
<entry>
<title>Add "IPNetwork(...) in IPNetwork(...)" tests for IPv6</title>
<updated>2020-06-21T12:40:22+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-21T12:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=32dd8c5e140d8d8ee24ed024d24ba58a8ee02509'/>
<id>32dd8c5e140d8d8ee24ed024d24ba58a8ee02509</id>
<content type='text'>
IPv4 has those tests already so adding for coverage parity.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
IPv4 has those tests already so adding for coverage parity.
</pre>
</div>
</content>
</entry>
<entry>
<title>Optimize spanning_cidr() some more (#212)</title>
<updated>2020-06-21T12:19:43+00:00</updated>
<author>
<name>Jakub Stasiak</name>
<email>jakub@stasiak.at</email>
</author>
<published>2020-06-21T12:19:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=0fda41a0e38f39c4064e6e5b98adad364eac2544'/>
<id>0fda41a0e38f39c4064e6e5b98adad364eac2544</id>
<content type='text'>
This reduces the amount of work in the loop which simplifies the loop
logic and also has a performance benefit. Benchmarked with:

    % PYTHONPATH=. python -m timeit -n 5 \
        -s 'from netaddr import IPNetwork, spanning_cidr' \
        -s 'import random' \
        -s 'hosts = list(IPNetwork("192.168.0.1/12"))' \
        -s 'random.shuffle(hosts)' \
        'spanning_cidr(hosts)'

Before:

    5 loops, best of 5: 4.95 sec per loop

After:

    5 loops, best of 5: 4.6 sec per loop

(Tested with CPython 3.8.3 on mid-2015 MacBook Pro with 2.8GHz Intel Core i7)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reduces the amount of work in the loop which simplifies the loop
logic and also has a performance benefit. Benchmarked with:

    % PYTHONPATH=. python -m timeit -n 5 \
        -s 'from netaddr import IPNetwork, spanning_cidr' \
        -s 'import random' \
        -s 'hosts = list(IPNetwork("192.168.0.1/12"))' \
        -s 'random.shuffle(hosts)' \
        'spanning_cidr(hosts)'

Before:

    5 loops, best of 5: 4.95 sec per loop

After:

    5 loops, best of 5: 4.6 sec per loop

(Tested with CPython 3.8.3 on mid-2015 MacBook Pro with 2.8GHz Intel Core i7)</pre>
</div>
</content>
</entry>
<entry>
<title>spanning_cidr doesn't need to sort all of its inputs</title>
<updated>2020-06-21T11:35:10+00:00</updated>
<author>
<name>Brian Maissy</name>
<email>brian@medigate.io</email>
</author>
<published>2020-06-21T08:03:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=4778a16aa9767d76b6913f1999c5fafa634ee839'/>
<id>4778a16aa9767d76b6913f1999c5fafa634ee839</id>
<content type='text'>
Closes #205

From Jakub: this is a performance improvement. A simple benchmark
demonstrates this:

    % PYTHONPATH=. python -m timeit -n 5 \
        -s 'from netaddr import IPNetwork, spanning_cidr' \
        -s 'import random' \
        -s 'hosts = list(IPNetwork("192.168.0.1/12"))' \
        -s 'random.shuffle(hosts)' \
        'spanning_cidr(hosts)'

Before:

    5 loops, best of 5: 35.4 sec per loop

After:

    5 loops, best of 5: 4.95 sec per loop

(Tested with CPython 3.8.3 on mid-2015 MacBook Pro with 2.8GHz Intel Core i7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #205

From Jakub: this is a performance improvement. A simple benchmark
demonstrates this:

    % PYTHONPATH=. python -m timeit -n 5 \
        -s 'from netaddr import IPNetwork, spanning_cidr' \
        -s 'import random' \
        -s 'hosts = list(IPNetwork("192.168.0.1/12"))' \
        -s 'random.shuffle(hosts)' \
        'spanning_cidr(hosts)'

Before:

    5 loops, best of 5: 35.4 sec per loop

After:

    5 loops, best of 5: 4.95 sec per loop

(Tested with CPython 3.8.3 on mid-2015 MacBook Pro with 2.8GHz Intel Core i7)
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle RFC 6164 IPv6 addresses</title>
<updated>2020-06-21T00:12:59+00:00</updated>
<author>
<name>Damien Claisse</name>
<email>d.claisse@criteo.com</email>
</author>
<published>2018-01-23T14:34:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/netaddr.git/commit/?id=2984c0a40a706ffadd6f22a7686f3f4f056e7f51'/>
<id>2984c0a40a706ffadd6f22a7686f3f4f056e7f51</id>
<content type='text'>
Like RFC 3021, IPv6 defines point-to-point subnets that must
be handled separately, i.e. don't reserve first IP address.

This patch aims to implement this, while refactoring code in
iter_host function to reduce code duplication.

Tests for this feature also added to ensure there is no regression.

Signed-off-by: Damien Claisse &lt;d.claisse@criteo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Like RFC 3021, IPv6 defines point-to-point subnets that must
be handled separately, i.e. don't reserve first IP address.

This patch aims to implement this, while refactoring code in
iter_host function to reduce code duplication.

Tests for this feature also added to ensure there is no regression.

Signed-off-by: Damien Claisse &lt;d.claisse@criteo.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
