-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
v0.3.4
This tool throws a malformed IP error on properly formatted IPs. After some troubleshooting I determined that the tool is actually erroring because the input file contained the same IP twice. This error needs to be more clear, and/or the tool should just skip over an IP that is a duplicate.
One example on how to reproduce:
test.txt
10.0.0.0/16
10.0.0.96/27
Running onesixtyone with the above as an input file yields the following:
$ onesixtyone -i ./test.txt -p161
Malformed IP address: 10.0.0.96/27
Expanding the IP ranges in test.txt from CIDR to a list, then grepping for the erroring IP, we can see it is the first duplicate entry the tool is erroring on:
$ cat test.txt.list | grep 10.0.0.96 -A2 -B2
10.0.0.94
10.0.0.95
10.0.0.96
10.0.0.97
10.0.0.98
--
10.0.255.254
10.0.255.255
10.0.0.96
10.0.0.97
10.0.0.98
Metadata
Metadata
Assignees
Labels
No labels