chiark / gitweb /
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>
Thu, 2 Oct 2014 15:30:22 +0000 (16:30 +0100)
commitc1dec6ce30e7a925a7cacec16833a217187f1d84
treed1f1f6cbce6bf80650ac43ece64aef6ea13a4373
parent7d51fc4741a7ac86fcff8e6bb7be465750d9018d
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]