Skip to content

Edit and Delete Buttons for mark_populated IPRange on ListView Link to IPAddress Instead of IPRange #19263

Closed
@pheus

Description

@pheus

Deployment Type

Self-hosted

NetBox Version

v4.3.0-beta1

Python Version

3.10

Steps to Reproduce

  1. Create a Prefix 192.168.0.0/22
  2. Create an IP Range 192.168.1.50-99/22 with:
    • Start: 192.168.1.50/22
    • End: 192.168.1.99/22
    • mark_populated: True
  3. Navigate to the Prefix 192.168.0.0/22IP Addresses tab
  4. Locate the row representing the populated IPRange
  5. Click either the Edit or Delete button next to 192.168.1.50-99/22

Expected Behavior

Both Edit and Delete should operate on the IPRange object and bring up the appropriate forms for modifying or deleting the range.

Observed Behavior

Both buttons incorrectly operate on an IPAddress object, using the ID of the IPRange.

Impact:

  • Attempting to edit/delete an IPRange actually opens the form for a different object (an IPAddress).
  • This creates confusion and may result in unintended modifications or deletion of unrelated IPAddresses.

Additional Notes:

  • This seems to affect only populated IPRanges (mark_populated=True).
  • The Edit action is being misrouted, possibly due to a rendering issue or mistaken object type association in the IP Address list view.

Metadata

Metadata

Assignees

Labels

betaConcerns a bug/feature in a beta releaseseverity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions