Some quirks popped up while debugging the new CLI features for pynsot.
There's definitely a bug in next_address and next_network that's causing assigned or reserved addresses to be offered. There also seems to be a related bug where networks are not offered unless they no longer match any potential children, which is also bad.
These outputs are coming from the pre-release version of pynsot (v0.22)
Examples:
This network is assigned, which is a busy state.
$ nsot networks list -c 10.20.30.1/32
+---------------------------------------------------------------------------------+
| ID Network Prefix Is IP? IP Ver. Parent ID State Attributes |
+---------------------------------------------------------------------------------+
| 16 10.20.30.1 32 True 4 15 assigned |
+---------------------------------------------------------------------------------+
Some quirks popped up while debugging the new CLI features for pynsot.
There's definitely a bug in
next_address
andnext_network
that's causing assigned or reserved addresses to be offered. There also seems to be a related bug where networks are not offered unless they no longer match any potential children, which is also bad.These outputs are coming from the pre-release version of pynsot (v0.22)
Examples:
This network is
assigned
, which is a busy state.Yet it's showing as available:
And if you add a random IP address into the mix, the
next_network
output is also weirdAnd then worse yet:
Huh?