The closest_parent function for a network resources doesn't seem to always work correctly. In the example below, using the network of 10.0.0.185/32 incorrectly returns 10.0.0.0/25. However, parent correctly returns 10.0.0.0/24.
This same behavior appears to apply to both assigned and unknown addresses.
The
closest_parent
function for a network resources doesn't seem to always work correctly. In the example below, using the network of10.0.0.185/32
incorrectly returns10.0.0.0/25
. However,parent
correctly returns10.0.0.0/24
.This same behavior appears to apply to both assigned and unknown addresses.
Example nsot API call outputs: