dropbox / nsot

Network Source of Truth is an open source IPAM and network inventory database
https://nsot.readthedocs.io
Other
399 stars 66 forks source link

Bug in Network.get_next_network() returning the wrong result #224

Closed jathanism closed 8 years ago

jathanism commented 8 years ago

Consider this example:

$ nsot networks list -c 10.24.0.0/16 next_network -p 31
10.24.0.0/31

$ nsot networks add -c 10.24.0.0/31
[SUCCESS] Network added!

$ nsot networks list -c 10.24.0.0/16 next_network -p 31
10.24.0.0/31

WAT?

There's obviously a bug here.