aggregate6 icon indicating copy to clipboard operation
aggregate6 copied to clipboard

Suggestion: calculating aggregated prefix list with "holes"/exceptions

Open toreanderson opened this issue 2 years ago • 1 comments

In case you're taking feature requests, it would be useful to generate an aggregated prefix list but with some sub-prefixes removed:

Mock-up to explain what I mean:

$ echo 192.0.2.0/25 192.0.2.128/26 192.0.2.192/27 192.0.2.224/27 > prefixes.txt
$ echo 192.0.2.3/32 192.0.2.128/30 > exceptions.txt
$ aggregate6 -e exceptions.txt prefixes.txt
192.0.2.0/31
192.0.2.2/32
192.0.2.4/30
192.0.2.8/29
192.0.2.16/28
192.0.2.32/27
192.0.2.64/26
192.0.2.132/30
192.0.2.136/29
192.0.2.144/28
192.0.2.160/27
192.0.2.192/26

If on the other hand you're not taking feature requests, feel free to close this issue. In any case, thank you for this very useful tool!

toreanderson avatar Dec 08 '22 08:12 toreanderson