Open GoogleCodeExporter opened 9 years ago
I don't know if this is a sustainable approach, since we tend to get a lot of
fragmentation in our networks. Allowing people to add a CSV of hosts would
make it
likely that the hosts are more or less contiguous when a network isn't highly
fragmented. Consecutive IPs are overrated, though -- that is why we invented
DNS, so
your IP doesn't matter.
There is code in ipm.py that will give a list of free IP addresses broken into
the
largest possible CIDR blocks in a given network range that could help you in
your quest:
openipam % show_addresses network 129.123.54.0/24
129.123.54.37
129.123.54.38
129.123.54.49
129.123.54.50/31
129.123.54.52/30
129.123.54.56/29
129.123.54.64/26
129.123.54.128
129.123.54.151
129.123.54.152/29
129.123.54.160/27
129.123.54.192/27
129.123.54.224/28
129.123.54.240/29
129.123.54.248/30
129.123.54.252/31
Original comment by ekoyle@gmail.com
on 28 Jan 2009 at 7:42
Original issue reported on code.google.com by
fotinaki...@gmail.com
on 27 Jan 2009 at 10:50