|
aggregate6 will compress an unsorted list of IP
prefixes (both IPv4 and IPv6).
DescriptionTakes 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. The above optimalisation steps are often useful in context of compressing firewall rules or BGP prefix-list filters. The following command line options are available:
InstallationOpenBSD 6.3:$ doas pkg_add aggregate6 Other platforms: $ pip3 install aggregate6 CLI UsageEither provide the list of IPv4 and IPv6 prefixes on STDIN, or give filenames containing lists of IPv4 and IPv6 prefixes as arguments.
Library UsageAggregate6 can be used in your own pyp/python2/python3 project as python module. Currently there is just one simple public function: aggregate() which takes a list as parameter.
BugsPlease report bugs at https://github.com/job/aggregate6/issuesAuthorJob Snijders job@instituut.net
Visit the GSP FreeBSD Man Page Interface. |