Skip to content

Inconsistent enforcement of duplicate IP addresses #5735

Closed
@candlerb

Description

@candlerb

Environment

  • Python version: 3.6.9
  • NetBox version: 2.10.4

Steps to Reproduce

This is with ENFORCE_GLOBAL_UNIQUE = True in configuration.py

  1. Add two interfaces to a device, say "test1" and "test2" (these can be virtual)
  2. Add IP address 1.2.3.4/24 to "test1" with no role
  3. Add IP address 1.2.3.4/24 to "test2" with role VIP
  4. Change the test1 1.2.3.4/24 IP address to role VIP
  5. Change the test1 1.2.3.4/24 IP address back to no role

Expected Behavior

I expected duplicate IP address enforcement to be consistent: either require both addresses to be VIP, or allow one normal and one VIP to share the same IP address. (Probably the former).

In other words: either step 3 should have failed with a duplicate address error, or step 5 should have been accepted since it puts things back to how they were at step 3.

Observed Behavior

Step 3 is accepted, but step 5 fails with:
image

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