-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: v3.6.8
- NetBox version: v2.9.9
Steps to Reproduce
- Create 10 VRFs
- Create the IP address
5.5.5.5/3210 times, using one of the 10 VRFs each time - Do a
GETon/api/ipam/ip-addresses/?limit=2&offset=0and record the IDs of each IP address (listorCounterobject) - Increase the
offsetby 2 (or follow thenextURL) and record all IDs. - Count the number of times each ID appears in the full dataset
Expected Behavior
A list of 10 unique IP address objects.
Observed Behavior
Object/IDs appears more than once (more IPs = more duplicates). I tested this on v2.8.8 using a more expansive dataset (hundreds of thousands of IPs giving several thousand duplicated objects) as well as a fresh clean install of v2.9.9 using the above steps and getting 1 duplicate object.
[Edit] I forgot to mention that this is causing data to be missing. Using the above steps, one of those 10 IPs will be missing from the list as it's "overwritten" by the duplicate.
Based on a few past issues that were for related problems, I'm guessing that vrf may need to be added to the ordering attribute but haven't verified that myself.
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application