Currently it seems that using list_prefix in the XML-RPC api returns prefixes without the prefix_length field set. But using search_prefix returns prefixes with the prefix_length set.
I stumbled upon this while writing integration tests in a project using nipap and when first calling add_prefix (which seems to use list_prefix to return data) and then doing a search_prefix results in the prefixes not matching on the prefix_length field.
Is this behaviour by design?
Currently it seems that using
list_prefixin the XML-RPC api returns prefixes without the prefix_length field set. But usingsearch_prefixreturns prefixes with the prefix_length set.I stumbled upon this while writing integration tests in a project using nipap and when first calling
add_prefix(which seems to use list_prefix to return data) and then doing asearch_prefixresults in the prefixes not matching on theprefix_lengthfield.Is this behaviour by design?