Open joewesch opened 4 days ago
We either need to enhance the prefix
method filter to handle UUIDs, or add a separate prefix_id
ModelMultipleChoiceFilter. The location
filter is using a NaturalKeyOrPKMultipleChoiceFilter so it's fine as-is.
Also, conversely, the VRFPrefixAssignmentFilterSet prefix
filter only understands a PK, and doesn't understand a prefix string. So we should fix that too.
Environment
Steps to Reproduce
api/ipam/prefix-location-assignments/?prefix=63b2b269-b33c-446e-bf34-fad097386261
)Expected Behavior
All prefix to location assignments for that prefix should be returned.
Observed Behavior
0 results are returned unless I filter by the prefix name itself (e.g.
?prefix=192.0.2.0/24
)