Skip to content

Multiple prefix deletion via pagination causes "RecursionError" #7301

@WillIrvine

Description

@WillIrvine

NetBox version

v2.11.12

Python version

3.7

Steps to Reproduce

  1. Create /24 Prefix (10.10.0.0/24, No VRF)
    image

  2. Create 200 /32 Prefixes within that subnet
    image

  3. Ensure Pagination is set to below the number of prefixes so that the bulk select menu is triggered (mine is set to 50)

  4. Go to parent prefix (10.10.0.0/24). Select all prefixes within /24 prefix and "Delete all"
    image

  5. Recursion error is seen
    image

Expected Behavior

Expected the selected prefixes within the parent prefix to be deleted

Observed Behavior

A RecursionError results and selected prefixes marked for removal remain

Cases where this does not happen

-Adding IP Addresses to the same parent prefix and removing in the same way (through pagination) does not cause an issue
-Removing the prefixes when Pagination is set higher than the number of prefixes for removal does not cause an issue, suggesting that the issue lies in the pagination logic

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions