Python IP addresses: Provide ipaddrset.py library
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Sep 2014 21:40:52 +0000 (22:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 6 Oct 2014 16:52:59 +0000 (17:52 +0100)
commit6437945aefa308c06ab14da291c5d5489c25b393
tree47e8ea2b7fa1e7f3f54edac6743d2c2605b5fb49
parent3f2c70f6b6d5ba48ff9fbe7887eb2e77ea128220
Python IP addresses: Provide ipaddrset.py library

This library module provides a class for a set of IP addresses, stored
as a list of netmasks.  This is in terms of the modern `ipaddr' module
by Scott Kitterman.

In this commit we introduce the ipaddrset.py module and its test
module.  We also patch the Makefile to install it, and test in `make
check' that it produces the expected output.

However, due to the presence of the old Cendio ipaddr.py alongside,
the provided ipaddrset-test.py needs some hideous hacking of sys.path
if it is to work when run in the ordinary way inside the secnet source
tree.  This will be removed in a later patch.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile.in
ipaddrset-test.expected [new file with mode: 0644]
ipaddrset-test.py [new file with mode: 0755]
ipaddrset.py [new file with mode: 0644]