Closed
Description
Environment
- Python version: 3.6.9
- NetBox version: 2.10.4
Steps to Reproduce
This is with ENFORCE_GLOBAL_UNIQUE = True
in configuration.py
- Add two interfaces to a device, say "test1" and "test2" (these can be virtual)
- Add IP address 1.2.3.4/24 to "test1" with no role
- Add IP address 1.2.3.4/24 to "test2" with role VIP
- Change the test1 1.2.3.4/24 IP address to role VIP
- 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.