IPv4 and IPv6 prefix list compressor
Project description
aggregate6
==========
aggregate6 will compress an unsorted list of IP (both IPv4 and IPv6) prefixes.
DESCRIPTION
-----------
Takes a list of IPv6 prefixes in conventional format on stdin, and performs two
optimisations to attempt to reduce the length of the prefix list. The first
optimisation is to remove any supplied prefixes which are superfluous because
they are already included in another supplied prefix. For example,
```2001:67c:208c:10::/64``` would be removed if ```2001:67c:208c::/48``` was
also supplied.
The second optimisation identifies adjacent prefixes that can be combined under
a single, shorter-length prefix. For example, ```2001:67c:208c::/48``` and
```2001:67c:208d::/48``` can be combined into the single prefix
2001:67c:208c::/47.
INSTALLATION
------------
```
$ pip install aggregate6
```
USAGE
-----
Either provide the list of IPv4 and IPv prefixes on STDIN, or give filenames
containing lists of IPv6 prefixes as arguments.
```
$ cat prefix_list | aggregate6
... output ...
$ aggregate6 file_with_list_of_prefixes [ ... optional_other_prefix_lists ]
... output ...
$ echo -e "2001:67c:208c::/48\n2000::/3" | aggregate6
2000::/3
```
See ```aggregate6 -h``` for a full list of options.
BUGS
----
Please report bugs at: https://github.com/job/aggregate6/issues
==========
aggregate6 will compress an unsorted list of IP (both IPv4 and IPv6) prefixes.
DESCRIPTION
-----------
Takes a list of IPv6 prefixes in conventional format on stdin, and performs two
optimisations to attempt to reduce the length of the prefix list. The first
optimisation is to remove any supplied prefixes which are superfluous because
they are already included in another supplied prefix. For example,
```2001:67c:208c:10::/64``` would be removed if ```2001:67c:208c::/48``` was
also supplied.
The second optimisation identifies adjacent prefixes that can be combined under
a single, shorter-length prefix. For example, ```2001:67c:208c::/48``` and
```2001:67c:208d::/48``` can be combined into the single prefix
2001:67c:208c::/47.
INSTALLATION
------------
```
$ pip install aggregate6
```
USAGE
-----
Either provide the list of IPv4 and IPv prefixes on STDIN, or give filenames
containing lists of IPv6 prefixes as arguments.
```
$ cat prefix_list | aggregate6
... output ...
$ aggregate6 file_with_list_of_prefixes [ ... optional_other_prefix_lists ]
... output ...
$ echo -e "2001:67c:208c::/48\n2000::/3" | aggregate6
2000::/3
```
See ```aggregate6 -h``` for a full list of options.
BUGS
----
Please report bugs at: https://github.com/job/aggregate6/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aggregate6-1.0.3.tar.gz
(4.8 kB
view details)
File details
Details for the file aggregate6-1.0.3.tar.gz
.
File metadata
- Download URL: aggregate6-1.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904b9f9dc8d51ec025a0d0b1f0e4b2737dfed88c9bf1c20e16c8ff4e49152a7c |
|
MD5 | 15dba8d1e04d11f9397f3e2e9a55aee5 |
|
BLAKE2b-256 | 460b208c2c6555ab993e3da574225d15635fa7f98d6942d45f167fbb5c8a9589 |